0.20.4 • Published 1 year ago

@nvon/node-toolbox v0.20.4

Weekly downloads
-
License
MIT
Repository
gitlab
Last release
1 year ago

NVON-react-toolbox

This is a package intended to collect useful node based scripts and functions.

Available functions

NPM

  • checkArgumentsForDryRun (Check for --dry-run argument)
  • determineVersionChangeFromArguments (check arguments for npm compatible version change)
  • buildAndPublish (build and publish an npm package)

SVG

  • SVG component templates (can be passed to other create functions)
    • gatsbySvgComponentTemplate
    • createReactAppSvgComponentTemplate
  • createSvgComponents (create a SVG components in a target directory from SVGs within a path)
  • createComponentFromSvg (create a SVG component in a target directory from a file path)
  • createSvgMap (create a map of components based on created SVG components)

Development

To work on the publishing scripts, npm run scripts-compile-watch can be used. Compiled scripts are accessible in scripts/dist.

For passing flags to scripts, you need to use a -- between the script and your flags. Otherwise, those flags will be consumed before the script is invoked:

npm run publish-package -- --minor --dry-run

Debugging scripts

For debugging an npm script in vscode, the launch.json can be adjusted, so that the runtimeArgs reflect the script you want to debug.

Publishing

  • make sure your git repository is clean
  • decide on the version change (patch/minor/major)
  • run the publish-package command: npm run publish-package -- --minor
0.20.4

1 year ago

0.20.3

1 year ago

0.20.1

1 year ago

0.20.0

1 year ago

0.20.2

1 year ago

0.12.0

2 years ago

0.13.0

2 years ago

0.12.1

2 years ago

0.11.2

2 years ago

0.13.1

2 years ago

0.12.2

2 years ago

0.11.3

2 years ago

0.12.3

2 years ago

0.11.4

2 years ago

0.12.4

2 years ago

0.10.0

2 years ago

0.11.0

2 years ago

0.10.1

2 years ago

0.9.0

2 years ago

0.11.1

2 years ago

0.9.1

2 years ago

0.8.0

2 years ago

0.7.0

2 years ago

0.6.0

2 years ago

0.5.4

2 years ago

0.5.3

2 years ago

0.5.2

2 years ago

0.5.1

2 years ago

0.5.0

2 years ago

0.4.4

2 years ago

0.4.3

2 years ago

0.4.2

2 years ago

0.4.1

2 years ago

0.4.0

2 years ago

0.3.0

2 years ago