@ronas-it/nx-generators 0.8.0 → 0.8.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (100) hide show
  1. package/README.md +22 -3
  2. package/generators.json +10 -0
  3. package/package.json +1 -1
  4. package/src/generators/code-checks/files/.eslint.ronasit.json.template +186 -0
  5. package/src/generators/code-checks/files/.eslintrc.json.template +1 -1
  6. package/src/generators/code-checks/generator.js +1 -1
  7. package/src/generators/code-checks/generator.js.map +1 -1
  8. package/src/generators/entity-api/generator.js +12 -13
  9. package/src/generators/entity-api/generator.js.map +1 -1
  10. package/src/generators/expo-app/app-files/README.md.template +24 -9
  11. package/src/generators/expo-app/app-files/eas.json.template +25 -14
  12. package/src/generators/expo-app/generator.js +10 -7
  13. package/src/generators/expo-app/generator.js.map +1 -1
  14. package/src/generators/expo-app/scripts.d.ts +3 -2
  15. package/src/generators/expo-app/scripts.js +3 -2
  16. package/src/generators/expo-app/scripts.js.map +1 -1
  17. package/src/generators/form/generator.js +9 -68
  18. package/src/generators/form/generator.js.map +1 -1
  19. package/src/generators/form/utils/add-form-usage.d.ts +1 -0
  20. package/src/generators/form/utils/add-form-usage.js +67 -0
  21. package/src/generators/form/utils/add-form-usage.js.map +1 -0
  22. package/src/generators/form/utils/get-app-name.d.ts +1 -0
  23. package/src/generators/form/utils/get-app-name.js +8 -0
  24. package/src/generators/form/utils/get-app-name.js.map +1 -0
  25. package/src/generators/form/utils/get-form-utils-directory.d.ts +2 -0
  26. package/src/generators/form/utils/get-form-utils-directory.js +34 -0
  27. package/src/generators/form/utils/get-form-utils-directory.js.map +1 -0
  28. package/src/generators/form/utils/index.d.ts +4 -0
  29. package/src/generators/form/utils/index.js +8 -0
  30. package/src/generators/form/utils/index.js.map +1 -0
  31. package/src/generators/form/utils/update-index.d.ts +2 -0
  32. package/src/generators/form/utils/update-index.js +18 -0
  33. package/src/generators/form/utils/update-index.js.map +1 -0
  34. package/src/generators/lib-tags/generator.d.ts +4 -0
  35. package/src/generators/lib-tags/generator.js +53 -0
  36. package/src/generators/lib-tags/generator.js.map +1 -0
  37. package/src/generators/lib-tags/interfaces/context.d.ts +6 -0
  38. package/src/generators/lib-tags/interfaces/context.js +3 -0
  39. package/src/generators/lib-tags/interfaces/context.js.map +1 -0
  40. package/src/generators/lib-tags/interfaces/index.d.ts +1 -0
  41. package/src/generators/lib-tags/interfaces/index.js +5 -0
  42. package/src/generators/lib-tags/interfaces/index.js.map +1 -0
  43. package/src/generators/lib-tags/schema.d.ts +3 -0
  44. package/src/generators/lib-tags/schema.json +14 -0
  45. package/src/generators/lib-tags/utils/check-lib-tags.d.ts +4 -0
  46. package/src/generators/lib-tags/utils/check-lib-tags.js +81 -0
  47. package/src/generators/lib-tags/utils/check-lib-tags.js.map +1 -0
  48. package/src/generators/lib-tags/utils/index.d.ts +1 -0
  49. package/src/generators/lib-tags/utils/index.js +5 -0
  50. package/src/generators/lib-tags/utils/index.js.map +1 -0
  51. package/src/generators/next-app/generator.js +1 -1
  52. package/src/generators/next-app/generator.js.map +1 -1
  53. package/src/generators/react-component/files/component.tsx.template +13 -3
  54. package/src/generators/react-component/generator.js +2 -1
  55. package/src/generators/react-component/generator.js.map +1 -1
  56. package/src/generators/react-component/schema.d.ts +1 -0
  57. package/src/generators/react-component/schema.json +5 -0
  58. package/src/generators/react-lib/files/lib/component.tsx.template +13 -3
  59. package/src/generators/react-lib/generator.js +16 -27
  60. package/src/generators/react-lib/generator.js.map +1 -1
  61. package/src/generators/react-lib/schema.d.ts +1 -0
  62. package/src/generators/react-lib/schema.json +4 -0
  63. package/src/generators/react-lib/utils/get-lib-directory-name.d.ts +1 -0
  64. package/src/generators/react-lib/utils/get-lib-directory-name.js +15 -0
  65. package/src/generators/react-lib/utils/get-lib-directory-name.js.map +1 -0
  66. package/src/generators/react-lib/utils/index.d.ts +1 -0
  67. package/src/generators/react-lib/utils/index.js +5 -0
  68. package/src/generators/react-lib/utils/index.js.map +1 -0
  69. package/src/shared/dependencies.d.ts +1 -0
  70. package/src/shared/dependencies.js +1 -0
  71. package/src/shared/dependencies.js.map +1 -1
  72. package/src/shared/generators/auth/generator.d.ts +2 -4
  73. package/src/shared/generators/auth/generator.js +1 -0
  74. package/src/shared/generators/auth/generator.js.map +1 -1
  75. package/src/shared/generators/auth/schema.d.ts +4 -0
  76. package/src/shared/generators/auth/schema.json +27 -0
  77. package/src/shared/generators/form-utils/generator.d.ts +0 -1
  78. package/src/shared/generators/form-utils/generator.js.map +1 -1
  79. package/src/shared/generators/store/expo-app/lib-files/shared/data-access/store/src/store.ts.template +1 -1
  80. package/src/shared/generators/store/next-app/lib-files/shared/data-access/store/src/store.ts.template +1 -1
  81. package/src/shared/generators/ui-kitten/generator.d.ts +1 -2
  82. package/src/shared/generators/ui-kitten/generator.js +1 -9
  83. package/src/shared/generators/ui-kitten/generator.js.map +1 -1
  84. package/src/shared/generators/ui-kitten/schema.d.ts +0 -1
  85. package/src/shared/generators/ui-kitten/schema.json +1 -7
  86. package/src/shared/utils/cli-utils.d.ts +2 -0
  87. package/src/shared/utils/cli-utils.js +40 -3
  88. package/src/shared/utils/cli-utils.js.map +1 -1
  89. package/src/shared/utils/config-utils.d.ts +15 -0
  90. package/src/shared/utils/config-utils.js +80 -16
  91. package/src/shared/utils/config-utils.js.map +1 -1
  92. package/src/shared/utils/constants.d.ts +3 -0
  93. package/src/shared/utils/constants.js +7 -0
  94. package/src/shared/utils/constants.js.map +1 -0
  95. package/src/shared/utils/index.d.ts +1 -0
  96. package/src/shared/utils/index.js +1 -0
  97. package/src/shared/utils/index.js.map +1 -1
  98. package/src/generators/code-checks/files/.eslint.ronasit.js.template +0 -186
  99. /package/src/generators/entity-api/files/models/{entity.ts.template → __entityFileName__.ts.template} +0 -0
  100. /package/src/generators/form/files/{form.ts.template → __fileName__.ts.template} +0 -0
