New build and test system
This commit is contained in:
parent
c3df833115
commit
df82beb116
|
@ -0,0 +1 @@
|
|||
node_modules
|
|
@ -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']);
|
||||
|
||||
};
|
|
@ -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"
|
||||
}
|
||||
}
|
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue