create-rstack 1.0.4 → 1.0.6

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/dist/index.js CHANGED
@@ -287,7 +287,7 @@ var __webpack_modules__ = {
287
287
  },
288
288
  "./node_modules/.pnpm/picocolors@1.0.1/node_modules/picocolors/picocolors.js": function(module, __unused_webpack_exports, __webpack_require__) {
289
289
  let argv = process.argv || [], env = process.env;
290
- let isColorSupported = !("NO_COLOR" in env || argv.includes("--no-color")) && ("FORCE_COLOR" in env || argv.includes("--color") || "win32" === process.platform || null != require && __webpack_require__("tty")/* .isatty */ .isatty(1) && "dumb" !== env.TERM || "CI" in env);
290
+ let isColorSupported = !("NO_COLOR" in env || argv.includes("--no-color")) && ("FORCE_COLOR" in env || argv.includes("--color") || "win32" === process.platform || null != __webpack_require__("./node_modules/.pnpm/picocolors@1.0.1/node_modules/picocolors sync recursive") && __webpack_require__("tty")/* .isatty */ .isatty(1) && "dumb" !== env.TERM || "CI" in env);
291
291
  let formatter = (open, close, replace = open)=>(input)=>{
292
292
  let string = "" + input;
293
293
  let index = string.indexOf(close, open.length);
@@ -337,6 +337,17 @@ var __webpack_modules__ = {
337
337
  module.exports = createColors();
338
338
  module.exports.createColors = createColors;
339
339
  },
340
+ "./node_modules/.pnpm/picocolors@1.0.1/node_modules/picocolors sync recursive": function(module) {
341
+ function webpackEmptyContext(req) {
342
+ var e = new Error("Cannot find module '" + req + "'");
343
+ e.code = 'MODULE_NOT_FOUND';
344
+ throw e;
345
+ }
346
+ webpackEmptyContext.keys = ()=>[];
347
+ webpackEmptyContext.resolve = webpackEmptyContext;
348
+ webpackEmptyContext.id = "./node_modules/.pnpm/picocolors@1.0.1/node_modules/picocolors sync recursive";
349
+ module.exports = webpackEmptyContext;
350
+ },
340
351
  "./node_modules/.pnpm/sisteransi@1.0.5/node_modules/sisteransi/src/index.js": function(module) {
341
352
  const ESC = '\x1B';
342
353
  const CSI = `${ESC}[`;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-rstack",
3
- "version": "1.0.4",
3
+ "version": "1.0.6",
4
4
  "description": "Create a new Rstack project",
5
5
  "repository": {
6
6
  "type": "git",
@@ -16,17 +16,14 @@
16
16
  },
17
17
  "main": "./dist/index.js",
18
18
  "types": "./dist/index.d.ts",
19
- "files": [
20
- "template-*",
21
- "dist"
22
- ],
19
+ "files": ["template-biome", "template-eslint", "template-prettier", "dist"],
23
20
  "scripts": {
24
21
  "build": "rslib build",
25
22
  "dev": "rslib build --watch",
26
23
  "lint": "biome check .",
27
24
  "lint:write": "biome check . --write",
28
25
  "prepare": "simple-git-hooks && npm run build",
29
- "test": "playwright test",
26
+ "test": "node test/index.js",
30
27
  "bump": "npx bumpp"
31
28
  },
32
29
  "simple-git-hooks": {
@@ -40,7 +37,7 @@
40
37
  "devDependencies": {
41
38
  "@biomejs/biome": "^1.9.3",
42
39
  "@clack/prompts": "^0.7.0",
43
- "@rslib/core": "0.0.11",
40
+ "@rslib/core": "0.0.5",
44
41
  "@types/minimist": "^1.2.5",
45
42
  "@types/node": "18.19.55",
46
43
  "deepmerge": "^4.3.1",
@@ -0,0 +1,30 @@
1
+ {
2
+ "$schema": "https://biomejs.dev/schemas/1.8.0/schema.json",
3
+ "organizeImports": {
4
+ "enabled": true
5
+ },
6
+ "vcs": {
7
+ "enabled": true,
8
+ "clientKind": "git",
9
+ "useIgnoreFile": true
10
+ },
11
+ "formatter": {
12
+ "indentStyle": "space"
13
+ },
14
+ "javascript": {
15
+ "formatter": {
16
+ "quoteStyle": "single"
17
+ }
18
+ },
19
+ "css": {
20
+ "parser": {
21
+ "cssModules": true
22
+ }
23
+ },
24
+ "linter": {
25
+ "enabled": true,
26
+ "rules": {
27
+ "recommended": true
28
+ }
29
+ }
30
+ }
@@ -0,0 +1,12 @@
1
+ {
2
+ "name": "rsbuild-biome",
3
+ "private": true,
4
+ "version": "1.0.0",
5
+ "scripts": {
6
+ "check": "biome check --write",
7
+ "format": "biome format --write"
8
+ },
9
+ "devDependencies": {
10
+ "@biomejs/biome": "^1.9.3"
11
+ }
12
+ }
@@ -0,0 +1,29 @@
1
+ import { fixupConfigRules } from '@eslint/compat';
2
+ import js from '@eslint/js';
3
+ import reactHooks from 'eslint-plugin-react-hooks';
4
+ import reactJsx from 'eslint-plugin-react/configs/jsx-runtime.js';
5
+ import react from 'eslint-plugin-react/configs/recommended.js';
6
+ import globals from 'globals';
7
+
8
+ export default [
9
+ { languageOptions: { globals: globals.browser } },
10
+ js.configs.recommended,
11
+ ...fixupConfigRules([
12
+ {
13
+ ...react,
14
+ settings: {
15
+ react: { version: 'detect' },
16
+ },
17
+ },
18
+ reactJsx,
19
+ ]),
20
+ {
21
+ plugins: {
22
+ 'react-hooks': reactHooks,
23
+ },
24
+ rules: {
25
+ ...reactHooks.configs.recommended.rules,
26
+ },
27
+ },
28
+ { ignores: ['dist/'] },
29
+ ];
@@ -0,0 +1,16 @@
1
+ {
2
+ "name": "rsbuild-eslint-react-js",
3
+ "private": true,
4
+ "version": "1.0.0",
5
+ "scripts": {
6
+ "lint": "eslint ."
7
+ },
8
+ "devDependencies": {
9
+ "@eslint/compat": "^1.2.0",
10
+ "@eslint/js": "^9.12.0",
11
+ "eslint": "^9.12.0",
12
+ "eslint-plugin-react": "^7.37.1",
13
+ "eslint-plugin-react-hooks": "^5.0.0",
14
+ "globals": "^15.11.0"
15
+ }
16
+ }
@@ -0,0 +1,31 @@
1
+ import { fixupConfigRules } from '@eslint/compat';
2
+ import js from '@eslint/js';
3
+ import reactHooks from 'eslint-plugin-react-hooks';
4
+ import reactJsx from 'eslint-plugin-react/configs/jsx-runtime.js';
5
+ import react from 'eslint-plugin-react/configs/recommended.js';
6
+ import globals from 'globals';
7
+ import ts from 'typescript-eslint';
8
+
9
+ export default [
10
+ { languageOptions: { globals: globals.browser } },
11
+ js.configs.recommended,
12
+ ...ts.configs.recommended,
13
+ ...fixupConfigRules([
14
+ {
15
+ ...react,
16
+ settings: {
17
+ react: { version: 'detect' },
18
+ },
19
+ },
20
+ reactJsx,
21
+ ]),
22
+ {
23
+ plugins: {
24
+ 'react-hooks': reactHooks,
25
+ },
26
+ rules: {
27
+ ...reactHooks.configs.recommended.rules,
28
+ },
29
+ },
30
+ { ignores: ['dist/'] },
31
+ ];
@@ -0,0 +1,17 @@
1
+ {
2
+ "name": "rsbuild-eslint-react-ts",
3
+ "private": true,
4
+ "version": "1.0.0",
5
+ "scripts": {
6
+ "lint": "eslint ."
7
+ },
8
+ "devDependencies": {
9
+ "@eslint/compat": "^1.2.0",
10
+ "@eslint/js": "^9.12.0",
11
+ "eslint": "^9.12.0",
12
+ "eslint-plugin-react": "^7.37.1",
13
+ "eslint-plugin-react-hooks": "^5.0.0",
14
+ "globals": "^15.11.0",
15
+ "typescript-eslint": "^8.8.1"
16
+ }
17
+ }
@@ -0,0 +1,20 @@
1
+ import js from '@eslint/js';
2
+ import svelte from 'eslint-plugin-svelte';
3
+ import globals from 'globals';
4
+
5
+ /** @type {import('eslint').Linter.FlatConfig[]} */
6
+ export default [
7
+ js.configs.recommended,
8
+ ...svelte.configs['flat/recommended'],
9
+ {
10
+ languageOptions: {
11
+ globals: {
12
+ ...globals.browser,
13
+ ...globals.node,
14
+ },
15
+ },
16
+ },
17
+ {
18
+ ignores: ['dist/'],
19
+ },
20
+ ];
@@ -0,0 +1,14 @@
1
+ {
2
+ "name": "rsbuild-eslint-svelte-js",
3
+ "private": true,
4
+ "version": "1.0.0",
5
+ "scripts": {
6
+ "lint": "eslint ."
7
+ },
8
+ "devDependencies": {
9
+ "@eslint/js": "^9.12.0",
10
+ "eslint": "^9.12.0",
11
+ "eslint-plugin-svelte": "^2.44.1",
12
+ "globals": "^15.11.0"
13
+ }
14
+ }
@@ -0,0 +1,28 @@
1
+ import js from '@eslint/js';
2
+ import svelte from 'eslint-plugin-svelte';
3
+ import globals from 'globals';
4
+ import ts from 'typescript-eslint';
5
+
6
+ /** @type {import('eslint').Linter.FlatConfig[]} */
7
+ export default [
8
+ js.configs.recommended,
9
+ ...ts.configs.recommended,
10
+ ...svelte.configs['flat/recommended'],
11
+ {
12
+ languageOptions: {
13
+ globals: {
14
+ ...globals.browser,
15
+ ...globals.node,
16
+ },
17
+ },
18
+ },
19
+ {
20
+ files: ['**/*.svelte'],
21
+ languageOptions: {
22
+ parserOptions: {
23
+ parser: ts.parser,
24
+ },
25
+ },
26
+ },
27
+ { ignores: ['dist/'] },
28
+ ];
@@ -0,0 +1,16 @@
1
+ {
2
+ "name": "rsbuild-eslint-svelte-ts",
3
+ "private": true,
4
+ "version": "1.0.0",
5
+ "scripts": {
6
+ "lint": "eslint ."
7
+ },
8
+ "devDependencies": {
9
+ "@eslint/js": "^9.12.0",
10
+ "eslint": "^9.12.0",
11
+ "eslint-plugin-svelte": "^2.44.1",
12
+ "globals": "^15.11.0",
13
+ "typescript-eslint": "^8.8.1"
14
+ },
15
+ "type": "module"
16
+ }
@@ -0,0 +1,8 @@
1
+ import js from '@eslint/js';
2
+ import globals from 'globals';
3
+
4
+ export default [
5
+ { languageOptions: { globals: globals.browser } },
6
+ js.configs.recommended,
7
+ { ignores: ['dist/'] },
8
+ ];
@@ -0,0 +1,13 @@
1
+ {
2
+ "name": "rsbuild-eslint-common-js",
3
+ "private": true,
4
+ "version": "1.0.0",
5
+ "scripts": {
6
+ "lint": "eslint ."
7
+ },
8
+ "devDependencies": {
9
+ "@eslint/js": "^9.12.0",
10
+ "eslint": "^9.12.0",
11
+ "globals": "^15.11.0"
12
+ }
13
+ }
@@ -0,0 +1,10 @@
1
+ import js from '@eslint/js';
2
+ import globals from 'globals';
3
+ import ts from 'typescript-eslint';
4
+
5
+ export default [
6
+ { languageOptions: { globals: globals.browser } },
7
+ js.configs.recommended,
8
+ ...ts.configs.recommended,
9
+ { ignores: ['dist/'] },
10
+ ];
@@ -0,0 +1,14 @@
1
+ {
2
+ "name": "rsbuild-eslint-common-ts",
3
+ "private": true,
4
+ "version": "1.0.0",
5
+ "scripts": {
6
+ "lint": "eslint ."
7
+ },
8
+ "devDependencies": {
9
+ "@eslint/js": "^9.12.0",
10
+ "eslint": "^9.12.0",
11
+ "globals": "^15.11.0",
12
+ "typescript-eslint": "^8.8.1"
13
+ }
14
+ }
@@ -0,0 +1,10 @@
1
+ import js from '@eslint/js';
2
+ import vue from 'eslint-plugin-vue';
3
+ import globals from 'globals';
4
+
5
+ export default [
6
+ { languageOptions: { globals: globals.browser } },
7
+ js.configs.recommended,
8
+ ...vue.configs['flat/essential'],
9
+ { ignores: ['dist/'] },
10
+ ];
@@ -0,0 +1,14 @@
1
+ {
2
+ "name": "rsbuild-eslint-vue-js",
3
+ "private": true,
4
+ "version": "1.0.0",
5
+ "scripts": {
6
+ "lint": "eslint ."
7
+ },
8
+ "devDependencies": {
9
+ "@eslint/js": "^9.12.0",
10
+ "eslint": "^9.12.0",
11
+ "eslint-plugin-vue": "^9.29.0",
12
+ "globals": "^15.11.0"
13
+ }
14
+ }
@@ -0,0 +1,12 @@
1
+ import js from '@eslint/js';
2
+ import vue from 'eslint-plugin-vue';
3
+ import globals from 'globals';
4
+ import ts from 'typescript-eslint';
5
+
6
+ export default [
7
+ { languageOptions: { globals: globals.browser } },
8
+ js.configs.recommended,
9
+ ...ts.configs.recommended,
10
+ ...vue.configs['flat/essential'],
11
+ { ignores: ['dist/'] },
12
+ ];
@@ -0,0 +1,15 @@
1
+ {
2
+ "name": "rsbuild-eslint-vue-ts",
3
+ "private": true,
4
+ "version": "1.0.0",
5
+ "scripts": {
6
+ "lint": "eslint ."
7
+ },
8
+ "devDependencies": {
9
+ "@eslint/js": "^9.12.0",
10
+ "eslint": "^9.12.0",
11
+ "eslint-plugin-vue": "^9.29.0",
12
+ "globals": "^15.11.0",
13
+ "typescript-eslint": "^8.8.1"
14
+ }
15
+ }
@@ -0,0 +1,4 @@
1
+ # Lock files
2
+ package-lock.json
3
+ pnpm-lock.yaml
4
+ yarn.lock
@@ -0,0 +1,3 @@
1
+ {
2
+ "singleQuote": true
3
+ }
@@ -0,0 +1,11 @@
1
+ {
2
+ "name": "rsbuild-prettier",
3
+ "private": true,
4
+ "version": "1.0.0",
5
+ "scripts": {
6
+ "format": "prettier --write ."
7
+ },
8
+ "devDependencies": {
9
+ "prettier": "^3.3.3"
10
+ }
11
+ }