Skip to content

Commit

Permalink
Added grunt
Browse files Browse the repository at this point in the history
  • Loading branch information
xosofox committed May 13, 2014
1 parent 786293f commit 974f024
Show file tree
Hide file tree
Showing 810 changed files with 208,450 additions and 1 deletion.
35 changes: 35 additions & 0 deletions Gruntfile.js
@@ -0,0 +1,35 @@
module.exports = function (grunt) {
// Project configuration.
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
uglify: {
my_target: {
files: {
"js/ipas.min.js": ['js/views/*.js', 'js/models/*.js'],
}
}
},
replace: {
version: {
src: ['index.html'],
dest: 'index.html',
replacements: [
{
from: /\?v=\d+\.\d+\.\d+/g,
to: "?v=<%= pkg.version %>"
},
{
from: /V \d+\.\d+\.\d+ - Resistance/g,
to: "V <%= pkg.version %> - Resistance"
}
]
}
}
});

grunt.loadNpmTasks('grunt-contrib-uglify');
grunt.loadNpmTasks('grunt-text-replace');

// Default task(s).
grunt.registerTask('default', ['uglify', 'replace']);
};
2 changes: 1 addition & 1 deletion js/ipas.min.js

Large diffs are not rendered by default.

22 changes: 22 additions & 0 deletions node_modules/grunt-contrib-uglify/LICENSE-MIT

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 974f024

Please sign in to comment.