the-front / angularjs-ee-boilerplate

angularjs enterprise edition boilerplate
https://the-front.github.io/angularjs-ee-boilerplate/
MIT License
45 stars 16 forks source link

Use browserify instead require.js #22

Open erkobridee opened 9 years ago

erkobridee commented 9 years ago

Study browserify use instead require.js

darlanalves commented 9 years ago

Don't. I love browserify, but I don't think is the best option out there. I've read recently a book from Addy Osmani, which strongly encourages the use of AMD instead of CommonJS pattern. I've gone a bit further, and started using ES6 module syntax, which then is transpiled to define() syntax or require() depending upon a build config. I think this is the best approach, as it is easy to learn, easy to use and will be ready for the future when browserify or AMD is no longer needed.

erkobridee commented 9 years ago

maybe now we are approaching the time to move on...

Gulp + Browserify + Babelify + ES6 syntax

about gulp, I redefining project tools from Grunt to Gulp on gulp branch