0.0.14 • Published 9 years ago

node-seed v0.0.14

Weekly downloads
-
License
MIT
Repository
github
Last release
9 years ago

build codeclimate test coverage npm version npm dependencies npm dev dependencies

node-seed

This project is a skeleton for a typical NodeJS application.

The idea is to group useful tools and good practices for every application is being developed in node.

How to use

  1. Clone this repository: git clone https://github.com/hwndept/node-seed
  2. Remove .git directory
  3. Update package.json
  • set "name"
  • set "version"(0.0.0 by default)
  • set "description"
  • set "author"
  • set "license"
  • set right "keywords" or remove this section
  • set your "repository" or remove this section
  • set "buggs" or remove this section
  • set "homepage" or remove this section
  1. Update README.md
  2. Update .travis.yml to use Travis as CI or remove it. repo_token used in config is the codeclimate's token. Every build on travis will report code coverage value to codeclimate.

What are included

Linting

gulp jshint

Code that will be validated:

  • all *.js files in src folder
  • all *.js files in test folder
  • gulpfile.js

Checking code style

gulp jscs

Code that will be validated:

  • all *.js files in src folder
  • all *.js files in test folder
  • gulpfile.js

Running tests and generating code coverage report

gulp test

Test cases stored in files test/**/*.test.js will be run only

Coverage reports will be generated and stored in folder build/coverage

Generating jsdoc

gulp jsdoc

Documentation will be generated for *.js files from src folder and stored in folder build/jsdoc

Compiling code - ES6 Support

Since nodejs doesn't fully support all ES6 features source code should be compiled.

gulp compile

Source code in src folder will be compiled and stored in folder build/source

Running all tasks

gulp
# or
gulp build

Pre-commit hook

This hook is invoked by git commit, and can be bypassed with --no-verify option.

The task gulp build will be run automatically.

Directory Layout

  build/                  --> build results
    coverage              --> code coverage reports
    jsdoc                 --> documentation generated for source code
  src/                    --> source files for the application
    hello.js              --> added just for an example
  test/                   --> test files for the application
    .jshintrc             --> configuration file for jshint; these rules will 
                              be applied for files in this folder only;
                              created because test cases contain global functions
                              which exports by mocha(describe, it,beforeEach, etc)
    hello.test.js         --> added just for an example
  .jscsrc                 --> configuration file for jscs
  .jshintrc               --> configuration file for jshint
  .travis.yml             --> configuration file for travis-ci
  gulpfile.js             --> list of all gulp tasks
0.0.14

9 years ago

0.0.13

9 years ago

0.0.12

9 years ago

0.0.11

9 years ago

0.0.10

9 years ago

0.0.9

9 years ago

0.0.8

9 years ago

0.0.7

9 years ago

0.0.6

9 years ago

0.0.5

9 years ago

0.0.4

9 years ago

0.0.3

9 years ago

0.0.2

9 years ago

0.0.1

9 years ago