@calibur/skr-template
Advanced tools
Comparing version 0.0.17-alpha.0 to 0.0.18-alpha.0
{ | ||
"name": "@calibur/skr-template", | ||
"version": "0.0.17-alpha.0", | ||
"version": "0.0.18-alpha.0", | ||
"author": "falstack <icesilt@outlook.com>", | ||
"license": "MIT", | ||
"gitHead": "9b31788d1033110b34db4aadccb3a2c13cd237db" | ||
"license": "MIT" | ||
} |
@@ -6,8 +6,8 @@ # skr-cli 默认加载的模板列表 | ||
- 默认支持通过`ejs`语法修改`package.json`里的依赖版本号,参考:[template](https://github.com/calibur-tv/skr/blob/main/packages/template/vue3-ts-component/package.json#L16) | ||
- 默认注入项目名到`ejs`模板: | ||
- 默认注入项目名到`ejs`模板:[用例](https://github.com/calibur-tv/skr/blob/main/packages/template/vue3-ts-component/vite.config.ts#L10) | ||
- `name.pascalCase` --> "TestString" | ||
- `name.paramCase` --> "test-string" | ||
- `name.camelCase` --> "testString" | ||
- 默认注入`isMonorepo`变量到`ejs`模板 | ||
- 在模板文件夹根目录添加`.template.js`文件,即可注入自定义变量,参考:[template](https://github.com/calibur-tv/skr/tree/main/packages/template/vue3-ts-component/.template.js) | ||
- 默认注入`isMonorepo`变量到`ejs`模板,[用例](https://github.com/calibur-tv/skr/blob/main/packages/template/vue3-ts-component/tsconfig.json) | ||
- 在模板文件夹根目录添加`.template.js`文件,即可注入自定义变量,参考:[template](https://github.com/calibur-tv/skr/tree/main/packages/template/vue3-ts-component/.template.js),[用例](https://github.com/calibur-tv/skr/blob/main/packages/template/vue3-ts-component/src/App.vue#L3) | ||
- `ejs`变量示例: | ||
@@ -14,0 +14,0 @@ ```javascript |
{ | ||
<% if(isMonorepo){ %> | ||
"extends": "../../tsconfig.json", | ||
<% } %> | ||
<% else { %> | ||
"compilerOptions": { | ||
@@ -12,5 +16,9 @@ "target": "esnext", | ||
"esModuleInterop": true, | ||
"lib": ["esnext", "dom"] | ||
"lib": [ | ||
"esnext", | ||
"dom" | ||
] | ||
}, | ||
<% } %> | ||
"include": ["src/**/*.ts", "src/**/*.d.ts", "src/**/*.tsx", "src/**/*.vue"] | ||
} | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
157
9362
26