File tree Expand file tree Collapse file tree 8 files changed +14
-36
lines changed Expand file tree Collapse file tree 8 files changed +14
-36
lines changed Original file line number Diff line number Diff line change @@ -10,52 +10,26 @@ jobs:
10
10
working_directory : ~/repo
11
11
steps :
12
12
- checkout
13
- # Download and cache dependencies
14
- - restore_cache :
15
- keys :
16
- - v1-dependencies-{{ checksum "package-lock.json" }}
17
- # fallback to using the latest cache if no exact match is found
18
- - v1-dependencies-
19
13
- run : npm install
20
14
- run : npm run build
21
15
- run : npm test
22
- - save_cache :
23
- paths :
24
- - node_modules
25
- - packages/cli
26
- key : v1-dependencies-{{ checksum "package-lock.json" }}
27
16
test-job-10 :
28
17
docker :
29
18
- image : circleci/node:10-browsers
30
19
working_directory : ~/repo
31
20
steps :
32
21
- checkout
33
- # Download and cache dependencies
34
- - restore_cache :
35
- keys :
36
- - v1-dependencies-{{ checksum "package-lock.json" }}
37
- # fallback to using the latest cache if no exact match is found
38
- - v1-dependencies-
39
22
- run : npm install
40
23
- run : npm run build
41
24
- run : npm test
42
- - save_cache :
43
- paths :
44
- - node_modules
45
- - packages/cli
46
- key : v1-dependencies-{{ checksum "package-lock.json" }}
47
25
48
26
publish-job :
49
27
docker :
50
28
- image : circleci/node:10
51
29
working_directory : ~/repo
52
30
steps :
53
31
- checkout
54
- - restore_cache :
55
- keys :
56
- - v1-dependencies-{{ checksum "package-lock.json" }}
57
- # fallback to using the latest cache if no exact match is found
58
- - v1-dependencies-
32
+ - run : npm install
59
33
- run :
60
34
name : Pre-Publish Script
61
35
command : ./tools/publish.sh
Original file line number Diff line number Diff line change 9
9
node_modules /
10
10
src /build /
11
11
coverage /
12
+ * -debug.log
13
+
Original file line number Diff line number Diff line change 5
5
}
6
6
},
7
7
"packages" : [" packages/*" ],
8
- "version" : " 0.2.6 "
8
+ "version" : " 0.3.1 "
9
9
}
Original file line number Diff line number Diff line change 5
5
"main" : " src/index.ts" ,
6
6
"scripts" : {
7
7
"build" : " lerna bootstrap" ,
8
+ "update-cli-in-e2e" : " lerna add create-ts-lib packages/e2e" ,
8
9
"test" : " cd packages/e2e && npm test" ,
9
10
"publish" : " lerna run publish-cli"
10
11
},
Original file line number Diff line number Diff line change 44
44
"webpack-cli" : " ^3.1.0" ,
45
45
"webpack-dev-server" : " ^3.1.5"
46
46
},
47
- "dependencies" : {
48
- "lodash" : " ^4.17.4"
49
- }
47
+ "dependencies" : {}
50
48
}
Original file line number Diff line number Diff line change 1
- import { random } from 'lodash' ;
2
-
3
1
export interface Foo {
4
2
executeDependency : Function ;
5
3
}
6
4
7
5
export class MyLibrary implements Foo {
8
6
executeDependency ( ) {
9
- return random ( 0 , 10 ) ;
7
+ return Math . floor ( Math . random ( ) * 10 + 1 ) ;
10
8
}
11
9
}
12
10
Original file line number Diff line number Diff line change 9
9
"test" : " create-ts-lib app && cd app && npm run build && npm run test"
10
10
},
11
11
"dependencies" : {
12
- "create-ts-lib" : " ^0.2.6 " ,
12
+ "create-ts-lib" : " ^0.3.1 " ,
13
13
"rimraf" : " ^2.6.2"
14
14
},
15
15
"keywords" : [],
You can’t perform that action at this time.
0 commit comments