File tree Expand file tree Collapse file tree 2 files changed +54
-36
lines changed Expand file tree Collapse file tree 2 files changed +54
-36
lines changed Original file line number Diff line number Diff line change 1
- version : 2
1
+ version : 2.1
2
2
3
- defaults : &defaults
4
- docker :
5
- - image : circleci/node:10
6
- working_directory : ~/project
3
+ executors :
4
+ default :
5
+ docker :
6
+ - image : circleci/node:10
7
+ working_directory : ~/project
8
+
9
+ commands :
10
+ attach_project :
11
+ steps :
12
+ - attach_workspace :
13
+ at : ~/project
7
14
8
15
jobs :
9
16
install-dependencies :
10
- << : *defaults
17
+ executor : default
11
18
steps :
12
19
- checkout
13
- - attach_workspace :
14
- at : ~/project
20
+ - attach_project
15
21
- restore_cache :
16
22
keys :
17
23
- dependencies-{{ checksum "package.json" }}
20
26
keys :
21
27
- dependencies-example-{{ checksum "example/package.json" }}
22
28
- dependencies-example-
23
- - run : |
24
- yarn install --cwd example --frozen-lockfile
25
- yarn install --frozen-lockfile
29
+ - run :
30
+ name : Install dependencies
31
+ command : |
32
+ yarn install --cwd example --frozen-lockfile
33
+ yarn install --frozen-lockfile
26
34
- save_cache :
27
35
key : dependencies-{{ checksum "package.json" }}
28
36
paths : node_modules
@@ -32,38 +40,47 @@ jobs:
32
40
- persist_to_workspace :
33
41
root : .
34
42
paths : .
43
+
35
44
lint :
36
- << : *defaults
37
- steps :
38
- - attach_workspace :
39
- at : ~/project
40
- - run : |
45
+ executor : default
46
+ steps :
47
+ - attach_project
48
+ - run :
49
+ name : Lint files
50
+ command : |
41
51
yarn lint
52
+
42
53
typescript :
43
- << : *defaults
44
- steps :
45
- - attach_workspace :
46
- at : ~/project
47
- - run : yarn typescript
54
+ executor : default
55
+ steps :
56
+ - attach_project
57
+ - run :
58
+ name : Typecheck files
59
+ command : |
60
+ yarn typescript
61
+
48
62
unit-tests :
49
- << : *defaults
50
- steps :
51
- - attach_workspace :
52
- at : ~/project
53
- - run : yarn test --coverage
54
- - store_artifacts :
55
- path : coverage
56
- destination : coverage
57
- build-package :
58
- << : *defaults
59
- steps :
60
- - attach_workspace :
61
- at : ~/project
62
- - run : yarn prepare
63
+ executor : default
64
+ steps :
65
+ - attach_project
66
+ - run :
67
+ name : Run unit tests
68
+ command : |
69
+ yarn test --coverage
70
+ - store_artifacts :
71
+ path : coverage
72
+ destination : coverage
63
73
74
+ build-package :
75
+ executor : default
76
+ steps :
77
+ - attach_project
78
+ - run :
79
+ name : Build package
80
+ command : |
81
+ yarn prepare
64
82
65
83
workflows :
66
- version : 2
67
84
build-and-test :
68
85
jobs :
69
86
- install-dependencies
Original file line number Diff line number Diff line change @@ -5,6 +5,7 @@ @implementation <%= project.name %>
5
5
RCT_EXPORT_MODULE ()
6
6
7
7
// Example method for C++
8
+ // See the implementation of the example module in the `cpp` folder
8
9
RCT_EXPORT_METHOD(multiply:(nonnull NSNumber *)a withB:(nonnull NSNumber *)b
9
10
withResolver:(RCTPromiseResolveBlock)resolve
10
11
withReject:(RCTPromiseRejectBlock)reject)
You can’t perform that action at this time.
0 commit comments