Skip to content

nicdaCosta/grunt-vanillajs-template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

VanillaJS || Grunt Template

A base template for Grunt build tool for vanilla JavaScript projects.

This is based on the defualt jQuery template which includes unit tests and various other default tasks along with a simple pattern/example to get you started. The example that is being used here is similar to those being used on other popular libraries such as Modernizr,Socialite and many more.

Getting Started

Clone the entire repo and place this in /grunt/tasks/init/ on your local pc. For further instructions or more info on the appropriate paths and working with custom tasks, please see the Grunt Template Docs. I hope to add this to NPM soon which will make installing this template much easier.

Once the above has been done, change to a new directory, and type in grunt init:vanillajs. Answer the questions. Watch grunt do it's thing. Done. Now you have fully initialized project scaffolding.

If you are new to Grunt, then see below basic guide on installing and setting up Grunt.

Installing grunt

This assumes you have node.js and npm installed already.

  1. Test that grunt is installed globally by running grunt --version at the command-line.
  2. If grunt isn't installed globally, run npm install -g grunt to install the latest version. You may need to run sudo npm install -g grunt.
  3. From the root directory of this project, run npm install to install the project's dependencies.

Installing PhantomJS

In order for the qunit task to work properly, PhantomJS must be installed and in the system PATH (if you can run "phantomjs" at the command line, this task should work).

Unfortunately, PhantomJS cannot be installed automatically via npm or grunt, so you need to install it yourself. There are a number of ways to install PhantomJS.

Note that the phantomjs executable needs to be in the system PATH for grunt to see it.

Release History

(Nothing yet)

License

Copyright (c) 2012 Nic da Costa
Licensed under the MIT, GPL licenses.

About

A base template for Grunt for vanilla JavaScript projects

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published