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.
git clone https://github.com/EvandroLG/setup-lib-js.git
cd setup-lib-js/
make
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
Supported options:
-f
or--file_name
-n
or--name_project
-d
or--directory
-j
or--jquery
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