New build and test system

This commit is contained in:
Vadim Makeev 2013-12-01 10:05:34 +04:00
parent c3df833115
commit df82beb116
4 changed files with 41 additions and 1 deletions

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
node_modules

27
Gruntfile.js Normal file
View File

@ -0,0 +1,27 @@
module.exports = function(grunt) {
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
uglify: {
options: {
mangle: true,
banner: '/**\n * Shower HTML presentation engine: github.com/shower/shower\n * @copyright 2010<%= grunt.template.today("yyyy") %> Vadim Makeev, pepelsbey.net\n * @license MIT license: github.com/shower/shower/wiki/MIT-License\n */\n'
},
build: {
src: '<%= pkg.name %>.js',
dest: '<%= pkg.name %>.min.js'
}
},
dalek: {
test: {
src: 'tests/keys.js'
}
}
});
grunt.loadNpmTasks('grunt-contrib-uglify');
grunt.loadNpmTasks('grunt-dalek');
grunt.registerTask('default', ['uglify', 'dalek']);
};

12
package.json Normal file
View File

@ -0,0 +1,12 @@
{
"name": "shower",
"description": "Shower HTML presentation engine",
"repository": "https://github.com/shower/shower/",
"version": "1.0.0",
"devDependencies": {
"dalekjs": "0.0.8",
"grunt": "~0.4.2",
"grunt-contrib-uglify": "~0.3.0",
"grunt-dalek": "~0.2.0"
}
}

2
shower.min.js vendored

File diff suppressed because one or more lines are too long