@cfxjs/sirius-next-i18n 0.1.19 → 0.1.20
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/.turbo/turbo-build.log +1 -1
- package/cspace/en/translation.json +1 -1
- package/cspace/zh_cn/translation.json +1 -1
- package/dist/cspace/en/translation.json +1 -1
- package/dist/cspace/zh_cn/index.d.ts +2 -0
- package/dist/cspace/zh_cn/index.d.ts.map +1 -0
- package/dist/cspace/zh_cn/index.js +14 -0
- package/dist/cspace/zh_cn/translation.json +2369 -0
- package/dist/cspace/zh_cn/translationForDotNet.json +2289 -0
- package/node_modules/@cfxjs/sirius-next-eslint-config/README.md +3 -0
- package/node_modules/@cfxjs/sirius-next-eslint-config/library.js +34 -0
- package/node_modules/@cfxjs/sirius-next-eslint-config/package.json +18 -0
- package/node_modules/@cfxjs/sirius-next-eslint-config/react-internal.js +43 -0
- package/node_modules/@cfxjs/sirius-next-typescript-config/base.json +20 -0
- package/node_modules/@cfxjs/sirius-next-typescript-config/package.json +9 -0
- package/node_modules/@cfxjs/sirius-next-typescript-config/react-library.json +8 -0
- package/node_modules/@turbo/gen/LICENSE +373 -0
- package/node_modules/@turbo/gen/README.md +38 -0
- package/node_modules/@turbo/gen/dist/cli.d.ts +1 -0
- package/node_modules/@turbo/gen/dist/cli.js +127 -0
- package/node_modules/@turbo/gen/dist/templates/simple-js/config.js +43 -0
- package/node_modules/@turbo/gen/dist/templates/simple-js/templates/turborepo-generators.hbs +5 -0
- package/node_modules/@turbo/gen/dist/templates/simple-ts/config.ts +45 -0
- package/node_modules/@turbo/gen/dist/templates/simple-ts/templates/turborepo-generators.hbs +5 -0
- package/node_modules/@turbo/gen/dist/types.d.ts +2 -0
- package/node_modules/@turbo/gen/dist/types.js +1 -0
- package/node_modules/@turbo/gen/package.json +57 -0
- package/package.json +8 -8
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
module.exports = function generator(plop) {
|
|
2
|
+
plop.setGenerator("example", {
|
|
3
|
+
description:
|
|
4
|
+
"An example Turborepo generator - creates a new file at the root of the project",
|
|
5
|
+
prompts: [
|
|
6
|
+
{
|
|
7
|
+
type: "input",
|
|
8
|
+
name: "file",
|
|
9
|
+
message: "What is the name of the new file to create?",
|
|
10
|
+
validate: (input) => {
|
|
11
|
+
if (input.includes(".")) {
|
|
12
|
+
return "file name cannot include an extension";
|
|
13
|
+
}
|
|
14
|
+
if (input.includes(" ")) {
|
|
15
|
+
return "file name cannot include spaces";
|
|
16
|
+
}
|
|
17
|
+
if (!input) {
|
|
18
|
+
return "file name is required";
|
|
19
|
+
}
|
|
20
|
+
return true;
|
|
21
|
+
},
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
type: "list",
|
|
25
|
+
name: "type",
|
|
26
|
+
message: "What type of file should be created?",
|
|
27
|
+
choices: [".md", ".txt"],
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
type: "input",
|
|
31
|
+
name: "title",
|
|
32
|
+
message: "What should be the title of the new file?",
|
|
33
|
+
},
|
|
34
|
+
],
|
|
35
|
+
actions: [
|
|
36
|
+
{
|
|
37
|
+
type: "add",
|
|
38
|
+
path: "{{ turbo.paths.root }}/{{ dashCase file }}{{ type }}",
|
|
39
|
+
templateFile: "templates/turborepo-generators.hbs",
|
|
40
|
+
},
|
|
41
|
+
],
|
|
42
|
+
});
|
|
43
|
+
};
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { PlopTypes } from "@turbo/gen";
|
|
2
|
+
|
|
3
|
+
export default function generator(plop: PlopTypes.NodePlopAPI): void {
|
|
4
|
+
plop.setGenerator("example", {
|
|
5
|
+
description:
|
|
6
|
+
"An example Turborepo generator - creates a new file at the root of the project",
|
|
7
|
+
prompts: [
|
|
8
|
+
{
|
|
9
|
+
type: "input",
|
|
10
|
+
name: "file",
|
|
11
|
+
message: "What is the name of the new file to create?",
|
|
12
|
+
validate: (input: string) => {
|
|
13
|
+
if (input.includes(".")) {
|
|
14
|
+
return "file name cannot include an extension";
|
|
15
|
+
}
|
|
16
|
+
if (input.includes(" ")) {
|
|
17
|
+
return "file name cannot include spaces";
|
|
18
|
+
}
|
|
19
|
+
if (!input) {
|
|
20
|
+
return "file name is required";
|
|
21
|
+
}
|
|
22
|
+
return true;
|
|
23
|
+
},
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
type: "list",
|
|
27
|
+
name: "type",
|
|
28
|
+
message: "What type of file should be created?",
|
|
29
|
+
choices: [".md", ".txt"],
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
type: "input",
|
|
33
|
+
name: "title",
|
|
34
|
+
message: "What should be the title of the new file?",
|
|
35
|
+
},
|
|
36
|
+
],
|
|
37
|
+
actions: [
|
|
38
|
+
{
|
|
39
|
+
type: "add",
|
|
40
|
+
path: "{{ turbo.paths.root }}/{{ dashCase file }}{{ type }}",
|
|
41
|
+
templateFile: "templates/turborepo-generators.hbs",
|
|
42
|
+
},
|
|
43
|
+
],
|
|
44
|
+
});
|
|
45
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var y=Object.defineProperty;var r=Object.getOwnPropertyDescriptor;var s=Object.getOwnPropertyNames;var m=Object.prototype.hasOwnProperty;var P=(o,p,l,t)=>{if(p&&typeof p=="object"||typeof p=="function")for(let e of s(p))!m.call(o,e)&&e!==l&&y(o,e,{get:()=>p[e],enumerable:!(t=r(p,e))||t.enumerable});return o};var T=o=>P(y({},"__esModule",{value:!0}),o);var a={};module.exports=T(a);
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@turbo/gen",
|
|
3
|
+
"version": "1.12.5",
|
|
4
|
+
"description": "Extend a Turborepo",
|
|
5
|
+
"homepage": "https://turbo.build/repo",
|
|
6
|
+
"license": "MPL-2.0",
|
|
7
|
+
"repository": {
|
|
8
|
+
"type": "git",
|
|
9
|
+
"url": "https://github.com/vercel/turbo",
|
|
10
|
+
"directory": "packages/turbo-gen"
|
|
11
|
+
},
|
|
12
|
+
"bugs": {
|
|
13
|
+
"url": "https://github.com/vercel/turbo/issues"
|
|
14
|
+
},
|
|
15
|
+
"bin": "dist/cli.js",
|
|
16
|
+
"types": "dist/types.d.ts",
|
|
17
|
+
"dependencies": {
|
|
18
|
+
"chalk": "2.4.2",
|
|
19
|
+
"commander": "^10.0.0",
|
|
20
|
+
"fs-extra": "^10.1.0",
|
|
21
|
+
"inquirer": "^8.2.4",
|
|
22
|
+
"minimatch": "^9.0.0",
|
|
23
|
+
"node-plop": "^0.26.3",
|
|
24
|
+
"proxy-agent": "^6.2.2",
|
|
25
|
+
"ts-node": "^10.9.1",
|
|
26
|
+
"update-check": "^1.5.4",
|
|
27
|
+
"validate-npm-package-name": "^5.0.0",
|
|
28
|
+
"@turbo/workspaces": "1.12.5"
|
|
29
|
+
},
|
|
30
|
+
"devDependencies": {
|
|
31
|
+
"@types/fs-extra": "^9.0.13",
|
|
32
|
+
"@types/inquirer": "^8.2.5",
|
|
33
|
+
"@types/jest": "^27.4.0",
|
|
34
|
+
"@types/node": "^18.17.2",
|
|
35
|
+
"@types/validate-npm-package-name": "^4.0.0",
|
|
36
|
+
"jest": "^27.4.3",
|
|
37
|
+
"ts-jest": "^27.1.1",
|
|
38
|
+
"tsup": "^6.7.0",
|
|
39
|
+
"typescript": "5.3.3",
|
|
40
|
+
"@turbo/eslint-config": "0.0.0",
|
|
41
|
+
"@turbo/test-utils": "0.0.0",
|
|
42
|
+
"@turbo/tsconfig": "0.0.0",
|
|
43
|
+
"@turbo/utils": "0.0.0"
|
|
44
|
+
},
|
|
45
|
+
"files": [
|
|
46
|
+
"dist"
|
|
47
|
+
],
|
|
48
|
+
"publishConfig": {
|
|
49
|
+
"access": "public"
|
|
50
|
+
},
|
|
51
|
+
"scripts": {
|
|
52
|
+
"build": "tsup",
|
|
53
|
+
"test": "jest",
|
|
54
|
+
"lint": "eslint src/",
|
|
55
|
+
"check-types": "tsc --noEmit"
|
|
56
|
+
}
|
|
57
|
+
}
|
package/package.json
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cfxjs/sirius-next-i18n",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.20",
|
|
4
4
|
"files": [
|
|
5
5
|
"*/**"
|
|
6
6
|
],
|
|
7
|
-
"scripts": {
|
|
8
|
-
"build": "tsc"
|
|
9
|
-
},
|
|
10
7
|
"devDependencies": {
|
|
11
|
-
"@cfxjs/sirius-next-eslint-config": "workspace:*",
|
|
12
|
-
"@cfxjs/sirius-next-typescript-config": "workspace:*",
|
|
13
8
|
"@turbo/gen": "^1.12.4",
|
|
14
|
-
"typescript": "^5.4.2"
|
|
9
|
+
"typescript": "^5.4.2",
|
|
10
|
+
"@cfxjs/sirius-next-typescript-config": "0.0.0",
|
|
11
|
+
"@cfxjs/sirius-next-eslint-config": "0.0.0"
|
|
15
12
|
},
|
|
16
13
|
"publishConfig": {
|
|
17
14
|
"access": "public"
|
|
15
|
+
},
|
|
16
|
+
"scripts": {
|
|
17
|
+
"build": "tsc"
|
|
18
18
|
}
|
|
19
|
-
}
|
|
19
|
+
}
|