@modern-js/new-action 1.3.7 → 1.3.10

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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,42 @@
1
1
  # @modern-js/new-action
2
2
 
3
+ ## 1.3.10
4
+
5
+ ### Patch Changes
6
+
7
+ - a1198d509: feat: bump babel 7.18.0
8
+ - c7e38b4e6: feat: upgrade codesmith pkg version
9
+ - Updated dependencies [a1198d509]
10
+ - Updated dependencies [c7e38b4e6]
11
+ - @modern-js/generator-common@1.4.12
12
+ - @modern-js/generator-utils@1.2.6
13
+
14
+ ## 1.3.9
15
+
16
+ ### Patch Changes
17
+
18
+ - d32f35134: chore: add modern/jest/eslint/ts config files to .npmignore
19
+ - Updated dependencies [d32f35134]
20
+ - Updated dependencies [6ae4a34ae]
21
+ - Updated dependencies [b80229c79]
22
+ - Updated dependencies [948cc4436]
23
+ - @modern-js/generator-common@1.4.11
24
+ - @modern-js/generator-utils@1.2.5
25
+ - @modern-js/utils@1.7.3
26
+
27
+ ## 1.3.8
28
+
29
+ ### Patch Changes
30
+
31
+ - 6b0bb5e3b: feat: bump codesmith version
32
+ - 69a728375: fix: remove exports.jsnext:source after publish
33
+ - Updated dependencies [cd7346b0d]
34
+ - Updated dependencies [6b0bb5e3b]
35
+ - Updated dependencies [69a728375]
36
+ - @modern-js/utils@1.7.2
37
+ - @modern-js/generator-common@1.4.10
38
+ - @modern-js/generator-utils@1.2.4
39
+
3
40
  ## 1.3.7
4
41
 
5
42
  ### Patch Changes
@@ -3,7 +3,7 @@ import { CodeSmith } from '@modern-js/codesmith';
3
3
  import { i18n } from '@modern-js/generator-common';
4
4
  import { getPackageManager } from '@modern-js/generator-utils';
5
5
  import { alreadyRepo } from "./utils";
