Skip to content

shell script to create files and directories common to any lib I write in js

Notifications You must be signed in to change notification settings

EvandroLG/setup-lib-js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

shell script to create files and directories common to any lib I write in js

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published