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

gulp-compiler-tool

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

gulp-compiler-tool

gulp编译工具,用于编译发布到npm的源码

  • 0.1.3
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

gulp源码编译工具

安装

npm

$ npm install gulp-compiler-tool --save-dev

yarn

$ yarn add gulp-compiler-tool --dev

使用示例

  • 直接使用

在package.json文件中添加以下字段:

"script": {
  "compiler": "gulp-compiler"
}

执行npm run compileryarn compiler默认会编译项目的src目录中的文件到dist目录。

  • 添加参数

如果你需要编译其他目录,该工具也提供选项指定编译路径和保存路径:

"script": {
  "compiler": "gulp-compiler --src sourceDir --dist outputDir"
}

也支持指定多个编译目录,只需要在多个目录之间用,分隔:

"script": {
  "compiler": "gulp-compiler --src sourceDir1,sourceDir2,sourceDir3,... --dist outputDir"
}

你也可以直接编译当前目录下的所有文件,用.表示,工具会自动排除node_modules和编译后的目录。

备注

  • 目前支持编译的样式表语言暂时只有less,其他样式表语言会直接被视为静态文件直接输出;
  • 编译js需要.babelrc文件。

许可信息

MIT

FAQs

Package last updated on 27 Mar 2017

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