![]() ![]() COOKIES GRUNT LIVERELOAD INSTALLTo install these you can simply run npm install. Yeoman will generate a package.json file (similar to a Gemfile used in Ruby) which will list all project dependencies. Would you like to include angular-sanitize.js? (Y/n) Would you like to include angular-cookies.js? (Y/n) Would you like to include angular-resource.js? (Y/n) If so, would you like to use Twitter Bootstrap for Compass (as opposed to vanilla CSS)? (Y/n) mkdir angularjs-grunt-example & cd $_Īccept all the defaults for this example project: Would you like to include Twitter Bootstrap? (Y/n) sudo npm install -g generator-angularĬreate the project directory and run the Yeoman angular project generator. Yeoman is not specific to AngularJS so we need to install generator-angular. I have included Bower and Karma as they are used with the application generated by Yeoman. COOKIES GRUNT LIVERELOAD HOW TOCreate the projectĪs in my previous blog post on How to Test an AngularJS Directive you will need to install the core libraries needed for this application: sudo npm install -g yo grunt-cli bower karma There seems to be an inconsistency in certain project setups, however, if you find you’re getting the above error the solution typically seems to work. Then load the task by adding grunt.loadNpmTasks('grunt-karma') to your Gruntfile. To solve this please ensure you have installed the Grunt plugin for Karma by running: I have had some emails regarding an issue with running grunt karma displaying the following error: Please keep in mind that all these tools do so much more so read their documentation and get a full grasp of their capabilities. Bower is a package manager for the web and please be aware I don’t go so much into Bower as the other tools take up a lot of the post already, just know what it does and that it’s pretty cool. We will use Yeoman to generate the project/files for us and Grunt to automate tasks such as running the server/tests. In this post I will show you how you can use an amazing set of tools and libraries to help speed up development of AngularJS applications. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |