Skip to content

Commit

Permalink
improved build process
Browse files Browse the repository at this point in the history
  • Loading branch information
viskin committed Apr 17, 2015
1 parent 0f73583 commit 3bd3615
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 10 deletions.
17 changes: 13 additions & 4 deletions Gruntfile.js
Original file line number Diff line number Diff line change
@@ -1,16 +1,25 @@
module.exports = function(grunt) {

grunt.loadNpmTasks('grunt-contrib-uglify');
grunt.loadNpmTasks('grunt-contrib-jshint');

grunt.initConfig({

pkg: grunt.file.readJSON('package.json'),

uglify: {
target1: {
options: {
sourceMap: true
},
options: {
sourceMap: true,
banner: '/* <%= grunt.task.current.target %> v<%= pkg.version %> <%= grunt.template.today("dd-mm-yyyy") %> (C) 2015 Terikon Software */\n'
},

webSqlTracer: {
src: 'webSqlTracer.js',
dest: 'dist/webSqlTracer.min.js'
}
},
jshint: {
all: ['Gruntfile.js', 'webSqlTracer.js']
}
});

Expand Down
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "websqltracer",
"main": "webSqlTracer.js",
"version": "1.0.1",
"version": "1.0.2",
"description": "Console tracer for Web SQL or SQLite",

"homepage": "https://github.com/terikon/webSqlTracer",
Expand Down
2 changes: 2 additions & 0 deletions dist/webSqlTracer.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 dist/webSqlTracer.min.js.map

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

9 changes: 5 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
{
"name": "websqltracer",
"title": "webSqlTracer",
"version": "1.0.1",
"version": "1.0.2",
"description": "Console tracer for Web SQL or SQLite",
"main": "webSqlTracer.js",
"scripts": {
"//": "use '|| true' to prevent warning",
"build": "npm install && grunt",
"test": "echo \"Error: no test specified\" && exit 1",
"jshint": "jshint webSqlTracer.js"
"jshint": "grunt jshint"
},
"repository": {
"type": "git",
Expand Down Expand Up @@ -36,8 +37,8 @@
"underscore": "*"
},
"devDependencies": {
"jshint": "^2.6.0",
"grunt": "^0.4.5",
"grunt-contrib-uglify": "^0.7.0"
"grunt-contrib-uglify": "^0.7.0",
"grunt-contrib-jshint": "^0.11.0"
}
}

0 comments on commit 3bd3615

Please sign in to comment.