package/README.md CHANGED
@@ -125,12 +125,15 @@ Generates a library according to [NX notation](https://nx.dev/concepts/more-conc
125
125
  1. `withComponent` (optional) - generate the library with `lib/component.tsx` file.
126
126
  This option is for `features` or `ui` library.
127
127
 
128
+ 1. `withComponentForwardRef` (optional) - generate a component with `forwardRef` in `lib/component.tsx` file.
129
+ This option works if `withComponent` is `true`.
130
+
128
131
  1. `dryRun` (optional) - generate the library without creating files
129
132
 
130
133
  #### Example
131
134
 
132
135
  ```sh
133
- npx nx g react-lib --app=mobile --scope=account --type=features --name=profile-settings --withComponent --dryRun
136
+ npx nx g react-lib --app=mobile --scope=account --type=features --name=profile-settings --withComponent --withComponentForwardRef --dryRun
134
137
  ```
135
138
  or
136
139
  ```sh
@@ -147,14 +150,16 @@ Creates a React component in particular library.
147
150
 
148
151
  2. `subcomponent` (optional) - generate a folder for components
149
152
 
153
+ 3. `withForwardRef` (optional) - generate a component with forwardRef
154
+
150
155
  #### Example
151
156
 
152
157
  ```sh
153
- npx nx g react-component --name=AppButton --subcomponent
158
+ npx nx g react-component --name=AppButton --subcomponent --withForwardRef
154
159
  ```
155
160
  or
156
161
  ```sh
157
- npx nx g react-component AppButton --subcomponent
162
+ npx nx g react-component AppButton --subcomponent --withForwardRef
158
163
  ```
159
164
 
160
165
  ### 7. `entity-api`
@@ -194,6 +199,20 @@ or
194
199
  npx nx g form profile-settings ProfileSettings
195
200
  ```
196
201
 
202
+ ### 9. `lib-tags`
203
+
204
+ Checks and configures [NX library tags](https://nx.dev/features/enforce-module-boundaries). If your project does not already use library tags, you can add them using this generator.
205
+
206
+ #### Options
207
+
208
+ 1. `silent` (optional) - disables all logs
209
+
210
+ #### Example
211
+
212
+ ```sh
213
+ npx nx g lib-tags
214
+ ```
215
+
197
216
  ### Note
198
217
 
199
218
  Each generator accepts the `--help` argument to see generator instructions.
package/generators.json CHANGED
@@ -49,6 +49,16 @@
49
49
  "factory": "./src/generators/form/generator",
50
50
  "schema": "./src/generators/form/schema.json",
51
51
  "description": "form generator"
52
+ },
53
+ "lib-tags": {
54
+ "factory": "./src/generators/lib-tags/generator",
55
+ "schema": "./src/generators/lib-tags/schema.json",
56
+ "description": "lib-tags generator"
57
+ },
58
+ "auth": {
59
+ "factory": "./src/shared/generators/auth/generator",
60
+ "schema": "./src/shared/generators/auth/schema.json",
61
+ "description": "authentication library for Expo projects"
52
62
  }
53
63
  }
54
64
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ronas-it/nx-generators",
3
- "version": "0.8.0",
3
+ "version": "0.8.2",
4
4
  "description": "NX generators for Ronas IT projects",
