mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-22 07:53:39 +01:00
using grunt-hub to run default tasks of Gruntfile.js of apps
This commit is contained in:
parent
7514dadce1
commit
98bc67c1a4
12
Gruntfile.js
12
Gruntfile.js
@ -12,10 +12,12 @@
|
|||||||
* To install grunt to build minified javascript files you need to run:
|
* To install grunt to build minified javascript files you need to run:
|
||||||
*
|
*
|
||||||
* sudo npm install -g grunt-cli
|
* sudo npm install -g grunt-cli
|
||||||
|
* npm init # create package.json and node_modules directory for local installs
|
||||||
* npm install grunt --save-dev
|
* npm install grunt --save-dev
|
||||||
* npm install grunt-contrib-uglify --save-dev
|
* npm install grunt-contrib-uglify --save-dev
|
||||||
* npm install grunt-newer --save-dev
|
* npm install grunt-newer --save-dev
|
||||||
* npm install grunt-contrib-cssmin --save-dev
|
* npm install grunt-contrib-cssmin --save-dev
|
||||||
|
* npm install grunt-hub --save-dev
|
||||||
*
|
*
|
||||||
* Building happens by running in your EGroupware directory:
|
* Building happens by running in your EGroupware directory:
|
||||||
*
|
*
|
||||||
@ -380,6 +382,11 @@ module.exports = function (grunt) {
|
|||||||
]
|
]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
hub: {
|
||||||
|
all: {
|
||||||
|
src: ['*/Gruntfile.js']
|
||||||
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
// Load the plugin that provides the "uglify" task.
|
// Load the plugin that provides the "uglify" task.
|
||||||
@ -391,6 +398,9 @@ module.exports = function (grunt) {
|
|||||||
// Load the plugin that runs tasks only on modified files
|
// Load the plugin that runs tasks only on modified files
|
||||||
grunt.loadNpmTasks('grunt-newer');
|
grunt.loadNpmTasks('grunt-newer');
|
||||||
|
|
||||||
|
// run Gruntfile.js in apps / sub-directories
|
||||||
|
grunt.loadNpmTasks('grunt-hub');
|
||||||
|
|
||||||
// Default task(s).
|
// Default task(s).
|
||||||
grunt.registerTask('default', ['newer:uglify', 'newer:cssmin']);
|
grunt.registerTask('default', ['newer:uglify', 'newer:cssmin', 'hub']);
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user