Last active
August 29, 2015 14:27
-
-
Save sagikazarmark/24ed9db5d140681fcf66 to your computer and use it in GitHub Desktop.
How not to use bower/grunt/gulp at all?
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"private": true, | |
"devDependencies": { | |
"bootstrap": "3.3.5", | |
"bootswatch": "3.3.5", | |
"browser-sync": "^2.8.0", | |
"browserify": "^11.0.0", | |
"del": "^1.1.1", | |
"domready": "^1.0.8", | |
"font-awesome": "4.3", | |
"gulp": "^3.9.0", | |
"gulp-autoprefixer": "^2.1.0", | |
"gulp-cssmin": "^0.1.7", | |
"gulp-jscs": "~1.6.0", | |
"gulp-jscs-stylish": "~1.1.0", | |
"gulp-jshint": "^1.9.4", | |
"gulp-less": "^3.0.3", | |
"gulp-lesshint": "~0.2.0", | |
"gulp-lesshint-stylish": "^1.0.0", | |
"gulp-load-plugins": "^0.8.1", | |
"gulp-prettify": "^0.3.0", | |
"gulp-rename": "^1.2.2", | |
"gulp-size": "^1.2.1", | |
"gulp-sourcemaps": "~1.5.2", | |
"gulp-swig": "^0.7.4", | |
"gulp-uglify": "^1.1.0", | |
"gulp-zip": "^2.0.3", | |
"jquery": "^2.1.4", | |
"jshint-stylish": "^1.0.1", | |
"merge-stream": "~0.1.8", | |
"run-sequence": "^1.0.2", | |
"vinyl-buffer": "^1.0.0", | |
"vinyl-source-stream": "^1.1.0" | |
}, | |
"engines": { | |
"node": ">=0.10.0" | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"private": true, | |
"version": "1.0.0", | |
"devDependencies": { | |
"bootstrap": "3.3.5", | |
"bootswatch": "3.3.5", | |
"browser-sync": "^2.8", | |
"browserify": "^11.0", | |
"domready": "^1.0.8", | |
"font-awesome": "^4.4", | |
"jquery": "^2.1", | |
"less-plugin-clean-css": "^1.5.1", | |
"minifyify": "^7.0.5", | |
"parallelshell": "^2.0", | |
"rimraf": "^2.4.2", | |
"swig": "^1.4.2", | |
"watch": "^0.16" | |
}, | |
"scripts": { | |
"clean": "rimraf dist/ && mkdir dist/", | |
"build": "npm run clean && npm run style && npm run script && npm run font && npm run template", | |
"font": "mkdir -p dist/assets/fonts/ && cp node_modules/bootstrap/dist/fonts/* dist/assets/fonts/ && cp node_modules/font-awesome/fonts/* dist/assets/fonts/ && cp src/fonts/* dist/assets/fonts/", | |
"style": "lessc --clean-css src/less/style.less dist/assets/css/style.css --source-map=dist/assets/css/style.css.map", | |
"style:watch": "watch 'npm run style' src/less/", | |
"script": "mkdir -p dist/assets/js/ && browserify src/js/app.js -d -p [minifyify --map dist/assets/js/app.map.json --output dist/assets/js/app.map.json] -o dist/assets/js/app.js", | |
"script:watch": "watchify src/js/app.js -o dist/assets/js/app.js", | |
"template": "for f in src/template/*.html; do swig render $f --output dist/; done", | |
"template:watch": "watch 'npm run template' src/template/", | |
"serve": "browser-sync start --files dist/ --server dist/", | |
"watch": "paralellshell 'npm run style:watch' 'npm run script:watch' 'npm run template:watch' 'npm run serve'" | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
A gulpos verzióban kicsit több a dependencia. Lehet, hogy érteni kell, hogy mit csinálsz, de így nincs semmi magic, és tuti, hogy nem kell fél napig debugolni, ha valami nem megy. Nincs se streamekkel való szopakodás (gulp), sem kretén konfigolás (grunt). Legalábbis ez most nekem eléggé bejön. Ennél már csak a Make lehetne csupaszabb.