Package.json action
You can do some processing on the package.json
file in the website project.
Format the package.json
file
This will reorder the contents, set the correct license, update the scripts, and dev dependencies.
This can be used when setting up a new site or converting a gulp-build process to use this package.
aptuitiv-build package-json format
aptuitiv-build package-json format -t <theme>
aptuitiv-build package-json format --theme <theme>
You can specify the theme name to use for the package.json scripts. By default it will use "custom". For example, to set the theme name to "my-theme", you can run the following command:
aptuitiv-build package-json format -t my-theme
aptuitiv-build package-json format --theme my-theme
Update the scripts
in the package.json
file
This will update the scripts
section of the package.json
file to use the latest recommended ones.
aptuitiv-build package-json scripts
aptuitiv-build package-json scripts -t <theme>
aptuitiv-build package-json scripts --theme <theme>
You can specify the theme name to use for the package.json scripts. By default it will use "custom". For example, to set the theme name to "my-theme", you can run the following command:
aptuitiv-build package-json scripts -t my-theme
aptuitiv-build package-json scripts --theme my-theme