Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
shell script to create files and directories common to any lib I write in js
Shell JavaScript
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
files
Makefile
README.md
setup-js.conf
setup-js.sh

README.md

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

Something went wrong with that request. Please try again.