201 Commits

Author SHA1 Message Date
Convly
4b17487953 Fix typo: litteral -> literal 2022-07-07 01:22:13 +02:00
Convly
fa240cfee3 Add unit tests for typescript generators utils 2022-07-07 01:20:36 +02:00
Convly
3b48fd1fcb Fix toTypeLiteral util - handle undefined and null, throw on function types 2022-07-07 01:19:57 +02:00
Convly
d587de6b19 Handle UID attributes when generating attributes types definition 2022-07-06 15:58:46 +02:00
Convly
dde36c88f1 Fix morph type detection 2022-07-06 15:31:57 +02:00
Convly
531977f9da Use lodash pipe instead of lodash flow 2022-07-06 15:26:56 +02:00
Convly
bac691d797 Move the attributes mappers outside of the generation function 2022-07-06 15:25:34 +02:00
Convly
93af3acbd1 Use _ instead of fp as variable name for the lodash import 2022-07-06 15:23:20 +02:00
Convly
1fe3db7126 Slightly improve performance when merging schemas definitions with new lines 2022-07-06 15:14:39 +02:00
Convly
870318b05a Replace 'debug' mode by a 'verbose' one 2022-07-06 14:56:26 +02:00
Convly
6e0e9d3526 Remove dependency to @strapi/strapi 2022-07-06 14:54:51 +02:00
dependabot[bot]
29fed64259
Bump @babel/parser from 7.16.7 to 7.18.6
Bumps [@babel/parser](https://github.com/babel/babel/tree/HEAD/packages/babel-parser) from 7.16.7 to 7.18.6.
- [Release notes](https://github.com/babel/babel/releases)
- [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md)
- [Commits](https://github.com/babel/babel/commits/v7.18.6/packages/babel-parser)

---
updated-dependencies:
- dependency-name: "@babel/parser"
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-07-06 09:07:12 +00:00
Convly
7ad8c26abc Merge branch 'typescript/types/schema' into typescript/schema-types-generation 2022-06-30 16:09:31 +02:00
Convly
bdb5a3ee89 Merge branch 'releases/4.3.0' into features/typescript 2022-06-30 16:08:51 +02:00
Convly
376ff3133c v4.2.2 2022-06-29 15:28:03 +02:00
Convly
ac470bd343 Set debug mode to false by default for generateSchemasDefinitions 2022-06-20 13:59:26 +02:00
Convly
6c9b500586 Update generator. Use typescript compiler API to generate definitions 2022-06-17 19:00:27 +02:00
Convly
44d216a028 Merge branch 'typescript/types/schema' into typescript/schema-types-generation 2022-06-16 18:03:35 +02:00
Convly
6f01b3dbaa Merge branch 'master' of github.com:strapi/strapi into features/typescript 2022-06-16 18:01:02 +02:00
Jean-Sébastien Herbaux
c5ffea6ff2
Merge pull request #13566 from strapi/4.2.0
4.2.0
2022-06-15 15:17:49 +02:00
Convly
642b6a37e0 4.2.0 2022-06-15 15:09:07 +02:00
Convly
ebe8dd1cc8 Merge branch 'typescript/types/schema' into typescript/schema-types-generation 2022-06-13 15:04:42 +02:00
Convly
e5a7d43355 Update extended tsconfigs paths & fix kitchensink-ts app env/config variables 2022-06-08 11:30:01 +02:00
Convly
6fe5a1e0cd Move createTSConfigFile method to ts utils package 2022-06-07 17:38:48 +02:00
Alexandre Bodin
c12bde7e87 Merge branch 'master' into releases/4.2.0 2022-06-07 12:15:44 +02:00
Convly
7b89311c60 Merge branch 'typescript/types/schema' into typescript/schema-types-generation 2022-06-07 09:51:15 +02:00
Convly
7a99759c1e Merge branch 'releases/4.2.0' of github.com:strapi/strapi into features/typescript 2022-06-07 09:49:55 +02:00
Convly
3995c8cd27 Add dedicated command to generate schemas types 2022-06-03 13:54:35 +02:00
Convly
da364912ee Merge branch 'master' of github.com:strapi/strapi into features/typescript 2022-05-31 15:29:18 +02:00
Alexandre Bodin
ab698015cf v4.1.12 2022-05-25 17:17:49 +02:00
Convly
66e3aa5dcb Merge branch 'master' into features/typescript 2022-05-24 08:02:38 +02:00
Convly
eb012fa242 Add incremental build by default in the generated tsconfig.json 2022-05-23 16:55:42 +02:00
Convly
37b6802099 Update minimum node version in the package.json files 2022-05-23 14:40:37 +02:00
Bassel Kanso
716e4fae8f refactor resolveOutDir 2022-05-18 11:06:42 +03:00
Bassel Kanso
12c64a2d11 refactor resolveOutDir in typescript/utils 2022-05-17 16:40:09 +03:00
Convly
698ae33e00 v4.1.11 2022-05-13 18:08:05 +02:00
Convly
06abcda86a v4.1.10 2022-05-11 16:30:38 +02:00
Bassel Kanso
3f53cff0c9 update jsdoc 2022-05-09 02:42:19 +03:00
Bassel Kanso
77740ed044 Merge branch 'features/typescript' into typescript/fix-cli 2022-05-05 17:06:01 +03:00
Bassel Kanso
c444692191 make compile function accept configOptions, and pass incremental:true when compiling for the cli commands 2022-05-05 17:03:24 +03:00
Convly
377e8e9da7 Merge branch 'master' into features/typescript 2022-05-02 15:40:18 +02:00
Alexandre Bodin
9fa53be186 v4.1.9 2022-04-27 18:25:42 +02:00
Convly
4fa2804f35 Merge branch 'master' into features/typescript 2022-04-15 15:47:16 +02:00
Alexandre Bodin
3f204a0a48 v4.1.8 2022-04-13 16:45:31 +02:00
Convly
380d02eded Fix correct tsconfig filename in @strapi/typescript-utils/get-config-path 2022-04-05 16:36:38 +02:00
Convly
e84a051956 Update tsconfig base files in @strapi/typescript-utils 2022-04-05 16:32:47 +02:00
Convly
54fefcf5d2 isTypeScriptProject -> isUsingTypeScript 2022-04-05 16:30:50 +02:00
Convly
6f5e69b659 Remove copy-resource, favicon path resolution is already handled by the favicon middleware 2022-04-04 17:19:51 +02:00
Convly
a9525c0704 Remove public folder & package.json file from the copied resources in the build process 2022-04-04 17:14:06 +02:00
Convly
7340836b14 Init new develop 2022-04-04 12:07:38 +02:00