@modern-js/base-generator 1.4.2 → 1.4.3

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.
@@ -275968,10 +275968,13 @@ var _lodash = __webpack_require__(91462);
275968
275968
 
275969
275969
  var _utils = __webpack_require__(84032);
275970
275970
 
275971
+ function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
275972
+
275971
275973
  class I18n {
275972
275974
  constructor() {
275973
- this.language = 'en';
275974
- this.languageMap = {};
275975
+ _defineProperty(this, "language", 'en');
275976
+
275977
+ _defineProperty(this, "languageMap", {});
275975
275978
  }
275976
275979
 
275977
275980
  format(msg, vars) {
package/package.json CHANGED
@@ -11,7 +11,7 @@
11
11
  "modern",
12
12
  "modern.js"
13
13
  ],
14
- "version": "1.4.2",
14
+ "version": "1.4.3",
15
15
  "jsnext:source": "./src/index.ts",
16
16
  "types": "./src/index.ts",
17
17
  "main": "./dist/js/node/main.js",
@@ -23,9 +23,9 @@
23
23
  "@babel/runtime": "^7",
24
24
  "@modern-js/codesmith": "^1.0.10",
25
25
  "@modern-js/codesmith-api-app": "^1.0.10",
26
- "@modern-js/generator-common": "1.4.10",
26
+ "@modern-js/generator-common": "1.4.11",
27
27
  "@modern-js/codesmith-tools": "^1.1.2",
28
- "@types/jest": "^26",
28
+ "@types/jest": "^27",
29
29
  "@types/node": "^14",
30
30
  "typescript": "^4",
31
31
  "@scripts/build": "0.0.0",
@@ -43,11 +43,46 @@
43
43
  "registry": "https://registry.npmjs.org/",
44
44
  "access": "public"
45
45
  },
46
+ "wireit": {
47
+ "build": {
48
+ "command": "modern build",
49
+ "files": [
50
+ "src/**/*",
51
+ "tsconfig.json",
52
+ "package.json"
53
+ ],
54
+ "output": [
55
+ "dist/**/*",
56
+ "!dist/node/main.js"
57
+ ]
58
+ },
59
+ "build:csmith": {
60
+ "command": "csmith-tools build",
61
+ "files": [
62
+ "src/**/*",
63
+ "tsconfig.json",
64
+ "package.json"
65
+ ],
66
+ "output": [
67
+ "dist/node/main.js"
68
+ ]
69
+ },
70
+ "test": {
71
+ "command": "jest --passWithNoTests",
72
+ "files": [
73
+ "src/**/*",
74
+ "tsconfig.json",
75
+ "package.json",
76
+ "tests/**/*"
77
+ ],
78
+ "output": []
79
+ }
80
+ },
46
81
  "scripts": {
47
82
  "new": "modern new",
48
- "build": "modern build",
49
- "build:csmith": "csmith-tools build",
50
- "test": "jest --passWithNoTests"
83
+ "build": "wireit",
84
+ "build:csmith": "wireit",
85
+ "test": "wireit"
51
86
  },
52
87
  "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"
53
88
  }
@@ -35,8 +35,6 @@ output_resource/
35
35
  .idea/
36
36
 
37
37
  **/*/typings/auto-generated
38
- **/*/adapters/**/index.ts
39
- **/*/adapters/**/index.js
40
38
 
41
39
  .changeset/pre.json
42
40
 
@@ -11,17 +11,9 @@
11
11
  "Procfile*": "shellscript",
12
12
  "README": "markdown"
13
13
  },
14
- "files.exclude": {
15
- "**/*/adapters/**/index.ts": true,
16
- "**/*/adapters/**/index.js": true
17
- },
18
14
  "search.useIgnoreFiles": true,
19
15
  "search.exclude": {
20
- "**/build": true,
21
- "**/output": true,
22
16
  "**/dist": true,
23
- "**/yarn.lock": true,
24
- "**/package-lock.json": true,
25
17
  "**/*.log": true,
26
18
  "**/*.pid": true,
27
19
  "**/.git": true,
@@ -69,8 +61,6 @@
69
61
  "editor.defaultFormatter": "esbenp.prettier-vscode"
70
62
  },
71
63
  "eslint.alwaysShowStatus": true,
72
- // "eslint.nodePath": "./node_modules",
73
- // "eslint.packageManager": "yarn",
74
64
  "eslint.run": "onType",
75
65
  "eslint.options": {
76
66
  "rules": {
@@ -88,11 +78,6 @@
88
78
  "eslint.lintTask.enable": true,
89
79
  "javascript.validate.enable": false,
90
80
  "typescript.validate.enable": true,
91
- "flow.enabled": false,
92
- //
93
- "htmlhint.enable": true,
94
- //
95
- "stylelint.enable": false,
96
81
  "css.validate": false,
97
82
  "scss.validate": false,
98
83
  "less.validate": false,
@@ -117,7 +102,6 @@
117
102
  "editor.codeActionsOnSave": {
118
103
  "source.fixAll.eslint": true
119
104
  },
120
- "editor.codeActionsOnSaveTimeout": 5000,
121
105
  "editor.defaultFormatter": "EditorConfig.EditorConfig",
122
106
  "javascript.format.enable": false,
123
107
  "typescript.format.enable": false,
@@ -138,6 +122,5 @@
138
122
  "editor.formatOnSave": true
139
123
  },
140
124
  "emmet.triggerExpansionOnTab": true,
141
- "typescript.tsdk": "node_modules/typescript/lib",
142
- "deno.enable": false
125
+ "typescript.tsdk": "node_modules/typescript/lib"
143
126
  }