-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuildspec.yml
More file actions
43 lines (42 loc) · 1.12 KB
/
buildspec.yml
File metadata and controls
43 lines (42 loc) · 1.12 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
version: 0.2
phases:
install:
runtime-versions:
nodejs: 10
commands:
- echo Installing Mocha...
- npm install -g browserify
pre_build:
commands:
- echo Installing source NPM dependencies...
- npm install
build:
commands:
- echo Build started
- echo Compiling the Node.js code
- browserify js/main.js -o js/browserified-main.js
post_build:
commands:
- echo Build completed
# Include only the files required for your application to run.
# Do not use recursively include artifacts from node_modules directory as it will include unnecessary packages
# used only for building and testing.
# ExpressJS apps will need other artifact directories included (bin/*, public/*, routes/*, views/* etc).
artifacts:
files:
- .htaccess
- index.html
- favicon.ico
- humans.txt
- icon.png
- 404.html
- browserconfig.xml
- icon.png
- robots.txt
- wite.webmanifest
- title.png
- title-wide.png
- css/*
- js/*
- node_modules/aws-sdk/* # required for aws sdk
- node_modules/browserify/* # otherwise require won't work!