5
5
  "license": "MIT",
6
6
  "author": "Ronas IT",
@@ -0,0 +1,186 @@
1
+ {
2
+ "root": true,
3
+ "env": {
4
+ "node": true
5
+ },
6
+ "parser": "@typescript-eslint/parser",
7
+ "parserOptions": {
8
+ "ecmaVersion": 6,
9
+ "project": "tsconfig.(base|lib).json",
10
+ "ecmaFeatures": {
11
+ "jsx": true
12
+ }
13
+ },
14
+ "settings": {
15
+ "react": {
16
+ "version": "detect"
17
+ },
18
+ "react-native/style-sheet-object-names": ["EStyleSheet"],
19
+ "import/parsers": {
20
+ "@typescript-eslint/parser": [".ts", ".tsx"]
21
+ },
22
+ "import/resolver": {
23
+ "typescript": {
24
+ "alwaysTryTypes": true
25
+ },
26
+ "node": {
27
+ "extensions": [".js", ".jsx", ".ts", ".tsx"]
28
+ }
29
+ }
30
+ },
31
+ "plugins": ["@typescript-eslint", "unused-imports", "react", "react-hooks", "react-native", "import"],
32
+ "extends": [
33
+ "eslint:recommended",
34
+ "plugin:@typescript-eslint/eslint-recommended",
35
+ "plugin:@typescript-eslint/recommended",
36
+ "plugin:react/recommended",
37
+ "prettier"
38
+ ],
39
+ "rules": {
40
+ "indent": ["warn", 2, { "SwitchCase": 1 }],
41
+ "quotes": ["warn", "single", { "allowTemplateLiterals": true }],
42
+ "react/react-in-jsx-scope": "off",
43
+ "arrow-parens": ["warn", "always"],
44
+ "comma-dangle": ["warn", "never"],
45
+ "no-var": "warn",
46
+ "no-dupe-class-members": "off",
47
+ "import/prefer-default-export": "off",
48
+ "implicit-arrow-linebreak": ["warn", "beside"],
49
+ "newline-per-chained-call": ["warn", { "ignoreChainWithDepth": 2 }],
50
+ "function-call-argument-newline": ["warn", "consistent"],
51
+ "function-paren-newline": ["warn", "consistent"],
52
+ "array-element-newline": ["warn", "consistent"],
53
+ "array-bracket-newline": ["warn", { "multiline": true }],
54
+ "padding-line-between-statements": [
55
+ "warn",
56
+ { "blankLine": "always", "prev": "*", "next": "return" },
57
+ { "blankLine": "always", "prev": "*", "next": "multiline-block-like" }
58
+ ],
59
+ "@typescript-eslint/no-use-before-define": ["warn", { "variables": false }],
60
+ "@typescript-eslint/lines-between-class-members": ["warn", "always", { "exceptAfterSingleLine": true }],
61
+ "@typescript-eslint/no-inferrable-types": ["warn", { "ignoreParameters": true }],
62
+ "@typescript-eslint/explicit-module-boundary-types": ["warn", { "allowArgumentsExplicitlyTypedAsAny": true }],
63
+ "@typescript-eslint/no-explicit-any": "off",
64
+ "@typescript-eslint/explicit-member-accessibility": [
65
+ "warn",
66
+ { "accessibility": "explicit", "overrides": { "constructors": "no-public" } }
67
+ ],
68
+ "@typescript-eslint/explicit-function-return-type": ["warn", { "allowExpressions": true }],
69
+ "@typescript-eslint/no-var-requires": "off",
70
+ "@typescript-eslint/no-unused-vars": "off",
71
+ "@typescript-eslint/array-type": ["warn", { "default": "generic", "readonly": "generic" }],
72
+ "@typescript-eslint/member-ordering": [
73
+ "warn",
74
+ {
75
+ "default": [
76
+ "public-static-field",
77
+ "protected-static-field",
78
+ "private-static-field",
79
+ "public-instance-field",
80
+ "protected-instance-field",
81
+ "private-instance-field",
82
+ "public-static-accessor",
83
+ "protected-static-accessor",
84
+ "private-static-accessor",
85
+ "public-instance-accessor",
86
+ "protected-instance-accessor",
87
+ "private-instance-accessor",
88
+ "public-constructor",
89
+ "protected-constructor",
90
+ "private-constructor",
91
+ "public-static-method",
92
+ "public-instance-method",
93
+ "protected-static-method",
94
+ "protected-instance-method",
95
+ "private-static-method",
96
+ "private-instance-method"
97
+ ]
98
+ }
99
+ ],
100
+ "@typescript-eslint/naming-convention": [
101
+ "warn",
102
+ {
103
+ "selector": "typeLike",
104
+ "format": ["PascalCase"]
105
+ },
106
+ {
107
+ "selector": ["parameter"],
108
+ "format": ["camelCase", "PascalCase"],
109
+ "leadingUnderscore": "allow"
110
+ },
111
+ {
112
+ "selector": ["classProperty"],
113
+ "format": ["camelCase", "snake_case"],
114
+ "leadingUnderscore": "allow"
115
+ },
116
+ {
117
+ "selector": ["method", "accessor"],
118
+ "format": ["camelCase"]
119
+ },
120
+ {
121
+ "selector": ["function", "typeProperty"],
122
+ "format": ["camelCase", "PascalCase"]
123
+ },
124
+ {
125
+ "selector": "variable",
126
+ "format": ["camelCase", "PascalCase", "UPPER_CASE"]
127
+ },
128
+ {
129
+ "selector": "enumMember",
130
+ "format": ["UPPER_CASE"]
131
+ }
132
+ ],
133
+ "unused-imports/no-unused-imports-ts": "warn",
134
+ "unused-imports/no-unused-vars-ts": [
135
+ "warn",
136
+ { "vars": "all", "varsIgnorePattern": "^_", "argsIgnorePattern": "^_", "ignoreRestSiblings": true }
137
+ ],
138
+ "jsx-quotes": ["warn", "prefer-single"],
139
+ "react/jsx-boolean-value": "off",
140
+ "react/self-closing-comp": ["warn", { "component": true, "html": true }],
141
+ "react/jsx-max-props-per-line": [1, { "maximum": { "single": 2, "multi": 1 } }],
142
+ "react/jsx-first-prop-new-line": ["warn", "multiline"],
143
+ "react/prop-types": "off",
144
+ "react-native/no-unused-styles": "warn",
145
+ "react-native/no-inline-styles": "warn",
146
+ "react-native/no-single-element-style-arrays": "warn",
147
+ "react/jsx-fragments": ["warn", "element"],
148
+ "import/newline-after-import": "warn",
149
+ "import/no-unresolved": "error",
150
+ "import/no-cycle": "error",
151
+ "import/order": [
152
+ "warn",
153
+ {
154
+ "groups": ["builtin", "external", "internal", "parent", "sibling", "index", "object", "type"],
155
+ "alphabetize": { "order": "asc" }
156
+ }
157
+ ],
158
+ "import/no-duplicates": "warn",
159
+ "react-hooks/exhaustive-deps": "off"
160
+ },
161
+ "overrides": [
162
+ {
163
+ "files": ["*.js"],
164
+ "rules": {
165
+ "@typescript-eslint/explicit-member-accessibility": "off",
166
+ "@typescript-eslint/explicit-function-return-type": "off"
167
+ }
168
+ },
169
+ {
170
+ "files": ["*actions.ts"],
171
+ "rules": {
172
+ "function-call-argument-newline": ["warn", "always"],
173
+ "function-paren-newline": ["warn", { "minItems": 1 }]
174
+ }
175
+ },
176
+ {
177
+ "files": ["*selectors.ts"],
178
+ "rules": {
179
+ "@typescript-eslint/explicit-module-boundary-types": "off",
180
+ "@typescript-eslint/explicit-function-return-type": "off",
181
+ "function-call-argument-newline": ["warn", "always"],
182
+ "function-paren-newline": ["warn", "multiline-arguments"]
183
+ }
184
+ }
185
+ ]
186
+ }
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "root": true,
3
3
  "plugins": ["@nx"],
