@zohodesk/react-cli 1.1.17 → 1.1.18-exp.1
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/README.md +13 -0
- package/lib/babel/babel-option-utils/babel-preset-react-option.js +22 -0
- package/lib/babel/cmjs-plugins-presets.js +7 -1
- package/lib/babel/es-plugins-presets.js +7 -1
- package/lib/configs/webpack.dev.config.js +7 -2
- package/lib/configs/webpack.prod.config.js +9 -2
- package/lib/loaderUtils/getDevJsLoaders.js +5 -1
- package/lib/schemas/index.js +4 -0
- package/npm-shrinkwrap.json +31 -5
- package/package.json +1 -1
- package/packages/client_build_tool/lib/allCommandsConfigs.js +23 -0
- package/packages/client_build_tool/lib/buildToolLoggers.js +32 -0
- package/packages/client_build_tool/lib/commands/build/commandExecutor.js +21 -0
- package/packages/client_build_tool/lib/commands/build/config.js +12 -0
- package/packages/client_build_tool/lib/commands/build/errorHander.js +10 -0
- package/packages/client_build_tool/lib/commands/build/index.js +35 -0
- package/packages/client_build_tool/lib/commands/build/optionsProcesser.js +40 -0
- package/packages/client_build_tool/lib/commands/buildEs/commandExecutor.js +17 -0
- package/packages/client_build_tool/lib/commands/buildEs/config.js +12 -0
- package/packages/client_build_tool/lib/commands/buildLib/commandExecutor.js +17 -0
- package/packages/client_build_tool/lib/commands/buildLib/config.js +12 -0
- package/packages/client_build_tool/lib/commands/start/commandExecutor.js +13 -0
- package/packages/client_build_tool/lib/commands/start/config.js +12 -0
- package/packages/client_build_tool/lib/commands/start/deprecationHandler.js +10 -0
- package/packages/client_build_tool/lib/commands/start/errorHander.js +10 -0
- package/packages/client_build_tool/lib/commands/start/optionsProcesser.js +36 -0
- package/packages/client_build_tool/lib/commands/start/postProcesser.js +10 -0
- package/packages/client_build_tool/lib/commands/start/preProcesser.js +10 -0
- package/packages/client_build_tool/lib/commandsRouter.js +71 -0
- package/packages/client_build_tool/lib/shared/bundler/webpack/common/decidePublicPath.js +44 -0
- package/packages/client_build_tool/lib/shared/bundler/webpack/common/libAlias.js +31 -0
- package/packages/client_build_tool/lib/shared/bundler/webpack/common/nameTemplates.js +51 -0
- package/packages/client_build_tool/lib/shared/bundler/webpack/common/resourceBasedPublicPath.js +21 -0
- package/packages/client_build_tool/lib/shared/bundler/webpack/cssLoaders.js +16 -0
- package/packages/client_build_tool/lib/shared/bundler/webpack/custom_plugins/CdnChangePlugin.js +111 -0
- package/packages/client_build_tool/lib/shared/bundler/webpack/custom_plugins/EFCPlugin.js +1 -0
- package/packages/client_build_tool/lib/shared/bundler/webpack/custom_plugins/I18nSplitPlugin/ContributionGuide.md +11 -0
- package/packages/client_build_tool/lib/shared/bundler/webpack/custom_plugins/I18nSplitPlugin/I18nKeysIdentifer.js +136 -0
- package/packages/client_build_tool/lib/shared/bundler/webpack/custom_plugins/I18nSplitPlugin/I18nSplit.md +95 -0
- package/packages/client_build_tool/lib/shared/bundler/webpack/custom_plugins/I18nSplitPlugin/README.md +25 -0
- package/packages/client_build_tool/lib/shared/bundler/webpack/custom_plugins/I18nSplitPlugin/constants.js +29 -0
- package/packages/client_build_tool/lib/shared/bundler/webpack/custom_plugins/I18nSplitPlugin/createHash.js +24 -0
- package/packages/client_build_tool/lib/shared/bundler/webpack/custom_plugins/I18nSplitPlugin/getI18nDependency.js +99 -0
- package/packages/client_build_tool/lib/shared/bundler/webpack/custom_plugins/I18nSplitPlugin/getI18nLoadingRuntimeModule.js +81 -0
- package/packages/client_build_tool/lib/shared/bundler/webpack/custom_plugins/I18nSplitPlugin/getI18nModule.js +201 -0
- package/packages/client_build_tool/lib/shared/bundler/webpack/custom_plugins/I18nSplitPlugin/index.js +401 -0
- package/packages/client_build_tool/lib/shared/bundler/webpack/custom_plugins/I18nSplitPlugin/optionsHandler.js +67 -0
- package/packages/client_build_tool/lib/shared/bundler/webpack/custom_plugins/I18nSplitPlugin/pathCreator.js +23 -0
- package/packages/client_build_tool/lib/shared/bundler/webpack/custom_plugins/I18nSplitPlugin/readI18nValues.js +29 -0
- package/packages/client_build_tool/lib/shared/bundler/webpack/custom_plugins/I18nSplitPlugin/templateFileName.js +49 -0
- package/packages/client_build_tool/lib/shared/bundler/webpack/custom_plugins/I18nSplitPlugin/templateHashHelpers.js +77 -0
- package/packages/client_build_tool/lib/shared/bundler/webpack/custom_plugins/I18nSplitPlugin/utils/collectI18nKeys.js +63 -0
- package/packages/client_build_tool/lib/shared/bundler/webpack/custom_plugins/I18nSplitPlugin/utils/hashUtils.js +19 -0
- package/packages/client_build_tool/lib/shared/bundler/webpack/custom_plugins/I18nSplitPlugin/utils/index.js +31 -0
- package/packages/client_build_tool/lib/shared/bundler/webpack/custom_plugins/I18nSplitPlugin/utils/propertiesUtils.js +127 -0
- package/packages/client_build_tool/lib/shared/bundler/webpack/custom_plugins/RTLSplitPlugin.js +1 -0
- package/packages/client_build_tool/lib/shared/bundler/webpack/custom_plugins/RtlSplitPlugin/OverwriteCssPathForRTL.js +63 -0
- package/packages/client_build_tool/lib/shared/bundler/webpack/custom_plugins/RtlSplitPlugin/RtlCssPlugin.js +89 -0
- package/packages/client_build_tool/lib/shared/bundler/webpack/custom_plugins/RtlSplitPlugin/RtrSplit.md +34 -0
- package/packages/client_build_tool/lib/shared/bundler/webpack/custom_plugins/RtlSplitPlugin/replaceCssDirTemplate.js +15 -0
- package/packages/client_build_tool/lib/shared/bundler/webpack/custom_plugins/ServiceWorkerPlugin.js +155 -0
- package/packages/client_build_tool/lib/shared/bundler/webpack/custom_plugins/UglifyCSSPlugin.js +49 -0
- package/packages/client_build_tool/lib/shared/bundler/webpack/custom_postcss_loaders/ExcludePlugin.js +58 -0
- package/packages/client_build_tool/lib/shared/bundler/webpack/custom_postcss_loaders/RTLSplitPlugin.js +139 -0
- package/packages/client_build_tool/lib/shared/bundler/webpack/devServerConfig.js +34 -0
- package/packages/client_build_tool/lib/shared/bundler/webpack/getCSSLoaders.js +30 -0
- package/packages/client_build_tool/lib/shared/bundler/webpack/jsLoaders.js +17 -0
- package/packages/client_build_tool/lib/shared/bundler/webpack/loaderConfigs/assetLoaders.js +14 -0
- package/packages/client_build_tool/lib/shared/bundler/webpack/loaderConfigs/babelLoaderConfig.js +24 -0
- package/packages/client_build_tool/lib/shared/bundler/webpack/loaderConfigs/configHtmlTemplateLoader.js +18 -0
- package/packages/client_build_tool/lib/shared/bundler/webpack/loaderConfigs/configWebWorkerLoader.js +21 -0
- package/packages/client_build_tool/lib/shared/bundler/webpack/loaderConfigs/configsAssetsLoaders.js +138 -0
- package/packages/client_build_tool/lib/shared/bundler/webpack/loaderConfigs/cssClassNameGenerate.js +83 -0
- package/packages/client_build_tool/lib/shared/bundler/webpack/loaderConfigs/getCssLoaderOptions.js +23 -0
- package/packages/client_build_tool/lib/shared/bundler/webpack/loaders/workerLoader.js +133 -0
- package/packages/client_build_tool/lib/shared/bundler/webpack/optimizationConfig.js +39 -0
- package/packages/client_build_tool/lib/shared/bundler/webpack/outputConfig.js +28 -0
- package/packages/client_build_tool/lib/shared/bundler/webpack/pluginConfigs/configCdnChangePlugin.js +18 -0
- package/packages/client_build_tool/lib/shared/bundler/webpack/pluginConfigs/configCopyThirdpartyFile.js +38 -0
- package/packages/client_build_tool/lib/shared/bundler/webpack/pluginConfigs/configEnvVariables.js +24 -0
- package/packages/client_build_tool/lib/shared/bundler/webpack/pluginConfigs/configHtmlWebpackPlugin.js +28 -0
- package/packages/client_build_tool/lib/shared/bundler/webpack/pluginConfigs/configI18nSplitPlugin.js +35 -0
- package/packages/client_build_tool/lib/shared/bundler/webpack/pluginConfigs/configIgnorePlugin.js +16 -0
- package/packages/client_build_tool/lib/shared/bundler/webpack/pluginConfigs/configMiniCSSExtractPlugin.js +23 -0
- package/packages/client_build_tool/lib/shared/bundler/webpack/pluginConfigs/configProgressPlugin.js +19 -0
- package/packages/client_build_tool/lib/shared/bundler/webpack/pluginConfigs/configRtlCssPlugin.js +27 -0
- package/packages/client_build_tool/lib/shared/bundler/webpack/pluginConfigs/configServiceWorkerPlugin.js +18 -0
- package/packages/client_build_tool/lib/shared/bundler/webpack/pluginConfigs/configUglifyCSSPlugin.js +15 -0
- package/packages/client_build_tool/lib/shared/bundler/webpack/plugins.js +39 -0
- package/packages/client_build_tool/lib/shared/bundler/webpack/postcssPlugins.js +36 -0
- package/packages/client_build_tool/lib/shared/bundler/webpack/resolvers.js +42 -0
- package/packages/client_build_tool/lib/shared/bundler/webpack/splitChunksConfig.js +12 -0
- package/packages/client_build_tool/lib/shared/bundler/webpack/webpack.dev.config.js +17 -0
- package/packages/client_build_tool/lib/shared/bundler/webpack/webpackBuild.js +24 -0
- package/packages/client_build_tool/lib/shared/bundler/webpack/webpackConfig.js +50 -0
- package/packages/client_build_tool/lib/shared/commands-utlis/doBasicRequiermentCheck.js +16 -0
- package/packages/client_build_tool/lib/shared/commands-utlis/getCliPath.js +38 -0
- package/packages/client_build_tool/lib/shared/commands-utlis/index.js +29 -0
- package/packages/client_build_tool/lib/shared/commands-utlis/log.js +13 -0
- package/packages/client_build_tool/lib/shared/commands-utlis/readArgsFormCommandLine.js +11 -0
- package/packages/client_build_tool/lib/shared/commands-utlis/readOptionFormCommandLine.js +11 -0
- package/packages/client_build_tool/lib/shared/commands-utlis/spanSync.js +35 -0
- package/packages/client_build_tool/lib/shared/constants.js +33 -0
- package/packages/client_build_tool/lib/shared/schemas/applyValuesToShema.js +37 -0
- package/packages/client_build_tool/lib/shared/schemas/cliArgsToObject.js +37 -0
- package/packages/client_build_tool/lib/shared/schemas/defaultConfigValues.js +119 -0
- package/packages/client_build_tool/lib/shared/schemas/deprecatedOptionsHandler.js +65 -0
- package/packages/client_build_tool/lib/shared/schemas/getCWD.js +23 -0
- package/packages/client_build_tool/lib/shared/schemas/getNpmVersion.js +21 -0
- package/packages/client_build_tool/lib/shared/schemas/npmConfigToObject.js +32 -0
- package/packages/client_build_tool/lib/shared/schemas/oldDefaultConfigValues.js +480 -0
- package/packages/client_build_tool/lib/shared/schemas/readOptions.js +55 -0
- package/packages/client_build_tool/lib/shared/schemas/readOptionsForPackageJson.js +26 -0
- package/packages/client_build_tool/lib/shared/schemas/readOptionsOld.js +152 -0
- package/packages/client_build_tool/lib/shared/server/cert/Tsicsezwild-22-23.crt +37 -0
- package/packages/client_build_tool/lib/shared/server/cert/Tsicsezwild-22-23.key +27 -0
- package/packages/client_build_tool/lib/shared/server/configWebpackDevMiddleware.js +40 -0
- package/packages/client_build_tool/lib/shared/server/corsHandleing.js +28 -0
- package/packages/client_build_tool/lib/shared/server/getIp.js +30 -0
- package/packages/client_build_tool/lib/shared/server/getServerURL.js +29 -0
- package/packages/client_build_tool/lib/shared/server/httpsOptions.js +53 -0
- package/packages/client_build_tool/lib/shared/server/initExpressApp.js +19 -0
- package/packages/client_build_tool/lib/shared/server/initialHTMLHandling.js +66 -0
- package/packages/client_build_tool/lib/shared/server/serveContextFiles.js +24 -0
- package/packages/client_build_tool/lib/shared/server/serverBywebpackDevMiddleware.js +40 -0
- package/packages/client_build_tool/lib/shared/server/startHttpServer.js +26 -0
- package/packages/client_build_tool/lib/shared/server/startHttpsServer.js +34 -0
- package/packages/client_build_tool/lib/shared/server/unwanted/addHttp2Server.js +41 -0
- package/packages/client_build_tool/lib/shared/server/unwanted/configWebpackDevMiddleware.js +44 -0
- package/packages/client_build_tool/lib/shared/server/unwanted/devServerUtlis.js +1 -0
- package/packages/client_build_tool/lib/shared/server/unwanted/mockApiSupport.js +19 -0
- package/packages/client_build_tool/lib/shared/server/unwanted/webpackConfig.js +32 -0
- package/packages/client_build_tool/lib/shared/server/unwanted/websocketMockSetup.js +48 -0
- package/packages/client_build_tool/lib/shared/server/urlConcat.js +25 -0
- package/packages/client_build_tool/lib/shared/utils/utils.js +1 -0
package/README.md
CHANGED
|
@@ -44,6 +44,19 @@ Now to run app
|
|
|
44
44
|
|
|
45
45
|
# Change Logs
|
|
46
46
|
|
|
47
|
+
# 1.1.18 (30-01-2024)
|
|
48
|
+
|
|
49
|
+
**Feature:-**
|
|
50
|
+
|
|
51
|
+
- MJS loader support added.
|
|
52
|
+
- We can enable/disable this feature by `npm run start --enableMjsLoader=true/false` default value will be `false`.
|
|
53
|
+
|
|
54
|
+
```
|
|
55
|
+
app: {
|
|
56
|
+
enableMjsLoader : true/false
|
|
57
|
+
}
|
|
58
|
+
```
|
|
59
|
+
|
|
47
60
|
# 1.1.17 (24.1.2024)
|
|
48
61
|
|
|
49
62
|
**Feature:-**
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = getReactPreset;
|
|
7
|
+
|
|
8
|
+
function getReactPresetOptions() {
|
|
9
|
+
return {
|
|
10
|
+
runtime: 'classic',
|
|
11
|
+
// change it to 'automatic', when react version updated to 18
|
|
12
|
+
useSpread: true
|
|
13
|
+
};
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
function getReactPreset({
|
|
17
|
+
disableES5Transpile
|
|
18
|
+
}) {
|
|
19
|
+
const reactPreset = require.resolve('@babel/preset-react');
|
|
20
|
+
|
|
21
|
+
return disableES5Transpile ? [reactPreset, getReactPresetOptions()] : reactPreset;
|
|
22
|
+
}
|
|
@@ -7,6 +7,10 @@ exports.default = void 0;
|
|
|
7
7
|
|
|
8
8
|
var _utils = require("../utils");
|
|
9
9
|
|
|
10
|
+
var _babelPresetReactOption = _interopRequireDefault(require("./babel-option-utils/babel-preset-react-option"));
|
|
11
|
+
|
|
12
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
13
|
+
|
|
10
14
|
let {
|
|
11
15
|
module: {
|
|
12
16
|
mode
|
|
@@ -15,7 +19,9 @@ let {
|
|
|
15
19
|
let isProd = mode.toLowerCase() === 'prod';
|
|
16
20
|
|
|
17
21
|
var _default = () => ({
|
|
18
|
-
presets: [require.resolve('@babel/preset-env'),
|
|
22
|
+
presets: [require.resolve('@babel/preset-env'), (0, _babelPresetReactOption.default)({
|
|
23
|
+
disableES5Transpile: false
|
|
24
|
+
})],
|
|
19
25
|
plugins: [[require.resolve('babel-plugin-transform-define'), isProd ? {
|
|
20
26
|
__DOCS__: false
|
|
21
27
|
} : {}]]
|
|
@@ -7,6 +7,10 @@ exports.default = void 0;
|
|
|
7
7
|
|
|
8
8
|
var _utils = require("../utils");
|
|
9
9
|
|
|
10
|
+
var _babelPresetReactOption = _interopRequireDefault(require("./babel-option-utils/babel-preset-react-option"));
|
|
11
|
+
|
|
12
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
13
|
+
|
|
10
14
|
let {
|
|
11
15
|
module: {
|
|
12
16
|
mode,
|
|
@@ -25,7 +29,9 @@ var _default = () => ({
|
|
|
25
29
|
}
|
|
26
30
|
} : {
|
|
27
31
|
modules: false
|
|
28
|
-
}],
|
|
32
|
+
}], (0, _babelPresetReactOption.default)({
|
|
33
|
+
disableES5Transpile
|
|
34
|
+
})],
|
|
29
35
|
plugins: [[require.resolve('babel-plugin-transform-define'), isProd ? {
|
|
30
36
|
__DOCS__: false
|
|
31
37
|
} : {}], require.resolve('@babel/plugin-syntax-dynamic-import')]
|
|
@@ -42,7 +42,8 @@ const {
|
|
|
42
42
|
sourcemap,
|
|
43
43
|
crossorigin,
|
|
44
44
|
postCssPluginOrder,
|
|
45
|
-
externals
|
|
45
|
+
externals,
|
|
46
|
+
enableMjsLoader
|
|
46
47
|
}
|
|
47
48
|
} = options;
|
|
48
49
|
const {
|
|
@@ -100,7 +101,11 @@ module.exports = {
|
|
|
100
101
|
|
|
101
102
|
return false;
|
|
102
103
|
}
|
|
103
|
-
},
|
|
104
|
+
}, enableMjsLoader ? {
|
|
105
|
+
test: /\.mjs$/,
|
|
106
|
+
include: /node_modules/,
|
|
107
|
+
type: 'javascript/auto'
|
|
108
|
+
} : null, seperateCssModules ? {
|
|
104
109
|
test: /\.css$/,
|
|
105
110
|
exclude: /\.module\.css$/,
|
|
106
111
|
use: (0, _loaderUtils.getCSSLoaders)({
|
|
@@ -14,6 +14,8 @@ var _configsAssetsLoaders = require("../loaderUtils/configsAssetsLoaders");
|
|
|
14
14
|
|
|
15
15
|
var _resolvers = require("./resolvers");
|
|
16
16
|
|
|
17
|
+
var _babelPresetReactOption = _interopRequireDefault(require("../babel/babel-option-utils/babel-preset-react-option"));
|
|
18
|
+
|
|
17
19
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
18
20
|
|
|
19
21
|
// import TerserPlugin from 'terser-webpack-plugin';
|
|
@@ -127,8 +129,13 @@ module.exports = {
|
|
|
127
129
|
}
|
|
128
130
|
} : {
|
|
129
131
|
modules: false
|
|
130
|
-
}],
|
|
131
|
-
|
|
132
|
+
}], (0, _babelPresetReactOption.default)({
|
|
133
|
+
disableES5Transpile
|
|
134
|
+
})],
|
|
135
|
+
plugins: disableES5Transpile ? [removeAttribute ? require.resolve('../utils/removeAttributes') : false, require.resolve('@babel/plugin-syntax-dynamic-import'), require.resolve('babel-plugin-lodash'), // require.resolve(
|
|
136
|
+
// '@babel/plugin-proposal-object-rest-spread'
|
|
137
|
+
// ), REMOVING IT, BECAUSE WE ALREADY SUPPORT SPREAD SYNTAX FROM LIBRARIES.
|
|
138
|
+
shouldRemovePropTypes ? [require.resolve('babel-plugin-transform-react-remove-prop-types'), removePropTypes] : false, devConsoleExculde ? [require.resolve('babel-plugin-transform-remove-console'), {
|
|
132
139
|
exclude: ['error', 'log']
|
|
133
140
|
}] : null].filter(Boolean) : [removeAttribute ? require.resolve('../utils/removeAttributes') : false, shouldRemovePropTypes ? [require.resolve('babel-plugin-transform-react-remove-prop-types'), removePropTypes] : false, [require.resolve('@babel/plugin-transform-runtime'), {
|
|
134
141
|
helpers: true,
|
|
@@ -7,6 +7,8 @@ exports.default = void 0;
|
|
|
7
7
|
|
|
8
8
|
var _path = _interopRequireDefault(require("path"));
|
|
9
9
|
|
|
10
|
+
var _babelPresetReactOption = _interopRequireDefault(require("../babel/babel-option-utils/babel-preset-react-option"));
|
|
11
|
+
|
|
10
12
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
11
13
|
|
|
12
14
|
let getDevJsLoaders = options => {
|
|
@@ -40,7 +42,9 @@ let getDevJsLoaders = options => {
|
|
|
40
42
|
}
|
|
41
43
|
} : {
|
|
42
44
|
modules: false
|
|
43
|
-
}],
|
|
45
|
+
}], (0, _babelPresetReactOption.default)({
|
|
46
|
+
disableES5Transpile
|
|
47
|
+
})],
|
|
44
48
|
plugins: disableES5Transpile ? [require.resolve('@babel/plugin-syntax-dynamic-import'), require.resolve('babel-plugin-lodash'), require.resolve('@babel/plugin-proposal-object-rest-spread'), devConsoleExculde ? [require.resolve('babel-plugin-transform-remove-console'), {
|
|
45
49
|
exclude: ['error', 'log']
|
|
46
50
|
}] : null].filter(Boolean) : [require.resolve('@babel/plugin-syntax-dynamic-import'), require.resolve('babel-plugin-lodash'), require.resolve('@babel/plugin-proposal-object-rest-spread'), devConsoleExculde ? [require.resolve('babel-plugin-transform-remove-console'), {
|
package/lib/schemas/index.js
CHANGED
|
@@ -129,6 +129,10 @@ var _default = {
|
|
|
129
129
|
value: '@zohodesk/client_packages_group',
|
|
130
130
|
cli: 'module_resolve_path'
|
|
131
131
|
},
|
|
132
|
+
enableMjsLoader: {
|
|
133
|
+
value: false,
|
|
134
|
+
cli: 'enableMjsLoader'
|
|
135
|
+
},
|
|
132
136
|
customClassNamePrefix: [],
|
|
133
137
|
// this option only for impact testing
|
|
134
138
|
devCssFileBountry: {
|
package/npm-shrinkwrap.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zohodesk/react-cli",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.18-exp.1",
|
|
4
4
|
"lockfileVersion": 2,
|
|
5
5
|
"requires": true,
|
|
6
6
|
"packages": {
|
|
7
7
|
"": {
|
|
8
8
|
"name": "@zohodesk/react-cli",
|
|
9
|
-
"version": "1.1.
|
|
9
|
+
"version": "1.1.18-exp.1",
|
|
10
10
|
"license": "ISC",
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"@babel/cli": "7.10.5",
|
|
@@ -531,6 +531,7 @@
|
|
|
531
531
|
"version": "7.19.1",
|
|
532
532
|
"resolved": "https://registry.npmjs.org/@babel/plugin-proposal-async-generator-functions/-/plugin-proposal-async-generator-functions-7.19.1.tgz",
|
|
533
533
|
"integrity": "sha512-0yu8vNATgLy4ivqMNBIwb1HebCelqN7YX8SL3FDXORv/RqT0zEEWUCH4GH44JsSrvCu6GqnAdR5EBFAPeNBB4Q==",
|
|
534
|
+
"deprecated": "This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-async-generator-functions instead.",
|
|
534
535
|
"dependencies": {
|
|
535
536
|
"@babel/helper-environment-visitor": "^7.18.9",
|
|
536
537
|
"@babel/helper-plugin-utils": "^7.19.0",
|
|
@@ -548,6 +549,7 @@
|
|
|
548
549
|
"version": "7.18.6",
|
|
549
550
|
"resolved": "https://registry.npmjs.org/@babel/plugin-proposal-class-properties/-/plugin-proposal-class-properties-7.18.6.tgz",
|
|
550
551
|
"integrity": "sha512-cumfXOF0+nzZrrN8Rf0t7M+tF6sZc7vhQwYQck9q1/5w2OExlD+b4v4RpMJFaV1Z7WcDRgO6FqvxqxGlwo+RHQ==",
|
|
552
|
+
"deprecated": "This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-class-properties instead.",
|
|
551
553
|
"dependencies": {
|
|
552
554
|
"@babel/helper-create-class-features-plugin": "^7.18.6",
|
|
553
555
|
"@babel/helper-plugin-utils": "^7.18.6"
|
|
@@ -563,6 +565,7 @@
|
|
|
563
565
|
"version": "7.18.6",
|
|
564
566
|
"resolved": "https://registry.npmjs.org/@babel/plugin-proposal-dynamic-import/-/plugin-proposal-dynamic-import-7.18.6.tgz",
|
|
565
567
|
"integrity": "sha512-1auuwmK+Rz13SJj36R+jqFPMJWyKEDd7lLSdOj4oJK0UTgGueSAtkrCvz9ewmgyU/P941Rv2fQwZJN8s6QruXw==",
|
|
568
|
+
"deprecated": "This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-dynamic-import instead.",
|
|
566
569
|
"dependencies": {
|
|
567
570
|
"@babel/helper-plugin-utils": "^7.18.6",
|
|
568
571
|
"@babel/plugin-syntax-dynamic-import": "^7.8.3"
|
|
@@ -578,6 +581,7 @@
|
|
|
578
581
|
"version": "7.18.9",
|
|
579
582
|
"resolved": "https://registry.npmjs.org/@babel/plugin-proposal-export-namespace-from/-/plugin-proposal-export-namespace-from-7.18.9.tgz",
|
|
580
583
|
"integrity": "sha512-k1NtHyOMvlDDFeb9G5PhUXuGj8m/wiwojgQVEhJ/fsVsMCpLyOP4h0uGEjYJKrRI+EVPlb5Jk+Gt9P97lOGwtA==",
|
|
584
|
+
"deprecated": "This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-export-namespace-from instead.",
|
|
581
585
|
"dependencies": {
|
|
582
586
|
"@babel/helper-plugin-utils": "^7.18.9",
|
|
583
587
|
"@babel/plugin-syntax-export-namespace-from": "^7.8.3"
|
|
@@ -593,6 +597,7 @@
|
|
|
593
597
|
"version": "7.18.6",
|
|
594
598
|
"resolved": "https://registry.npmjs.org/@babel/plugin-proposal-json-strings/-/plugin-proposal-json-strings-7.18.6.tgz",
|
|
595
599
|
"integrity": "sha512-lr1peyn9kOdbYc0xr0OdHTZ5FMqS6Di+H0Fz2I/JwMzGmzJETNeOFq2pBySw6X/KFL5EWDjlJuMsUGRFb8fQgQ==",
|
|
600
|
+
"deprecated": "This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-json-strings instead.",
|
|
596
601
|
"dependencies": {
|
|
597
602
|
"@babel/helper-plugin-utils": "^7.18.6",
|
|
598
603
|
"@babel/plugin-syntax-json-strings": "^7.8.3"
|
|
@@ -608,6 +613,7 @@
|
|
|
608
613
|
"version": "7.18.9",
|
|
609
614
|
"resolved": "https://registry.npmjs.org/@babel/plugin-proposal-logical-assignment-operators/-/plugin-proposal-logical-assignment-operators-7.18.9.tgz",
|
|
610
615
|
"integrity": "sha512-128YbMpjCrP35IOExw2Fq+x55LMP42DzhOhX2aNNIdI9avSWl2PI0yuBWarr3RYpZBSPtabfadkH2yeRiMD61Q==",
|
|
616
|
+
"deprecated": "This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-logical-assignment-operators instead.",
|
|
611
617
|
"dependencies": {
|
|
612
618
|
"@babel/helper-plugin-utils": "^7.18.9",
|
|
613
619
|
"@babel/plugin-syntax-logical-assignment-operators": "^7.10.4"
|
|
@@ -623,6 +629,7 @@
|
|
|
623
629
|
"version": "7.18.6",
|
|
624
630
|
"resolved": "https://registry.npmjs.org/@babel/plugin-proposal-nullish-coalescing-operator/-/plugin-proposal-nullish-coalescing-operator-7.18.6.tgz",
|
|
625
631
|
"integrity": "sha512-wQxQzxYeJqHcfppzBDnm1yAY0jSRkUXR2z8RePZYrKwMKgMlE8+Z6LUno+bd6LvbGh8Gltvy74+9pIYkr+XkKA==",
|
|
632
|
+
"deprecated": "This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-nullish-coalescing-operator instead.",
|
|
626
633
|
"dependencies": {
|
|
627
634
|
"@babel/helper-plugin-utils": "^7.18.6",
|
|
628
635
|
"@babel/plugin-syntax-nullish-coalescing-operator": "^7.8.3"
|
|
@@ -638,6 +645,7 @@
|
|
|
638
645
|
"version": "7.18.6",
|
|
639
646
|
"resolved": "https://registry.npmjs.org/@babel/plugin-proposal-numeric-separator/-/plugin-proposal-numeric-separator-7.18.6.tgz",
|
|
640
647
|
"integrity": "sha512-ozlZFogPqoLm8WBr5Z8UckIoE4YQ5KESVcNudyXOR8uqIkliTEgJ3RoketfG6pmzLdeZF0H/wjE9/cCEitBl7Q==",
|
|
648
|
+
"deprecated": "This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-numeric-separator instead.",
|
|
641
649
|
"dependencies": {
|
|
642
650
|
"@babel/helper-plugin-utils": "^7.18.6",
|
|
643
651
|
"@babel/plugin-syntax-numeric-separator": "^7.10.4"
|
|
@@ -653,6 +661,7 @@
|
|
|
653
661
|
"version": "7.11.0",
|
|
654
662
|
"resolved": "https://registry.npmjs.org/@babel/plugin-proposal-object-rest-spread/-/plugin-proposal-object-rest-spread-7.11.0.tgz",
|
|
655
663
|
"integrity": "sha512-wzch41N4yztwoRw0ak+37wxwJM2oiIiy6huGCoqkvSTA9acYWcPfn9Y4aJqmFFJ70KTJUu29f3DQ43uJ9HXzEA==",
|
|
664
|
+
"deprecated": "This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-object-rest-spread instead.",
|
|
656
665
|
"dependencies": {
|
|
657
666
|
"@babel/helper-plugin-utils": "^7.10.4",
|
|
658
667
|
"@babel/plugin-syntax-object-rest-spread": "^7.8.0",
|
|
@@ -666,6 +675,7 @@
|
|
|
666
675
|
"version": "7.18.6",
|
|
667
676
|
"resolved": "https://registry.npmjs.org/@babel/plugin-proposal-optional-catch-binding/-/plugin-proposal-optional-catch-binding-7.18.6.tgz",
|
|
668
677
|
"integrity": "sha512-Q40HEhs9DJQyaZfUjjn6vE8Cv4GmMHCYuMGIWUnlxH6400VGxOuwWsPt4FxXxJkC/5eOzgn0z21M9gMT4MOhbw==",
|
|
678
|
+
"deprecated": "This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-optional-catch-binding instead.",
|
|
669
679
|
"dependencies": {
|
|
670
680
|
"@babel/helper-plugin-utils": "^7.18.6",
|
|
671
681
|
"@babel/plugin-syntax-optional-catch-binding": "^7.8.3"
|
|
@@ -681,6 +691,7 @@
|
|
|
681
691
|
"version": "7.18.9",
|
|
682
692
|
"resolved": "https://registry.npmjs.org/@babel/plugin-proposal-optional-chaining/-/plugin-proposal-optional-chaining-7.18.9.tgz",
|
|
683
693
|
"integrity": "sha512-v5nwt4IqBXihxGsW2QmCWMDS3B3bzGIk/EQVZz2ei7f3NJl8NzAJVvUmpDW5q1CRNY+Beb/k58UAH1Km1N411w==",
|
|
694
|
+
"deprecated": "This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-optional-chaining instead.",
|
|
684
695
|
"dependencies": {
|
|
685
696
|
"@babel/helper-plugin-utils": "^7.18.9",
|
|
686
697
|
"@babel/helper-skip-transparent-expression-wrappers": "^7.18.9",
|
|
@@ -697,6 +708,7 @@
|
|
|
697
708
|
"version": "7.18.6",
|
|
698
709
|
"resolved": "https://registry.npmjs.org/@babel/plugin-proposal-private-methods/-/plugin-proposal-private-methods-7.18.6.tgz",
|
|
699
710
|
"integrity": "sha512-nutsvktDItsNn4rpGItSNV2sz1XwS+nfU0Rg8aCx3W3NOKVzdMjJRu0O5OkgDp3ZGICSTbgRpxZoWsxoKRvbeA==",
|
|
711
|
+
"deprecated": "This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-private-methods instead.",
|
|
700
712
|
"dependencies": {
|
|
701
713
|
"@babel/helper-create-class-features-plugin": "^7.18.6",
|
|
702
714
|
"@babel/helper-plugin-utils": "^7.18.6"
|
|
@@ -712,6 +724,7 @@
|
|
|
712
724
|
"version": "7.18.6",
|
|
713
725
|
"resolved": "https://registry.npmjs.org/@babel/plugin-proposal-unicode-property-regex/-/plugin-proposal-unicode-property-regex-7.18.6.tgz",
|
|
714
726
|
"integrity": "sha512-2BShG/d5yoZyXZfVePH91urL5wTG6ASZU9M4o03lKK8u8UW1y08OMttBSOADTcJrnPMpvDXRG3G8fyLh4ovs8w==",
|
|
727
|
+
"deprecated": "This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-unicode-property-regex instead.",
|
|
715
728
|
"dependencies": {
|
|
716
729
|
"@babel/helper-create-regexp-features-plugin": "^7.18.6",
|
|
717
730
|
"@babel/helper-plugin-utils": "^7.18.6"
|
|
@@ -3089,7 +3102,8 @@
|
|
|
3089
3102
|
"node_modules/abab": {
|
|
3090
3103
|
"version": "2.0.6",
|
|
3091
3104
|
"resolved": "https://registry.npmjs.org/abab/-/abab-2.0.6.tgz",
|
|
3092
|
-
"integrity": "sha512-j2afSsaIENvHZN2B8GOpF566vZ5WVk5opAiMTvWgaQT8DkbOqsTfvNAvHoRGU2zzP8cPoqys+xHTRDWW8L+/BA=="
|
|
3105
|
+
"integrity": "sha512-j2afSsaIENvHZN2B8GOpF566vZ5WVk5opAiMTvWgaQT8DkbOqsTfvNAvHoRGU2zzP8cPoqys+xHTRDWW8L+/BA==",
|
|
3106
|
+
"deprecated": "Use your platform's native atob() and btoa() methods instead"
|
|
3093
3107
|
},
|
|
3094
3108
|
"node_modules/abbrev": {
|
|
3095
3109
|
"version": "1.1.1",
|
|
@@ -3941,6 +3955,7 @@
|
|
|
3941
3955
|
"version": "1.0.0",
|
|
3942
3956
|
"resolved": "https://registry.npmjs.org/is-accessor-descriptor/-/is-accessor-descriptor-1.0.0.tgz",
|
|
3943
3957
|
"integrity": "sha512-m5hnHTkcVsPfqx3AKlyttIPb7J+XykHvJP2B9bZDjlhLIoEq4XoK64Vg7boZlVWYK6LUY94dYPEE7Lh0ZkZKcQ==",
|
|
3958
|
+
"deprecated": "Please upgrade to v1.0.1",
|
|
3944
3959
|
"dependencies": {
|
|
3945
3960
|
"kind-of": "^6.0.0"
|
|
3946
3961
|
},
|
|
@@ -3952,6 +3967,7 @@
|
|
|
3952
3967
|
"version": "1.0.0",
|
|
3953
3968
|
"resolved": "https://registry.npmjs.org/is-data-descriptor/-/is-data-descriptor-1.0.0.tgz",
|
|
3954
3969
|
"integrity": "sha512-jbRXy1FmtAoCjQkVmIVYwuuqDFUbaOeDjmed1tOGPrsMhtJA4rD9tkgA0F1qJ3gRFRXcHYVkdeaP50Q5rE/jLQ==",
|
|
3970
|
+
"deprecated": "Please upgrade to v1.0.1",
|
|
3955
3971
|
"dependencies": {
|
|
3956
3972
|
"kind-of": "^6.0.0"
|
|
3957
3973
|
},
|
|
@@ -5854,6 +5870,7 @@
|
|
|
5854
5870
|
"version": "1.0.0",
|
|
5855
5871
|
"resolved": "https://registry.npmjs.org/is-accessor-descriptor/-/is-accessor-descriptor-1.0.0.tgz",
|
|
5856
5872
|
"integrity": "sha512-m5hnHTkcVsPfqx3AKlyttIPb7J+XykHvJP2B9bZDjlhLIoEq4XoK64Vg7boZlVWYK6LUY94dYPEE7Lh0ZkZKcQ==",
|
|
5873
|
+
"deprecated": "Please upgrade to v1.0.1",
|
|
5857
5874
|
"dependencies": {
|
|
5858
5875
|
"kind-of": "^6.0.0"
|
|
5859
5876
|
},
|
|
@@ -5865,6 +5882,7 @@
|
|
|
5865
5882
|
"version": "1.0.0",
|
|
5866
5883
|
"resolved": "https://registry.npmjs.org/is-data-descriptor/-/is-data-descriptor-1.0.0.tgz",
|
|
5867
5884
|
"integrity": "sha512-jbRXy1FmtAoCjQkVmIVYwuuqDFUbaOeDjmed1tOGPrsMhtJA4rD9tkgA0F1qJ3gRFRXcHYVkdeaP50Q5rE/jLQ==",
|
|
5885
|
+
"deprecated": "Please upgrade to v1.0.1",
|
|
5868
5886
|
"dependencies": {
|
|
5869
5887
|
"kind-of": "^6.0.0"
|
|
5870
5888
|
},
|
|
@@ -6051,6 +6069,7 @@
|
|
|
6051
6069
|
"version": "2.0.1",
|
|
6052
6070
|
"resolved": "https://registry.npmjs.org/domexception/-/domexception-2.0.1.tgz",
|
|
6053
6071
|
"integrity": "sha512-yxJ2mFy/sibVQlu5qHjOkf9J3K6zgmCxgJ94u2EdvDOV09H+32LtRswEcUsmUWN72pVLOEnTSRaIVVzVQgS0dg==",
|
|
6072
|
+
"deprecated": "Use your platform's native DOMException instead",
|
|
6054
6073
|
"dependencies": {
|
|
6055
6074
|
"webidl-conversions": "^5.0.0"
|
|
6056
6075
|
},
|
|
@@ -7312,6 +7331,7 @@
|
|
|
7312
7331
|
"version": "1.0.0",
|
|
7313
7332
|
"resolved": "https://registry.npmjs.org/is-accessor-descriptor/-/is-accessor-descriptor-1.0.0.tgz",
|
|
7314
7333
|
"integrity": "sha512-m5hnHTkcVsPfqx3AKlyttIPb7J+XykHvJP2B9bZDjlhLIoEq4XoK64Vg7boZlVWYK6LUY94dYPEE7Lh0ZkZKcQ==",
|
|
7334
|
+
"deprecated": "Please upgrade to v1.0.1",
|
|
7315
7335
|
"dependencies": {
|
|
7316
7336
|
"kind-of": "^6.0.0"
|
|
7317
7337
|
},
|
|
@@ -7323,6 +7343,7 @@
|
|
|
7323
7343
|
"version": "1.0.0",
|
|
7324
7344
|
"resolved": "https://registry.npmjs.org/is-data-descriptor/-/is-data-descriptor-1.0.0.tgz",
|
|
7325
7345
|
"integrity": "sha512-jbRXy1FmtAoCjQkVmIVYwuuqDFUbaOeDjmed1tOGPrsMhtJA4rD9tkgA0F1qJ3gRFRXcHYVkdeaP50Q5rE/jLQ==",
|
|
7346
|
+
"deprecated": "Please upgrade to v1.0.1",
|
|
7326
7347
|
"dependencies": {
|
|
7327
7348
|
"kind-of": "^6.0.0"
|
|
7328
7349
|
},
|
|
@@ -7382,7 +7403,8 @@
|
|
|
7382
7403
|
"node_modules/figgy-pudding": {
|
|
7383
7404
|
"version": "3.5.2",
|
|
7384
7405
|
"resolved": "https://registry.npmjs.org/figgy-pudding/-/figgy-pudding-3.5.2.tgz",
|
|
7385
|
-
"integrity": "sha512-0btnI/H8f2pavGMN8w40mlSKOfTK2SVJmBfBeVIj3kNw0swwgzyRq0d5TJVOwodFmtvpPeWPN/MCcfuWF0Ezbw=="
|
|
7406
|
+
"integrity": "sha512-0btnI/H8f2pavGMN8w40mlSKOfTK2SVJmBfBeVIj3kNw0swwgzyRq0d5TJVOwodFmtvpPeWPN/MCcfuWF0Ezbw==",
|
|
7407
|
+
"deprecated": "This module is no longer supported."
|
|
7386
7408
|
},
|
|
7387
7409
|
"node_modules/figures": {
|
|
7388
7410
|
"version": "2.0.0",
|
|
@@ -7951,7 +7973,7 @@
|
|
|
7951
7973
|
"version": "14.2.2",
|
|
7952
7974
|
"resolved": "https://registry.npmjs.org/gitlab/-/gitlab-14.2.2.tgz",
|
|
7953
7975
|
"integrity": "sha512-MVLGXLFk5erJCeDnDtV+srDHogadVV8y94G4mAulukCwdCwh+IUqsU4ESZksZvBis8VTJsK9Mj01lRJ1JrxVsg==",
|
|
7954
|
-
"deprecated": "
|
|
7976
|
+
"deprecated": "This package has found a new home in the @gitbeaker organization. For the latest GitLab API library for node, browser, and deno usage, check out @gitbeaker/rest. A full list of the features can be found here: https://github.com/jdalrymple/gitbeaker#readme",
|
|
7955
7977
|
"dependencies": {
|
|
7956
7978
|
"chalk": "^3.0.0",
|
|
7957
7979
|
"form-data": "^3.0.0",
|
|
@@ -9191,6 +9213,7 @@
|
|
|
9191
9213
|
"version": "0.1.6",
|
|
9192
9214
|
"resolved": "https://registry.npmjs.org/is-accessor-descriptor/-/is-accessor-descriptor-0.1.6.tgz",
|
|
9193
9215
|
"integrity": "sha512-e1BM1qnDbMRG3ll2U9dSK0UMHuWOs3pY3AtcFsmvwPtKL3MML/Q86i+GilLfvqEs4GW+ExB91tQ3Ig9noDIZ+A==",
|
|
9216
|
+
"deprecated": "Please upgrade to v0.1.7",
|
|
9194
9217
|
"dependencies": {
|
|
9195
9218
|
"kind-of": "^3.0.2"
|
|
9196
9219
|
},
|
|
@@ -9294,6 +9317,7 @@
|
|
|
9294
9317
|
"version": "0.1.4",
|
|
9295
9318
|
"resolved": "https://registry.npmjs.org/is-data-descriptor/-/is-data-descriptor-0.1.4.tgz",
|
|
9296
9319
|
"integrity": "sha512-+w9D5ulSoBNlmw9OHn3U2v51SyoCd0he+bB3xMl62oijhrspxowjU+AIcDY0N3iEJbUEkB15IlMASQsxYigvXg==",
|
|
9320
|
+
"deprecated": "Please upgrade to v0.1.5",
|
|
9297
9321
|
"dependencies": {
|
|
9298
9322
|
"kind-of": "^3.0.2"
|
|
9299
9323
|
},
|
|
@@ -16186,6 +16210,7 @@
|
|
|
16186
16210
|
"version": "1.0.0",
|
|
16187
16211
|
"resolved": "https://registry.npmjs.org/is-accessor-descriptor/-/is-accessor-descriptor-1.0.0.tgz",
|
|
16188
16212
|
"integrity": "sha512-m5hnHTkcVsPfqx3AKlyttIPb7J+XykHvJP2B9bZDjlhLIoEq4XoK64Vg7boZlVWYK6LUY94dYPEE7Lh0ZkZKcQ==",
|
|
16213
|
+
"deprecated": "Please upgrade to v1.0.1",
|
|
16189
16214
|
"dependencies": {
|
|
16190
16215
|
"kind-of": "^6.0.0"
|
|
16191
16216
|
},
|
|
@@ -16197,6 +16222,7 @@
|
|
|
16197
16222
|
"version": "1.0.0",
|
|
16198
16223
|
"resolved": "https://registry.npmjs.org/is-data-descriptor/-/is-data-descriptor-1.0.0.tgz",
|
|
16199
16224
|
"integrity": "sha512-jbRXy1FmtAoCjQkVmIVYwuuqDFUbaOeDjmed1tOGPrsMhtJA4rD9tkgA0F1qJ3gRFRXcHYVkdeaP50Q5rE/jLQ==",
|
|
16225
|
+
"deprecated": "Please upgrade to v1.0.1",
|
|
16200
16226
|
"dependencies": {
|
|
16201
16227
|
"kind-of": "^6.0.0"
|
|
16202
16228
|
},
|
package/package.json
CHANGED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
|
|
8
|
+
var _fs = require("fs");
|
|
9
|
+
|
|
10
|
+
var _path = require("path");
|
|
11
|
+
|
|
12
|
+
const allConfigs = [];
|
|
13
|
+
(0, _fs.readdirSync)((0, _path.join)(__dirname, 'commands')).forEach(folderName => {
|
|
14
|
+
const modulePath = (0, _path.join)(__dirname, './commands/' + folderName + '/config.js');
|
|
15
|
+
|
|
16
|
+
if ((0, _fs.existsSync)(modulePath)) {
|
|
17
|
+
const config = require(modulePath).default;
|
|
18
|
+
|
|
19
|
+
allConfigs.push(config);
|
|
20
|
+
}
|
|
21
|
+
});
|
|
22
|
+
var _default = allConfigs;
|
|
23
|
+
exports.default = _default;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.debugLogger = debugLogger;
|
|
7
|
+
exports.errorLogger = errorLogger;
|
|
8
|
+
exports.messageLogger = messageLogger;
|
|
9
|
+
exports.verboseLogger = verboseLogger;
|
|
10
|
+
exports.warnLogger = warnLogger;
|
|
11
|
+
|
|
12
|
+
/* eslint-disable no-console */
|
|
13
|
+
function verboseLogger(...args) {// TODO: need to be remove when publish happens
|
|
14
|
+
// console.log(...args);
|
|
15
|
+
console.log(...args);
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
function warnLogger(...args) {
|
|
19
|
+
console.warn(...args);
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
function messageLogger(...args) {
|
|
23
|
+
console.log(...args);
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
function debugLogger(...args) {// TODO: need to be remove when publish happens
|
|
27
|
+
// console.log(...args);
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
function errorLogger(...args) {
|
|
31
|
+
console.error(...args);
|
|
32
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.commandExecutor = commandExecutor;
|
|
7
|
+
|
|
8
|
+
var _buildToolLoggers = require("../../buildToolLoggers");
|
|
9
|
+
|
|
10
|
+
var _webpackBuild = _interopRequireDefault(require("../../shared/bundler/webpack/webpackBuild"));
|
|
11
|
+
|
|
12
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
13
|
+
|
|
14
|
+
// import { spawnSyncIO } from '../../shared/commands-utlis/spanSync';
|
|
15
|
+
function commandExecutor(options) {
|
|
16
|
+
(0, _buildToolLoggers.messageLogger)('Build is runnning');
|
|
17
|
+
(0, _webpackBuild.default)(options); // spawnSyncIO('webpack', [
|
|
18
|
+
// '--config',
|
|
19
|
+
// require.resolve('../../shared/bundler/webpack/webpack.dev.config.js')
|
|
20
|
+
// ]);
|
|
21
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.configs = void 0;
|
|
7
|
+
|
|
8
|
+
var _commandExecutor = require("./commandExecutor");
|
|
9
|
+
|
|
10
|
+
var _errorHander = require("./errorHander");
|
|
11
|
+
|
|
12
|
+
var _optionsProcesser = require("./optionsProcesser");
|
|
13
|
+
|
|
14
|
+
// import { spawnSyncIO } from '../commands-utlis/spanSync.js';
|
|
15
|
+
function run(options) {
|
|
16
|
+
// const { disableWatch } = options.app;
|
|
17
|
+
// spawnSyncIO('node', [
|
|
18
|
+
// require.resolve(
|
|
19
|
+
// disableWatch ? '../servers/nowatchserver' : '../servers/server'
|
|
20
|
+
// ),
|
|
21
|
+
// '--expose-http2',
|
|
22
|
+
// ...args
|
|
23
|
+
// ]);
|
|
24
|
+
(0, _commandExecutor.commandExecutor)(options).then(console.log).catch(e => {
|
|
25
|
+
(0, _errorHander.errorHander)(e);
|
|
26
|
+
});
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
const configs = {
|
|
30
|
+
name: 'devSeverStart',
|
|
31
|
+
alias: ['start'],
|
|
32
|
+
optionsProcesser: _optionsProcesser.optionsProcesser,
|
|
33
|
+
run
|
|
34
|
+
};
|
|
35
|
+
exports.configs = configs;
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.optionsProcesser = optionsProcesser;
|
|
7
|
+
|
|
8
|
+
var _path = require("path");
|
|
9
|
+
|
|
10
|
+
var _decidePublicPath = require("../../shared/bundler/webpack/common/decidePublicPath");
|
|
11
|
+
|
|
12
|
+
var _urlConcat = require("../../shared/server/urlConcat");
|
|
13
|
+
|
|
14
|
+
function optionsProcesser(options) {
|
|
15
|
+
const {
|
|
16
|
+
server,
|
|
17
|
+
context
|
|
18
|
+
} = options;
|
|
19
|
+
const {
|
|
20
|
+
disableContextURL
|
|
21
|
+
} = server;
|
|
22
|
+
const serverExtras = (0, _decidePublicPath.modifiedServerOptions)(options);
|
|
23
|
+
const publicPath = (0, _decidePublicPath.decidePublicPath)(serverExtras);
|
|
24
|
+
const contextURL = disableContextURL ? '' : `/${context}`;
|
|
25
|
+
const serverURL = (0, _urlConcat.urlConcat)(publicPath, contextURL);
|
|
26
|
+
const contextFolderPath = (0, _path.join)(process.cwd(), context);
|
|
27
|
+
console.log({
|
|
28
|
+
serverURL,
|
|
29
|
+
publicPath
|
|
30
|
+
});
|
|
31
|
+
const defaultApplyedOptions = { ...options,
|
|
32
|
+
serverExtras,
|
|
33
|
+
publicPath,
|
|
34
|
+
contextURL,
|
|
35
|
+
serverURL,
|
|
36
|
+
contextFolderPath,
|
|
37
|
+
httpsOptions: serverExtras.httpsOptions
|
|
38
|
+
};
|
|
39
|
+
return defaultApplyedOptions;
|
|
40
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.commandExecutor = commandExecutor;
|
|
7
|
+
|
|
8
|
+
var _spanSync = require("../../shared/commands-utlis/spanSync");
|
|
9
|
+
|
|
10
|
+
var _constants = require("../../shared/constants");
|
|
11
|
+
|
|
12
|
+
function commandExecutor(options) {
|
|
13
|
+
const {
|
|
14
|
+
extraArgs
|
|
15
|
+
} = options;
|
|
16
|
+
(0, _spanSync.spawnSyncIO)("babel", ["src", "--out-dir", "es", "--copy-files", "--config-file=" + _constants.babelrcPath, ...extraArgs]);
|
|
17
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.commandExecutor = commandExecutor;
|
|
7
|
+
|
|
8
|
+
var _spanSync = require("../../shared/commands-utlis/spanSync");
|
|
9
|
+
|
|
10
|
+
var _constants = require("../../shared/constants");
|
|
11
|
+
|
|
12
|
+
function commandExecutor(options) {
|
|
13
|
+
const {
|
|
14
|
+
extraArgs
|
|
15
|
+
} = options;
|
|
16
|
+
(0, _spanSync.spawnSyncIO)("babel", ["src", "--out-dir", "lib", "--copy-files", "--config-file=" + _constants.babelrcPath, ...extraArgs]);
|
|
17
|
+
}
|