Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@calibur/skr-template

Package Overview
Dependencies
Maintainers
1
Versions
40
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@calibur/skr-template - npm Package Compare versions

Comparing version 0.0.17-alpha.0 to 0.0.18-alpha.0

5

package.json
{
"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

README.md

@@ -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"]
}
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc