-
Notifications
You must be signed in to change notification settings - Fork 17
/
crossbow.yml
34 lines (31 loc) · 874 Bytes
/
crossbow.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
tasks:
build:
- browserify
- uglify
- copy
browserify:
description: A special build for browser-globals
tasks:
- >
@npm browserify dist/index.js -d |
exorcist dist/json-ts.js.map
> dist/json-ts.js
uglify:
- ifChanged: dist/json-ts.js
tasks: >
@npm uglifyjs
--compress --mangle --
dist/json-ts.js > dist/json-ts.min.js
&& cp dist/json-ts.min.js docs/dist/json-ts.min.js
- ifChanged: docs/lib/codemirror.js
tasks: >
@npm uglifyjs
--compress --mangle --
docs/lib/codemirror.js > docs/dist/codemirror.js
- ifChanged: docs/javascript/javascript.js
tasks: >
@npm uglifyjs
--compress --mangle --
docs/javascript/javascript.js > docs/dist/javascript.js
copy: >
@sh cp dist/json-ts.min.js docs/json-ts.min.js