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

fis-parser-ts

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fis-parser-ts

fis typescript compile plugin

  • 0.0.3
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
decreased by-100%
Maintainers
1
Weekly downloads
 
Created
Source

fis-parser-ts

用于 fis 工具的 typescript源文件编译插件

安装

npm install fis-parser-ts

使用

//fis-conf.js
//设置.ts源文件的解析器为ts
fis.config.set("modules.parser.ts", "ts");

//全局配置
fis.config.set('settings.parser.ts.compileSetting', {
	module             : "commonjs"// Specify module code generation: 'commonjs' or 'amd'
    //, target         : "ES3"     // Specify ECMAScript target version: 'ES3' (default), or 'ES5'
    //, noImplicitAny  : true      // Warn on expressions and declarations with an implied 'any' type.
    //, removeComments : false     // Do not emit comments to output.
    //, noLib          : false     // Do not include default library
    //, root           : 'xxx'     // Source file root
    //, file           : 'xxx.ts'  // Source file path
    //, nodejs         : true      // Is node.js source file
});

//设置 .ts源文件的扩展为 .js
fis.config.set('roadmap.ext.ts', 'js');

fis.config.set('roadmap.ext.ts', 'js');

//为某些文件提供 特殊的编译配置
fis.config.set('roadmap.path').push({
	{
        reg: "server/**.ts",
        isMod: false,
        useStandard: false,
        compileSetting: {
            nodejs             : true      // Is node.js source file
            //, target         : "ES3"     // Specify ECMAScript target version: 'ES3' (default), or 'ES5'
            //, noImplicitAny  : true      // Warn on expressions and declarations with an implied 'any' type.
            //, removeComments : false     // Do not emit comments to output.
            //, noLib          : false     // Do not include default library
            //, root           : 'xxx'     // Source file root
            //, file           : 'xxx.ts'  // Source file path
        }
    }
});

Keywords

FAQs

Package last updated on 02 Sep 2014

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