4
- "extends": ["./.eslint.ronasit.js"],
4
+ "extends": ["./.eslint.ronasit.json"],
5
5
  "overrides": [
6
6
  {
7
7
  "files": ["*.ts", "*.tsx", "*.js", "*.jsx"],
@@ -9,8 +9,8 @@ const dependencies_1 = require("../../shared/dependencies");
9
9
  const config_1 = require("./config");
10
10
  const scripts_1 = require("./scripts");
11
11
  function codeChecksGenerator(tree, options) {
12
+ var _a, _b;
12
13
  return tslib_1.__awaiter(this, void 0, void 0, function* () {
13
- var _a, _b;
14
14
  const projectRoot = '.';
15
15
  // Delete files
16
16
  tree.delete('.eslintrc.json');
@@ -1 +1 @@
1
- {"version":3,"file":"generator.js","sourceRoot":"","sources":["../../../../../plugin/src/generators/code-checks/generator.ts"],"names":[],"mappings":";;;;AAAA,iDAAyC;AACzC,6BAA6B;AAC7B,uCAQoB;AACpB,4DAA4D;AAC5D,qCAA8B;AAE9B,uCAAgC;AAEhC,SAAsB,mBAAmB,CAAC,IAAU,EAAE,OAAkC;;;QACtF,MAAM,WAAW,GAAG,GAAG,CAAC;QAExB,eAAe;QACf,IAAI,CAAC,MAAM,CAAC,gBAAg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AE,CAAC;QACvF,IAAA,kBAAS,EAAC,IAAI,EAAE,oBAAoB,EAAE,YAAY,CAAC,CAAC;QAEpD,oBAAoB;QACpB,MAAM,gBAAgB,GAAG,CAAA,MAAA,IAAI,CAAC,IAAI,CAAC,YAAY,CAAC,0CAAE,QAAQ,EAAE,IAAG,kBAAkB,CAAC;QAClF,IAAI,CAAC,KAAK,CAAC,YAAY,EAAE,gBAAgB,CAAC,CAAC;QAE3C,uBAAuB;QACvB,MAAM,mBAAmB,GAAG,CAAA,MAAA,IAAI,CAAC,IAAI,CAAC,eAAe,CAAC,0CAAE,QAAQ,EAAE,IAAG,mCAAmC,CAAC;QACzG,IAAI,CAAC,KAAK,CAAC,eAAe,EAAE,mBAAmB,CAAC,CAAC;QAEjD,YAAY;QACZ,IAAA,sBAAa,EAAC,IAAI,EAAE,IAAI,CAAC,IAAI,CAAC,SAAS,EAAE,OAAO,CAAC,EAAE,WAAW,EAAE,OAAO,CAAC,CAAC;QAEzE,iCAAiC;QACjC,IAAA,qCAA4B,EAC1B,IAAI,EACJ,EAAE,EACF,8BAAe,CAAC,aAAa,CAAC,CAC/B,CAAC;QAEF,MAAM,IAAA,oBAAW,EAAC,IAAI,CAAC,CAAC;QAExB,OAAO,GAAG,EAAE;YACV,IAAA,4BAAmB,EAAC,IAAI,CAAC,CAAC;QAC5B,CAAC,CAAC;;CACH;AA3CD,kDA2CC;AAED,kBAAe,mBAAmB,CAAC"}
@@ -22,13 +22,13 @@ function entityApiGenerator(tree, options) {
22
22
  if (apiClientLibsPaths.length > 1) {
23
23
  apiClientLibsPaths[0] = yield autocomplete({
24
24
  message: 'Select the api client library path:',
25
- source: (input) => (0, utils_1.filterSource)(input, apiClientLibsPaths)
25
+ source: (input) => (0, utils_1.filterSource)(input, apiClientLibsPaths),
26
26
  });
27
27
  }
28
28
  if (apiLibsPaths.length > 1) {
29
29
  apiLibsPaths[0] = yield autocomplete({
30
30
  message: 'Select the api library path:',
31
- source: (input) => (0, utils_1.filterSource)(input, apiLibsPaths)
31
+ source: (input) => (0, utils_1.filterSource)(input, apiLibsPaths),
32
32
  });
33
33
  }
34
34
  const apiDirectory = (0, utils_1.searchAliasPath)(apiLibsPaths[0]);
@@ -37,7 +37,8 @@ function entityApiGenerator(tree, options) {
37
37
  const libRootPath = `${libPath}/lib`;
38
38
  options.name = options.name || (yield (0, utils_1.askQuestion)('Enter the name of the entity (e.g: User): '));
39
39
  const apiName = (0, lodash_1.kebabCase)(options.name);
40
- options.baseEndpoint = options.baseEndpoint || (yield (0, utils_1.askQuestion)('Enter the base endpoint (e.g: /users): ', `/${apiName}`));
40
+ options.baseEndpoint =
41
+ options.baseEndpoint || (yield (0, utils_1.askQuestion)('Enter the base endpoint (e.g: /users): ', `/${apiName}`));
41
42
  const apiPath = `${libRootPath}/${apiName}`;
42
43
  const entityName = (0, lodash_1.startCase)((0, lodash_1.camelCase)(apiName)).replace(/\s+/g, '');
43
44
  (0, devkit_1.generateFiles)(tree, path.join(__dirname, `files`), apiPath, Object.assign(Object.assign({}, options), { apiName: (0, lodash_1.camelCase)(options.name), entityName, entityFileName: apiName, apiClientDirectory, baseEndpoint: options.baseEndpoint.startsWith('/') ? options.baseEndpoint : `/${options.baseEndpoint}` }));
@@ -51,7 +52,7 @@ function entityApiGenerator(tree, options) {
51
52
  if (storeLibsPaths.length > 1) {
52
53
  storeLibsPaths[0] = yield autocomplete({
53
54
  message: 'Select the store library path:',
54
- source: (input) => (0, utils_1.filterSource)(input, storeLibsPaths)
55
+ source: (input) => (0, utils_1.filterSource)(input, storeLibsPaths),
55
56
  });
56
57
  }
57
58
  // Update redux store
@@ -59,22 +60,20 @@ function entityApiGenerator(tree, options) {
59
60
  const project = new ts_morph_1.Project({
60
61
  manipulationSettings: {
61
62
  indentationText: ts_morph_1.IndentationText.TwoSpaces,
62
- quoteKind: ts_morph_1.QuoteKind.Single
63
- }
63
+ quoteKind: ts_morph_1.QuoteKind.Single,
64
+ },
64
65
  });
65
66
  const store = project.addSourceFileAtPath(`${storeLibsPaths[0]}/store.ts`);
66
- // TODO: create declaration if not exists
67
- const apiImportsDeclaration = store.getImportDeclarationOrThrow((node) => node.getModuleSpecifierValue() === apiDirectory);
68
- apiImportsDeclaration.addNamedImport(apiNameDeclaration);
67
+ (0, utils_1.addNamedImport)(apiNameDeclaration, apiDirectory, store);
69
68
  const rootReducer = store.getVariableDeclarationOrThrow('rootReducer');
70
- rootReducer.getInitializerIfKindOrThrow(ts_morph_1.SyntaxKind.ObjectLiteralExpression)
71
- .addProperty({
69
+ rootReducer.getInitializerIfKindOrThrow(ts_morph_1.SyntaxKind.ObjectLiteralExpression).addProperty({
72
70
  name: `[${apiNameDeclaration}.reducerPath]`,
73
71
  initializer: `${apiNameDeclaration}.reducer`,
74
- kind: ts_morph_1.StructureKind.PropertyAssignment
72
+ kind: ts_morph_1.StructureKind.PropertyAssignment,
75
73
  });
76
74
  const middlewares = store.getVariableDeclarationOrThrow('middlewares');
77
- middlewares.getInitializerIfKindOrThrow(ts_morph_1.SyntaxKind.ArrayLiteralExpression)
75
+ middlewares
76
+ .getInitializerIfKindOrThrow(ts_morph_1.SyntaxKind.ArrayLiteralExpression)
78
77
  .addElement(`${apiNameDeclaration}.middleware`);
79
78
  project.saveSync();
80
79
  yield (0, devkit_1.formatFiles)(tree);
@@ -1 +1 @@
1
- {"version":3,"file":"generator.js","sourceRoot":"","sources":["../../../../../plugin/src/generators/entity-api/generator.ts"],"names":[],"mappings":";;;;AAAA,uCAA8D;AAC9D,uCAA0F;AAC1F,6BAA6B;AAC7B,mCAAyD;AAEzD,8CAS4B;AAE5B,SAAsB,kBAAkB,CACtC,IAAU,EACV,OAAiC;;QAEjC,MAAM,EAAE,OAAO,EAAE,YAAY,EAAE,GAAG,MAAM,IAAA,qBAAa,EAAoD,kCAAkC,CAAC,CAAC;QAC7I,MAAM,WAAW,GAAG,IAAA,sBAAc,EAAC,CAAC,mBAAW,CAAC,WAAW,CAAC,CAAC,CAAC;QAC9D,MAAM,YAAY,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B;SACF,CAAC,CAAC;QACH,MAAM,KAAK,GAAG,OAAO,CAAC,mBAAmB,CAAC,GAAG,cAAc,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC;QAE3E,IAAA,sBAAc,EAAC,kBAAkB,EAAE,YAAY,EAAE,KAAK,CAAC,CAAC;QAExD,MAAM,WAAW,GAAG,KAAK,CAAC,6BAA6B,CAAC,aAAa,CAAC,CAAC;QAEvE,WAAW,CAAC,2BAA2B,CAAC,qBAAU,CAAC,uBAAuB,CAAC,CAAC,WAAW,CAAC;YACtF,IAAI,EAAE,IAAI,kBAAkB,eAAe;YAC3C,WAAW,EAAE,GAAG,kBAAkB,UAAU;YAC5C,IAAI,EAAE,wBAAa,CAAC,kBAAkB;SACvC,CAAC,CAAC;QAEH,MAAM,WAAW,GAAG,KAAK,CAAC,6BAA6B,CAAC,aAAa,CAAC,CAAC;QAEvE,WAAW;aACR,2BAA2B,CAAC,qBAAU,CAAC,sBAAsB,CAAC;aAC9D,UAAU,CAAC,GAAG,kBAAkB,aAAa,CAAC,CAAC;QAElD,OAAO,CAAC,QAAQ,EAAE,CAAC;QAEnB,MAAM,IAAA,oBAAW,EAAC,IAAI,CAAC,CAAC;IAC1B,CAAC;CAAA;AAvGD,gDAuGC;AAED,kBAAe,kBAAkB,CAAC"}
@@ -44,22 +44,37 @@ After that [resign](https://docs.expo.dev/app-signing/app-credentials/#re-signin
44
44
  1. Push changes: `git push && git push --tags`
45
45
  1. Create new release in [Releases](../../../../-/releases) based on tag you pushed
46
46
 
47
- ### 2. Create builds
47
+ ### 2. Build
48
48
 
49
- - `build:dev` - build development version for internal testing
50
- - `build:prod` - build production version for stores
49
+ Create builds using [EAS Build](https://docs.expo.dev/build/introduction/):
50
+
51
+ - `build:debug` - build [dev-client](https://docs.expo.dev/develop/development-builds/create-a-build/) for local development
52
+ - `build:internal` - build development version for [internal distribution](https://docs.expo.dev/tutorial/eas/internal-distribution-builds/) (APK/Ad-Hoc build)
53
+ - `build:dev` - build development version for internal testing (AAB/IPA build)
54
+ - `build:prod` - build production version for stores (AAB/IPA build)
55
+
56
+ **Tip**: you can [create builds locally](https://docs.expo.dev/build-reference/local-builds/) by passing `--local` flag when starting build command.
51
57
 
52
58
  ### 3. Distribute
53
59
 
54
- #### Internal testing
60
+ #### Internal
61
+
62
+ Create an internal or debug build and share the build file within your team.
63
+
64
+ #### Stores
65
+
66
+ Created builds can be submitted to stores using [EAS Submit](https://docs.expo.dev/submit/introduction/):
67
+
68
+ - `submit:dev` - select and submit development build for internal testing in App Store/Google Play. Build will be distributed automatically for all testers.
69
+ - `submit:prod` - select and submit production build to App Store/Google Play. After that you can publish the release manually.
55
70
 
56
- - Android: share .apk builds with testers
57
- - iOS: send created builds to Testflight using `submit:ios:dev`
71
+ **Tip**: you can skip this step by passing the `--auto-submit` flag when creating builds.
72
+ This will automatically send created builds to App Store/Google Play. Example:
58
73
 
59
- #### Production
74
+ - `build:dev --auto-submit` - build development version and submit for internal testing in App Store/Google Play.
75
+ - `build:prod --auto-submit` - build production version and submit to App Store/Google Play. Release should be published manually.
60
76
 
61
- - Android: Download production build artifact and upload it to Google Play Console
62
- - iOS: submit production builds App Store Connect using `submit:ios:prod`
77
+ **Note**: initial setup is required for [Android](https://docs.expo.dev/submit/android/) and [iOS](https://docs.expo.dev/submit/ios)
63
78
 
64
79
  ### OTA updates
65
80
 
@@ -2,10 +2,7 @@
2
2
  "build": {
3
3
  "development": {
4
4
  "channel": "development",
5
- "distribution": "internal",
6
- "ios": {
7
- "distribution": "store"
8
- },
5
+ "distribution": "store",
9
6
  "env": {
10
7
  "EXPO_PUBLIC_APP_ENV": "development"
11
8
  }
@@ -13,16 +10,11 @@
13
10
  "debug": {
14
11
  "extends": "development",
15
12
  "developmentClient": true,
16
- "ios": {
17
- "distribution": "internal"
18
- }
13
+ "distribution": "internal"
19
14
  },
20
- "staging": {
21
- "channel": "staging",
22
- "distribution": "store",
23
- "env": {
24
- "EXPO_PUBLIC_APP_ENV": "staging"
25
- }
15
+ "internal": {
16
+ "extends": "development",
17
+ "distribution": "internal"
26
18
  },
27
19
  "production": {
28
20
  "channel": "production",
@@ -33,6 +25,25 @@
33
25
  }
34
26
  },
35
27
  "submit": {
36
- "production": {}
28
+ "development": {
29
+ "android": {
30
+ "track": "internal",
31
+ "releaseStatus": "draft"
32
+ },
33
+ "ios": {
34
+ "ascAppId": "YOUR_APP_ID",
35
+ "appleTeamId": "YOUR_TEAM_ID"
36
+ }
37
+ },
38
+ "production": {
39
+ "android": {
40
+ "track": "production",
41
+ "releaseStatus": "draft"
42
+ },
43
+ "ios": {
44
+ "ascAppId": "YOUR_APP_ID",
45
+ "appleTeamId": "YOUR_TEAM_ID"
46
+ }
47
+ }
37
48
  }
38
49
  }
@@ -29,19 +29,20 @@ function expoAppGenerator(tree, options) {
29
29
  yield (0, generators_1.runRNStylesGenerator)(tree, options);
30
30
  const shouldGenerateStoreLib = (yield (0, utils_1.askQuestion)('Do you want to create store lib? (y/n): ')) === 'y';
31
31
  if (shouldGenerateStoreLib) {
32
- (0, child_process_1.execSync)(`npx nx g store ${options.name} ${options.directory} ${enums_1.BaseGeneratorType.EXPO_APP}`, { stdio: 'inherit' });
32
+ yield (0, generators_1.runStoreGenerator)(tree, Object.assign(Object.assign({}, options), { baseGeneratorType: enums_1.BaseGeneratorType.EXPO_APP }));
33
33
  }
34
34
  const shouldGenerateApiClientLib = shouldGenerateStoreLib && (yield (0, utils_1.askQuestion)('Do you want to create api client lib? (y/n): ')) === 'y';
35
35
  if (shouldGenerateApiClientLib) {
36
36
  yield (0, generators_1.runApiClientGenerator)(tree, options);
37
37
  }
38
38
  const shouldGenerateAuthLibs = shouldGenerateApiClientLib && (yield (0, utils_1.askQuestion)('Do you want to create auth lib? (y/n): ')) === 'y';
39
- if (shouldGenerateAuthLibs) {
40
- yield (0, generators_1.runAuthGenerator)(tree, options);
41
- }
42
39
  const shouldGenerateFormUtilsLib = (yield (0, utils_1.askQuestion)('Do you want to create a lib with the form utils? (y/n): ')) === 'y';
43
40
  if (shouldGenerateFormUtilsLib) {
44
- (0, generators_1.runFormUtilsGenerator)(tree, options);
41
+ yield (0, generators_1.runFormUtilsGenerator)(tree, options);
42
+ }
43
+ const shouldGenerateUIKittenLib = (yield (0, utils_1.askQuestion)('Do you want to install @ui-kitten? (y/n): ')) === 'y';
44
+ if (shouldGenerateUIKittenLib) {
45
+ yield (0, generators_1.runUIKittenGenerator)(tree, options);
45
46
  }
46
47
  // Workaround: Even with the '--e2eTestRunner=none' parameter, the test folder is created. We delete it manually.
47
48
  if ((0, fs_1.existsSync)(appTestFolder)) {
@@ -65,7 +66,7 @@ function expoAppGenerator(tree, options) {
65
66
  (0, devkit_1.writeJson)(tree, appPackagePath, appPackageJson);
66
67
  // Add app files
67
68
  (0, devkit_1.generateFiles)(tree, path.join(__dirname, 'app-files'), appRoot, Object.assign(Object.assign({}, options), { formatName: utils_1.formatName,
68
- formatAppIdentifier: utils_1.formatAppIdentifier, formatDirectory: () => libPath, isUIKittenEnabled: false, isStoreEnabled: shouldGenerateStoreLib, appDirectory: options.directory }));
69
+ formatAppIdentifier: utils_1.formatAppIdentifier, formatDirectory: () => libPath, isUIKittenEnabled: shouldGenerateUIKittenLib, isStoreEnabled: shouldGenerateStoreLib, appDirectory: options.directory }));
69
70
  (0, utils_1.addNxAppTag)(tree, options.directory);
70
71
  (0, devkit_1.generateFiles)(tree, path.join(__dirname, 'i18n'), i18nRoot, {});
71
72
  // Add dependencies
@@ -75,7 +76,9 @@ function expoAppGenerator(tree, options) {
75
76
  return () => {
76
77
  (0, devkit_1.installPackagesTask)(tree);
77
78
  (0, child_process_1.execSync)('npx expo install --fix', { stdio: 'inherit' });
78
- (0, child_process_1.execSync)(`npx nx g ui-kitten ${options.name} ${options.directory}`, { stdio: 'inherit' });
79
+ if (shouldGenerateAuthLibs) {
80
+ (0, child_process_1.execSync)(`npx nx g auth ${options.name} ${options.directory}`, { stdio: 'inherit' });
81
+ }
79
82
  };
80
83
  });
81
84
  }
@@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C1B,IAAA,wBAAQ,EAAC,wBAAwB,EAAE,EAAE,KAAK,EAAE,SAAS,EAAE,CAAC,CAAC;YAEzD,IAAI,sBAAsB,EAAE,CAAC;gBAC3B,IAAA,wBAAQ,EAAC,iBAAiB,OAAO,CAAC,IAAI,IAAI,OAAO,CAAC,SAAS,EAAE,EAAE,EAAE,KAAK,EAAE,SAAS,EAAE,CAAC,CAAC;YACvF,CAAC;QACH,CAAC,CAAC;IACJ,CAAC;CAAA;AArHD,4CAqHC;AAED,kBAAe,gBAAgB,CAAC"}
@@ -2,11 +2,12 @@ declare const _default: {
2
2
  start: string;
3
3
  'start:prod': string;
4
4
  'build:dev': string;
5
+ 'build:internal': string;
5
6
  'build:debug': string;
6
7
  'build:prod': string;
7
8
  'update:dev': string;
8
9
  'update:prod': string;
9
- 'submit:ios:dev': string;
10
- 'submit:ios:prod': string;
10
+ 'submit:dev': string;
11
+ 'submit:prod': string;
11
12
  };
12
13
  export default _default;
@@ -4,11 +4,12 @@ exports.default = {
4
4
  'start': 'cross-env EXPO_PUBLIC_APP_ENV=development npx expo start',
5
5
  'start:prod': 'cross-env EXPO_PUBLIC_APP_ENV=production npx expo start',
6
6
  'build:dev': 'eas build --no-wait -p all --profile=development',
7
+ 'build:internal': 'npm run build:dev -- --profile=internal',
7
8
  'build:debug': 'npm run build:dev -- --profile=debug',
8
9
  'build:prod': 'npm run build:dev -- --profile=production',
9
10
  'update:dev': 'cross-env EXPO_PUBLIC_APP_ENV=development eas update --branch development',
10
11
  'update:prod': 'cross-env EXPO_PUBLIC_APP_ENV=production eas update --branch production',
11
- 'submit:ios:dev': 'cross-env EXPO_PUBLIC_APP_ENV=development eas submit --no-wait -p ios --profile=development',
12
- 'submit:ios:prod': 'cross-env EXPO_PUBLIC_APP_ENV=production eas submit --no-wait -p ios --profile=production',
12
+ 'submit:dev': 'cross-env EXPO_PUBLIC_APP_ENV=development eas submit --no-wait --profile=development',
13
+ 'submit:prod': 'cross-env EXPO_PUBLIC_APP_ENV=production eas submit --no-wait --profile=production',
13
14
  };
14
15
  //# sourceMappingURL=scripts.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"scripts.js","sourceRoot":"","sources":["../../../../../plugin/src/generators/expo-app/scripts.ts"],"names":[],"mappings":";;AAAA,kBAAe;IACb,OAAO,EAAE,0DAA0D;IACnE,YAAY,EAAE,yDAAyD;IACvE,WAAW,EAAE,kDAAkD;IAC/D,aAAa,EAAE,sCAAsC;IACrD,YAAY,EAAE,2CAA2C;IACzD,YAAY,EAAE,2EAA2E;IACzF,aAAa,EAAE,yEAAyE;IACxF,gBAAgB,EAAE,6FAA6F;IAC/G,iBAAiB,EAAE,2FAA2F;CAC/G,CAAC"}
1
+ {"version":3,"file":"scripts.js","sourceRoot":"","sources":["../../../../../plugin/src/generators/expo-app/scripts.ts"],"names":[],"mappings":";;AAAA,kBAAe;IACb,OAAO,EAAE,0DAA0D;IACnE,YAAY,EAAE,yDAAyD;IACvE,WAAW,EAAE,kDAAkD;IAC/D,gBAAgB,EAAE,yCAAyC;IAC3D,aAAa,EAAE,sCAAsC;IACrD,YAAY,EAAE,2CAA2C;IACzD,YAAY,EAAE,2EAA2E;IACzF,aAAa,EAAE,yEAAyE;IACxF,YAAY,EAAE,sFAAsF;IACpG,aAAa,EAAE,oFAAoF;CACpG,CAAC"}