forked from open-xml-templating/docxtemplater
-
Notifications
You must be signed in to change notification settings - Fork 0
/
robo.yml
57 lines (56 loc) · 1.6 KB
/
robo.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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
preversion:
summary: Run before a version
command: robo test
compile:
summary: Compile the code to es5
command: robo convertto:es5
browserify:test:
summary: Convert the files of the test
command: |
{{.npath}}/browserify -r ./js/tests/docxtemplater.js -s DocxtemplaterTest > browser/test.js
browserify:lib:
summary: Convert the files of the library
command: |
{{.npath}}/browserify -r ./js/docxtemplater.js -s Docxtemplater > build/docxtemplater.js
uglify:lib:
summary: uglifyjs build/docxtemplater.js > build/docxtemplater.min.js
command: uglifyjs build/docxtemplater.js > build/docxtemplater.min.js
browserify:
summary: Convert all necessary files for the browser
command: robo browserify:test && robo browserify:lib
convertto:es5:
summary: Convert all files to es5
command: rm js -rf ; mkdir -p js; robo babel
test:watch:
summary: Watch files and run tests
command: |
node watch-file-and-run-test.js &
robo babel:watch
lint:
summary: Lint the project
command: |
{{.npath}}/eslint .
babel:
summary: Convert all scripts to es5 with watch
command: |
{{.npath}}/babel es6 --out-dir js
babel:watch:
summary: Convert all scripts to es5
command: |
{{.npath}}/babel es6 --out-dir js --watch
mocha:
summary: Run mocha tests
command: |
{{.npath}}/mocha js/tests/docxtemplater.js --colors
test:es6:
summary: Run tests with es6
command: |
{{.npath}}/mocha es6/tests/docxtemplater.js --colors
test:
summary: Test
command: robo compile && robo mocha
test:es5:
summary: Test with an es5 runner
command: robo test
variables:
npath: ./node_modules/.bin