This seed allows you to easily start an AngularJS v1.6.x web app project.
It's built off the Angular 1 sub-generator of the Yeoman Fountain generator for webapps.
It uses Gulp 4 as a task manager.
It compiles, minifies, concatenates, and injects all the needed files.
Below is the list of layers and their respective components you'll find inside SeedularJS:
To get started you can simply clone the seedularjs
repository and install its dependencies:
SeedularJS is to be used with Git, Node >= 7.10.0, NPM >= 4.6.1, and Gulp CLI >= 1.3.0. You can check your version numbers with the following command:
git --version && node --version && npm --version && gulp --version
Clone the seedularjs
repository using git:
git clone https://github.com/AmmoCan/seedularjs.git
cd seedularjs
If you just want to start a new project without the seedularjs
commit history then you can do:
git clone --depth=1 https://github.com/AmmoCan/seedularjs.git <your-project-name>
The depth=1
tells git to only pull down one commit worth of historical data.
SeedularJS has two kinds of dependencies: Development Tools and AngularJS framework code. The tools help with the management and testing of the application.
- The tools are installed via
npm
, the Node Package Manager. - The AngularJS and other framework code are installed via
bower
, a client-side code package manager.
Before you install anything make sure you are in the project's directory:
cd <your-project-name>
npm install
bower install
After both installs, there should now be two new folders in the project directory.
node_modules
- contains the npm packages for the tools neededbower_components
- contains the AngularJS and other framework files needed
SeedularJS is preconfigured with a simple development web server via Browser Sync. The simplest way to start this server is:
npm run build
to build an optimized version of your application in /distnpm run serve
to launch a Browser Sync server on your source filesnpm run serve:dist
to launch a server on your optimized applicationnpm run test
to launch your unit tests with Karmanpm run test:auto
to launch your unit tests with Karma in watch mode
gulp
orgulp build
gulp serve
gulp serve:dist
gulp test
gulp test:auto
If you don't have gulp-cli
installed in global, you should have this error:
/usr/local/lib/node_modules/gulp/bin/gulp.js:121 gulpInst.start.apply(gulpInst, toRun); TypeError: Cannot read property 'apply' of undefined