Skip to content
Browse files

Updated buildr to 0.6.4. Performs same ability as buildr 0.2, but better

  • Loading branch information...
1 parent ca97819 commit 139e3754db428f2b082da33695d97ccfb4264e8c @balupton balupton committed Jul 23, 2011
Showing with 26 additions and 40 deletions.
  1. +24 −3 buildr.coffee
  2. +2 −37 package.json
View
27 buildr.coffee
@@ -1,3 +1,24 @@
-Buildr = require('buildr').Buildr
-myBuildr = new Buildr(__dirname)
-myBuildr.run()
+# Requires
+buildr = require 'buildr'
+
+# Includes
+config =
+ srcPath: __dirname+'/scripts/uncompressed'
+ outPath: __dirname+'/scripts/compressed'
+ compressScripts: true
+ checkScripts: true
+ jshintOptions: {
+ browser: true
+ laxbreak: true
+ boss: true
+ undef: true
+ onevar: true
+ strict: true
+ noarg: true
+ }
+
+# Build
+mercuryBuildr = buildr.createInstance(config)
+mercuryBuildr.process (err) ->
+ throw err if err
+ console.log 'Building completed'
View
39 package.json
@@ -1,6 +1,6 @@
{
"name": "history.js",
- "version": "1.6.0",
+ "version": "1.8.0",
"description": "History.js gracefully supports the HTML5 History/State APIs (pushState, replaceState, onPopState) in all browsers. Including continued support for data, titles, replaceState. Supports jQuery, MooTools and Prototype. For HTML5 browsers this means that you can modify the URL directly, without needing to use hashes anymore. For HTML4 browsers it will revert back to using the old onhashchange functionality.",
"homepage": "https://github.com/balupton/history.js",
"keywords": [
@@ -46,47 +46,12 @@
"url" : "http://github.com/balupton/history.js.git"
},
"dependencies": {
- "buildr": "=0.2.9"
+ "buildr": "=0.6.4"
},
"engines" : {
},
"directories": {
"out": "./scripts/compressed",
"src": "./scripts/uncompressed"
- },
- "buildr": {
- "compress": {
- "js": true,
- "css": false,
- "img": false,
- "html": false
- },
- "check": {
- "js": true,
- "jsOptions": {
- "browser": true,
- "laxbreak": true,
- "boss": true,
- "undef": true,
- "onevar": true,
- "strict": true
- }
- },
- "ignore": {
- "check": [
- "json2.js",
- "amplify.store.js"
- ]
- },
- "bundle": false,
- "directories": {
- "out": "./scripts/compressed",
- "src": "./scripts/uncompressed"
- },
- "files": {
- "js": true,
- "css": false,
- "img": false
- }
}
}

0 comments on commit 139e375

Please sign in to comment.
Something went wrong with that request. Please try again.