Add Compser and NPM scripts, remove Makefile
This commit is contained in:
parent
17bb353bbf
commit
58fe8198d3
28
Makefile
28
Makefile
|
@ -1,28 +0,0 @@
|
|||
.PHONY: clean
|
||||
|
||||
BOWER="node_modules/.bin/bower"
|
||||
GULP="node_modules/.bin/gulp"
|
||||
SCULPIN="bin/sculpin"
|
||||
|
||||
init: build watch
|
||||
|
||||
build:
|
||||
composer install \
|
||||
&& yarn \
|
||||
&& $(BOWER) install \
|
||||
&& $(GULP) build
|
||||
|
||||
clean:
|
||||
rm -rf node_modules/ output_*/ vendor/
|
||||
|
||||
generate:
|
||||
$(SCULPIN) generate --clean --no-interaction
|
||||
|
||||
gulp:
|
||||
$(GULP) watch
|
||||
|
||||
serve:
|
||||
$(SCULPIN) generate --server --clean --no-interaction
|
||||
|
||||
watch:
|
||||
$(SCULPIN) generate --server --watch --clean --no-interaction
|
|
@ -1,4 +1,10 @@
|
|||
{
|
||||
"scripts": {
|
||||
"clean": "rm -rf output_*/",
|
||||
"dev": "sculpin generate --clean --no-interaction --server --watch",
|
||||
"production": "sculpin generate --clean --no-interaction --env prod",
|
||||
"test": "behat"
|
||||
},
|
||||
"require": {
|
||||
"behat/mink-extension": "@stable",
|
||||
"behat/mink-goutte-driver": "@stable",
|
||||
|
@ -10,7 +16,6 @@
|
|||
"tsphethean/sculpin-related-posts-bundle": "~0.1.0"
|
||||
},
|
||||
"config": {
|
||||
"bin-dir": "bin",
|
||||
"sort-packages": true
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,4 +1,9 @@
|
|||
{
|
||||
"scripts": {
|
||||
"init": "yarn && bower install",
|
||||
"dev": "gulp watch",
|
||||
"production": "gulp --production"
|
||||
},
|
||||
"devDependencies": {
|
||||
"bower": "^1.7.7",
|
||||
"del": "^2.2.0",
|
||||
|
|
Reference in a new issue