mirror of
https://github.com/azures04/crafatar.git
synced 2026-05-06 11:00:39 +02:00
use postinstall script instead of Procfile
https://docs.npmjs.com/misc/scripts
This commit is contained in:
2
Procfile
2
Procfile
@@ -1 +1 @@
|
|||||||
web: cp "modules/config.example.js" "modules/config.js" && npm start
|
web: npm start
|
||||||
@@ -21,6 +21,7 @@
|
|||||||
"avatar"
|
"avatar"
|
||||||
],
|
],
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
"postinstall": "cp 'modules/config.example.js' 'modules/config.js'",
|
||||||
"start": "node bin/www.js",
|
"start": "node bin/www.js",
|
||||||
"test": "istanbul cover ./node_modules/mocha/bin/_mocha --report lcovonly -- -R spec && cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js && rm -rf ./coverage"
|
"test": "istanbul cover ./node_modules/mocha/bin/_mocha --report lcovonly -- -R spec && cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js && rm -rf ./coverage"
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user