6 Star 14 Fork 2

Gitee 极速下载 / Napa.js

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
此仓库是为了提升国内下载速度的镜像仓库,每日同步一次。 原始仓库: https://github.com/Microsoft/napajs
克隆/下载
build.js 1.01 KB
一键复制 编辑 原始数据 按行查看 历史
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT license.
// Distinguish between running this file as a script or loading it as a module.
if (module.parent) {
// Loaded as a module - 'require('./build.js')
exports.paths = require('./scripts/paths');
}
else {
// Loaded as a script - 'node build.js'
// Remove first two parameters which are node executable and this javascript file.
// Transform all parameters to lowercase for easier handling.
let params = process.argv.slice(2).map((item) => item.toLowerCase());
// Specify wheater cleanup is needed.
if (params.indexOf('clean') != -1) {
require('./scripts/clean').clean();
}
// Only build if embed was specified as a parameter.
if (params.indexOf('embed') != -1) {
let embedded = require('./scripts/embedded');
if (params.indexOf('debug') != -1) {
embedded.build('debug');
}
else {
embedded.build('release');
}
}
}
JavaScript
1
https://gitee.com/mirrors/Napa.js.git
git@gitee.com:mirrors/Napa.js.git
mirrors
Napa.js
Napa.js
master

搜索帮助