This is a fork/based on Sean's Angular Starter App with component and service generators using gulp for easy component development. Uses Karma-Mocha-Chai as test suit and Babel Loader and Webpack for ES6
cdto path of the repo.
npm install gulp -g
npm run dev
npm run test
npm run build
This app comes with some helpful and generators for creating a new component/service. You simply have to hook them up to your components.js and services.js file.
gulp component --name <NAME_OF_YOUR_COMPONENT>
gulp common_component --name <NAME_OF_YOUR_COMPONENT>
gulp service --name <NAME_OF_YOUR_SERVICE>
index.js is the main entry file which serves as the total include point for all of your components, services, assets, and styles.
Notice that throughout the project, that the angular setter/getter is called once, and is assigned to a constant which is passed through each of the dependancy trees so that it is exposed to the rest of the imported/exported components.
Why? Because this makes your components more modular, allowing whatever
angular.module object to be assigned to the exported component/component set.
// index.js// Angular & Router ES6 Imports;;;;;;// Single Style Entry Point;if ENVIRONMENT === 'test'console;;const app = angular;// Components Entrypoint;// Common Components Entrypoint;// App Services Entrypoint;// Router Configuration// Components must be declared first since// Routes reference controllers that will be bound to route templates.// appConfiguration(app);