@quick-game/cli
Version:
Command line interface for rapid qg development
27 lines (24 loc) • 1.66 kB
JavaScript
"use strict";var _Object$defineProperty = require("@babel/runtime-corejs2/core-js/object/define-property");_Object$defineProperty(exports, "__esModule", { value: true });exports.WEBPACK_CONFIG_FILE = exports.TEMP = exports.SRC = exports.RPK_SIGNED = exports.RPK = exports.MINIGAME_CONFIG = exports.MANIFEST = exports.MAIN = exports.LOG_TITLE = exports.FILE_EXT_IGNORES = exports.FILE_EXT = exports.ENTRY_NAME = exports.ENTRY = exports.DIST = exports.COCOS_LIBRARY = exports.BUILDTEMP = exports.BUILD = void 0; /**
* 所有的常量放到这里统一管理
*/
// 日志模块标识
const LOG_TITLE = exports.LOG_TITLE = '### Cli Packager ### ';
const SRC = exports.SRC = 'src';
const BUILD = exports.BUILD = 'build';
const BUILDTEMP = exports.BUILDTEMP = 'build_temp';
const DIST = exports.DIST = 'dist';
const TEMP = exports.TEMP = 'dist_temp';
const ENTRY = exports.ENTRY = 'game.js';
const ENTRY_NAME = exports.ENTRY_NAME = 'game';
const MANIFEST = exports.MANIFEST = 'manifest.json';
const WEBPACK_CONFIG_FILE = exports.WEBPACK_CONFIG_FILE = 'webpack.config.js';
const MINIGAME_CONFIG = exports.MINIGAME_CONFIG = 'minigame.config.js';
const COCOS_LIBRARY = exports.COCOS_LIBRARY = 'cocos-library';
// 打包的后缀
const RPK = exports.RPK = '.rpk';
const RPK_SIGNED = exports.RPK_SIGNED = '.signed.rpk';
// 主包包名
const MAIN = exports.MAIN = 'main';
// 排除资源列表
const FILE_EXT_IGNORES = exports.FILE_EXT_IGNORES = ['.js', '.jsx', '.coffee', '.ts', '.tsx', '.vue', '.css', '.less', '.sass', '.styl', '.html', '.md', '.mix', '.ux'];
const FILE_EXT = exports.FILE_EXT = ['.webpack.js', '.web.js', '.js', '.json', '.mix', '.ux', '.jsx'];