generator-reshow 0.18.9 → 0.19.1
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/README.md +1 -1
- package/generators/app/index.js +2340 -43
- package/generators/app/templates/index.tpl +1 -1
- package/generators/babel-package-json/index.js +2294 -0
- package/generators/bun/index.js +2258 -0
- package/generators/bun/templates/README.md +16 -0
- package/generators/bun/templates/_gitignore +8 -0
- package/generators/bun/templates/src/index.js +7 -0
- package/generators/bun/templates/src/init.js +8 -0
- package/generators/bun/templates/tsconfig.json +34 -0
- package/generators/bun-package-json/index.js +2205 -0
- package/generators/compile-sh/index.js +2140 -8
- package/generators/docker/index.js +2172 -52
- package/generators/generator/index.js +2149 -46
- package/generators/gitlab-docker/index.js +2227 -42
- package/generators/hono/index.js +2297 -0
- package/generators/hono/templates/src/index.ts +10 -0
- package/generators/npm/index.js +2327 -49
- package/generators/package-json/index.js +2149 -92
- package/generators/package-json/templates/package.json +4 -28
- package/generators/types/app/__tests__/App.test.d.ts +8 -0
- package/generators/types/app/index.d.ts +32 -0
- package/generators/types/babel-package-json/__tests__/babel-package-json.test.d.ts +8 -0
- package/generators/types/babel-package-json/index.d.ts +8 -0
- package/generators/types/bun/__tests__/bun.test.d.ts +8 -0
- package/generators/types/bun/index.d.ts +27 -0
- package/generators/types/bun-package-json/__tests__/bun-package-json.test.d.ts +8 -0
- package/generators/types/bun-package-json/index.d.ts +8 -0
- package/generators/types/compile-sh/__tests__/compile-sh.test.d.ts +8 -0
- package/generators/types/compile-sh/index.d.ts +7 -0
- package/generators/types/docker/__tests__/docker.test.d.ts +8 -0
- package/generators/types/docker/commonDockerPrompt.d.ts +7 -0
- package/generators/types/docker/index.d.ts +27 -0
- package/generators/types/generator/__tests__/generator.test.d.ts +8 -0
- package/generators/types/generator/index.d.ts +27 -0
- package/generators/types/gitlab-docker/__tests__/gitlab-docker.test.d.ts +8 -0
- package/generators/types/gitlab-docker/index.d.ts +27 -0
- package/generators/types/hono/__tests__/hono.test.d.ts +8 -0
- package/generators/types/hono/index.d.ts +10 -0
- package/generators/types/npm/__tests__/npm.test.d.ts +8 -0
- package/generators/types/npm/index.d.ts +27 -0
- package/generators/types/package-json/__tests__/package-json.test.d.ts +8 -0
- package/generators/types/package-json/index.d.ts +7 -0
- package/generators/types/update-esm-export/__tests__/update-esm-export.test.d.ts +8 -0
- package/generators/types/update-esm-export/index.d.ts +27 -0
- package/generators/update-esm-export/index.js +2172 -67
- package/package.json +16 -11
- package/generators/app/README.md +0 -4
- package/generators/app/__tests__/TestApp.js +0 -43
- package/generators/compile-sh/README.md +0 -8
- package/generators/compile-sh/__tests__/Test.js +0 -43
- package/generators/docker/README.md +0 -24
- package/generators/docker/__tests__/Test.js +0 -42
- package/generators/docker/commonDockerPrompt.js +0 -24
- package/generators/generator/README.md +0 -9
- package/generators/generator/__tests__/TestGenerator.js +0 -42
- package/generators/gitlab-docker/README.md +0 -9
- package/generators/gitlab-docker/__tests__/Test.js +0 -44
- package/generators/npm/README.md +0 -9
- package/generators/npm/__tests__/Test.js +0 -46
- package/generators/package-json/README.md +0 -9
- package/generators/package-json/__tests__/Test.js +0 -45
- package/generators/update-esm-export/README.md +0 -9
- package/generators/update-esm-export/__tests__/Test.js +0 -43
- /package/generators/{package-json → babel-package-json}/templates/.yo +0 -0
|
@@ -8,41 +8,17 @@
|
|
|
8
8
|
"keywords": [],
|
|
9
9
|
"author": "<%= authorName %> <<%= authorEmail %>>",
|
|
10
10
|
"license": "ISC",
|
|
11
|
-
"dependencies": {
|
|
12
|
-
|
|
13
|
-
"reshow-runtime": "*"
|
|
14
|
-
},
|
|
15
|
-
"devDependencies": {
|
|
16
|
-
"@babel/cli": "^7.x",
|
|
17
|
-
"reshow-unit-dom": "*"
|
|
18
|
-
},
|
|
11
|
+
"dependencies": { },
|
|
12
|
+
"devDependencies": { },
|
|
19
13
|
"exports": {
|
|
20
14
|
"types": "./types/index.d.ts",
|
|
21
15
|
"require": "./build/cjs/src/index.js",
|
|
22
16
|
"import": "./build/es/src/index.mjs"
|
|
23
17
|
},
|
|
18
|
+
"types": "./types/index.d.ts",
|
|
24
19
|
"main": "./build/cjs/src/index.js",
|
|
25
20
|
"module": "./build/es/src/index.mjs",
|
|
26
21
|
"bin": {
|
|
27
22
|
"<%= mainName %>": "./build/cjs/src/index.js"
|
|
28
|
-
}
|
|
29
|
-
"scripts": {
|
|
30
|
-
"update-compile-sh": "yo reshow:compile-sh",
|
|
31
|
-
"webpack": "webpack",
|
|
32
|
-
"start": "ws",
|
|
33
|
-
"format": "prettier-eslint --write 'src/**/*.js'",
|
|
34
|
-
"clean:webpack": "find ./assets -name '*.*' | xargs rm -rf",
|
|
35
|
-
"clean": "find ./build ./types -name '*.*' | xargs rm -rf",
|
|
36
|
-
"build:cjs": "BABEL_ENV=cjs babel src -d build/cjs/src --ignore /**/__tests__<%= babelRootMode %>",
|
|
37
|
-
"build:es": "BABEL_ENV=es babel src -d build/es/src --out-file-extension .mjs<%= babelRootMode %>",
|
|
38
|
-
"build:type": "npx -p typescript tsc src/*.js src/**/*.js --lib esnext --declaration --allowJs --emitDeclarationOnly --skipLibCheck --declarationDir types",
|
|
39
|
-
"build": "npm run clean && npm run build:cjs && npm run build:es && npm run build:type",
|
|
40
|
-
"mochaFor": "STRICT_MODE=on mocha -r global-jsdom/register",
|
|
41
|
-
"mocha": "npm run mochaFor -- 'build/{cjs,es}/**/__tests__/*.{js,mjs}'",
|
|
42
|
-
"test:report": "npm run build && npm run mochaFor -- --reporter mocha-junit-reporter --reporter-options mochaFile=./test_output/mocha.xml 'build/{cjs,es}/**/__tests__/*.{js,mjs}'",
|
|
43
|
-
"test": "npm run build && npm run mocha",
|
|
44
|
-
"prepublishOnly": "npm run test"
|
|
45
|
-
},
|
|
46
|
-
"types": "./types/index.d.ts",
|
|
47
|
-
"files": ["types", "build", "package.json", "README.md"]
|
|
23
|
+
}
|
|
48
24
|
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* https://yeoman.io/authoring/testing.html
|
|
3
|
+
* https://gilsondev.gitbooks.io/yeoman-authoring/content/authoring/unit_testing.html
|
|
4
|
+
*
|
|
5
|
+
* https://github.com/yeoman/yeoman-assert/blob/main/index.js
|
|
6
|
+
* https://github.com/yeoman/yeoman-test/blob/main/lib/run-context.js
|
|
7
|
+
*/
|
|
8
|
+
export {};
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { YoGenerator } from "yo-reshow";
|
|
2
|
+
/**
|
|
3
|
+
* App Generator (default router)
|
|
4
|
+
*
|
|
5
|
+
* Running `yo reshow` shows a sub-generator selection menu.
|
|
6
|
+
* Running `yo reshow:<name>` jumps directly to that sub-generator.
|
|
7
|
+
*/
|
|
8
|
+
export default class extends YoGenerator {
|
|
9
|
+
selectedGenerator: string;
|
|
10
|
+
/**
|
|
11
|
+
* Run loop (Life cycle)
|
|
12
|
+
* https://yeoman.io/authoring/running-context.html#the-run-loop
|
|
13
|
+
*
|
|
14
|
+
* 1. initializing
|
|
15
|
+
* 2. prompting
|
|
16
|
+
* 3. configuring
|
|
17
|
+
* 4. default
|
|
18
|
+
* 5. writing
|
|
19
|
+
* 6. conflicts
|
|
20
|
+
* 7. install
|
|
21
|
+
* 8. end
|
|
22
|
+
*/
|
|
23
|
+
/**
|
|
24
|
+
* Questions.
|
|
25
|
+
*
|
|
26
|
+
* https://www.alwaystwisted.com/post.php?s=using-lists-in-a-yeoman-generator
|
|
27
|
+
* https://github.com/SBoudrias/Inquirer.js
|
|
28
|
+
*/
|
|
29
|
+
prompting(): Promise<void>;
|
|
30
|
+
writing(): void;
|
|
31
|
+
end(): Promise<void>;
|
|
32
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* https://yeoman.io/authoring/testing.html
|
|
3
|
+
* https://gilsondev.gitbooks.io/yeoman-authoring/content/authoring/unit_testing.html
|
|
4
|
+
*
|
|
5
|
+
* https://github.com/yeoman/yeoman-assert/blob/main/index.js
|
|
6
|
+
* https://github.com/yeoman/yeoman-test/blob/main/lib/run-context.js
|
|
7
|
+
*/
|
|
8
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* https://yeoman.io/authoring/testing.html
|
|
3
|
+
* https://gilsondev.gitbooks.io/yeoman-authoring/content/authoring/unit_testing.html
|
|
4
|
+
*
|
|
5
|
+
* https://github.com/yeoman/yeoman-assert/blob/main/index.js
|
|
6
|
+
* https://github.com/yeoman/yeoman-test/blob/main/lib/run-context.js
|
|
7
|
+
*/
|
|
8
|
+
export {};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { YoGenerator } from "yo-reshow";
|
|
2
|
+
/**
|
|
3
|
+
* NPM Generator
|
|
4
|
+
*/
|
|
5
|
+
export default class extends YoGenerator {
|
|
6
|
+
/**
|
|
7
|
+
* Run loop (Life cycle)
|
|
8
|
+
* https://yeoman.io/authoring/running-context.html#the-run-loop
|
|
9
|
+
*
|
|
10
|
+
* 1. initializing
|
|
11
|
+
* 2. prompting
|
|
12
|
+
* 3. configuring
|
|
13
|
+
* 4. default
|
|
14
|
+
* 5. writing
|
|
15
|
+
* 6. conflicts
|
|
16
|
+
* 7. install
|
|
17
|
+
* 8. end
|
|
18
|
+
*/
|
|
19
|
+
/**
|
|
20
|
+
* Questions.
|
|
21
|
+
*
|
|
22
|
+
* https://www.alwaystwisted.com/post.php?s=using-lists-in-a-yeoman-generator
|
|
23
|
+
* https://github.com/SBoudrias/Inquirer.js
|
|
24
|
+
*/
|
|
25
|
+
prompting(): Promise<void>;
|
|
26
|
+
writing(): void;
|
|
27
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* https://yeoman.io/authoring/testing.html
|
|
3
|
+
* https://gilsondev.gitbooks.io/yeoman-authoring/content/authoring/unit_testing.html
|
|
4
|
+
*
|
|
5
|
+
* https://github.com/yeoman/yeoman-assert/blob/main/index.js
|
|
6
|
+
* https://github.com/yeoman/yeoman-test/blob/main/lib/run-context.js
|
|
7
|
+
*/
|
|
8
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* https://yeoman.io/authoring/testing.html
|
|
3
|
+
* https://gilsondev.gitbooks.io/yeoman-authoring/content/authoring/unit_testing.html
|
|
4
|
+
*
|
|
5
|
+
* https://github.com/yeoman/yeoman-assert/blob/main/index.js
|
|
6
|
+
* https://github.com/yeoman/yeoman-test/blob/main/lib/run-context.js
|
|
7
|
+
*/
|
|
8
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* https://yeoman.io/authoring/testing.html
|
|
3
|
+
* https://gilsondev.gitbooks.io/yeoman-authoring/content/authoring/unit_testing.html
|
|
4
|
+
*
|
|
5
|
+
* https://github.com/yeoman/yeoman-assert/blob/main/index.js
|
|
6
|
+
* https://github.com/yeoman/yeoman-test/blob/main/lib/run-context.js
|
|
7
|
+
*/
|
|
8
|
+
export {};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { YoGenerator } from "yo-reshow";
|
|
2
|
+
/**
|
|
3
|
+
* docker Generator
|
|
4
|
+
*/
|
|
5
|
+
export default class extends YoGenerator {
|
|
6
|
+
/**
|
|
7
|
+
* Run loop (Life cycle)
|
|
8
|
+
* https://yeoman.io/authoring/running-context.html#the-run-loop
|
|
9
|
+
*
|
|
10
|
+
* 1. initializing
|
|
11
|
+
* 2. prompting
|
|
12
|
+
* 3. configuring
|
|
13
|
+
* 4. default
|
|
14
|
+
* 5. writing
|
|
15
|
+
* 6. conflicts
|
|
16
|
+
* 7. install
|
|
17
|
+
* 8. end
|
|
18
|
+
*/
|
|
19
|
+
/**
|
|
20
|
+
* Questions.
|
|
21
|
+
*
|
|
22
|
+
* https://www.alwaystwisted.com/post.php?s=using-lists-in-a-yeoman-generator
|
|
23
|
+
* https://github.com/SBoudrias/Inquirer.js
|
|
24
|
+
*/
|
|
25
|
+
prompting(): Promise<void>;
|
|
26
|
+
writing(): void;
|
|
27
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* https://yeoman.io/authoring/testing.html
|
|
3
|
+
* https://gilsondev.gitbooks.io/yeoman-authoring/content/authoring/unit_testing.html
|
|
4
|
+
*
|
|
5
|
+
* https://github.com/yeoman/yeoman-assert/blob/main/index.js
|
|
6
|
+
* https://github.com/yeoman/yeoman-test/blob/main/lib/run-context.js
|
|
7
|
+
*/
|
|
8
|
+
export {};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { YoGenerator } from "yo-reshow";
|
|
2
|
+
/**
|
|
3
|
+
* The Generator
|
|
4
|
+
*/
|
|
5
|
+
export default class extends YoGenerator {
|
|
6
|
+
/**
|
|
7
|
+
* Run loop (Life cycle)
|
|
8
|
+
* https://yeoman.io/authoring/running-context.html#the-run-loop
|
|
9
|
+
*
|
|
10
|
+
* 1. initializing
|
|
11
|
+
* 2. prompting
|
|
12
|
+
* 3. configuring
|
|
13
|
+
* 4. default
|
|
14
|
+
* 5. writing
|
|
15
|
+
* 6. conflicts
|
|
16
|
+
* 7. install
|
|
17
|
+
* 8. end
|
|
18
|
+
*/
|
|
19
|
+
/**
|
|
20
|
+
* Questions.
|
|
21
|
+
*
|
|
22
|
+
* https://www.alwaystwisted.com/post.php?s=using-lists-in-a-yeoman-generator
|
|
23
|
+
* https://github.com/SBoudrias/Inquirer.js
|
|
24
|
+
*/
|
|
25
|
+
prompting(): Promise<void>;
|
|
26
|
+
writing(): void;
|
|
27
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* https://yeoman.io/authoring/testing.html
|
|
3
|
+
* https://gilsondev.gitbooks.io/yeoman-authoring/content/authoring/unit_testing.html
|
|
4
|
+
*
|
|
5
|
+
* https://github.com/yeoman/yeoman-assert/blob/main/index.js
|
|
6
|
+
* https://github.com/yeoman/yeoman-test/blob/main/lib/run-context.js
|
|
7
|
+
*/
|
|
8
|
+
export {};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { YoGenerator } from "yo-reshow";
|
|
2
|
+
/**
|
|
3
|
+
* gitlab-docker Generator
|
|
4
|
+
*/
|
|
5
|
+
export default class extends YoGenerator {
|
|
6
|
+
/**
|
|
7
|
+
* Run loop (Life cycle)
|
|
8
|
+
* https://yeoman.io/authoring/running-context.html#the-run-loop
|
|
9
|
+
*
|
|
10
|
+
* 1. initializing
|
|
11
|
+
* 2. prompting
|
|
12
|
+
* 3. configuring
|
|
13
|
+
* 4. default
|
|
14
|
+
* 5. writing
|
|
15
|
+
* 6. conflicts
|
|
16
|
+
* 7. install
|
|
17
|
+
* 8. end
|
|
18
|
+
*/
|
|
19
|
+
/**
|
|
20
|
+
* Questions.
|
|
21
|
+
*
|
|
22
|
+
* https://www.alwaystwisted.com/post.php?s=using-lists-in-a-yeoman-generator
|
|
23
|
+
* https://github.com/SBoudrias/Inquirer.js
|
|
24
|
+
*/
|
|
25
|
+
prompting(): Promise<void>;
|
|
26
|
+
writing(): void;
|
|
27
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* https://yeoman.io/authoring/testing.html
|
|
3
|
+
* https://gilsondev.gitbooks.io/yeoman-authoring/content/authoring/unit_testing.html
|
|
4
|
+
*
|
|
5
|
+
* https://github.com/yeoman/yeoman-assert/blob/main/index.js
|
|
6
|
+
* https://github.com/yeoman/yeoman-test/blob/main/lib/run-context.js
|
|
7
|
+
*/
|
|
8
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { YoGenerator } from "yo-reshow";
|
|
2
|
+
export default class extends YoGenerator {
|
|
3
|
+
/**
|
|
4
|
+
* Run loop (Life cycle)
|
|
5
|
+
* https://yeoman.io/authoring/running-context.html#the-run-loop
|
|
6
|
+
*/
|
|
7
|
+
prompting(): Promise<void>;
|
|
8
|
+
writing(): void;
|
|
9
|
+
conflicts(): void;
|
|
10
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* https://yeoman.io/authoring/testing.html
|
|
3
|
+
* https://gilsondev.gitbooks.io/yeoman-authoring/content/authoring/unit_testing.html
|
|
4
|
+
*
|
|
5
|
+
* https://github.com/yeoman/yeoman-assert/blob/main/index.js
|
|
6
|
+
* https://github.com/yeoman/yeoman-test/blob/main/lib/run-context.js
|
|
7
|
+
*/
|
|
8
|
+
export {};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { YoGenerator } from "yo-reshow";
|
|
2
|
+
/**
|
|
3
|
+
* NPM Generator
|
|
4
|
+
*/
|
|
5
|
+
export default class extends YoGenerator {
|
|
6
|
+
/**
|
|
7
|
+
* Run loop (Life cycle)
|
|
8
|
+
* https://yeoman.io/authoring/running-context.html#the-run-loop
|
|
9
|
+
*
|
|
10
|
+
* 1. initializing
|
|
11
|
+
* 2. prompting
|
|
12
|
+
* 3. configuring
|
|
13
|
+
* 4. default
|
|
14
|
+
* 5. writing
|
|
15
|
+
* 6. conflicts
|
|
16
|
+
* 7. install
|
|
17
|
+
* 8. end
|
|
18
|
+
*/
|
|
19
|
+
/**
|
|
20
|
+
* Questions.
|
|
21
|
+
*
|
|
22
|
+
* https://www.alwaystwisted.com/post.php?s=using-lists-in-a-yeoman-generator
|
|
23
|
+
* https://github.com/SBoudrias/Inquirer.js
|
|
24
|
+
*/
|
|
25
|
+
prompting(): Promise<void>;
|
|
26
|
+
writing(): void;
|
|
27
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* https://yeoman.io/authoring/testing.html
|
|
3
|
+
* https://gilsondev.gitbooks.io/yeoman-authoring/content/authoring/unit_testing.html
|
|
4
|
+
*
|
|
5
|
+
* https://github.com/yeoman/yeoman-assert/blob/main/index.js
|
|
6
|
+
* https://github.com/yeoman/yeoman-test/blob/main/lib/run-context.js
|
|
7
|
+
*/
|
|
8
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* https://yeoman.io/authoring/testing.html
|
|
3
|
+
* https://gilsondev.gitbooks.io/yeoman-authoring/content/authoring/unit_testing.html
|
|
4
|
+
*
|
|
5
|
+
* https://github.com/yeoman/yeoman-assert/blob/main/index.js
|
|
6
|
+
* https://github.com/yeoman/yeoman-test/blob/main/lib/run-context.js
|
|
7
|
+
*/
|
|
8
|
+
export {};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { YoGenerator } from "yo-reshow";
|
|
2
|
+
/**
|
|
3
|
+
* update-esm-export Generator
|
|
4
|
+
*/
|
|
5
|
+
export default class extends YoGenerator {
|
|
6
|
+
/**
|
|
7
|
+
* Run loop (Life cycle)
|
|
8
|
+
* https://yeoman.io/authoring/running-context.html#the-run-loop
|
|
9
|
+
*
|
|
10
|
+
* 1. initializing
|
|
11
|
+
* 2. prompting
|
|
12
|
+
* 3. configuring
|
|
13
|
+
* 4. default
|
|
14
|
+
* 5. writing
|
|
15
|
+
* 6. conflicts
|
|
16
|
+
* 7. install
|
|
17
|
+
* 8. end
|
|
18
|
+
*/
|
|
19
|
+
/**
|
|
20
|
+
* Questions.
|
|
21
|
+
*
|
|
22
|
+
* https://www.alwaystwisted.com/post.php?s=using-lists-in-a-yeoman-generator
|
|
23
|
+
* https://github.com/SBoudrias/Inquirer.js
|
|
24
|
+
*/
|
|
25
|
+
prompting(): Promise<void>;
|
|
26
|
+
writing(): void;
|
|
27
|
+
}
|