@bryanchu10/create-template-ts 1.0.0
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 +1323 -0
- package/package.json +30 -0
- package/template/_gitignore +2 -0
- package/template/_vscode/settings.json +36 -0
- package/template/eslint.config.js +32 -0
- package/template/package.json +10 -0
- package/template/pnpm-workspace.yaml +4 -0
- package/template/rolldown.config.ts +9 -0
- package/template/src/index.ts +2 -0
- package/template/tsconfig.json +8 -0
package/package.json
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@bryanchu10/create-template-ts",
|
|
3
|
+
"type": "module",
|
|
4
|
+
"version": "1.0.0",
|
|
5
|
+
"description": "Scaffold a modular TypeScript project for scripts and tooling",
|
|
6
|
+
"bin": "./dist/index.js",
|
|
7
|
+
"files": [
|
|
8
|
+
"dist",
|
|
9
|
+
"template"
|
|
10
|
+
],
|
|
11
|
+
"scripts": {
|
|
12
|
+
"dev": "tsx watch src/index.ts",
|
|
13
|
+
"check": "tsc --noEmit",
|
|
14
|
+
"build": "rolldown -c",
|
|
15
|
+
"lint": "eslint",
|
|
16
|
+
"lint:fix": "eslint --fix"
|
|
17
|
+
},
|
|
18
|
+
"dependencies": {
|
|
19
|
+
"@clack/prompts": "^1.4.0",
|
|
20
|
+
"ts-pattern": "^5.9.0"
|
|
21
|
+
},
|
|
22
|
+
"devDependencies": {
|
|
23
|
+
"@antfu/eslint-config": "^9.0.0",
|
|
24
|
+
"@types/node": "^24.12.4",
|
|
25
|
+
"eslint": "^10.4.0",
|
|
26
|
+
"rolldown": "^1.0.3",
|
|
27
|
+
"tsx": "^4.22.3",
|
|
28
|
+
"typescript": "^6.0.3"
|
|
29
|
+
}
|
|
30
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
{
|
|
2
|
+
// Disable the default formatter, use eslint instead
|
|
3
|
+
"prettier.enable": false,
|
|
4
|
+
"editor.formatOnSave": false,
|
|
5
|
+
|
|
6
|
+
// Auto fix
|
|
7
|
+
"editor.codeActionsOnSave": {
|
|
8
|
+
"source.fixAll.eslint": "explicit",
|
|
9
|
+
"source.organizeImports": "never"
|
|
10
|
+
},
|
|
11
|
+
|
|
12
|
+
// Enable eslint for all supported languages
|
|
13
|
+
"eslint.validate": [
|
|
14
|
+
"javascript",
|
|
15
|
+
"javascriptreact",
|
|
16
|
+
"typescript",
|
|
17
|
+
"typescriptreact",
|
|
18
|
+
"vue",
|
|
19
|
+
"html",
|
|
20
|
+
"markdown",
|
|
21
|
+
"json",
|
|
22
|
+
"jsonc",
|
|
23
|
+
"yaml",
|
|
24
|
+
"toml",
|
|
25
|
+
"xml",
|
|
26
|
+
"gql",
|
|
27
|
+
"graphql",
|
|
28
|
+
"astro",
|
|
29
|
+
"svelte",
|
|
30
|
+
"css",
|
|
31
|
+
"less",
|
|
32
|
+
"scss",
|
|
33
|
+
"pcss",
|
|
34
|
+
"postcss"
|
|
35
|
+
]
|
|
36
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import antfu from "@antfu/eslint-config";
|
|
2
|
+
|
|
3
|
+
export default antfu(
|
|
4
|
+
{
|
|
5
|
+
typescript: true,
|
|
6
|
+
stylistic: {
|
|
7
|
+
indent: 4,
|
|
8
|
+
quotes: "double",
|
|
9
|
+
braceStyle: "stroustrup",
|
|
10
|
+
semi: true,
|
|
11
|
+
overrides: {
|
|
12
|
+
"style/jsx-one-expression-per-line": ["error", { allow: "non-jsx" }],
|
|
13
|
+
"style/jsx-first-prop-new-line": ["error", "never"],
|
|
14
|
+
"style/jsx-max-props-per-line": "off",
|
|
15
|
+
"style/jsx-closing-bracket-location": ["error", "after-props"],
|
|
16
|
+
"style/operator-linebreak": ["error", "before"],
|
|
17
|
+
},
|
|
18
|
+
},
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
files: ["pnpm-workspace.yaml"],
|
|
22
|
+
rules: {
|
|
23
|
+
"pnpm/yaml-enforce-settings": ["error", { settings: { shellEmulator: true } }],
|
|
24
|
+
},
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
files: ["**/*.yml", "**/*.yaml"],
|
|
28
|
+
rules: {
|
|
29
|
+
"yaml/indent": ["error", 2],
|
|
30
|
+
},
|
|
31
|
+
},
|
|
32
|
+
);
|