Skip to content

Commit 9e95d0f

Browse files
committed
v1.7.1-dev. pulled the adapters from v1.8, updated buildr, fixed jslint issues, added session storage.
1 parent 29fd043 commit 9e95d0f

29 files changed

+6855
-1017
lines changed

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Welcome to History.js (v1.7.0 - April 01 2011)
1+
Welcome to History.js (v1.7.1 - September 06 2011)
22
==================
33

44

@@ -236,6 +236,8 @@ Thanks! every bit of help really does make a difference. Again thank you.
236236

237237
## Changelog
238238

239+
- v1.7.1 - September 06 2011
240+
239241
- v1.7.0 - April 01 2011
240242
- Added `History.enabled` property (refer to usage section). This reflects whether or not History.js is enabled for our particular browser. For instance, if we have not included support for a HTML4 browser and we are accessing through a HTML4 browser then `History.enabled` will be `false`.
241243
- Added (optional but recommended) Data Persistance and Synchronisation Support thanks to [AppendTo's](http://appendto.com/) [Amplify.js](http://amplifyjs.com/) (refer to installation and compatibility sections for details)

buildr.coffee

Lines changed: 75 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,75 @@
1+
# Requires
2+
buildr = require 'buildr'
3+
4+
# Configs
5+
configs =
6+
# Standard
7+
standard:
8+
# Paths
9+
srcPath: __dirname+'/scripts/uncompressed'
10+
outPath: __dirname+'/scripts/compressed'
11+
12+
# Checking
13+
checkScripts: true
14+
jshintOptions:
15+
browser: true
16+
laxbreak: true
17+
boss: true
18+
undef: true
19+
onevar: true
20+
strict: true
21+
noarg: true
22+
23+
# Compression (without outPath only the generated bundle files are compressed)
24+
compressScripts: true # Array or true or false
25+
26+
'json2,native,html4,history.js':
27+
# Paths
28+
srcPath: __dirname+'/scripts/uncompressed'
29+
30+
# Compression (without outPath only the generated bundle files are compressed)
31+
compressScripts: true # Array or true or false
32+
33+
# Order
34+
scriptsOrder: [
35+
'json2.js'
36+
'history.adapter.native.js'
37+
'history.html4.js'
38+
'history.js'
39+
]
40+
41+
# Bundling
42+
bundleScriptPath: __dirname+'/scripts/bundled/json2,native,html4,history.js'
43+
44+
'native,history.js':
45+
# Paths
46+
srcPath: __dirname+'/scripts/uncompressed'
47+
48+
# Compression (without outPath only the generated bundle files are compressed)
49+
compressScripts: true # Array or true or false
50+
51+
# Order
52+
scriptsOrder: [
53+
'json2.js'
54+
'history.adapter.native.js'
55+
'history.html4.js'
56+
'history.js'
57+
]
58+
59+
# Bundling
60+
bundleScriptPath: __dirname+'/scripts/bundled/native,history.js'
61+
62+
# Handle
63+
for own name, config of configs
64+
# Defaults
65+
config.processHandler ?= (err) ->
66+
if err
67+
console.log err
68+
else
69+
console.log "Building #{name} completed\n"
70+
71+
# Create
72+
buildrInstance = buildr.createInstance config
73+
74+
# Process
75+
buildrInstance.process()

0 commit comments

Comments
 (0)