-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathbuildspec.yml
58 lines (54 loc) · 1.23 KB
/
buildspec.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
58
version: 0.1
env:
shell: bash
variables:
NODE_ENV: production
exported-variables:
- NODE_ENV
phases:
install:
commands:
- npm install -g lerna
pre_build:
commands:
- yarn
- lerna bootstrap --no-ci --concurrency 4
build:
commands:
- yarn --cwd=packages/styles build
- yarn --cwd=packages/react build
- yarn build
# - lerna run build --concurrency 4
post_build:
commands:
- yarn --cwd=packages/react test
- yarn dev &
- sleep 5 && yarn test-pa11y-axe
- yarn generate-pa11y-axe-report
- yarn print-pa11y-axe-cli-results
- yarn test-pa11y-htmlcs
- yarn generate-pa11y-htmlcs-report
- yarn print-pa11y-htmlcs-cli-results
artifacts:
secondary-artifacts:
StagingArtifact:
files:
- "**/*"
name: StagingArtifact
base-directory: docs/dist
ProdBuildArtifact:
files:
- "*.js"
- "*.css"
- "*.html"
- "*.ico"
- "public/*/**"
name: ProdBuildArtifact
base-directory: docs/dist
cache:
paths:
- /root/.npm/*/**
- /root/.cache/yarn/*/**
- node_modules/*/**
- packages/react/node_modules/*/**
- packages/styles/node_modules/*/**