Skip to content

Commit 5bf3e20

Browse files
committed
Introduced uncompressed bundled files and created bower.json / updated component.json
1 parent 3dd6c87 commit 5bf3e20

File tree

5 files changed

+382
-4
lines changed

5 files changed

+382
-4
lines changed

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
1-
Welcome to History.js (v1.8b1, May 31 2013)
1+
Welcome to History.js (v1.8b2, June 22 2013)
22
==================
33

44
[![Flattr this project](http://api.flattr.com/button/flattr-badge-large.png)](https://flattr.com/submit/auto?user_id=balupton&url=https://github.com/browserstate/history.js&title=History.js&language=&tags=github&category=software)
55

66
## News
7+
- 22/06/2013: Beta 2 of v1.8 is released. Fixes and uncompressed bundled files.
78
- 31/05/2013: Beta 1 of v1.8 is released. Fixes.
89
- 14/02/2013: Alpha 4 of v1.8 is released. Fixes.
910
- 05/02/2013: Alpha 3 of v1.8 is released. Tests updated.
@@ -12,7 +13,7 @@ Welcome to History.js (v1.8b1, May 31 2013)
1213

1314
### History
1415

15-
See History(https://github.com/browserstate/history.js/blob/master/History.md#files) to for a detailled list of features, changes, solved issues and bugs
16+
See History(https://github.com/browserstate/history.js/blob/master/History.md#files) to for a detailed list of features, changes, solved issues and bugs
1617

1718
### Involve
1819

bower.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"name": "history.js",
3+
"version": "1.8.1"
4+
}

buildr-uncompressed.coffee

Lines changed: 373 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,373 @@
1+
# Requires
2+
buildr = require 'buildr'
3+
util = require 'util'
4+
5+
# Options
6+
options =
7+
watch: false
8+
compress: false
9+
10+
# Configs
11+
configs =
12+
standard:
13+
# Options
14+
name: 'standard'
15+
watch: options.watch
16+
17+
# Paths
18+
srcPath: __dirname+'/scripts/uncompressed'
19+
outPath: __dirname+'/scripts/compressed'
20+
21+
# Checking
22+
checkScripts: true
23+
jshintOptions:
24+
browser: true
25+
laxbreak: true
26+
boss: true
27+
undef: true
28+
onevar: true
29+
strict: true
30+
noarg: true
31+
32+
# Compression (without outPath only the generated bundle files are compressed)
33+
compressScripts: options.compress # Array or true or false
34+
35+
other: [
36+
37+
# -----------------------------
38+
# Dojo Toolkit
39+
40+
{
41+
# Options
42+
name: 'html4+html5+dojo'
43+
watch: options.watch
44+
45+
# Paths
46+
srcPath: __dirname+'/scripts/uncompressed'
47+
48+
# Compression (without outPath only the generated bundle files are compressed)
49+
compressScripts: options.compress # Array or true or false
50+
51+
# Order
52+
scriptsOrder: [
53+
'json2.js'
54+
'history.adapter.dojo.js'
55+
'history.html4.js'
56+
'history.js'
57+
]
58+
59+
# Bundling
60+
bundleScriptPath: __dirname+'/scripts/bundled-uncompressed/html4+html5/dojo.history.js'
61+
}
62+
{
63+
# Options
64+
name: 'html5+dojo'
65+
watch: options.watch
66+
67+
# Paths
68+
srcPath: __dirname+'/scripts/uncompressed'
69+
70+
# Compression (without outPath only the generated bundle files are compressed)
71+
compressScripts: options.compress # Array or true or false
72+
73+
# Order
74+
scriptsOrder: [
75+
'history.adapter.dojo.js'
76+
'history.js'
77+
]
78+
79+
# Bundling
80+
bundleScriptPath: __dirname+'/scripts/bundled-uncompressed/html5/dojo.history.js'
81+
}
82+
83+
# -----------------------------
84+
# ExtJS
85+
86+
{
87+
# Options
88+
name: 'html4+html5+extjs'
89+
watch: options.watch
90+
91+
# Paths
92+
srcPath: __dirname+'/scripts/uncompressed'
93+
94+
# Compression (without outPath only the generated bundle files are compressed)
95+
compressScripts: options.compress # Array or true or false
96+
97+
# Order
98+
scriptsOrder: [
99+
'json2.js'
100+
'history.adapter.extjs.js'
101+
'history.html4.js'
102+
'history.js'
103+
]
104+
105+
# Bundling
106+
bundleScriptPath: __dirname+'/scripts/bundled-uncompressed/html4+html5/extjs.history.js'
107+
}
108+
{
109+
# Options
110+
name: 'html5+extjs'
111+
watch: options.watch
112+
113+
# Paths
114+
srcPath: __dirname+'/scripts/uncompressed'
115+
116+
# Compression (without outPath only the generated bundle files are compressed)
117+
compressScripts: options.compress # Array or true or false
118+
119+
# Order
120+
scriptsOrder: [
121+
'history.adapter.extjs.js'
122+
'history.js'
123+
]
124+
125+
# Bundling
126+
bundleScriptPath: __dirname+'/scripts/bundled-uncompressed/html5/extjs.history.js'
127+
}
128+
129+
# -----------------------------
130+
# JQUERY
131+
132+
{
133+
# Options
134+
name: 'html4+html5+jquery'
135+
watch: options.watch
136+
137+
# Paths
138+
srcPath: __dirname+'/scripts/uncompressed'
139+
140+
# Compression (without outPath only the generated bundle files are compressed)
141+
compressScripts: options.compress # Array or true or false
142+
143+
# Order
144+
scriptsOrder: [
145+
'json2.js'
146+
'history.adapter.jquery.js'
147+
'history.html4.js'
148+
'history.js'
149+
]
150+
151+
# Bundling
152+
bundleScriptPath: __dirname+'/scripts/bundled-uncompressed/html4+html5/jquery.history.js'
153+
}
154+
{
155+
# Options
156+
name: 'html5+jquery'
157+
watch: options.watch
158+
159+
# Paths
160+
srcPath: __dirname+'/scripts/uncompressed'
161+
162+
# Compression (without outPath only the generated bundle files are compressed)
163+
compressScripts: options.compress # Array or true or false
164+
165+
# Order
166+
scriptsOrder: [
167+
'history.adapter.jquery.js'
168+
'history.js'
169+
]
170+
171+
# Bundling
172+
bundleScriptPath: __dirname+'/scripts/bundled-uncompressed/html5/jquery.history.js'
173+
}
174+
175+
176+
# -----------------------------
177+
# MOOTOOLS
178+
179+
{
180+
# Options
181+
name: 'html4+html5+mootools'
182+
watch: options.watch
183+
184+
# Paths
185+
srcPath: __dirname+'/scripts/uncompressed'
186+
187+
# Compression (without outPath only the generated bundle files are compressed)
188+
compressScripts: options.compress # Array or true or false
189+
190+
# Order
191+
scriptsOrder: [
192+
'json2.js'
193+
'history.adapter.mootools.js'
194+
'history.html4.js'
195+
'history.js'
196+
]
197+
198+
# Bundling
199+
bundleScriptPath: __dirname+'/scripts/bundled-uncompressed/html4+html5/mootools.history.js'
200+
}
201+
{
202+
# Options
203+
name: 'html5+mootools'
204+
watch: options.watch
205+
206+
# Paths
207+
srcPath: __dirname+'/scripts/uncompressed'
208+
209+
# Compression (without outPath only the generated bundle files are compressed)
210+
compressScripts: options.compress # Array or true or false
211+
212+
# Order
213+
scriptsOrder: [
214+
'history.adapter.mootools.js'
215+
'history.js'
216+
]
217+
218+
# Bundling
219+
bundleScriptPath: __dirname+'/scripts/bundled-uncompressed/html5/mootools.history.js'
220+
}
221+
222+
223+
# -----------------------------
224+
# NATIVE
225+
226+
{
227+
# Options
228+
name: 'html4+html5+native'
229+
watch: options.watch
230+
231+
# Paths
232+
srcPath: __dirname+'/scripts/uncompressed'
233+
234+
# Compression (without outPath only the generated bundle files are compressed)
235+
compressScripts: options.compress # Array or true or false
236+
237+
# Order
238+
scriptsOrder: [
239+
'json2.js'
240+
'history.adapter.native.js'
241+
'history.html4.js'
242+
'history.js'
243+
]
244+
245+
# Bundling
246+
bundleScriptPath: __dirname+'/scripts/bundled-uncompressed/html4+html5/native.history.js'
247+
}
248+
{
249+
# Options
250+
name: 'html5+native'
251+
watch: options.watch
252+
253+
# Paths
254+
srcPath: __dirname+'/scripts/uncompressed'
255+
256+
# Compression (without outPath only the generated bundle files are compressed)
257+
compressScripts: options.compress # Array or true or false
258+
259+
# Order
260+
scriptsOrder: [
261+
'history.adapter.native.js'
262+
'history.js'
263+
]
264+
265+
# Bundling
266+
bundleScriptPath: __dirname+'/scripts/bundled-uncompressed/html5/native.history.js'
267+
}
268+
269+
270+
# -----------------------------
271+
# RIGHT.JS
272+
273+
{
274+
# Options
275+
name: 'html4+html5+right'
276+
watch: options.watch
277+
278+
# Paths
279+
srcPath: __dirname+'/scripts/uncompressed'
280+
281+
# Compression (without outPath only the generated bundle files are compressed)
282+
compressScripts: options.compress # Array or true or false
283+
284+
# Order
285+
scriptsOrder: [
286+
'json2.js'
287+
'history.adapter.right.js'
288+
'history.html4.js'
289+
'history.js'
290+
]
291+
292+
# Bundling
293+
bundleScriptPath: __dirname+'/scripts/bundled-uncompressed/html4+html5/right.history.js'
294+
}
295+
{
296+
# Options
297+
name: 'html5+right'
298+
watch: options.watch
299+
300+
# Paths
301+
srcPath: __dirname+'/scripts/uncompressed'
302+
303+
# Compression (without outPath only the generated bundle files are compressed)
304+
compressScripts: options.compress # Array or true or false
305+
306+
# Order
307+
scriptsOrder: [
308+
'history.adapter.right.js'
309+
'history.js'
310+
]
311+
312+
# Bundling
313+
bundleScriptPath: __dirname+'/scripts/bundled-uncompressed/html5/right.history.js'
314+
}
315+
316+
317+
# -----------------------------
318+
# ZEPTO
319+
320+
{
321+
# Options
322+
name: 'html4+html5+zepto'
323+
watch: options.watch
324+
325+
# Paths
326+
srcPath: __dirname+'/scripts/uncompressed'
327+
328+
# Compression (without outPath only the generated bundle files are compressed)
329+
compressScripts: options.compress # Array or true or false
330+
331+
# Order
332+
scriptsOrder: [
333+
'json2.js'
334+
'history.adapter.zepto.js'
335+
'history.html4.js'
336+
'history.js'
337+
]
338+
339+
# Bundling
340+
bundleScriptPath: __dirname+'/scripts/bundled-uncompressed/html4+html5/zepto.history.js'
341+
}
342+
{
343+
# Options
344+
name: 'html5+zepto'
345+
watch: options.watch
346+
347+
# Paths
348+
srcPath: __dirname+'/scripts/uncompressed'
349+
350+
# Compression (without outPath only the generated bundle files are compressed)
351+
compressScripts: options.compress # Array or true or false
352+
353+
# Order
354+
scriptsOrder: [
355+
'history.adapter.zepto.js'
356+
'history.js'
357+
]
358+
359+
# Bundling
360+
bundleScriptPath: __dirname+'/scripts/bundled-uncompressed/html5/zepto.history.js'
361+
}
362+
]
363+
364+
# Standard
365+
standardConfig = configs.standard
366+
standardConfig.successHandler = ->
367+
for config in configs.other
368+
buildrInstance = buildr.createInstance config
369+
buildrInstance.process()
370+
371+
# Process
372+
standardBuildr = buildr.createInstance configs.standard
373+
standardBuildr.process()

0 commit comments

Comments
 (0)