@teams-max/mwsp 1.0.2 → 2.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/mwsp.js +0 -29
- package/es/cli/build.d.ts +0 -1
- package/es/cli/build.js +69 -61
- package/es/cli/cli.js +4 -12
- package/es/cli/start.d.ts +0 -1
- package/es/cli/start.js +48 -26
- package/es/index.d.ts +2 -0
- package/es/index.js +3 -1
- package/es/utils/chalk/LICENSE +9 -0
- package/es/utils/chalk/index.d.ts +416 -0
- package/es/utils/chalk/index.js +1719 -0
- package/es/utils/chalk/package.json +1 -0
- package/es/{cli/update.js → utils/changelog.js} +41 -34
- package/es/{internal → utils}/datetimeFormat.js +1 -3
- package/es/utils/defineConfig.js +20 -0
- package/es/{internal → utils}/exec.js +3 -2
- package/es/utils/getPackages.js +9 -0
- package/es/{cli/dev.js → utils/git.js} +88 -36
- package/es/{internal/buildNotify.js → utils/index.js} +220 -97
- package/es/utils/isNextVersion.js +3 -0
- package/es/utils/parseDoc.js +33 -0
- package/es/utils/yargs-parser/index.d.ts +112 -0
- package/es/utils/yargs-parser/index.js +919 -0
- package/es/utils/yargs-parser/package.json +1 -0
- package/lib/cli/build.d.ts +0 -1
- package/lib/cli/build.js +54 -50
- package/lib/cli/cli.js +0 -8
- package/lib/cli/start.d.ts +0 -1
- package/lib/cli/start.js +25 -30
- package/lib/index.d.ts +2 -0
- package/lib/index.js +3 -0
- package/lib/utils/chalk/LICENSE +9 -0
- package/lib/utils/chalk/index.d.ts +416 -0
- package/lib/utils/chalk/index.js +1495 -0
- package/lib/utils/chalk/package.json +1 -0
- package/lib/utils/changelog.js +21 -0
- package/lib/{internal → utils}/cross-spawn/index.js +1 -1
- package/lib/{internal → utils}/datetimeFormat.js +10 -29
- package/lib/utils/defineConfig.js +19 -0
- package/lib/utils/exec.js +23 -0
- package/lib/{internal → utils}/execa/index.js +1 -1
- package/lib/utils/getPackages.js +6 -0
- package/lib/utils/git.js +23 -0
- package/lib/utils/index.js +159 -0
- package/lib/utils/isNextVersion.js +4 -0
- package/lib/{internal → utils}/merge-stream/index.js +1 -1
- package/lib/utils/parseDoc.js +30 -0
- package/lib/utils/yargs-parser/index.d.ts +112 -0
- package/lib/utils/yargs-parser/index.js +905 -0
- package/lib/utils/yargs-parser/package.json +1 -0
- package/package.json +4 -11
- package/es/cli/dev.d.ts +0 -1
- package/es/cli/update.d.ts +0 -2
- package/es/internal/buildNotify.d.ts +0 -10
- package/es/internal/datetimeFormat.d.ts +0 -9
- package/es/internal/exec.d.ts +0 -1
- package/es/internal/utils.d.ts +0 -14
- package/es/internal/utils.js +0 -90
- package/lib/cli/dev.d.ts +0 -1
- package/lib/cli/dev.js +0 -62
- package/lib/cli/update.d.ts +0 -2
- package/lib/cli/update.js +0 -50
- package/lib/internal/buildNotify.d.ts +0 -10
- package/lib/internal/buildNotify.js +0 -112
- package/lib/internal/datetimeFormat.d.ts +0 -9
- package/lib/internal/exec.d.ts +0 -1
- package/lib/internal/exec.js +0 -60
- package/lib/internal/utils.d.ts +0 -14
- package/lib/internal/utils.js +0 -100
- /package/es/{internal → utils}/cross-spawn/LICENSE +0 -0
- /package/es/{internal → utils}/cross-spawn/index.d.ts +0 -0
- /package/es/{internal → utils}/cross-spawn/index.js +0 -0
- /package/es/{internal → utils}/cross-spawn/package.json +0 -0
- /package/es/{internal → utils}/execa/LICENSE +0 -0
- /package/es/{internal → utils}/execa/index.d.ts +0 -0
- /package/es/{internal → utils}/execa/index.js +0 -0
- /package/es/{internal → utils}/execa/package.json +0 -0
- /package/es/{internal → utils}/merge-stream/LICENSE +0 -0
- /package/es/{internal → utils}/merge-stream/index.d.ts +0 -0
- /package/es/{internal → utils}/merge-stream/index.js +0 -0
- /package/es/{internal → utils}/merge-stream/package.json +0 -0
- /package/lib/{internal → utils}/cross-spawn/LICENSE +0 -0
- /package/lib/{internal → utils}/cross-spawn/index.d.ts +0 -0
- /package/lib/{internal → utils}/cross-spawn/package.json +0 -0
- /package/lib/{internal → utils}/execa/LICENSE +0 -0
- /package/lib/{internal → utils}/execa/index.d.ts +0 -0
- /package/lib/{internal → utils}/execa/package.json +0 -0
- /package/lib/{internal → utils}/merge-stream/LICENSE +0 -0
- /package/lib/{internal → utils}/merge-stream/index.d.ts +0 -0
- /package/lib/{internal → utils}/merge-stream/package.json +0 -0
package/bin/mwsp.js
CHANGED
|
@@ -1,34 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
require('v8-compile-cache');
|
|
3
|
-
//以 cross-spawn sync的方式运行脚本,app项目中没有生成.umi文件时,控制台报错Error: File './src/.umi/tsconfig.json' not found.
|
|
4
|
-
//暂时换以下方式实现
|
|
5
|
-
// const { join } = require('path');
|
|
6
|
-
// const { existsSync } = require('fs');
|
|
7
|
-
// const { sync } = require('@umijs/utils/compiled/cross-spawn');
|
|
8
|
-
// const chalk = require('@umijs/utils/compiled/chalk').default;
|
|
9
|
-
// const assert = require('assert');
|
|
10
|
-
|
|
11
|
-
// const argv = process.argv.slice(2);
|
|
12
|
-
// const name = argv[0];
|
|
13
|
-
// const scriptsPath = join(__dirname, `../src/cli/${name}.ts`);
|
|
14
|
-
|
|
15
|
-
// assert(
|
|
16
|
-
// existsSync(scriptsPath) && !name.startsWith('.'),
|
|
17
|
-
// `Executed script '${chalk.red(name)}' does not exist`,
|
|
18
|
-
// );
|
|
19
|
-
|
|
20
|
-
// console.log(chalk.cyan(`mwsp: ${name}\n`));
|
|
21
|
-
|
|
22
|
-
// const spawn = sync('esno', [scriptsPath, ...argv.slice(1)], {
|
|
23
|
-
// env: process.env,
|
|
24
|
-
// cwd: process.cwd(),
|
|
25
|
-
// stdio: 'inherit',
|
|
26
|
-
// shell: true,
|
|
27
|
-
// });
|
|
28
|
-
// if (spawn.status !== 0) {
|
|
29
|
-
// console.log(chalk.red(`mwsp: ${name} execute fail`));
|
|
30
|
-
// process.exit(1);
|
|
31
|
-
// }
|
|
32
3
|
const { run } = require('../lib/index')
|
|
33
4
|
run().catch((err) => {
|
|
34
5
|
console.error(err);
|
package/es/cli/build.d.ts
CHANGED
package/es/cli/build.js
CHANGED
|
@@ -1,79 +1,87 @@
|
|
|
1
1
|
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
2
|
-
var _templateObject, _templateObject2, _templateObject3;
|
|
3
2
|
function _regeneratorRuntime() { "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ _regeneratorRuntime = function _regeneratorRuntime() { return exports; }; var exports = {}, Op = Object.prototype, hasOwn = Op.hasOwnProperty, defineProperty = Object.defineProperty || function (obj, key, desc) { obj[key] = desc.value; }, $Symbol = "function" == typeof Symbol ? Symbol : {}, iteratorSymbol = $Symbol.iterator || "@@iterator", asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator", toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag"; function define(obj, key, value) { return Object.defineProperty(obj, key, { value: value, enumerable: !0, configurable: !0, writable: !0 }), obj[key]; } try { define({}, ""); } catch (err) { define = function define(obj, key, value) { return obj[key] = value; }; } function wrap(innerFn, outerFn, self, tryLocsList) { var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator, generator = Object.create(protoGenerator.prototype), context = new Context(tryLocsList || []); return defineProperty(generator, "_invoke", { value: makeInvokeMethod(innerFn, self, context) }), generator; } function tryCatch(fn, obj, arg) { try { return { type: "normal", arg: fn.call(obj, arg) }; } catch (err) { return { type: "throw", arg: err }; } } exports.wrap = wrap; var ContinueSentinel = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var IteratorPrototype = {}; define(IteratorPrototype, iteratorSymbol, function () { return this; }); var getProto = Object.getPrototypeOf, NativeIteratorPrototype = getProto && getProto(getProto(values([]))); NativeIteratorPrototype && NativeIteratorPrototype !== Op && hasOwn.call(NativeIteratorPrototype, iteratorSymbol) && (IteratorPrototype = NativeIteratorPrototype); var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(IteratorPrototype); function defineIteratorMethods(prototype) { ["next", "throw", "return"].forEach(function (method) { define(prototype, method, function (arg) { return this._invoke(method, arg); }); }); } function AsyncIterator(generator, PromiseImpl) { function invoke(method, arg, resolve, reject) { var record = tryCatch(generator[method], generator, arg); if ("throw" !== record.type) { var result = record.arg, value = result.value; return value && "object" == _typeof(value) && hasOwn.call(value, "__await") ? PromiseImpl.resolve(value.__await).then(function (value) { invoke("next", value, resolve, reject); }, function (err) { invoke("throw", err, resolve, reject); }) : PromiseImpl.resolve(value).then(function (unwrapped) { result.value = unwrapped, resolve(result); }, function (error) { return invoke("throw", error, resolve, reject); }); } reject(record.arg); } var previousPromise; defineProperty(this, "_invoke", { value: function value(method, arg) { function callInvokeWithMethodAndArg() { return new PromiseImpl(function (resolve, reject) { invoke(method, arg, resolve, reject); }); } return previousPromise = previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); } }); } function makeInvokeMethod(innerFn, self, context) { var state = "suspendedStart"; return function (method, arg) { if ("executing" === state) throw new Error("Generator is already running"); if ("completed" === state) { if ("throw" === method) throw arg; return doneResult(); } for (context.method = method, context.arg = arg;;) { var delegate = context.delegate; if (delegate) { var delegateResult = maybeInvokeDelegate(delegate, context); if (delegateResult) { if (delegateResult === ContinueSentinel) continue; return delegateResult; } } if ("next" === context.method) context.sent = context._sent = context.arg;else if ("throw" === context.method) { if ("suspendedStart" === state) throw state = "completed", context.arg; context.dispatchException(context.arg); } else "return" === context.method && context.abrupt("return", context.arg); state = "executing"; var record = tryCatch(innerFn, self, context); if ("normal" === record.type) { if (state = context.done ? "completed" : "suspendedYield", record.arg === ContinueSentinel) continue; return { value: record.arg, done: context.done }; } "throw" === record.type && (state = "completed", context.method = "throw", context.arg = record.arg); } }; } function maybeInvokeDelegate(delegate, context) { var methodName = context.method, method = delegate.iterator[methodName]; if (undefined === method) return context.delegate = null, "throw" === methodName && delegate.iterator.return && (context.method = "return", context.arg = undefined, maybeInvokeDelegate(delegate, context), "throw" === context.method) || "return" !== methodName && (context.method = "throw", context.arg = new TypeError("The iterator does not provide a '" + methodName + "' method")), ContinueSentinel; var record = tryCatch(method, delegate.iterator, context.arg); if ("throw" === record.type) return context.method = "throw", context.arg = record.arg, context.delegate = null, ContinueSentinel; var info = record.arg; return info ? info.done ? (context[delegate.resultName] = info.value, context.next = delegate.nextLoc, "return" !== context.method && (context.method = "next", context.arg = undefined), context.delegate = null, ContinueSentinel) : info : (context.method = "throw", context.arg = new TypeError("iterator result is not an object"), context.delegate = null, ContinueSentinel); } function pushTryEntry(locs) { var entry = { tryLoc: locs[0] }; 1 in locs && (entry.catchLoc = locs[1]), 2 in locs && (entry.finallyLoc = locs[2], entry.afterLoc = locs[3]), this.tryEntries.push(entry); } function resetTryEntry(entry) { var record = entry.completion || {}; record.type = "normal", delete record.arg, entry.completion = record; } function Context(tryLocsList) { this.tryEntries = [{ tryLoc: "root" }], tryLocsList.forEach(pushTryEntry, this), this.reset(!0); } function values(iterable) { if (iterable) { var iteratorMethod = iterable[iteratorSymbol]; if (iteratorMethod) return iteratorMethod.call(iterable); if ("function" == typeof iterable.next) return iterable; if (!isNaN(iterable.length)) { var i = -1, next = function next() { for (; ++i < iterable.length;) if (hasOwn.call(iterable, i)) return next.value = iterable[i], next.done = !1, next; return next.value = undefined, next.done = !0, next; }; return next.next = next; } } return { next: doneResult }; } function doneResult() { return { value: undefined, done: !0 }; } return GeneratorFunction.prototype = GeneratorFunctionPrototype, defineProperty(Gp, "constructor", { value: GeneratorFunctionPrototype, configurable: !0 }), defineProperty(GeneratorFunctionPrototype, "constructor", { value: GeneratorFunction, configurable: !0 }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, "GeneratorFunction"), exports.isGeneratorFunction = function (genFun) { var ctor = "function" == typeof genFun && genFun.constructor; return !!ctor && (ctor === GeneratorFunction || "GeneratorFunction" === (ctor.displayName || ctor.name)); }, exports.mark = function (genFun) { return Object.setPrototypeOf ? Object.setPrototypeOf(genFun, GeneratorFunctionPrototype) : (genFun.__proto__ = GeneratorFunctionPrototype, define(genFun, toStringTagSymbol, "GeneratorFunction")), genFun.prototype = Object.create(Gp), genFun; }, exports.awrap = function (arg) { return { __await: arg }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, asyncIteratorSymbol, function () { return this; }), exports.AsyncIterator = AsyncIterator, exports.async = function (innerFn, outerFn, self, tryLocsList, PromiseImpl) { void 0 === PromiseImpl && (PromiseImpl = Promise); var iter = new AsyncIterator(wrap(innerFn, outerFn, self, tryLocsList), PromiseImpl); return exports.isGeneratorFunction(outerFn) ? iter : iter.next().then(function (result) { return result.done ? result.value : iter.next(); }); }, defineIteratorMethods(Gp), define(Gp, toStringTagSymbol, "Generator"), define(Gp, iteratorSymbol, function () { return this; }), define(Gp, "toString", function () { return "[object Generator]"; }), exports.keys = function (val) { var object = Object(val), keys = []; for (var key in object) keys.push(key); return keys.reverse(), function next() { for (; keys.length;) { var key = keys.pop(); if (key in object) return next.value = key, next.done = !1, next; } return next.done = !0, next; }; }, exports.values = values, Context.prototype = { constructor: Context, reset: function reset(skipTempReset) { if (this.prev = 0, this.next = 0, this.sent = this._sent = undefined, this.done = !1, this.delegate = null, this.method = "next", this.arg = undefined, this.tryEntries.forEach(resetTryEntry), !skipTempReset) for (var name in this) "t" === name.charAt(0) && hasOwn.call(this, name) && !isNaN(+name.slice(1)) && (this[name] = undefined); }, stop: function stop() { this.done = !0; var rootRecord = this.tryEntries[0].completion; if ("throw" === rootRecord.type) throw rootRecord.arg; return this.rval; }, dispatchException: function dispatchException(exception) { if (this.done) throw exception; var context = this; function handle(loc, caught) { return record.type = "throw", record.arg = exception, context.next = loc, caught && (context.method = "next", context.arg = undefined), !!caught; } for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i], record = entry.completion; if ("root" === entry.tryLoc) return handle("end"); if (entry.tryLoc <= this.prev) { var hasCatch = hasOwn.call(entry, "catchLoc"), hasFinally = hasOwn.call(entry, "finallyLoc"); if (hasCatch && hasFinally) { if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0); if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc); } else if (hasCatch) { if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0); } else { if (!hasFinally) throw new Error("try statement without catch or finally"); if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc); } } } }, abrupt: function abrupt(type, arg) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.tryLoc <= this.prev && hasOwn.call(entry, "finallyLoc") && this.prev < entry.finallyLoc) { var finallyEntry = entry; break; } } finallyEntry && ("break" === type || "continue" === type) && finallyEntry.tryLoc <= arg && arg <= finallyEntry.finallyLoc && (finallyEntry = null); var record = finallyEntry ? finallyEntry.completion : {}; return record.type = type, record.arg = arg, finallyEntry ? (this.method = "next", this.next = finallyEntry.finallyLoc, ContinueSentinel) : this.complete(record); }, complete: function complete(record, afterLoc) { if ("throw" === record.type) throw record.arg; return "break" === record.type || "continue" === record.type ? this.next = record.arg : "return" === record.type ? (this.rval = this.arg = record.arg, this.method = "return", this.next = "end") : "normal" === record.type && afterLoc && (this.next = afterLoc), ContinueSentinel; }, finish: function finish(finallyLoc) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.finallyLoc === finallyLoc) return this.complete(entry.completion, entry.afterLoc), resetTryEntry(entry), ContinueSentinel; } }, catch: function _catch(tryLoc) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.tryLoc === tryLoc) { var record = entry.completion; if ("throw" === record.type) { var thrown = record.arg; resetTryEntry(entry); } return thrown; } } throw new Error("illegal catch attempt"); }, delegateYield: function delegateYield(iterable, resultName, nextLoc) { return this.delegate = { iterator: values(iterable), resultName: resultName, nextLoc: nextLoc }, "next" === this.method && (this.arg = undefined), ContinueSentinel; } }, exports; }
|
|
4
|
-
function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
|
|
5
3
|
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }
|
|
6
4
|
function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; }
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
var
|
|
14
|
-
|
|
15
|
-
// const envList = ['production', 'UAT', 'TEST', 'development', 'stage'];
|
|
5
|
+
var exec = require("../utils/exec");
|
|
6
|
+
var inquirer = require('inquirer');
|
|
7
|
+
var _require = require("../utils"),
|
|
8
|
+
logStep = _require.logStep,
|
|
9
|
+
getCfg = _require.getCfg,
|
|
10
|
+
fetchRemoteRepository = _require.fetchRemoteRepository;
|
|
11
|
+
var envList = ['production', 'UAT', 'TEST', 'development', 'stage'];
|
|
12
|
+
process.env.APP_TYPE = 'pro';
|
|
16
13
|
export default function build() {
|
|
17
14
|
return _build.apply(this, arguments);
|
|
18
15
|
}
|
|
19
|
-
|
|
20
|
-
// build().catch((err) => {
|
|
21
|
-
// console.error(err);
|
|
22
|
-
// process.exit(1);
|
|
23
|
-
// });
|
|
24
16
|
function _build() {
|
|
25
17
|
_build = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
26
|
-
var
|
|
18
|
+
var cfg, infra, ASG_DIR, appKey, APP_ENV, JENKINS_BUILD, MAX_SUB_APP, RESOURCE_URL, environment, questions, env;
|
|
27
19
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
28
20
|
while (1) switch (_context.prev = _context.next) {
|
|
29
21
|
case 0:
|
|
30
|
-
//
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
subApp = args.subApp || args.SUB_APP || '';
|
|
40
|
-
versionUrl = args.versionUrl || args.RESOURCE_URL || '';
|
|
41
|
-
entryEnv = args.env || args.ENV || ''; // let entryJenkinsBuild =
|
|
42
|
-
// args.jenkinsBuild || args.JENKINSBUILD || args.jenkins_build || args.JENKINS_BUILD;
|
|
43
|
-
entryApp = entryApp;
|
|
44
|
-
entryEnv = entryEnv;
|
|
45
|
-
assert(entryApp, "Build failed, please select the application first.");
|
|
46
|
-
assert(entryEnv, "Build failed, A build environment is a must.");
|
|
47
|
-
logger.info("Start: APP:".concat(entryApp, " ENV:").concat(entryEnv));
|
|
48
|
-
process.env.MAX_APP_ENV = entryEnv;
|
|
49
|
-
process.env.MAX_SUB_APP = subApp;
|
|
50
|
-
process.env.RESOURCE_URL = versionUrl;
|
|
51
|
-
process.env.BABEL_ENV = entryEnv !== 'production' ? 'development' : 'production';
|
|
52
|
-
process.env.MAX_APP_TYPE = 'max', process.env.MAX_APP_KEY = pkg.appKey || "";
|
|
53
|
-
// entryJenkinsBuild && buildNotify({ args, appList: [entryApp], environment: [entryEnv] });
|
|
54
|
-
logger.event('max build');
|
|
55
|
-
if (!(entryEnv === 'development')) {
|
|
56
|
-
_context.next = 26;
|
|
22
|
+
// 配置检测 (package.json)
|
|
23
|
+
cfg = getCfg();
|
|
24
|
+
infra = cfg.infra, ASG_DIR = cfg.ASG_DIR, appKey = cfg.appKey, APP_ENV = cfg.APP_ENV, JENKINS_BUILD = cfg.JENKINS_BUILD, MAX_SUB_APP = cfg.MAX_SUB_APP, RESOURCE_URL = cfg.RESOURCE_URL;
|
|
25
|
+
_context.next = 4;
|
|
26
|
+
return fetchRemoteRepository();
|
|
27
|
+
case 4:
|
|
28
|
+
environment = APP_ENV; // 非Jenkins构建,使用手动选择参数
|
|
29
|
+
if (!(!JENKINS_BUILD || !APP_ENV)) {
|
|
30
|
+
_context.next = 10;
|
|
57
31
|
break;
|
|
58
32
|
}
|
|
59
|
-
_context.next =
|
|
60
|
-
return
|
|
61
|
-
|
|
62
|
-
|
|
33
|
+
_context.next = 8;
|
|
34
|
+
return inquirer.prompt([{
|
|
35
|
+
type: 'list',
|
|
36
|
+
name: 'environment',
|
|
37
|
+
message: 'Select a build environment: ',
|
|
38
|
+
choices: envList,
|
|
39
|
+
default: envList[0]
|
|
40
|
+
}]);
|
|
41
|
+
case 8:
|
|
42
|
+
questions = _context.sent;
|
|
43
|
+
environment = questions.environment;
|
|
44
|
+
case 10:
|
|
45
|
+
env = Object.create(process.env);
|
|
46
|
+
env.BABEL_ENV = environment !== 'production' ? 'development' : 'production';
|
|
47
|
+
env.ASG_DIR = ASG_DIR;
|
|
48
|
+
logStep("Build ".concat(appKey), "ENV:".concat(environment));
|
|
49
|
+
if (!((infra === null || infra === void 0 ? void 0 : infra.arch) === 'PRO')) {
|
|
50
|
+
_context.next = 23;
|
|
51
|
+
break;
|
|
52
|
+
}
|
|
53
|
+
env.VUE_APP_ENV = environment;
|
|
54
|
+
env.VUE_APP_TYPE = 'pro';
|
|
55
|
+
env.VUE_JENKINS_BUILD = JENKINS_BUILD;
|
|
56
|
+
env.VUE_APP_KEY = appKey;
|
|
57
|
+
_context.next = 21;
|
|
58
|
+
return exec('vue-cli-service', ['serve'], {
|
|
59
|
+
env: env
|
|
60
|
+
});
|
|
61
|
+
case 21:
|
|
62
|
+
_context.next = 32;
|
|
63
63
|
break;
|
|
64
|
-
case
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
64
|
+
case 23:
|
|
65
|
+
if (!((infra === null || infra === void 0 ? void 0 : infra.arch) === 'MAX')) {
|
|
66
|
+
_context.next = 32;
|
|
67
|
+
break;
|
|
68
|
+
}
|
|
69
|
+
env.MAX_APP_ENV = environment;
|
|
70
|
+
env.MAX_APP_TYPE = 'max';
|
|
71
|
+
env.MAX_JENKINS_BUILD = JENKINS_BUILD;
|
|
72
|
+
env.MAX_APP_KEY = appKey;
|
|
73
|
+
env.MAX_SUB_APP = MAX_SUB_APP;
|
|
74
|
+
env.RESOURCE_URL = RESOURCE_URL;
|
|
75
|
+
_context.next = 32;
|
|
76
|
+
return exec('MAX', ['build'], {
|
|
77
|
+
env: env
|
|
78
|
+
});
|
|
79
|
+
case 32:
|
|
80
|
+
_context.next = 34;
|
|
81
|
+
return exec('rm', ['-rf'], ['./dist/*.map'], {
|
|
82
|
+
env: env
|
|
83
|
+
});
|
|
84
|
+
case 34:
|
|
77
85
|
case "end":
|
|
78
86
|
return _context.stop();
|
|
79
87
|
}
|
package/es/cli/cli.js
CHANGED
|
@@ -4,8 +4,6 @@ function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try
|
|
|
4
4
|
function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; }
|
|
5
5
|
import build from "./build";
|
|
6
6
|
import start from "./start";
|
|
7
|
-
import dev from "./dev";
|
|
8
|
-
import update from "./update";
|
|
9
7
|
export function run() {
|
|
10
8
|
return _run.apply(this, arguments);
|
|
11
9
|
}
|
|
@@ -18,21 +16,15 @@ function _run() {
|
|
|
18
16
|
argv = process.argv.slice(2);
|
|
19
17
|
name = argv[0];
|
|
20
18
|
_context.t0 = name;
|
|
21
|
-
_context.next = _context.t0 === 'start' ? 5 : _context.t0 === '
|
|
19
|
+
_context.next = _context.t0 === 'start' ? 5 : _context.t0 === 'build' ? 7 : 9;
|
|
22
20
|
break;
|
|
23
21
|
case 5:
|
|
24
22
|
start();
|
|
25
|
-
return _context.abrupt("break",
|
|
23
|
+
return _context.abrupt("break", 9);
|
|
26
24
|
case 7:
|
|
27
|
-
dev();
|
|
28
|
-
return _context.abrupt("break", 13);
|
|
29
|
-
case 9:
|
|
30
25
|
build();
|
|
31
|
-
return _context.abrupt("break",
|
|
32
|
-
case
|
|
33
|
-
update();
|
|
34
|
-
return _context.abrupt("break", 13);
|
|
35
|
-
case 13:
|
|
26
|
+
return _context.abrupt("break", 9);
|
|
27
|
+
case 9:
|
|
36
28
|
case "end":
|
|
37
29
|
return _context.stop();
|
|
38
30
|
}
|
package/es/cli/start.d.ts
CHANGED
package/es/cli/start.js
CHANGED
|
@@ -1,41 +1,63 @@
|
|
|
1
1
|
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
2
|
-
var _templateObject, _templateObject2;
|
|
3
2
|
function _regeneratorRuntime() { "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ _regeneratorRuntime = function _regeneratorRuntime() { return exports; }; var exports = {}, Op = Object.prototype, hasOwn = Op.hasOwnProperty, defineProperty = Object.defineProperty || function (obj, key, desc) { obj[key] = desc.value; }, $Symbol = "function" == typeof Symbol ? Symbol : {}, iteratorSymbol = $Symbol.iterator || "@@iterator", asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator", toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag"; function define(obj, key, value) { return Object.defineProperty(obj, key, { value: value, enumerable: !0, configurable: !0, writable: !0 }), obj[key]; } try { define({}, ""); } catch (err) { define = function define(obj, key, value) { return obj[key] = value; }; } function wrap(innerFn, outerFn, self, tryLocsList) { var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator, generator = Object.create(protoGenerator.prototype), context = new Context(tryLocsList || []); return defineProperty(generator, "_invoke", { value: makeInvokeMethod(innerFn, self, context) }), generator; } function tryCatch(fn, obj, arg) { try { return { type: "normal", arg: fn.call(obj, arg) }; } catch (err) { return { type: "throw", arg: err }; } } exports.wrap = wrap; var ContinueSentinel = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var IteratorPrototype = {}; define(IteratorPrototype, iteratorSymbol, function () { return this; }); var getProto = Object.getPrototypeOf, NativeIteratorPrototype = getProto && getProto(getProto(values([]))); NativeIteratorPrototype && NativeIteratorPrototype !== Op && hasOwn.call(NativeIteratorPrototype, iteratorSymbol) && (IteratorPrototype = NativeIteratorPrototype); var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(IteratorPrototype); function defineIteratorMethods(prototype) { ["next", "throw", "return"].forEach(function (method) { define(prototype, method, function (arg) { return this._invoke(method, arg); }); }); } function AsyncIterator(generator, PromiseImpl) { function invoke(method, arg, resolve, reject) { var record = tryCatch(generator[method], generator, arg); if ("throw" !== record.type) { var result = record.arg, value = result.value; return value && "object" == _typeof(value) && hasOwn.call(value, "__await") ? PromiseImpl.resolve(value.__await).then(function (value) { invoke("next", value, resolve, reject); }, function (err) { invoke("throw", err, resolve, reject); }) : PromiseImpl.resolve(value).then(function (unwrapped) { result.value = unwrapped, resolve(result); }, function (error) { return invoke("throw", error, resolve, reject); }); } reject(record.arg); } var previousPromise; defineProperty(this, "_invoke", { value: function value(method, arg) { function callInvokeWithMethodAndArg() { return new PromiseImpl(function (resolve, reject) { invoke(method, arg, resolve, reject); }); } return previousPromise = previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); } }); } function makeInvokeMethod(innerFn, self, context) { var state = "suspendedStart"; return function (method, arg) { if ("executing" === state) throw new Error("Generator is already running"); if ("completed" === state) { if ("throw" === method) throw arg; return doneResult(); } for (context.method = method, context.arg = arg;;) { var delegate = context.delegate; if (delegate) { var delegateResult = maybeInvokeDelegate(delegate, context); if (delegateResult) { if (delegateResult === ContinueSentinel) continue; return delegateResult; } } if ("next" === context.method) context.sent = context._sent = context.arg;else if ("throw" === context.method) { if ("suspendedStart" === state) throw state = "completed", context.arg; context.dispatchException(context.arg); } else "return" === context.method && context.abrupt("return", context.arg); state = "executing"; var record = tryCatch(innerFn, self, context); if ("normal" === record.type) { if (state = context.done ? "completed" : "suspendedYield", record.arg === ContinueSentinel) continue; return { value: record.arg, done: context.done }; } "throw" === record.type && (state = "completed", context.method = "throw", context.arg = record.arg); } }; } function maybeInvokeDelegate(delegate, context) { var methodName = context.method, method = delegate.iterator[methodName]; if (undefined === method) return context.delegate = null, "throw" === methodName && delegate.iterator.return && (context.method = "return", context.arg = undefined, maybeInvokeDelegate(delegate, context), "throw" === context.method) || "return" !== methodName && (context.method = "throw", context.arg = new TypeError("The iterator does not provide a '" + methodName + "' method")), ContinueSentinel; var record = tryCatch(method, delegate.iterator, context.arg); if ("throw" === record.type) return context.method = "throw", context.arg = record.arg, context.delegate = null, ContinueSentinel; var info = record.arg; return info ? info.done ? (context[delegate.resultName] = info.value, context.next = delegate.nextLoc, "return" !== context.method && (context.method = "next", context.arg = undefined), context.delegate = null, ContinueSentinel) : info : (context.method = "throw", context.arg = new TypeError("iterator result is not an object"), context.delegate = null, ContinueSentinel); } function pushTryEntry(locs) { var entry = { tryLoc: locs[0] }; 1 in locs && (entry.catchLoc = locs[1]), 2 in locs && (entry.finallyLoc = locs[2], entry.afterLoc = locs[3]), this.tryEntries.push(entry); } function resetTryEntry(entry) { var record = entry.completion || {}; record.type = "normal", delete record.arg, entry.completion = record; } function Context(tryLocsList) { this.tryEntries = [{ tryLoc: "root" }], tryLocsList.forEach(pushTryEntry, this), this.reset(!0); } function values(iterable) { if (iterable) { var iteratorMethod = iterable[iteratorSymbol]; if (iteratorMethod) return iteratorMethod.call(iterable); if ("function" == typeof iterable.next) return iterable; if (!isNaN(iterable.length)) { var i = -1, next = function next() { for (; ++i < iterable.length;) if (hasOwn.call(iterable, i)) return next.value = iterable[i], next.done = !1, next; return next.value = undefined, next.done = !0, next; }; return next.next = next; } } return { next: doneResult }; } function doneResult() { return { value: undefined, done: !0 }; } return GeneratorFunction.prototype = GeneratorFunctionPrototype, defineProperty(Gp, "constructor", { value: GeneratorFunctionPrototype, configurable: !0 }), defineProperty(GeneratorFunctionPrototype, "constructor", { value: GeneratorFunction, configurable: !0 }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, "GeneratorFunction"), exports.isGeneratorFunction = function (genFun) { var ctor = "function" == typeof genFun && genFun.constructor; return !!ctor && (ctor === GeneratorFunction || "GeneratorFunction" === (ctor.displayName || ctor.name)); }, exports.mark = function (genFun) { return Object.setPrototypeOf ? Object.setPrototypeOf(genFun, GeneratorFunctionPrototype) : (genFun.__proto__ = GeneratorFunctionPrototype, define(genFun, toStringTagSymbol, "GeneratorFunction")), genFun.prototype = Object.create(Gp), genFun; }, exports.awrap = function (arg) { return { __await: arg }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, asyncIteratorSymbol, function () { return this; }), exports.AsyncIterator = AsyncIterator, exports.async = function (innerFn, outerFn, self, tryLocsList, PromiseImpl) { void 0 === PromiseImpl && (PromiseImpl = Promise); var iter = new AsyncIterator(wrap(innerFn, outerFn, self, tryLocsList), PromiseImpl); return exports.isGeneratorFunction(outerFn) ? iter : iter.next().then(function (result) { return result.done ? result.value : iter.next(); }); }, defineIteratorMethods(Gp), define(Gp, toStringTagSymbol, "Generator"), define(Gp, iteratorSymbol, function () { return this; }), define(Gp, "toString", function () { return "[object Generator]"; }), exports.keys = function (val) { var object = Object(val), keys = []; for (var key in object) keys.push(key); return keys.reverse(), function next() { for (; keys.length;) { var key = keys.pop(); if (key in object) return next.value = key, next.done = !1, next; } return next.done = !0, next; }; }, exports.values = values, Context.prototype = { constructor: Context, reset: function reset(skipTempReset) { if (this.prev = 0, this.next = 0, this.sent = this._sent = undefined, this.done = !1, this.delegate = null, this.method = "next", this.arg = undefined, this.tryEntries.forEach(resetTryEntry), !skipTempReset) for (var name in this) "t" === name.charAt(0) && hasOwn.call(this, name) && !isNaN(+name.slice(1)) && (this[name] = undefined); }, stop: function stop() { this.done = !0; var rootRecord = this.tryEntries[0].completion; if ("throw" === rootRecord.type) throw rootRecord.arg; return this.rval; }, dispatchException: function dispatchException(exception) { if (this.done) throw exception; var context = this; function handle(loc, caught) { return record.type = "throw", record.arg = exception, context.next = loc, caught && (context.method = "next", context.arg = undefined), !!caught; } for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i], record = entry.completion; if ("root" === entry.tryLoc) return handle("end"); if (entry.tryLoc <= this.prev) { var hasCatch = hasOwn.call(entry, "catchLoc"), hasFinally = hasOwn.call(entry, "finallyLoc"); if (hasCatch && hasFinally) { if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0); if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc); } else if (hasCatch) { if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0); } else { if (!hasFinally) throw new Error("try statement without catch or finally"); if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc); } } } }, abrupt: function abrupt(type, arg) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.tryLoc <= this.prev && hasOwn.call(entry, "finallyLoc") && this.prev < entry.finallyLoc) { var finallyEntry = entry; break; } } finallyEntry && ("break" === type || "continue" === type) && finallyEntry.tryLoc <= arg && arg <= finallyEntry.finallyLoc && (finallyEntry = null); var record = finallyEntry ? finallyEntry.completion : {}; return record.type = type, record.arg = arg, finallyEntry ? (this.method = "next", this.next = finallyEntry.finallyLoc, ContinueSentinel) : this.complete(record); }, complete: function complete(record, afterLoc) { if ("throw" === record.type) throw record.arg; return "break" === record.type || "continue" === record.type ? this.next = record.arg : "return" === record.type ? (this.rval = this.arg = record.arg, this.method = "return", this.next = "end") : "normal" === record.type && afterLoc && (this.next = afterLoc), ContinueSentinel; }, finish: function finish(finallyLoc) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.finallyLoc === finallyLoc) return this.complete(entry.completion, entry.afterLoc), resetTryEntry(entry), ContinueSentinel; } }, catch: function _catch(tryLoc) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.tryLoc === tryLoc) { var record = entry.completion; if ("throw" === record.type) { var thrown = record.arg; resetTryEntry(entry); } return thrown; } } throw new Error("illegal catch attempt"); }, delegateYield: function delegateYield(iterable, resultName, nextLoc) { return this.delegate = { iterator: values(iterable), resultName: resultName, nextLoc: nextLoc }, "next" === this.method && (this.arg = undefined), ContinueSentinel; } }, exports; }
|
|
4
|
-
function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
|
|
5
3
|
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }
|
|
6
4
|
function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; }
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
var cwd = process.cwd();
|
|
5
|
+
var exec = require("../utils/exec");
|
|
6
|
+
var _require = require("../utils"),
|
|
7
|
+
getCfg = _require.getCfg,
|
|
8
|
+
fetchRemoteRepository = _require.fetchRemoteRepository;
|
|
12
9
|
export default function start() {
|
|
13
10
|
return _start.apply(this, arguments);
|
|
14
11
|
}
|
|
12
|
+
|
|
13
|
+
// start().catch((err) => {
|
|
14
|
+
// console.error(err);
|
|
15
|
+
// process.exit(1);
|
|
16
|
+
// });
|
|
15
17
|
function _start() {
|
|
16
18
|
_start = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
17
|
-
var
|
|
19
|
+
var cfg, infra, appKey, ASG_DIR, env;
|
|
18
20
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
19
21
|
while (1) switch (_context.prev = _context.next) {
|
|
20
22
|
case 0:
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
process.env
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
23
|
+
// 配置检测 (package.json)
|
|
24
|
+
cfg = getCfg();
|
|
25
|
+
infra = cfg.infra, appKey = cfg.appKey, ASG_DIR = cfg.ASG_DIR;
|
|
26
|
+
env = Object.create(process.env); // Do this as the first thing so that any code reading it knows the right env.
|
|
27
|
+
if ((infra === null || infra === void 0 ? void 0 : infra.arch) === 'PRO') {
|
|
28
|
+
env.VUE_APP_TYPE = 'pro';
|
|
29
|
+
env.VUE_APP_ENV = 'development';
|
|
30
|
+
env.VUE_APP_KEY = appKey;
|
|
31
|
+
} else if ((infra === null || infra === void 0 ? void 0 : infra.arch) === 'MAX') {
|
|
32
|
+
env.MAX_APP_TYPE = 'max';
|
|
33
|
+
env.MAX_APP_ENV = 'development';
|
|
34
|
+
env.MAX_APP_KEY = appKey;
|
|
35
|
+
}
|
|
36
|
+
env.BABEL_ENV = 'development';
|
|
37
|
+
env.ASG_DIR = ASG_DIR;
|
|
38
|
+
_context.next = 8;
|
|
39
|
+
return fetchRemoteRepository();
|
|
40
|
+
case 8:
|
|
41
|
+
if (!((infra === null || infra === void 0 ? void 0 : infra.arch) === 'PRO')) {
|
|
42
|
+
_context.next = 13;
|
|
43
|
+
break;
|
|
44
|
+
}
|
|
45
|
+
_context.next = 11;
|
|
46
|
+
return exec('vue-cli-service', ['serve'], {
|
|
47
|
+
env: env
|
|
48
|
+
});
|
|
49
|
+
case 11:
|
|
50
|
+
_context.next = 16;
|
|
51
|
+
break;
|
|
52
|
+
case 13:
|
|
53
|
+
if (!((infra === null || infra === void 0 ? void 0 : infra.arch) === 'MAX')) {
|
|
54
|
+
_context.next = 16;
|
|
55
|
+
break;
|
|
56
|
+
}
|
|
57
|
+
_context.next = 16;
|
|
58
|
+
return exec('max', ['dev'], {
|
|
59
|
+
env: env
|
|
60
|
+
});
|
|
39
61
|
case 16:
|
|
40
62
|
case "end":
|
|
41
63
|
return _context.stop();
|
package/es/index.d.ts
CHANGED
package/es/index.js
CHANGED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (sindresorhus.com)
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
|
6
|
+
|
|
7
|
+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
|
8
|
+
|
|
9
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|