Last active
July 2, 2016 07:36
-
-
Save flaki/627b368fc34ad00c02cc to your computer and use it in GitHub Desktop.
Angular project bootstrap via NPM
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
$ npm init | |
# Enter, enter... | |
$ npm install --save angular | |
$ npm install --save-dev angular-mocks | |
$ npm install -g karma-cli | |
$ npm install --save-dev karma mocha karma-mocha chai karma-chai | |
$ npm install --save-dev phantomjs-prebuilt karma-phantomjs-launcher | |
$ karma init | |
# Enter, enter... | |
# ./src/**/*.js | |
# Edit `karma.conf.js`: | |
# * Add 'chai' in `frameworks` list | |
# * Add `'node_modules/angular/angular.js'` in `files` | |
# * Add `'node_modules/angular-mocks/angular-mocks.js'` in `files` | |
# ... | |
$ npm install karma-mocha-reporter --save-dev | |
# Edit `karma.conf.js`: | |
# * Set `reporters` to `mocha` | |
$ npm install localforage | |
# <script src="node_modules/localforage/dist/localforage.js"></script> | |
# ... | |
$ npm install bootstrap | |
# <link rel="stylesheet" href="node_modules/bootstrap/dist/css/bootstrap.css" /> | |
# <script src="node_modules/bootstrap/dist/js/bootstrap.js"></script> | |
# ... | |
# <script src="//code.jquery.com/jquery-2.2.0.min.js"></script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment