Skip to content

Commit

Permalink
Start using grunt
Browse files Browse the repository at this point in the history
  • Loading branch information
PabloVallejo committed Apr 6, 2014
1 parent fb2c202 commit 2ca1777
Show file tree
Hide file tree
Showing 5 changed files with 92 additions and 12 deletions.
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@

*.diff
*.patch
.DS_Store
node_modules
bower_components
7 changes: 7 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
language: node_js
node_js:
- 0.10

install:
- npm install grunt-cli -g
- npm install
40 changes: 40 additions & 0 deletions Gruntfile.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
module.exports = function( grunt ) {

// Initial config
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),

// Compress scripts
uglify: {
options: {
preserveComments: false,
banner: "/*!\n" +
"* Gillie JavaScript Library <%= pkg.version %>" +
"\n* " +
"<%= pkg.homepage %>" +
"\n" +
"*/" +
"\n"
},
dist: {
files: {
'gillie.min.js': ['gillie.js']
}
}
},

// Run QUnit tests
qunit: {
files: [ 'tests/index.html' ]
}
});


// Load tasks
grunt.loadNpmTasks( 'grunt-contrib-qunit' );
grunt.loadNpmTasks('grunt-contrib-uglify');

// Default task
grunt.registerTask( 'default', [ 'qunit', 'uglify' ] );

}
15 changes: 4 additions & 11 deletions gillie.min.js

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

38 changes: 38 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
{
"name": "gillie",
"title": "Gillie",
"version": "0.2.0",
"description": "JavaScript MVC Microframework",
"homepage": "http://pablovallejo.github.io/gillie",
"directories": {
"example": "examples",
"test": "tests"
},
"scripts": {
"test": "grunt"
},
"dependecies": {},
"devDependencies": {
"grunt": "0.4.4",
"grunt-contrib-qunit": "0.4.0",
"grunt-contrib-uglify": "0.4.0"
},
"repository": {
"type": "git",
"url": "https://github.com/PabloVallejo/gillie.git"
},
"keywords": [
"mvc",
"framework",
"request"
],
"author": {
"name": "Pablo Vallejo",
"email": "[email protected]",
"url": "http://pablovallejo.me"
},
"license": "MIT",
"bugs": {
"url": "https://github.com/PabloVallejo/gillie/issues"
}
}

0 comments on commit 2ca1777

Please sign in to comment.