1 | npm install -g grunt-cli |
1 | npm install grunt --save-dev |
1 2 3 4 5 6 7 8 9 | module.exports = function(grunt) { grunt.initConfig({ pkg: grunt.file.readJSON('package.json') }); grunt.registerTask('default'); }; |
1 2 3 4 5 6 7 8 9 | module.exports = function (grunt) { 'use strict'; grunt.registerTask('example', 'Example task', function () { }); }; |
1 2 3 4 5 6 7 8 9 10 11 12 | npm install grunt --save-dev module.exports = function(grunt) { grunt.initConfig({ pkg: grunt.file.readJSON('package.json') }); grunt.task.loadTasks('build_tasks'); grunt.registerTask('default', ['example']); }; |
1 2 3 | Running "example" task Done, without errors. |
欢迎光临 电子技术论坛_中国专业的电子工程师学习交流社区-中电网技术论坛 (http://bbs.eccn.com/) | Powered by Discuz! 7.0.0 |