Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/whxaxes/gulp-tosync
Be used to run the tasks of gulp.task method in sync way
https://github.com/whxaxes/gulp-tosync
Last synced: 28 days ago
JSON representation
Be used to run the tasks of gulp.task method in sync way
- Host: GitHub
- URL: https://github.com/whxaxes/gulp-tosync
- Owner: whxaxes
- License: mit
- Created: 2015-08-17T13:16:31.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2015-08-18T06:03:40.000Z (about 9 years ago)
- Last Synced: 2024-10-05T02:07:55.957Z (about 1 month ago)
- Language: JavaScript
- Size: 129 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# gulp-tosync
> A simple gulp plugin which is using to run the tasks of gulp.task method in sync way
## Install
```
$ npm install gulp-tosync --save
```## Usage
Import the plugin after installed:
```
var gulptosync = require("gulp-tosync")
```### demo_1:
```
gulp.task("default", gulptosync(["build-css", "build-js", "build-img"], "build-html"));
```
#### results:
```
E:\GitHub\myblog>gulp
[17:44:55] Using gulpfile E:\GitHub\myblog\gulpfile.js
[17:44:55] Starting 'default'...
[17:44:55] Starting 'build-css'...
[17:44:55] Starting 'build-img'...
[17:44:55] Starting 'build-js'...
[17:44:55] Finished 'build-img' after 23 ms
[17:44:56] Finished 'build-css' after 615 ms
[17:44:56] Finished 'build-js' after 703 ms
[17:44:56] Starting 'build-html'...
[17:44:56] Finished 'build-html' after 48 ms
[17:44:56] Finished 'default' after 850 ms
```### demo_2:
```
gulp.task("test", gulptosync(["build-js", "build-img"]));
gulp.task("default", gulptosync(["build-css", "test"], "build-html"));
```#### results:
```
E:\GitHub\myblog>gulp
[17:47:45] Using gulpfile E:\GitHub\myblog\gulpfile.js
[17:47:45] Starting 'default'...
[17:47:45] Starting 'build-css'...
[17:47:45] Starting 'build-img'...
[17:47:45] Starting 'test'...
[17:47:45] Starting 'build-js'...
[17:47:45] Finished 'build-img' after 24 ms
[17:47:45] Finished 'build-css' after 627 ms
[17:47:45] Finished 'build-js' after 713 ms
[17:47:45] Finished 'test' after 727 ms
[17:47:45] Starting 'build-html'...
[17:47:45] Finished 'build-html' after 46 ms
[17:47:45] Finished 'default' after 839 ms
```## Lisence
MIT