Skip to content
This repository has been archived by the owner on Jun 6, 2024. It is now read-only.

NuCivic/javascript-base

 
 

Repository files navigation

JavaScript base template

Included libraries

This template includes following libraries:

  • lodash
  • javascript
  • moment
  • grunt
  • bootstrap
  • mustache
  • json2 for old browsers

Requirements

  • NodeJS
  • NPM
  • Bower
  • Make

Getting started

  • Install Grunt globally
npm install -g grunt-cli
  • Install node packages
npm install
  • Install bower packages
bower install
  • Run server
grunt
  • Make a build
grunt build
  • Lint code
grunt lint
  • Run tests
./node_modules/karma/bin/karma start --single-run --browsers PhantomJS

You could also install karma globally:

npm install -g karma-cli

An then use karma like this:

karma start --single-run --browsers PhantomJS

Sublime Text Plugins

  • Make sure you have already installed Sublime Text Package Control.
  • Press ⌘ + ⇧ + P.
  • Type jshint gutter and press enter.
  • Once installed, restart sublime and open the file you want to lint.
  • Press ⌘ + ⇧ + j to lint the file.
  • Optionally you may be interested in lint your code while editing, to achive that go to Tools > JSHint > Set Plugin Options and set lint_on_edit to true.

Create github page

  • Gihub page is built grabbing contents from examples directory and creating gh-pages branch with that.
  • To achive that just run:
make

About

Base template for javascript projects.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 62.4%
  • HTML 28.4%
  • Makefile 9.2%