Skip to content

Commit

Permalink
Merge pull request #22 from hijonathan/gh-pages
Browse files Browse the repository at this point in the history
Move distribution files to separate folder for cleaner installation.
  • Loading branch information
ajb committed Oct 30, 2013
2 parents 0424a39 + d7a7547 commit e238ed6
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 4 deletions.
10 changes: 8 additions & 2 deletions Gruntfile.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,12 @@ module.exports = (grunt) ->
grunt.loadNpmTasks('grunt-contrib-stylus')
grunt.loadNpmTasks('grunt-contrib-uglify')
grunt.loadNpmTasks('grunt-contrib-watch')
grunt.loadNpmTasks('grunt-release')

grunt.initConfig

pkg: '<json:package.json>'
distFolder: 'dist'

jst:
all:
Expand All @@ -40,7 +42,7 @@ module.exports = (grunt) ->
cssmin:
dist:
files:
'formbuilder-min.css': ['formbuilder.css']
'<%= distFolder %>/formbuilder-min.css': ['formbuilder.css']

stylus:
all:
Expand All @@ -50,12 +52,16 @@ module.exports = (grunt) ->
uglify:
dist:
files:
'formbuilder-min.js': 'formbuilder.js'
'<%= distFolder %>/formbuilder-min.js': 'formbuilder.js'

watch:
all:
files: ['./coffee/**/*.coffee', 'templates/**/*.html', './styl/**/*.styl']
tasks: ALL_TASKS

# To test, run `grunt --no-write -v release`
release:
npm: false

grunt.registerTask 'default', ALL_TASKS
grunt.registerTask 'dist', ['cssmin:dist', 'uglify:dist']
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"adamjacobbecker <[email protected]>"
],
"description": "Graphical form builder for the web.",
"main": "index.js",
"main": "dist",
"license": "MIT",
"ignore": [
"**/.*",
Expand Down
File renamed without changes.
File renamed without changes.
12 changes: 11 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,11 @@
{
"name": "formbuilder",
"version": "0.1.6",
"homepage": "https://github.com/dobtco/formbuilder",
"authors": [
"adamjacobbecker <[email protected]>"
],
"description": "Graphical form builder for the web.",
"main": "Gruntfile.coffee",
"dependencies": {
"grunt": "*",
Expand All @@ -9,5 +16,8 @@
"grunt-contrib-stylus": "*",
"grunt-contrib-uglify": "*",
"grunt-contrib-watch": "*"
},
"devDependencies": {
"grunt-release": "~0.6.0"
}
}
}

0 comments on commit e238ed6

Please sign in to comment.