
Security News
Meet Socket at Black Hat and DEF CON 2025 in Las Vegas
Meet Socket at Black Hat & DEF CON 2025 for 1:1s, insider security talks at Allegiant Stadium, and a private dinner with top minds in software supply chain security.
gulp-compiler-tool
Advanced tools
npm
$ npm install gulp-compiler-tool --save-dev
yarn
$ yarn add gulp-compiler-tool --dev
在package.json文件中添加以下字段:
"script": {
"compiler": "gulp-compiler"
}
执行npm run compiler
或yarn 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
gulp编译工具,用于编译发布到npm的源码
We found that gulp-compiler-tool demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Security News
Meet Socket at Black Hat & DEF CON 2025 for 1:1s, insider security talks at Allegiant Stadium, and a private dinner with top minds in software supply chain security.
Security News
CAI is a new open source AI framework that automates penetration testing tasks like scanning and exploitation up to 3,600× faster than humans.
Security News
Deno 2.4 brings back bundling, improves dependency updates and telemetry, and makes the runtime more practical for real-world JavaScript projects.