New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@megalo/cli-plugin-typescript

Package Overview
Dependencies
Maintainers
7
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@megalo/cli-plugin-typescript

typescript plugin for megalo-cli

  • 1.0.0-beta.2
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1
decreased by-90.91%
Maintainers
7
Weekly downloads
 
Created
Source

@megalo/cli-plugin-typescript

typescript plugin for megalo-cli

使用 TypeScript + ts-loader + fork-ts-checker-webpack-plugin 进行类型检查.

配置

可以通过 tsconfig.json 配置 TypeScript.

此插件依赖 TypeScript , 你可以在项目的 package.json 安装适合自己的 typescript 版本.

这个插件可以和 @megalo/cli-plugin-babel 一起使用. 与Babel一起使用时,此插件将输出ES2015,并根据babel配置将其余部分交给Babel进行自动编译转换.

注入的命令

使用 ts-lint 修复代码格式

  • megalo-cli-service lint

    Usage: megalo-cli-service lint [options] [...files]
    
    Options:
    
      --format [formatter] specify formatter (default: codeframe)
      --no-fix             do not fix errors
      --formatters-dir         formatter directory
      --rules-dir       rules directory
    

注入的 webpack-chain 规则

  • config.rule('ts')
  • config.rule('ts').use('ts-loader')
  • config.plugin('fork-ts-checker')

Keywords

FAQs

Package last updated on 17 Sep 2019

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