Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/huanghaiyang/grunt-tasks-relation
grunt plugin for tasks relation
https://github.com/huanghaiyang/grunt-tasks-relation
grunt grunt-plugins grunt-task
Last synced: 6 days ago
JSON representation
grunt plugin for tasks relation
- Host: GitHub
- URL: https://github.com/huanghaiyang/grunt-tasks-relation
- Owner: huanghaiyang
- License: mit
- Created: 2016-08-04T05:57:56.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2016-08-05T15:27:57.000Z (over 8 years ago)
- Last Synced: 2024-10-11T18:49:14.224Z (about 1 month ago)
- Topics: grunt, grunt-plugins, grunt-task
- Language: JavaScript
- Homepage:
- Size: 7.81 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## grunt-tasks-relation
grunt plugin for tasks relation.## install
```
npm install grunt-tasks-relation --save-dev
```## how to use
load plugin in Gruntfile.js
```
grunt.loadNpmTasks('grunt-tasks-relation');```
test example
```javascript
grunt.initConfig({
jshint: {
all: [
'src/**/*.js'
],
options: {
jshintrc: '.jshintrc'
}
},
clean: {
tests: ['tmp']
},
tasksRelation: {
files: []
},
watch: {
tasks: ['clean', 'jshint'],
scripts: {
files: 'src/**/*.js',
tasks: ['jshint'],
options: {
interrupt: true,
}
}
}
});
```see ```tasksRelation```
now you can run ```grunt tasksRelation``` on your command
## example result
please execute ```npm test``` in this project, you will see```
Running "tasksRelation:files" (tasksRelation) task
+-------------------------------------------------+
+these tasks defined or used in your Gruntfile.js.+
+-------------+-------------+------+-------------+
|test |jshint |clean |tasksRelation|
|test1 |tasksRelation| | |
|watch |clean |jshint| |
|tasksRelation| | | |
|jshint | | | |
|clean | | | |
+-------------+-------------+------+-------------+
```