Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kosatyi/gulp2go
Create javascript, css, svg bundles using browserify sass and svg-sprite helper functions with gulp streaming
https://github.com/kosatyi/gulp2go
browserify gulp sass svg-sprite typescript
Last synced: about 2 months ago
JSON representation
Create javascript, css, svg bundles using browserify sass and svg-sprite helper functions with gulp streaming
- Host: GitHub
- URL: https://github.com/kosatyi/gulp2go
- Owner: kosatyi
- License: mit
- Created: 2021-08-05T10:29:31.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2023-04-15T23:25:25.000Z (over 1 year ago)
- Last Synced: 2024-08-10T23:18:59.791Z (4 months ago)
- Topics: browserify, gulp, sass, svg-sprite, typescript
- Language: JavaScript
- Homepage: https://kosatyi.com/gulp2go/
- Size: 2.04 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Gulp2Go
[![](https://img.shields.io/github/issues/kosatyi/gulp2go)](https://github.com/kosatyi/gulp2go/issues)
[![](https://img.shields.io/github/forks/kosatyi/gulp2go)](https://github.com/kosatyi/gulp2go)
[![](https://img.shields.io/github/stars/kosatyi/gulp2go)](https://github.com/kosatyi/gulp2go)[![](https://img.shields.io/npm/v/gulp2go)](https://www.npmjs.com/package/gulp2go)
[![](https://img.shields.io/npm/dt/gulp2go)](https://www.npmjs.com/package/gulp2go)
[![](https://img.shields.io/github/license/kosatyi/gulp2go)](https://github.com/kosatyi/gulp2go/blob/master/LICENSE)
[![](https://img.shields.io/badge/official-website-green)](https://kosatyi.com/gulp2go/)> Gulp bundlers for *.js *.scss and *.svg files.
## Installation
### Node
If you’re using [NPM](https://npmjs.com/) in your project, you can add `gulp2go` dependency to `package.json`
with following command:```cmd
npm i --save-dev gulp gulp2go
```or add dependency manually:
```json
{
"dependency": {
"gulp2go":"^1.0"
}
}
```## Quick start
```javascript
const {task} = require('gulp');
const {jsBundler,scssBundler,svgBundler} = require('gulp2go');
/** bundle with browserify **/
task('javascript',()=>
jsBundler('path/to/build.js','bundlefile.js','path/to/js/dist',{
/** optional **/
babelify:{
extensions:['.tsx','.ts']
},
/** optional **/
schemify:{
'jquery':'$'
},
/** optional **/
tsify:{
target:'es6'
}
})
);
/** bundle with sass **/
task('styles',()=>
scssBundler('path/to/*.scss','path/to/scss/dist')
);
/** make svg icon sprite **/
task('sprites',()=>
scssBundler('path/to/*.svg','sprite.svg','path/to/svg/dist')
);
```## License
[MIT](https://github.com/kosatyi/gulp2go/blob/HEAD/LICENSE)
## Author
Stepan Kosatyi, [email protected]
[![Stepan Kosatyi](https://img.shields.io/badge/stepan-kosatyi-purple.svg)](https://kosatyi.com/)