Added grunt

This commit is contained in:
Mattias Erming 2014-06-17 15:38:08 +02:00
parent 5027c8c4b4
commit a5635c53b6
5 changed files with 46 additions and 7 deletions

23
Gruntfile.js Normal file
View 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
View File

@ -0,0 +1,8 @@
a = 1;
b = 2;
var list = [
1,
2,
3,
];

3
client/grunt/test-2.js Normal file
View File

@ -0,0 +1,3 @@
function foo() {
return "bar";
}

1
client/grunt/test.min.js vendored Normal file
View File

@ -0,0 +1 @@
function foo(){return"bar"}a=1,b=2;var list=[1,2,3];

View File

@ -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"
}
}