Skip to content

Commit

Permalink
Add package json, gruntfile, and node_modules to gitignore
Browse files Browse the repository at this point in the history
  • Loading branch information
adamschwartz committed Sep 22, 2013
1 parent f3ac770 commit 38f36c4
Show file tree
Hide file tree
Showing 3 changed files with 43 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
.sass-cache
config.rb
config.rb
node_modules
26 changes: 26 additions & 0 deletions Gruntfile.coffee
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
module.exports = (grunt) ->
grunt.initConfig
pkg: grunt.file.readJSON("package.json")
coffee:
compile:
files:
'vex.js': 'vex.coffee'

watch:
coffee:
files: ['vex.coffee']
tasks: ["coffee", "uglify"]

uglify:
options:
banner: "/*! <%= pkg.name %> <%= pkg.version %> */\n"

dist:
files:
'vex.min.js': 'vex.js'

grunt.loadNpmTasks 'grunt-contrib-watch'
grunt.loadNpmTasks 'grunt-contrib-uglify'
grunt.loadNpmTasks 'grunt-contrib-coffee'

grunt.registerTask 'default', ['coffee', 'uglify']
15 changes: 15 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"name": "vex",
"version": "1.2.0",
"description": "Beautiful, functional, dialogs in Javascript",
"author": "Adam Schwartz <[email protected]>",
"license": "MIT",
"devDependencies": {
"grunt-contrib-coffee": "~0.7.0",
"coffee-script": "~1.6.3",
"grunt-contrib-uglify": "~0.2.4",
"grunt-cli": "~0.1.9",
"grunt": "~0.4.1",
"grunt-contrib-watch": "~0.5.3"
}
}

0 comments on commit 38f36c4

Please sign in to comment.