Compare commits

...

2 Commits

Author SHA1 Message Date
jason.zhu 96dec97cd4 Grunt JS Tutorial #3 - Creating a Gruntfile.js
1. Add config
2. Load plugins
3. Register tasks

Additional: uninstalled grunt-cli from local node-module, and installed it locally to use it
2021-03-22 23:58:45 +00:00
jason.zhu dc1211b968 GruntJS Tutorial #2 - Installing Grunt.js 2021-03-22 23:47:59 +00:00
3 changed files with 1837 additions and 0 deletions

23
Gruntfile.js 100644
View File

@ -0,0 +1,23 @@
module.exports = function(grunt){
// Configuration
grunt.initConfig({
// pass in options to plugin, references to file, etc.
});
// Load plugins
// grunt.loadNpmTasks('')
// Register tasks
grunt.registerTask('run', function(){
// task is a function with name is 'run'
console.log('I am running');
});
grunt.registerTask('sleep', function(){
console.log('I am sleep');
});
grunt.registerTask('all', ['sleep', 'run'])
}

1795
package-lock.json generated 100644

File diff suppressed because it is too large Load Diff

19
package.json 100644
View File

@ -0,0 +1,19 @@
{
"name": "grunt-playlist",
"version": "1.0.0",
"description": "This pratice repo is built following Youtube Tutorial series [Grunt JS Tutorial](https://www.youtube.com/watch?v=KAD-l__vek4&list=PL4cUxeGkcC9j85fkVyCzCMJDfteLtrl_y)",
"main": "app.js",
"dependencies": {},
"devDependencies": {
"grunt": "^1.3.0"
},
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"repository": {
"type": "git",
"url": "ssh://git@lj918plus.dsmynas.com:2223/Jason/grunt-playlist.git"
},
"author": "",
"license": "ISC"
}