File tree Expand file tree Collapse file tree 2 files changed +28
-3
lines changed Expand file tree Collapse file tree 2 files changed +28
-3
lines changed Original file line number Diff line number Diff line change 23
23
- run : npm run build
24
24
- run : npm test
25
25
26
+ test-preset-node8 :
27
+ docker :
28
+ - image : circleci/node:10-browsers
29
+ working_directory : ~/repo
30
+ steps :
31
+ - checkout
32
+ - run : npm install
33
+ - run : npm run build
34
+ - run : npm test:preset
35
+ test-preset-node10 :
36
+ docker :
37
+ - image : circleci/node:10-browsers
38
+ working_directory : ~/repo
39
+ steps :
40
+ - checkout
41
+ - run : npm install
42
+ - run : npm run build
43
+ - run : npm test:preset
44
+
26
45
publish-job :
27
46
docker :
28
47
- image : circleci/node:10
@@ -41,12 +60,17 @@ workflows:
41
60
test :
42
61
jobs :
43
62
- test-job-8
63
+ - test-preset-node8
44
64
- test-job-10
65
+ - test-preset-node10
66
+
45
67
- publish-job :
46
68
filters :
47
69
branches :
48
70
only :
49
71
- master
50
72
requires :
51
73
- test-job-8
74
+ - test-preset-node8
52
75
- test-job-10
76
+ - test-preset-node10
Original file line number Diff line number Diff line change 5
5
"private" : true ,
6
6
"main" : " index.js" ,
7
7
"scripts" : {
8
- "pretest" : " rimraf app" ,
9
- "test" : " create-ts-lib app && cd app && npm run build && npm run test"
8
+ "clean" : " rimraf app" ,
9
+ "test" : " npm run clean && create-ts-lib app && cd app && npm run build && npm run test" ,
10
+ "test:preset" : " npm run clean && create-ts-lib --preset server app && cd app && npm run build && ls -l ./dist"
10
11
},
11
12
"dependencies" : {
12
13
"create-ts-lib" : " ^0.4.0" ,
16
17
"author" : " " ,
17
18
"license" : " ISC" ,
18
19
"devDependencies" : {
19
- "create-ts-lib" : " 0.4.0"
20
+ "create-ts-lib" : " ^ 0.4.0"
20
21
}
21
22
}
You can’t perform that action at this time.
0 commit comments