Add Compser and NPM scripts, remove Makefile

This commit is contained in:
Oliver Davies 2017-01-05 13:17:40 +00:00
parent 17bb353bbf
commit 58fe8198d3
3 changed files with 11 additions and 29 deletions

View file

@ -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

View file

@ -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
}
}

View file

@ -1,4 +1,9 @@
{
"scripts": {
"init": "yarn && bower install",
"dev": "gulp watch",
"production": "gulp --production"
},
"devDependencies": {
"bower": "^1.7.7",
"del": "^2.2.0",