From 504226269213e385aae6ca2487a8c0d688d4322e Mon Sep 17 00:00:00 2001 From: Sergey Zarouski Date: Sat, 31 May 2014 11:21:48 -0400 Subject: [PATCH] Add package.json and grunt --- .gitignore | 1 - Gruntfile.js | 25 +++++++++++++++++++++++++ package.json | 31 +++++++++++++++++++++++++++++++ 3 files changed, 56 insertions(+), 1 deletion(-) create mode 100644 Gruntfile.js create mode 100644 package.json diff --git a/.gitignore b/.gitignore index 5ec3ba6..552ef66 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,3 @@ .idea node_modules -Gruntfile.js autogenerated.colt \ No newline at end of file diff --git a/Gruntfile.js b/Gruntfile.js new file mode 100644 index 0000000..96943c9 --- /dev/null +++ b/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']); +}; \ No newline at end of file diff --git a/package.json b/package.json new file mode 100644 index 0000000..8ee65ac --- /dev/null +++ b/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" +}