Utility for copying npm installed dependencies packages into a /app/fe/themes/default/vendor
and /htdocs/fe/vendor
directory and clean them from unnecessary files.
JS and CSS files in htdocs vendor folder are above that automaticaly minified.
npm install --save-dev aitom-frontendDependencies
The packages listed in dependencies
should have been already installed with
npm install --save <packagename>
or similar, that means they should exist.
Then you can run /node_modules/.bin/aitom-frontenddependencies
by hand, or even better, make it a postinstall script
by adding to your package.json scripts sections something like:
"scripts": {
"postinstall": "./node_modules/.bin/aitom-frontenddependencies"
}