0.0.1 • Published 11 years ago
gulp-browserify-library-seed v0.0.1
Gulp & Browserify Library Seed
This is a Kickstarter or a Seed project to use to build your own Library.
Technologies used
- gulp: Used for building
- browserify: Used for importing modules into the lib
- karma: Used for running tests on the lib
- mocha: Used as the Testing framework
- Chai: Used as the expect/assertion library
Gulp tasks
- build: Will output 4 files into the
distfolder.- Browserified: This outputs the library to be used as part of a Browserify project. This will include all js files in
src/. It will output both a minified and not minified files. - Standalone: This will output the library to be used as a global object. By default, it'll export the library with the same name as in the
package.json. It's similar to how$is always there when you includejQuery
- Browserified: This outputs the library to be used as part of a Browserify project. This will include all js files in
- test: It will run all the tests. A test is a JS file inside the
testfolder. - test-debug: It will run all the tests but in debug mode. This means that the tests will be re run each time you save any file inside the
srcortestfolder.
Using it
Just git clone this repository and change the project name from the package.json to your library and that's it :).