-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcrossbow.yaml
68 lines (58 loc) · 1.36 KB
/
crossbow.yaml
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
58
59
60
61
62
63
64
65
66
67
68
tasks:
start:
- '@npm node index'
build-all:
- build
- sw
sw:
adaptor: npm
command: |
workbox injectManifest workbox-cli-config.js
build:
description: |
Run the parcel bundler to create the production-ready assets
tasks:
- app-shell
- adaptor: npm
command: |
rm -rf dist/**
node build.js
cp -R src/favicons dist/favicons
cp -R src/stubs dist/stubs
cp -R src/img dist/img
serve:
description: |
Serve the dist folder (note: this will set `NODE_ENV=production`)
tasks:
- adaptor: npm
env:
NODE_ENV: production
command: node index
lighthouse:
- adaptor: npm
command: |
lighthouse http://localhost:1234 --headless --view
build-icons:
tasks: 'tasks/icons.js'
options:
input: src/svg/*.svg
output: src/icons
app-shell:
description: |
Render the App shell. Alias for `render-clean render-ts render-output`
tasks:
- render-clean
- render-ts
render-clean:
adaptor: npm
command: rm -rf render/**
render-ts:
adaptor: npm
command: >
tsc src/render/index.tsx
--jsx react --jsxFactory h
--lib DOM,ES2015
--outDir render/dist
render-output:
adaptor: sh
command: node renderSubject/dist/renderSubject/index.js