Skip to content

Commit

Permalink
Add package.json and grunt
Browse files Browse the repository at this point in the history
  • Loading branch information
Sergey Zarouski committed May 31, 2014
1 parent 63f5c51 commit 5042262
Show file tree
Hide file tree
Showing 3 changed files with 56 additions and 1 deletion.
1 change: 0 additions & 1 deletion .gitignore
@@ -1,4 +1,3 @@
.idea
node_modules
Gruntfile.js
autogenerated.colt
25 changes: 25 additions & 0 deletions Gruntfile.js
@@ -0,0 +1,25 @@
module.exports = function (grunt) {
grunt.loadNpmTasks('grunt-explainjs');
grunt.loadNpmTasks('grunt-contrib-uglify');
grunt.initConfig({
explainjs: {
dist: {
options: {
showFilename: true // default is false
},
files: [{
src: ['./lodash.dom-traverse.js'],
dest: './explain.html'
}]
}
},
uglify: {
min: {
files: {
'lodash.dom-traverse.min.js': 'lodash.dom-traverse.js'
}
}
}
});
grunt.registerTask('default', ['explainjs', 'uglify']);
};
31 changes: 31 additions & 0 deletions package.json
@@ -0,0 +1,31 @@
{
"name": "lodash.dom-traverse",
"version": "1.0.3",
"description": "Lodash dom traversal",
"main": "lodash.dom-traverse.js",
"dependencies": {
"grunt": "^0.4.5",
"grunt-contrib-uglify": "^0.4.0",
"grunt-explainjs": "^0.0.2"
},
"devDependencies": {
"grunt": "^0.4.5",
"grunt-cli": "^0.1.13",
"grunt-contrib-uglify": "^0.4.0",
"grunt-explainjs": "0.0.2"
},
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"repository": {
"type": "git",
"url": "git://github.com//szarouski/lodash.dom-traverse.git"
},
"keywords": [
"lodash",
"dom",
"traverse"
],
"author": "Sergey Zarouski",
"license": "http://unlicense.org"
}

0 comments on commit 5042262

Please sign in to comment.