Skip to content

Commit

Permalink
grunt implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
tarunbatta committed Nov 26, 2014
1 parent 4d6b7e2 commit 06e9f6b
Show file tree
Hide file tree
Showing 7 changed files with 56 additions and 64 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
## Custom
#################
bower_components/
node_modules/

#################
## Eclipse
Expand Down
33 changes: 2 additions & 31 deletions dist/jquery.battatech.excelexport.min.js

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

39 changes: 39 additions & 0 deletions src/Gruntfile.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
module.exports = function (grunt) {

// Project configuration.
grunt.initConfig({
pkg: grunt.file.readJSON('package.json')
, uglify: {
options: {
banner: '/*! <%= pkg.name %> <%= grunt.template.today("yyyy-mm-dd") %> */\n'
},
build: {
src: 'Scripts/jquery.battatech.excelexport.js',
dest: 'Scripts/jquery.battatech.excelexport.min.js'
},
dist: {
src: 'Scripts/jquery.battatech.excelexport.js',
dest: '../dist/jquery.battatech.excelexport.min.js'
}
}
, copy: {
main: {
src: 'Scripts/jquery.battatech.excelexport.js',
dest: '../dist/jquery.battatech.excelexport.js'
}
}
, watch: {
files: 'Scripts/jquery.battatech.excelexport.js'
, tasks: ['uglify']
}
});

// Load the plugin that provides the "uglify" task.
grunt.loadNpmTasks('grunt-contrib-uglify');

// Load the plugin that provides the "copy" task.
grunt.loadNpmTasks('grunt-contrib-copy');

// Default task(s).
grunt.registerTask('default', ['uglify', 'copy']);
};
33 changes: 2 additions & 31 deletions src/Scripts/jquery.battatech.excelexport.min.js

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

2 changes: 1 addition & 1 deletion src/battatech_excelexport.jquery.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
, "excel"
, "export"
],
"version": "2.1.1",
"version": "2.1.2",
"author": {
"name": "Tarun Batta",
"url": "http://battatech.com/"
Expand Down
2 changes: 1 addition & 1 deletion src/bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "battatech_excelexport",
"version": "2.1.1",
"version": "2.1.2",
"homepage": "http://battatech.com/blog/how-to-export-to-excel-sheet-on-server-side.aspx",
"authors": [
"Tarun Batta <info@battatech.com>"
Expand Down
10 changes: 10 additions & 0 deletions src/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"name": "battatech_excelexport",
"version": "2.1.2",
"devDependencies":
{
"grunt": "~0.4.5",
"grunt-contrib-uglify": "~0.6.0",
"grunt-contrib-copy": "~0.7.0"
}
}

0 comments on commit 06e9f6b

Please sign in to comment.