gant-core 0.2.36 → 2.0.0

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 (67) hide show
  1. package/.changeset/README.md +8 -0
  2. package/.changeset/config.json +11 -0
  3. package/CHANGELOG.md +8 -0
  4. package/eslint.config.mjs +26 -0
  5. package/lib/cli/acorn.js +2 -1
  6. package/lib/cli/angular.js +2 -1
  7. package/lib/cli/babel.js +2 -1
  8. package/lib/cli/config/defineConfig.js +103 -1
  9. package/lib/cli/config/index.js +2 -1
  10. package/lib/cli/copyfiles/index.js +2 -1
  11. package/lib/cli/create/config/index.js +3 -2
  12. package/lib/cli/create/index.js +1 -0
  13. package/lib/cli/create/module/index.js +2 -9
  14. package/lib/cli/estree.js +2 -1
  15. package/lib/cli/flow.js +2 -1
  16. package/lib/cli/glimmer.js +2 -1
  17. package/lib/cli/graphql.js +2 -1
  18. package/lib/cli/html.js +2 -1
  19. package/lib/cli/i18n/index.js +3 -2
  20. package/lib/cli/i18n/utils.js +2 -1
  21. package/lib/cli/index.d.ts +1836 -0
  22. package/lib/cli/index.js +2 -1
  23. package/lib/cli/markdown.js +2 -1
  24. package/lib/cli/meriyah.js +2 -1
  25. package/lib/cli/postcss.js +2 -1
  26. package/lib/cli/routes/index.js +2 -1
  27. package/lib/cli/template/template.vue.config.txt +1 -1
  28. package/lib/cli/template/types.d.txt +134 -132
  29. package/lib/cli/tsconfig/index.js +2 -1
  30. package/lib/cli/typescript.js +2 -1
  31. package/lib/cli/utils/detectPort.js +3 -0
  32. package/lib/cli/utils/getJavascriptfile.js +2 -1
  33. package/lib/cli/utils/index.js +2 -1
  34. package/lib/cli/webpack/Webpack.js +2 -1
  35. package/lib/cli/webpack/config/analyzer.config.js +1 -0
  36. package/lib/cli/webpack/config/browsers.js +1 -0
  37. package/lib/cli/webpack/config/cssRules.js +1 -0
  38. package/lib/cli/webpack/config/default.config.js +2 -1
  39. package/lib/cli/webpack/config/development.config.js +2 -1
  40. package/lib/cli/webpack/config/framework/index.js +3 -0
  41. package/lib/cli/webpack/config/framework/react.js +3 -0
  42. package/lib/cli/webpack/config/framework/vue.js +3 -0
  43. package/lib/cli/webpack/config/index.js +1 -0
  44. package/lib/cli/webpack/config/production.config.js +2 -1
  45. package/lib/cli/webpack/plugins/copy.js +2 -1
  46. package/lib/cli/webpack/plugins/index.js +2 -1
  47. package/lib/cli/yaml.js +2 -1
  48. package/lib/core/i18n/index.js +1 -1
  49. package/lib/core/index.js +1 -1
  50. package/lib/core/microservices/index.js +10 -1
  51. package/lib/core/request/index.js +1 -1
  52. package/lib/core/store/index.js +1 -1
  53. package/lib/core/theme/index.js +1 -1
  54. package/lib/core/utils/index.js +83 -1
  55. package/lib/types/index.d.ts +115 -104
  56. package/package.json +62 -44
  57. package/rollup.config.js +26 -9
  58. package/tsconfig.json +1 -0
  59. package/lib/core/cache/index.js.map +0 -1
  60. package/lib/core/event/index.js.map +0 -1
  61. package/lib/core/i18n/index.js.map +0 -1
  62. package/lib/core/index.js.map +0 -1
  63. package/lib/core/microservices/index.js.map +0 -1
  64. package/lib/core/request/index.js.map +0 -1
  65. package/lib/core/store/index.js.map +0 -1
  66. package/lib/core/theme/index.js.map +0 -1
  67. package/lib/core/utils/index.js.map +0 -1
@@ -0,0 +1,8 @@
1
+ # Changesets
2
+
3
+ Hello and welcome! This folder has been automatically generated by `@changesets/cli`, a build tool that works
4
+ with multi-package repos, or single-package repos to help you version and publish your code. You can
5
+ find the full documentation for it [in our repository](https://github.com/changesets/changesets).
6
+
7
+ We have a quick list of common questions to get you started engaging with this project in
8
+ [our documentation](https://github.com/changesets/changesets/blob/main/docs/common-questions.md).
@@ -0,0 +1,11 @@
1
+ {
2
+ "$schema": "https://unpkg.com/@changesets/config@3.1.4/schema.json",
3
+ "changelog": "@changesets/cli/changelog",
4
+ "commit": false,
5
+ "fixed": [],
6
+ "linked": [],
7
+ "access": "public",
8
+ "baseBranch": "master",
9
+ "updateInternalDependencies": "patch",
10
+ "ignore": []
11
+ }
package/CHANGELOG.md ADDED
@@ -0,0 +1,8 @@
1
+ # gant-core
2
+
3
+ ## 2.0.0
4
+
5
+ ### Major Changes
6
+
7
+ - 重构 cli 使用rspack 代替 webpack
8
+ 重组 core 功能,仅提供基础功能不再提供组装代码
@@ -0,0 +1,26 @@
1
+ import eslint from '@eslint/js';
2
+ import tseslint from 'typescript-eslint';
3
+
4
+ export default tseslint.config(
5
+ eslint.configs.recommended,
6
+ tseslint.configs.recommended,
7
+ {
8
+ ignores: ['node_modules/**', 'lib/**', 'dist/**'],
9
+ },
10
+ {
11
+ rules: {
12
+ '@typescript-eslint/no-explicit-any': 'off',
13
+ '@typescript-eslint/no-require-imports': 'off',
14
+ '@typescript-eslint/no-unused-vars': ['warn', { argsIgnorePattern: '^_' }],
15
+ '@typescript-eslint/no-unused-expressions': 'off',
16
+ '@typescript-eslint/no-wrapper-object-types': 'warn',
17
+ 'no-extra-boolean-cast': 'warn',
18
+ 'no-useless-escape': 'warn',
19
+ 'no-useless-assignment': 'warn',
20
+ 'prefer-const': 'warn',
21
+ 'no-undef': 'off',
22
+ 'no-console': 'off',
23
+ 'no-empty': 'warn',
24
+ },
25
+ }
26
+ );