forked from EasyDynamics/oscal-react-library
-
Notifications
You must be signed in to change notification settings - Fork 0
/
buildspec.yml
40 lines (37 loc) · 830 Bytes
/
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
---
version: 0.2
phases:
install:
runtime-versions:
nodejs: 16
commands:
- echo "Update NPM"
- npm install -g npm
- echo "Installing library npm packages"
- npm ci
- echo "Installing sample app npm packages"
- cd example
- npm ci
- cd ..
build:
commands:
- echo "Build library"
- npm run build
- echo "Testing library"
- npm run test -- --ci --watchAll=false
- echo "Testing sample application"
- cd example
- npm run test -- --ci --watchAll=false
- cd ..
- echo "Building sample application"
- npm run predeploy
artifacts:
base-directory: ./example/build
files:
- '**/*'
exclude-paths:
- 'robots.txt'
cache:
paths:
- './node_modules/**/*'
- './example/node_modules/**/*'