Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/nazar-pc/build-gbu
Opinionated set of Gulp tasks that build stuff with Browserify and minify them with Uglify
https://github.com/nazar-pc/build-gbu
Last synced: about 1 month ago
JSON representation
Opinionated set of Gulp tasks that build stuff with Browserify and minify them with Uglify
- Host: GitHub
- URL: https://github.com/nazar-pc/build-gbu
- Owner: nazar-pc
- Created: 2018-01-14T12:05:08.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2018-01-14T12:56:57.000Z (almost 7 years ago)
- Last Synced: 2024-10-14T14:39:47.917Z (about 1 month ago)
- Language: LiveScript
- Size: 2.93 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# Build: Gulp+Browserify+Uglify
Opinionated set of Gulp tasks that:
* build stuff with browserify
* put the result in `dist` directory
* compress the result with Uglify and also place it in `dist` directory## How to install
```
npm install --save-dev build-gbu
```## How to use
```javascript
// gulpfile.js
require('build-gbu')(
'index.js', // Source file Browserify will work with
'project_name', // Corresponds to Browserify option with the same name
'project-name.browser', // Base name for output file in `dist` directory
'ignore-dependency', // [optional] Dependencies to ignore by Browserify (its `ignore()` method)
require('gulp') // [optional] Your gulp instance in case you want to integrate this with your own tasks
)
```This will provide following gulp tasks:
* build: clean, browserify, minify
* browserify: clean
* clean
* minify: browserify## Contribution
Feel free to create issues and send pull requests (for big changes create an issue first and link it from the PR), they are highly appreciated!## License
Free Public License 1.0.0 / Zero Clause BSD Licensehttps://opensource.org/licenses/FPL-1.0.0
https://tldrlegal.com/license/bsd-0-clause-license