Skip to content

Latest commit

 

History

History
47 lines (43 loc) · 1.23 KB

README.md

File metadata and controls

47 lines (43 loc) · 1.23 KB

setup-js

setup-lib is a command line tool to create a new project in JavaScript, with all essential: lib to test, jshint, minify tool, directory example.

Instalation

git clone https://github.com/EvandroLG/setup-lib-js.git
cd setup-lib-js/
make

How to use

After installed, to create a new project JS run the following command:

setup-js -f my-project-js -n MyProjectJS -d MyProjects/js/ -j

If all goes well, the project will be created in the following structure:

  • my-project-js
    • Makefile
    • .gitignore
    • src/
      • my-project-js.js
      • jquery.js
    • test/
      • jasmine/ * css/ * jasmine.css * js/ * jasmine.js * jasmine-html.js
      • spec/ * spec.my-project-js
      • runner.my-project-js
    • example/
      • example.html

Options

Supported options:

  • -f or --file_name
  • -n or --name_project
  • -d or --directory
  • -j or --jquery

Configuration

There are options that can be standard to your projecs JavaScript, like use a jQuery, the directory where the project should be created. In such cases, edit the file setup-js.conf, which is within usr/local/lib/setup-js