use npm scripts + more control on remote env e.g. Jenkins + all packages can be local { "scripts": { "postinstall": "bower install", "start": "grunt", "release": "grunt build release" } } > npm install > npm start > npm run release
do we need bower? + flat directory tree + simple dependency resolution + no big problems actually - the same work as npm - additional tool in stack - no clear future
npm goals for 2016 npm for front-end developers 1. Treat git dependencies like registry dependencies. 2. Front-end asset installer. 3. Support the new ECMAScript module system. https://github.com/npm/npm/wiki/Roadmap
instead of... dashboard: { files: { 'dist/js/dashboard.min.js': [ 'src/modules/dashboard/module.js', '!src/modules/dashboard/route.js' 'src/modules/dashboard/**/*.js' ] } // ... repeat for 40 other modules // ... add new tasks at the end of file
envoriment variables var properties = { VERSION: version, API: '/* @echo API */', TYPE: '/* @echo TYPE */', REVISION: '/* @echo REVISION */', DATE: '/* @echo DATE */' }; one file! can be Injected anywhere can be unit tested list of all possibilities in one place
separated front-end ... you're gonna have a bad time + less team communication required + easier setup for front-end devs - synchronization problem - security