Added grunt
This commit is contained in:
parent
5027c8c4b4
commit
a5635c53b6
23
Gruntfile.js
Normal file
23
Gruntfile.js
Normal file
@ -0,0 +1,23 @@
|
||||
module.exports = function(grunt) {
|
||||
// Project configuration.
|
||||
grunt.initConfig({
|
||||
pkg: grunt.file.readJSON("package.json"),
|
||||
uglify: {
|
||||
js: {
|
||||
files: {
|
||||
"client/grunt/test.min.js": [
|
||||
"client/grunt/test-1.js",
|
||||
"client/grunt/test-2.js"
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
// Load and run uglify.
|
||||
grunt.loadNpmTasks("grunt-contrib-uglify");
|
||||
grunt.registerTask(
|
||||
"default",
|
||||
["uglify"]
|
||||
);
|
||||
};
|
8
client/grunt/test-1.js
Normal file
8
client/grunt/test-1.js
Normal file
@ -0,0 +1,8 @@
|
||||
a = 1;
|
||||
b = 2;
|
||||
|
||||
var list = [
|
||||
1,
|
||||
2,
|
||||
3,
|
||||
];
|
3
client/grunt/test-2.js
Normal file
3
client/grunt/test-2.js
Normal file
@ -0,0 +1,3 @@
|
||||
function foo() {
|
||||
return "bar";
|
||||
}
|
1
client/grunt/test.min.js
vendored
Normal file
1
client/grunt/test.min.js
vendored
Normal file
@ -0,0 +1 @@
|
||||
function foo(){return"bar"}a=1,b=2;var list=[1,2,3];
|
18
package.json
18
package.json
@ -7,13 +7,6 @@
|
||||
"name": "Mattias Erming",
|
||||
"email": "mattias@mattiaserming.com"
|
||||
},
|
||||
"dependencies": {
|
||||
"lodash": "~2.4.1",
|
||||
"slate-irc": "https://github.com/erming/slate-irc/tarball/master",
|
||||
"moment": "~2.5.1",
|
||||
"connect": "~2.14.3",
|
||||
"socket.io": "~0.9.16"
|
||||
},
|
||||
"keywords": [
|
||||
"browser",
|
||||
"chat",
|
||||
@ -29,5 +22,16 @@
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/erming/shout.git"
|
||||
},
|
||||
"dependencies": {
|
||||
"lodash": "~2.4.1",
|
||||
"slate-irc": "https://github.com/erming/slate-irc/tarball/master",
|
||||
"moment": "~2.5.1",
|
||||
"connect": "~2.14.3",
|
||||
"socket.io": "~0.9.16"
|
||||
},
|
||||
"devDependencies": {
|
||||
"grunt": "^0.4.5",
|
||||
"grunt-contrib-uglify": "^0.5.0"
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user