almost 3 years, but I am responsible for the link.
- Usually / dist is a generated generated directory, it is temporary and changes a lot when working in our sources, therefore / dist is not supported by the version .
- on your .json package you can add a script called postinstall with this build process, suppose you have a task in gulp called build ... so that "postinstall": "gulp build"
- if you also manage your project dependencies in gower, npm install --save bower and "postinstall": "./ node_modules / bower / bin / bower install & gulp build"
Just a simple example created for your package.json
{ "dependencies: { "bower":"^1.8.0", "grunt":"^1.0.1", }, "scripts": { "start": "node ./www.js", "build": "grunt dist", "postinstall": "./node_modules/bower/bin/bower install && npm run build" } }
Obviously, you probably did better now ... I just refer to it for the following consultations.
diegolameira
source share