File tree Expand file tree Collapse file tree 3 files changed +40
-2
lines changed Expand file tree Collapse file tree 3 files changed +40
-2
lines changed Original file line number Diff line number Diff line change
1
+ # Javascript Node CircleCI 2.0 configuration file
2
+ #
3
+ # Check https://circleci.com/docs/2.0/language-javascript/ for more details
4
+ #
5
+ version : 2
6
+ jobs :
7
+ build :
8
+ docker :
9
+ # specify the version you desire here
10
+ - image : circleci/node:lts
11
+
12
+ # Specify service dependencies here if necessary
13
+ # CircleCI maintains a library of pre-built images
14
+ # documented at https://circleci.com/docs/2.0/circleci-images/
15
+ # - image: circleci/mongo:3.4.4
16
+
17
+ working_directory : ~/mstacm.org/apps/web
18
+
19
+ steps :
20
+ - checkout :
21
+ path : ~/mstacm.org
22
+
23
+ # Download and cache dependencies
24
+ - restore_cache :
25
+ keys :
26
+ - v1-dependencies-{{ checksum "yarn.lock" }}
27
+ # fallback to using the latest cache if no exact match is found
28
+ - v1-dependencies-
29
+
30
+ - run : yarn install
31
+
32
+ - save_cache :
33
+ paths :
34
+ - node_modules
35
+ key : v1-dependencies-{{ checksum "yarn.lock" }}
36
+
37
+ # run tests!
38
+ - run : yarn test
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ WORKDIR /server
4
4
5
5
COPY . /server
6
6
ADD package.json /server/package.json
7
- RUN yarn install
7
+ RUN yarn
8
8
9
9
EXPOSE 4000
10
10
RUN yarn build
Original file line number Diff line number Diff line change 53
53
},
54
54
"scripts" : {
55
55
"start:dev" : " NODE_ENV='development' nodemon" ,
56
- "start:prod" : " NODE_ENV='production' node build/src/index .js" ,
56
+ "start:prod" : " NODE_ENV='production' node build/src/main .js" ,
57
57
"build" : " tsc -p tsconfig.release.json" ,
58
58
"build:watch" : " tsc -w -p tsconfig.release.json" ,
59
59
"lint" : " tslint -t stylish --project \" tsconfig.json\" " ,
You can’t perform that action at this time.
0 commit comments