6
- const REPO_GENERAROE = '@modern-js/repo-generator';
6
+ const REPO_GENERATOR = '@modern-js/repo-generator';
7
7
  export const MonorepoNewAction = async options => {
8
8
  const {
9
9
  locale = 'zh',
@@ -41,7 +41,7 @@ export const MonorepoNewAction = async options => {
41
41
  distTag,
42
42
  plugins
43
43
  });
44
- let generator = REPO_GENERAROE;
44
+ let generator = REPO_GENERATOR;
45
45
 
46
46
  if (process.env.CODESMITH_ENV === 'development') {
47
47
  generator = require.resolve(generator);
@@ -15,7 +15,7 @@ var _generatorUtils = require("@modern-js/generator-utils");
15
15
 
16
16
  var _utils = require("./utils");
17
17
 
18
- const REPO_GENERAROE = '@modern-js/repo-generator';
18
+ const REPO_GENERATOR = '@modern-js/repo-generator';
19
19
 
20
20
  const MonorepoNewAction = async options => {
21
21
  const {
@@ -55,7 +55,7 @@ const MonorepoNewAction = async options => {
55
55
  distTag,
56
56
  plugins
57
57
  });
58
- let generator = REPO_GENERAROE;
58
+ let generator = REPO_GENERATOR;
59
59
 
60
60
  if (process.env.CODESMITH_ENV === 'development') {
61
61
  generator = require.resolve(generator);
package/package.json CHANGED
@@ -11,7 +11,7 @@
11
11
  "modern",
12
12
  "modern.js"
13
13
  ],
14
- "version": "1.3.7",
14
+ "version": "1.3.10",
15
15
  "jsnext:source": "./src/index.ts",
16
16
  "types": "./dist/types/index.d.ts",
17
17
  "main": "./dist/js/node/index.js",
@@ -28,15 +28,15 @@
28
28
  }
29
29
  },
30
30
  "dependencies": {
31
- "@babel/runtime": "^7",
32
- "@modern-js/codesmith": "^1.0.8",
33
- "@modern-js/codesmith-api-app": "^1.0.8",
34
- "@modern-js/generator-common": "^1.4.9",
35
- "@modern-js/generator-utils": "^1.2.3",
36
- "@modern-js/utils": "^1.6.0"
31
+ "@babel/runtime": "^7.18.0",
32
+ "@modern-js/codesmith": "^1.2.2",
33
+ "@modern-js/codesmith-api-app": "^1.2.4",
34
+ "@modern-js/generator-common": "^1.4.12",
35
+ "@modern-js/generator-utils": "^1.2.6",
36
+ "@modern-js/utils": "^1.7.3"
37
37
  },
38
38
  "devDependencies": {
39
- "@types/jest": "^26",
39
+ "@types/jest": "^27",
40
40
  "@types/node": "^14",
41
41
  "typescript": "^4",
42
42
  "@scripts/build": "0.0.0",
@@ -53,10 +53,33 @@
53
53
  "registry": "https://registry.npmjs.org/",
54
54
  "access": "public"
55
55
  },
56
+ "wireit": {
57
+ "build": {
58
+ "command": "modern build",
59
+ "files": [
60
+ "src/**/*",
61
+ "tsconfig.json",
62
+ "package.json"
63
+ ],
64
+ "output": [
65
+ "dist/**/*"
66
+ ]
67
+ },
68
+ "test": {
69
+ "command": "jest --passWithNoTests",
70
+ "files": [
71
+ "src/**/*",
72
+ "tsconfig.json",
73
+ "package.json",
74
+ "tests/**/*"
75
+ ],
76
+ "output": []
77
+ }
78
+ },
56
79
  "scripts": {
57
80
  "new": "modern new",
58
- "build": "modern build",
59
- "test": "jest --passWithNoTests"
81
+ "build": "wireit",
82
+ "test": "wireit"
60
83
  },
61
84
  "readme": "\n<p align=\"center\">\n <a href=\"https://modernjs.dev\" target=\"blank\"><img src=\"https://lf3-static.bytednsdoc.com/obj/eden-cn/ylaelkeh7nuhfnuhf/modernjs-cover.png\" width=\"300\" alt=\"Modern.js Logo\" /></a>\n</p>\n<p align=\"center\">\n现代 Web 工程体系\n <br/>\n <a href=\"https://modernjs.dev\" target=\"blank\">\n modernjs.dev\n </a>\n</p>\n<p align=\"center\">\n The meta-framework suite designed from scratch for frontend-focused modern web development\n</p>\n\n# Introduction\n\n> The doc site ([modernjs.dev](https://modernjs.dev)) and articles are only available in Chinese for now, we are planning to add English versions soon.\n\n- [Modern.js: Hello, World!](https://zhuanlan.zhihu.com/p/426707646)\n\n## Getting Started\n\n- [Quick Start](https://modernjs.dev/docs/start)\n- [Guides](https://modernjs.dev/docs/guides)\n- [API References](https://modernjs.dev/docs/apis)\n\n## Contributing\n\n- [Contributing Guide](https://github.com/modern-js-dev/modern.js/blob/main/CONTRIBUTING.md)\n"
62
85
  }
package/.eslintrc.js DELETED
@@ -1,8 +0,0 @@
1
- module.exports = {
2
- root: true,
3
- extends: ['@modern-js'],
4
- parserOptions: {
5
- tsconfigRootDir: __dirname,
6
- project: ['./tsconfig.json'],
7
- },
8
- };
package/jest.config.js DELETED
@@ -1,7 +0,0 @@
1
- const sharedConfig = require('@scripts/jest-config');
2
-
3
- /** @type {import('@jest/types').Config.InitialOptions} */
4
- module.exports = {
5
- ...sharedConfig,
6
- rootDir: __dirname,
7
- };
package/modern.config.js DELETED
@@ -1,2 +0,0 @@
1
- /** @type {import('@modern-js/module-tools').UserConfig} */
2
- module.exports = {};
package/tsconfig.json DELETED
@@ -1,12 +0,0 @@
1
- {
2
- "extends": "@modern-js/tsconfig/base",
3
- "compilerOptions": {
4
- "declaration": false,
5
- "jsx": "preserve",
6
- "baseUrl": "./",
7
- "isolatedModules": true,
8
- "esModuleInterop": true,
9
- "paths": {}
10
- },
11
- "include": ["src"]
12
- }