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

## Features - 支持`ejs`语法 - 默认支持通过`ejs`语法修改`package.json`里的依赖版本号,参考:[template](https://github.com/calibur-tv/skr/blob/main/packages/template/vue3-ts-component/package.json#L16) - 默认注入项目名到`ejs`模板:[用例](https://github.com/calibur-tv/skr/blob/main/packages/temp

  • 0.0.41-alpha.0
  • npm
  • Socket score

Version published
Weekly downloads
2
Maintainers
1
Weekly downloads
 
Created
Source

skr-cli 默认加载的模板列表

Features

  • 支持ejs语法
  • 默认支持通过ejs语法修改package.json里的依赖版本号,参考:template
  • 默认注入项目名到ejs模板:用例
    • name.pascalCase --> "TestString"
    • name.paramCase --> "test-string"
    • name.camelCase --> "testString"
  • 默认注入isMonorepo变量到ejs模板,用例
  • 在模板文件夹根目录添加.template.js文件,即可注入自定义变量,参考:template用例
  • ejs变量示例:
{
  isMonorepo: '<boolean>',
  ...{/* package.json versions */},
  ...{/* .template.js custom vars */}
}

FAQs

Package last updated on 31 Oct 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

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