-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathbuildspec.yml
More file actions
45 lines (40 loc) · 1.25 KB
/
buildspec.yml
File metadata and controls
45 lines (40 loc) · 1.25 KB
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
version: 0.2
phases:
install:
runtime-versions:
nodejs: 16
python: 3.9
commands:
- echo -e '@neverendingsupport:registry=https://registry.nes.herodevs.com/npm/pkg/\n//registry.nes.herodevs.com/npm/pkg/:_authToken="'${NES_AUTH_TOKEN}'"' > .npmrc
- npm -v
- npm install
- npm install -g typescript@4.7.4
pre_build:
commands:
- echo "pre_build phase"
build:
commands:
- npm run build-vue
- tsc --resolveJsonModule --esModuleInterop ./scripts/node_js/save_whiteboard_as_png.ts
# Specify absolute path in the whiteboard PNG export script to load the server-side version of fabric installed in the platform hooks,
# not the client-side version specified in package.json.
- sed -i -e 's/require("fabric")/require("\/usr\/lib\/nodejs18\/lib\/node_modules\/fabric")/' scripts/node_js/save_whiteboard_as_png.js
post_build:
commands:
- chmod 755 ./scripts/*.sh
- ./scripts/create-build-summary.sh
artifacts:
files:
- '.ebextensions/**/*'
- '.platform/**/*'
- 'Procfile'
- 'application.py'
- 'app/**/*'
- 'config/**/*'
- 'consoler.py'
- 'dist/**/*'
- 'fixtures/**/*'
- 'node_modules/**/*'
- 'requirements.txt'
- 'scripts/**/*'
- 'squiggy/**/*'