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

quick-build-core

Package Overview
Dependencies
Maintainers
1
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

quick-build-core

quick构建核心

  • 1.1.9
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
5
increased by25%
Maintainers
1
Weekly downloads
 
Created
Source

#quick-build-core

seajs模块构建的核心文件

var build = require('./lib/build')({
	process:function(name){
		//name为当前构建的组件名称,每当此组件构建完毕时调用
	},
	done:function(shell){
		//全部构建完毕时触发此回调
		//如需终止shell,请手动调用shell.exit(-1);
	},
	printLog:function(){
		//此处为对日志的输出处理
	}
});

//构造构建参数
var params = {
	root:'/build/root',//构建目录
	tmp:'/build/tmp',//临时文件存放目录
	inf:'/build/src',//源码目录(若为相对路径,则以临时文件夹里的组件根目录开始计算路径)
	outf:'/build/dist',//输出目录(若为相对路径,则以临时文件夹里的组件根目录开始计算路径)
	queue:['core','test-module','template'],//待构建目录队列
	moreLog:true,//是否输出详细日志
	uglify:true,//是否压缩
	id:'modules'//模块前缀
};

build.start(params);

Keywords

FAQs

Package last updated on 21 Aug 2015

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