@zohodesk/react-cli 0.0.1-exp.169.2 → 0.0.1-exp.175.1
Sign up to get free protection for your applications and to get access to all the features.
- package/.eslintignore +7 -7
- package/.eslintrc.js +180 -179
- package/.prettierrc +6 -6
- package/README.md +1028 -951
- package/bin/cli.js +483 -483
- package/cert/Tsicsezwild-22-23.crt +37 -37
- package/cert/Tsicsezwild-22-23.key +27 -27
- package/docs/CustomChunks.md +26 -26
- package/docs/DevStart.md +18 -18
- package/docs/HoverActive.md +12 -12
- package/docs/InstallNode.md +28 -28
- package/docs/TODOS.md +10 -10
- package/docs/ValueReplacer.md +60 -60
- package/docs/VariableConversion.md +678 -0
- package/docs/warnings_while_install.txt +35 -35
- package/files/eslintrc.js +62 -62
- package/files/prettierrc.js +3 -3
- package/lib/babel/cmjs-plugins-presets.js +0 -4
- package/lib/babel/es-plugins-presets.js +0 -4
- package/lib/common/getEntries.js +0 -10
- package/lib/common/getPublicPathConfig.js +0 -6
- package/lib/common/index.js +0 -5
- package/lib/common/splitChunks.js +2 -13
- package/lib/common/sslcertUpdater.js +6 -17
- package/lib/common/templateParameters.js +0 -2
- package/lib/common/testPattern.js +10 -21
- package/lib/common/valueReplacer.js +0 -15
- package/lib/configs/jest.config.js +8 -21
- package/lib/configs/libAlias.js +11 -2
- package/lib/configs/webpack.component.umd.config.js +0 -5
- package/lib/configs/webpack.css.umd.config.js +5 -13
- package/lib/configs/webpack.dev.config.js +13 -24
- package/lib/configs/webpack.docs.config.js +6 -12
- package/lib/configs/webpack.impact.config.js +6 -10
- package/lib/configs/webpack.prod.config.js +15 -26
- package/lib/hooks/docsProptypeHook.js +3 -7
- package/lib/jest/commitedFilesResult.js +3 -45
- package/lib/jest/coverageCollector.js +0 -11
- package/lib/jest/jsonMaker.js +0 -6
- package/lib/jest/preProcessors/cssPreprocessor.js +14 -13
- package/lib/jest/preProcessors/jsPreprocessor.js +0 -2
- package/lib/jest/preProcessors/otherFilesPreprocessor.js +0 -3
- package/lib/jest/result.js +0 -22
- package/lib/jest/run.js +6 -17
- package/lib/jest/setup.js +5 -57
- package/lib/loaderUtils/configsAssetsLoaders.js +34 -44
- package/lib/loaderUtils/getCSSLoaders.js +41 -28
- package/lib/loaderUtils/getDevJsLoaders.js +0 -8
- package/lib/loaderUtils/index.js +0 -3
- package/lib/loaders/docsLoader.js +0 -7
- package/lib/loaders/docsPropsLoader.js +3 -7
- package/lib/loaders/fileBountryLoader.js +0 -2
- package/lib/loaders/fileLoader.js +11 -22
- package/lib/loaders/scriptInstrumentLoader.js +5 -13
- package/lib/loaders/selectorMappingLoader.js +7 -25
- package/lib/loaders/workerLoader.js +13 -29
- package/lib/middlewares/HMRMiddleware.js +13 -26
- package/lib/middlewares/SSTMiddleware.js +0 -3
- package/lib/pluginUtils/configHtmlWebpackPlugins.js +53 -0
- package/lib/pluginUtils/getDevPlugins.js +20 -64
- package/lib/pluginUtils/getDocsPlugins.js +1 -10
- package/lib/pluginUtils/getLibraryImactPlugins.js +4 -5
- package/lib/pluginUtils/getLibraryPlugins.js +0 -5
- package/lib/pluginUtils/getProdPlugins.js +32 -78
- package/lib/pluginUtils/getServerPlugins.js +0 -5
- package/lib/pluginUtils/getUMDCSSPlugins.js +0 -7
- package/lib/pluginUtils/getUMDComponentPlugins.js +0 -7
- package/lib/pluginUtils/index.js +0 -8
- package/lib/plugins/CdnChangePlugin.js +0 -14
- package/lib/plugins/CleanupStatsPlugin.js +0 -5
- package/lib/plugins/EFCPlugin.js +23 -34
- package/lib/plugins/EFCPlugin.md +6 -6
- package/lib/plugins/EFCTemplatePlugin.js +23 -32
- package/lib/plugins/I18NInjectIntoIndexPlugin.js +12 -38
- package/lib/plugins/I18nSplitPlugin/I18nDebugPlugin.js +12 -17
- package/lib/plugins/I18nSplitPlugin/I18nDependency.js +4 -10
- package/lib/plugins/I18nSplitPlugin/I18nDownlodLogic.js +46 -77
- package/lib/plugins/I18nSplitPlugin/I18nFilesEmitter.js +44 -59
- package/lib/plugins/I18nSplitPlugin/I18nKeysIdentifer.js +21 -30
- package/lib/plugins/I18nSplitPlugin/I18nSplit.md +95 -95
- package/lib/plugins/I18nSplitPlugin/README.md +25 -25
- package/lib/plugins/I18nSplitPlugin/index.js +70 -80
- package/lib/plugins/I18nSplitPlugin/utils/collectI18nKeys.js +2 -12
- package/lib/plugins/I18nSplitPlugin/utils/getI18nFileUrlPathTemplate.js +0 -1
- package/lib/plugins/I18nSplitPlugin/utils/getI18nKeysFormModules.js +0 -5
- package/lib/plugins/I18nSplitPlugin/utils/hashUtils.js +0 -6
- package/lib/plugins/I18nSplitPlugin/utils/index.js +0 -4
- package/lib/plugins/I18nSplitPlugin/utils/propertiesUtils.js +2 -20
- package/lib/plugins/ManifestPlugin.js +0 -17
- package/lib/plugins/ModuleStatsPlugin.js +0 -23
- package/lib/plugins/OptimizeJSPlugin.js +0 -7
- package/lib/plugins/PublicPathCallbackPlugin.js +0 -10
- package/lib/plugins/PublicPathChangePlugin.js +4 -36
- package/lib/plugins/ReportGeneratePlugin.js +4 -30
- package/lib/plugins/RequireVariablePublicPlugin.js +0 -6
- package/lib/plugins/ResourceHintsPlugin.js +20 -27
- package/lib/plugins/RtlSplitPlugin/OverwriteCssPathForRTL.js +12 -17
- package/lib/plugins/RtlSplitPlugin/RtlCssPlugin.js +23 -38
- package/lib/plugins/RtlSplitPlugin/RtrSplit.md +30 -30
- package/lib/plugins/RtlSplitPlugin/replaceCssDirTemplate.js +2 -5
- package/lib/plugins/ScriptInstrumentPlugin.js +0 -7
- package/lib/plugins/ServiceWorkerPlugin.js +13 -29
- package/lib/plugins/ShadowDOMSupportPlugin.js +3 -40
- package/lib/plugins/SourceMapHookPlugin.js +0 -9
- package/lib/plugins/TPHashMappingPlugin.js +5 -19
- package/lib/plugins/UglifyCSSPlugin.js +0 -9
- package/lib/plugins/UnusedFilesFindPlugin.js +2 -35
- package/lib/plugins/index.js +0 -19
- package/lib/plugins/libraryImpactPlugin.js +0 -32
- package/lib/plugins/webpackwatchrunplugin.js +0 -5
- package/lib/postcss-plugins/ExcludePlugin.js +0 -4
- package/lib/postcss-plugins/RTLSplitPlugin.js +24 -37
- package/lib/postcss-plugins/ValueReplacer.js +9 -6
- package/lib/postcss-plugins/__test__/hoverActivePlugin.spec.js +0 -3
- package/lib/postcss-plugins/__test__/test1Input.css +38 -38
- package/lib/postcss-plugins/__test__/test1Output.css +38 -38
- package/lib/postcss-plugins/hoverActivePlugin.js +80 -92
- package/lib/postcss-plugins/variableModificationPlugin/ErrorHandler.js +31 -0
- package/lib/postcss-plugins/variableModificationPlugin/index.js +232 -0
- package/lib/postcss-plugins/variableModifier.js +14 -20
- package/lib/schemas/index.js +28 -13
- package/lib/servers/clusterHubServer.js +0 -10
- package/lib/servers/devBuild.js +13 -24
- package/lib/servers/docsServer.js +0 -2
- package/lib/servers/docsServerCore.js +0 -21
- package/lib/servers/getCliPath.js +1 -10
- package/lib/servers/helpServer.js +0 -5
- package/lib/servers/httpsOptions.js +0 -4
- package/lib/servers/impactServer.js +2 -34
- package/lib/servers/mockserver.js +0 -9
- package/lib/servers/nowatchserver.js +12 -34
- package/lib/servers/scrServer.js +13 -20
- package/lib/servers/server.js +7 -35
- package/lib/servers/ssServer.js +0 -16
- package/lib/sh/pre-commit.sh +34 -34
- package/lib/sh/reportPublish.sh +45 -45
- package/lib/templates/CoverageScriptTemplate.js +0 -14
- package/lib/templates/WMSTemplate.js +6 -12
- package/lib/utils/babelPresets.js +0 -2
- package/lib/utils/buildstats.html +148 -148
- package/lib/utils/clean.js +2 -8
- package/lib/utils/copy.js +0 -6
- package/lib/utils/copyTimezones.js +0 -8
- package/lib/utils/createEventStream.js +0 -4
- package/lib/utils/cssClassNameGenerate.js +3 -19
- package/lib/utils/cssURLReplacer.js +0 -25
- package/lib/utils/dependencyPostPublish.js +0 -9
- package/lib/utils/fileUtils.js +0 -26
- package/lib/utils/folderIterator.js +0 -10
- package/lib/utils/getComponents.js +0 -21
- package/lib/utils/getCurrentBranch.js +0 -5
- package/lib/utils/getDependenciesImpactList.js +0 -21
- package/lib/utils/getHash.js +0 -7
- package/lib/utils/getIp.js +0 -2
- package/lib/utils/getOptions.js +38 -35
- package/lib/utils/getServerURL.js +0 -7
- package/lib/utils/index.js +2 -47
- package/lib/utils/init.js +0 -1
- package/lib/utils/initPreCommitHook.js +6 -29
- package/lib/utils/jsonHelper.js +2 -19
- package/lib/utils/libraryImpactConfig.js +0 -2
- package/lib/utils/lint/addScripts.js +2 -5
- package/lib/utils/lint/checkExistingConfig.js +3 -12
- package/lib/utils/lint/copyConfigs.js +0 -3
- package/lib/utils/lint/index.js +0 -9
- package/lib/utils/lint/lintScripts.js +0 -1
- package/lib/utils/lint/lintSetup.js +3 -4
- package/lib/utils/lint/lintStagedPreCommitHook.js +0 -1
- package/lib/utils/lint/question.js +0 -7
- package/lib/utils/lintReporter.js +0 -20
- package/lib/utils/mailSender.js +0 -7
- package/lib/utils/pullOrigin.js +0 -4
- package/lib/utils/reinstallDependencies.js +0 -28
- package/lib/utils/removeAttributes.js +0 -7
- package/lib/utils/repoClone.js +2 -27
- package/lib/utils/request.js +0 -12
- package/lib/utils/resultSchema.json +73 -73
- package/lib/utils/rtl.js +4 -16
- package/lib/utils/setEnvVariables.js +0 -2
- package/lib/utils/ssTestHack.js +0 -10
- package/lib/utils/switchBranch.js +0 -4
- package/lib/utils/urlConcat.js +0 -4
- package/lib/utils/useExitCleanup.js +9 -10
- package/npm8.md +9 -9
- package/package.json +146 -148
- package/postpublish.js +6 -6
- package/templates/app/.eslintrc.js +140 -140
- package/templates/app/README.md +12 -12
- package/templates/app/app/index.html +24 -24
- package/templates/app/app/properties/ApplicationResources_en_US.properties +1 -1
- package/templates/app/app/properties/i18nkeys.json +3 -3
- package/templates/app/docs/all.html +69 -69
- package/templates/app/mockapi/index.js +18 -18
- package/templates/app/package.json +37 -37
- package/templates/app/src/actions/SampleActions/index.js +37 -37
- package/templates/app/src/actions/index.js +65 -65
- package/templates/app/src/appUrls.js +19 -19
- package/templates/app/src/components/Alert/Alert.js +134 -134
- package/templates/app/src/components/Alert/Alert.module.css +79 -79
- package/templates/app/src/components/FreezeLayer/FreezeLayer.css +37 -37
- package/templates/app/src/components/FreezeLayer/FreezeLayer.js +84 -84
- package/templates/app/src/components/Sample/Sample.module.css +11 -11
- package/templates/app/src/components/Sample/SampleList.js +61 -61
- package/templates/app/src/components/Slider/Slider.css +41 -41
- package/templates/app/src/components/Slider/Slider.js +55 -55
- package/templates/app/src/containers/AlertContainer/index.js +15 -15
- package/templates/app/src/containers/AppContainer/index.js +96 -96
- package/templates/app/src/containers/AppContainer/index.module.css +27 -27
- package/templates/app/src/containers/CustomMatch/index.js +65 -65
- package/templates/app/src/containers/DevTools/index.js +10 -10
- package/templates/app/src/containers/Header/index.js +67 -67
- package/templates/app/src/containers/Header/index.module.css +43 -43
- package/templates/app/src/containers/Redirect/index.js +63 -63
- package/templates/app/src/containers/Redirector/index.js +47 -47
- package/templates/app/src/containers/SampleListContainer/ListContainer.js +42 -42
- package/templates/app/src/containers/SampleListContainer/ListContainer.module.css +3 -3
- package/templates/app/src/historyChange.js +5 -5
- package/templates/app/src/index.html +10 -10
- package/templates/app/src/index.js +24 -24
- package/templates/app/src/middleware/PromiseMiddleware.js +59 -59
- package/templates/app/src/reducers/alertData.js +11 -11
- package/templates/app/src/reducers/index.js +6 -6
- package/templates/app/src/reducers/samples.js +19 -19
- package/templates/app/src/store/configureStore.dev.js +51 -51
- package/templates/app/src/store/configureStore.js +5 -5
- package/templates/app/src/store/configureStore.prod.js +26 -26
- package/templates/app/src/util/Common.js +5 -5
- package/templates/app/src/util/RequestAPI.js +132 -132
- package/templates/docs/all.html +249 -249
- package/templates/docs/component.html +178 -178
- package/templates/docs/components.html +221 -221
- package/templates/docs/css/b.min.css +6 -6
- package/templates/docs/css/component.css +42 -42
- package/templates/docs/css/componentTest.css +6 -6
- package/templates/docs/css/hopscotch.css +585 -585
- package/templates/docs/css/style.css +1022 -1022
- package/templates/docs/impactReportTemplate.html +154 -154
- package/templates/docs/index.html +1501 -1493
- package/templates/docs/js/active-line.js +72 -72
- package/templates/docs/js/b.min.js +7 -7
- package/templates/docs/js/codemirror.js +9680 -9680
- package/templates/docs/js/designTokens.js +334 -334
- package/templates/docs/js/j.min.js +4 -4
- package/templates/docs/js/javascript.js +874 -874
- package/templates/docs/js/matchbrackets.js +145 -145
@@ -1,35 +1,35 @@
|
|
1
|
-
npm WARN deprecated babel-eslint@10.1.0: babel-eslint is now @babel/eslint-parser. This package will no longer receive updates.
|
2
|
-
npm WARN deprecated eslint-loader@4.0.2: This loader has been deprecated. Please use eslint-webpack-plugin
|
3
|
-
npm WARN deprecated gitlab@14.2.2: The gitlab package has found a new home in the @gitbeaker organization. For the latest gitlab node library, check out @gitbeaker/node. A full list of the features can be found here: https://github.com/jdalrymple/gitbeaker#readme
|
4
|
-
npm WARN deprecated chokidar@2.1.8: Chokidar 2 will break on node v14+. Upgrade to chokidar 3 with 15x less dependencies.
|
5
|
-
npm WARN deprecated fsevents@1.2.13: fsevents 1 will break on node v14+ and could be using insecure binaries. Upgrade to fsevents 2.
|
6
|
-
npm WARN deprecated webdriverio@4.14.4: outdated version, please use @next
|
7
|
-
npm WARN deprecated mkdirp@0.3.5: Legacy versions of mkdirp are no longer supported. Please update to mkdirp 1.x. (Note that the API surface has changed to use Promises in 1.x.)
|
8
|
-
npm WARN deprecated cross-spawn-async@1.0.1: cross-spawn no longer requires a build toolchain, use it instead
|
9
|
-
npm WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142
|
10
|
-
npm WARN deprecated core-js@2.6.12: core-js@<3.3 is no longer maintained and not recommended for usage due to the number of issues. Because of the V8 engine whims, feature detection in old core-js versions could cause a slowdown up to 100x even if nothing is polyfilled. Please, upgrade your dependencies to the actual version of core-js.
|
11
|
-
npm WARN deprecated har-validator@5.1.5: this library is no longer supported
|
12
|
-
npm WARN deprecated uuid@3.4.0: Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic. See https://v8.dev/blog/math-random for details.
|
13
|
-
npm WARN deprecated querystring@0.2.0: The querystring API is considered Legacy. new code should use the URLSearchParams API instead.
|
14
|
-
npm WARN deprecated sane@4.1.0: some dependency vulnerabilities fixed, support for node < 10 dropped, and newer ECMAScript syntax/features added
|
15
|
-
npm WARN deprecated request-promise-native@1.0.9: request-promise-native has been deprecated because it extends the now deprecated request package, see https://github.com/request/request/issues/3142
|
16
|
-
npm WARN deprecated flatten@1.0.3: flatten is deprecated in favor of utility frameworks such as lodash.
|
17
|
-
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@^1.2.7 (node_modules/chokidar/node_modules/fsevents):
|
18
|
-
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.13: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
|
19
|
-
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@^2.1.2 (node_modules/jest-haste-map/node_modules/fsevents):
|
20
|
-
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.3.2: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
|
21
|
-
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@~2.3.2 (node_modules/nodemon/node_modules/chokidar/node_modules/fsevents):
|
22
|
-
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.3.2: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
|
23
|
-
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@~2.3.2 (node_modules/watchpack/node_modules/chokidar/node_modules/fsevents):
|
24
|
-
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.3.2: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
|
25
|
-
npm WARN check2@1.0.0 No description
|
26
|
-
npm WARN check2@1.0.0 No repository field.
|
27
|
-
|
28
|
-
+ @zohodesk/react-cli@0.0.1-beta.165
|
29
|
-
updated 1 package and audited 1899 packages in 51.509s
|
30
|
-
|
31
|
-
21 packages are looking for funding
|
32
|
-
run `npm fund` for details
|
33
|
-
|
34
|
-
found 42 vulnerabilities (2 low, 20 moderate, 8 high, 12 critical)
|
35
|
-
run `npm audit fix` to fix them, or `npm audit` for details
|
1
|
+
npm WARN deprecated babel-eslint@10.1.0: babel-eslint is now @babel/eslint-parser. This package will no longer receive updates.
|
2
|
+
npm WARN deprecated eslint-loader@4.0.2: This loader has been deprecated. Please use eslint-webpack-plugin
|
3
|
+
npm WARN deprecated gitlab@14.2.2: The gitlab package has found a new home in the @gitbeaker organization. For the latest gitlab node library, check out @gitbeaker/node. A full list of the features can be found here: https://github.com/jdalrymple/gitbeaker#readme
|
4
|
+
npm WARN deprecated chokidar@2.1.8: Chokidar 2 will break on node v14+. Upgrade to chokidar 3 with 15x less dependencies.
|
5
|
+
npm WARN deprecated fsevents@1.2.13: fsevents 1 will break on node v14+ and could be using insecure binaries. Upgrade to fsevents 2.
|
6
|
+
npm WARN deprecated webdriverio@4.14.4: outdated version, please use @next
|
7
|
+
npm WARN deprecated mkdirp@0.3.5: Legacy versions of mkdirp are no longer supported. Please update to mkdirp 1.x. (Note that the API surface has changed to use Promises in 1.x.)
|
8
|
+
npm WARN deprecated cross-spawn-async@1.0.1: cross-spawn no longer requires a build toolchain, use it instead
|
9
|
+
npm WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142
|
10
|
+
npm WARN deprecated core-js@2.6.12: core-js@<3.3 is no longer maintained and not recommended for usage due to the number of issues. Because of the V8 engine whims, feature detection in old core-js versions could cause a slowdown up to 100x even if nothing is polyfilled. Please, upgrade your dependencies to the actual version of core-js.
|
11
|
+
npm WARN deprecated har-validator@5.1.5: this library is no longer supported
|
12
|
+
npm WARN deprecated uuid@3.4.0: Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic. See https://v8.dev/blog/math-random for details.
|
13
|
+
npm WARN deprecated querystring@0.2.0: The querystring API is considered Legacy. new code should use the URLSearchParams API instead.
|
14
|
+
npm WARN deprecated sane@4.1.0: some dependency vulnerabilities fixed, support for node < 10 dropped, and newer ECMAScript syntax/features added
|
15
|
+
npm WARN deprecated request-promise-native@1.0.9: request-promise-native has been deprecated because it extends the now deprecated request package, see https://github.com/request/request/issues/3142
|
16
|
+
npm WARN deprecated flatten@1.0.3: flatten is deprecated in favor of utility frameworks such as lodash.
|
17
|
+
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@^1.2.7 (node_modules/chokidar/node_modules/fsevents):
|
18
|
+
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.13: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
|
19
|
+
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@^2.1.2 (node_modules/jest-haste-map/node_modules/fsevents):
|
20
|
+
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.3.2: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
|
21
|
+
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@~2.3.2 (node_modules/nodemon/node_modules/chokidar/node_modules/fsevents):
|
22
|
+
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.3.2: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
|
23
|
+
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@~2.3.2 (node_modules/watchpack/node_modules/chokidar/node_modules/fsevents):
|
24
|
+
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.3.2: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
|
25
|
+
npm WARN check2@1.0.0 No description
|
26
|
+
npm WARN check2@1.0.0 No repository field.
|
27
|
+
|
28
|
+
+ @zohodesk/react-cli@0.0.1-beta.165
|
29
|
+
updated 1 package and audited 1899 packages in 51.509s
|
30
|
+
|
31
|
+
21 packages are looking for funding
|
32
|
+
run `npm fund` for details
|
33
|
+
|
34
|
+
found 42 vulnerabilities (2 low, 20 moderate, 8 high, 12 critical)
|
35
|
+
run `npm audit fix` to fix them, or `npm audit` for details
|
package/files/eslintrc.js
CHANGED
@@ -1,62 +1,62 @@
|
|
1
|
-
const [off, , error] = ['off', 'warn', 'error'];
|
2
|
-
|
3
|
-
module.exports = {
|
4
|
-
env: {
|
5
|
-
browser: true,
|
6
|
-
es2021: true,
|
7
|
-
},
|
8
|
-
extends: [
|
9
|
-
'plugin:react/recommended',
|
10
|
-
'plugin:react-hooks/recommended',
|
11
|
-
'airbnb',
|
12
|
-
'prettier',
|
13
|
-
],
|
14
|
-
parserOptions: {
|
15
|
-
ecmaFeatures: {
|
16
|
-
jsx: true,
|
17
|
-
},
|
18
|
-
ecmaVersion: 12,
|
19
|
-
sourceType: 'module',
|
20
|
-
},
|
21
|
-
plugins: [
|
22
|
-
'react',
|
23
|
-
'css-modules',
|
24
|
-
'@zohodesk/zsecurity',
|
25
|
-
'@zohodesk/react-performance',
|
26
|
-
],
|
27
|
-
rules: {
|
28
|
-
// Internal Rules
|
29
|
-
'@zohodesk/react-performance/no-ref-mapstatetoprops': error,
|
30
|
-
'@zohodesk/zsecurity/no-unsecure-html': error,
|
31
|
-
'@zohodesk/zsecurity/no-protocol-check': error,
|
32
|
-
|
33
|
-
// CSS Module Rules
|
34
|
-
'css-modules/no-unused-class': [error, { camelCase: true }],
|
35
|
-
'css-modules/no-undef-class': [error, { camelCase: 'only' }],
|
36
|
-
|
37
|
-
'import/no-unresolved': off,
|
38
|
-
'import/no-extraneous-dependencies': off,
|
39
|
-
|
40
|
-
// As redux used
|
41
|
-
'no-shadow': off, // As we import the action files and use the same name in getting from props built from connect.
|
42
|
-
'react/jsx-filename-extension': off,
|
43
|
-
|
44
|
-
// As we don't follow
|
45
|
-
'react/require-default-props': off,
|
46
|
-
'react/jsx-props-no-spreading': off,
|
47
|
-
|
48
|
-
// As we didn't update
|
49
|
-
'react/jsx-fragments': off,
|
50
|
-
|
51
|
-
// Not needed
|
52
|
-
'no-plusplus': off,
|
53
|
-
'no-unused-expressions': [
|
54
|
-
error,
|
55
|
-
{
|
56
|
-
allowShortCircuit: true,
|
57
|
-
allowTernary: true,
|
58
|
-
},
|
59
|
-
],
|
60
|
-
'react/jsx-no-target-blank': error,
|
61
|
-
},
|
62
|
-
};
|
1
|
+
const [off, , error] = ['off', 'warn', 'error'];
|
2
|
+
|
3
|
+
module.exports = {
|
4
|
+
env: {
|
5
|
+
browser: true,
|
6
|
+
es2021: true,
|
7
|
+
},
|
8
|
+
extends: [
|
9
|
+
'plugin:react/recommended',
|
10
|
+
'plugin:react-hooks/recommended',
|
11
|
+
'airbnb',
|
12
|
+
'prettier',
|
13
|
+
],
|
14
|
+
parserOptions: {
|
15
|
+
ecmaFeatures: {
|
16
|
+
jsx: true,
|
17
|
+
},
|
18
|
+
ecmaVersion: 12,
|
19
|
+
sourceType: 'module',
|
20
|
+
},
|
21
|
+
plugins: [
|
22
|
+
'react',
|
23
|
+
'css-modules',
|
24
|
+
'@zohodesk/zsecurity',
|
25
|
+
'@zohodesk/react-performance',
|
26
|
+
],
|
27
|
+
rules: {
|
28
|
+
// Internal Rules
|
29
|
+
'@zohodesk/react-performance/no-ref-mapstatetoprops': error,
|
30
|
+
'@zohodesk/zsecurity/no-unsecure-html': error,
|
31
|
+
'@zohodesk/zsecurity/no-protocol-check': error,
|
32
|
+
|
33
|
+
// CSS Module Rules
|
34
|
+
'css-modules/no-unused-class': [error, { camelCase: true }],
|
35
|
+
'css-modules/no-undef-class': [error, { camelCase: 'only' }],
|
36
|
+
|
37
|
+
'import/no-unresolved': off,
|
38
|
+
'import/no-extraneous-dependencies': off,
|
39
|
+
|
40
|
+
// As redux used
|
41
|
+
'no-shadow': off, // As we import the action files and use the same name in getting from props built from connect.
|
42
|
+
'react/jsx-filename-extension': off,
|
43
|
+
|
44
|
+
// As we don't follow
|
45
|
+
'react/require-default-props': off,
|
46
|
+
'react/jsx-props-no-spreading': off,
|
47
|
+
|
48
|
+
// As we didn't update
|
49
|
+
'react/jsx-fragments': off,
|
50
|
+
|
51
|
+
// Not needed
|
52
|
+
'no-plusplus': off,
|
53
|
+
'no-unused-expressions': [
|
54
|
+
error,
|
55
|
+
{
|
56
|
+
allowShortCircuit: true,
|
57
|
+
allowTernary: true,
|
58
|
+
},
|
59
|
+
],
|
60
|
+
'react/jsx-no-target-blank': error,
|
61
|
+
},
|
62
|
+
};
|
package/files/prettierrc.js
CHANGED
@@ -1,3 +1,3 @@
|
|
1
|
-
module.exports = {
|
2
|
-
trailingComma: 'none',
|
3
|
-
};
|
1
|
+
module.exports = {
|
2
|
+
trailingComma: 'none',
|
3
|
+
};
|
@@ -4,21 +4,17 @@ Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
5
5
|
});
|
6
6
|
exports.default = void 0;
|
7
|
-
|
8
7
|
var _utils = require("../utils");
|
9
|
-
|
10
8
|
let {
|
11
9
|
module: {
|
12
10
|
mode
|
13
11
|
}
|
14
12
|
} = (0, _utils.getOptions)();
|
15
13
|
let isProd = mode.toLowerCase() === 'prod';
|
16
|
-
|
17
14
|
var _default = () => ({
|
18
15
|
presets: [require.resolve('@babel/preset-env'), require.resolve('@babel/preset-react')],
|
19
16
|
plugins: [[require.resolve('babel-plugin-transform-define'), isProd ? {
|
20
17
|
__DOCS__: false
|
21
18
|
} : {}]]
|
22
19
|
});
|
23
|
-
|
24
20
|
exports.default = _default;
|
@@ -4,9 +4,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
5
5
|
});
|
6
6
|
exports.default = void 0;
|
7
|
-
|
8
7
|
var _utils = require("../utils");
|
9
|
-
|
10
8
|
let {
|
11
9
|
module: {
|
12
10
|
mode,
|
@@ -14,7 +12,6 @@ let {
|
|
14
12
|
}
|
15
13
|
} = (0, _utils.getOptions)();
|
16
14
|
let isProd = mode.toLowerCase() === 'prod';
|
17
|
-
|
18
15
|
var _default = () => ({
|
19
16
|
presets: [[require.resolve('@babel/preset-env'), disableES5Transpile ? {
|
20
17
|
modules: false,
|
@@ -30,5 +27,4 @@ var _default = () => ({
|
|
30
27
|
__DOCS__: false
|
31
28
|
} : {}], require.resolve('@babel/plugin-syntax-dynamic-import')]
|
32
29
|
});
|
33
|
-
|
34
30
|
exports.default = _default;
|
package/lib/common/getEntries.js
CHANGED
@@ -4,13 +4,9 @@ Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
5
5
|
});
|
6
6
|
exports.default = void 0;
|
7
|
-
|
8
7
|
var _path = _interopRequireDefault(require("path"));
|
9
|
-
|
10
8
|
var _utils = require("../utils");
|
11
|
-
|
12
9
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
13
|
-
|
14
10
|
let getEntries = (appSchemas, mode) => {
|
15
11
|
let appPath = process.cwd();
|
16
12
|
let {
|
@@ -30,23 +26,17 @@ let getEntries = (appSchemas, mode) => {
|
|
30
26
|
let entry = {
|
31
27
|
main: mainJs
|
32
28
|
};
|
33
|
-
|
34
29
|
if (mode === 'dev' || mode === 'dev-no-warn') {
|
35
30
|
mainJs.push(`${_path.default.join(__dirname, '..', 'templates', 'WMSTemplate')}?wmsPath=wss:${(0, _utils.getServerURL)(server)}`);
|
36
31
|
}
|
37
|
-
|
38
32
|
mainJs.push(_path.default.join(appPath, folder, isReactMig ? 'migration.js' : 'index.js'));
|
39
|
-
|
40
33
|
if (hasWidget) {
|
41
34
|
entry.widget = [_path.default.join(appPath, folder, 'widget.js')];
|
42
35
|
}
|
43
|
-
|
44
36
|
if (hasEFC) {
|
45
37
|
entry.efc = [_path.default.join(appPath, folder, 'efc.js')];
|
46
38
|
}
|
47
|
-
|
48
39
|
return entry;
|
49
40
|
};
|
50
|
-
|
51
41
|
var _default = getEntries;
|
52
42
|
exports.default = _default;
|
@@ -4,9 +4,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
5
5
|
});
|
6
6
|
exports.default = void 0;
|
7
|
-
|
8
7
|
var _utils = require("../utils");
|
9
|
-
|
10
8
|
let {
|
11
9
|
app: {
|
12
10
|
publicPaths,
|
@@ -20,10 +18,8 @@ let {
|
|
20
18
|
}
|
21
19
|
} = (0, _utils.getOptions)();
|
22
20
|
let isDevelopment = mode === 'dev' || mode === 'prod' || mode === 'dev-no-warn';
|
23
|
-
|
24
21
|
var _default = url => {
|
25
22
|
let type = (0, _utils.getFileType)(url);
|
26
|
-
|
27
23
|
if (!isDevelopment) {
|
28
24
|
if (publicPaths && publicPaths.callback) {
|
29
25
|
return `${publicPaths.callback}(${JSON.stringify(type)}) + ${JSON.stringify(url)}`;
|
@@ -33,8 +29,6 @@ var _default = url => {
|
|
33
29
|
return `__REACT_CLI_${type.toUpperCase()}_PUBLIC_PATH__ + ${JSON.stringify(url)}`;
|
34
30
|
}
|
35
31
|
}
|
36
|
-
|
37
32
|
return `__webpack_public_path__ + ${JSON.stringify(url)}`;
|
38
33
|
};
|
39
|
-
|
40
34
|
exports.default = _default;
|
package/lib/common/index.js
CHANGED
@@ -27,13 +27,8 @@ Object.defineProperty(exports, "templateParameters", {
|
|
27
27
|
return _templateParameters.default;
|
28
28
|
}
|
29
29
|
});
|
30
|
-
|
31
30
|
var _splitChunks = _interopRequireDefault(require("./splitChunks"));
|
32
|
-
|
33
31
|
var _getEntries = _interopRequireDefault(require("./getEntries"));
|
34
|
-
|
35
32
|
var _getPublicPathConfig = _interopRequireDefault(require("./getPublicPathConfig"));
|
36
|
-
|
37
33
|
var _templateParameters = _interopRequireDefault(require("./templateParameters"));
|
38
|
-
|
39
34
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
@@ -4,17 +4,11 @@ Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
5
5
|
});
|
6
6
|
exports.default = void 0;
|
7
|
-
|
8
7
|
var _path = _interopRequireDefault(require("path"));
|
9
|
-
|
10
8
|
var _os = _interopRequireDefault(require("os"));
|
11
|
-
|
12
9
|
var _utils = require("../utils");
|
13
|
-
|
14
10
|
var _testPattern = require("./testPattern");
|
15
|
-
|
16
11
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
17
|
-
|
18
12
|
let isWindows = _os.default.platform().toLowerCase() === 'win32';
|
19
13
|
let ps = _path.default.sep;
|
20
14
|
let options = (0, _utils.getOptions)();
|
@@ -25,7 +19,6 @@ let {
|
|
25
19
|
vendorInclude
|
26
20
|
}
|
27
21
|
} = options;
|
28
|
-
|
29
22
|
let isVendor = function isVendor(module) {
|
30
23
|
let {
|
31
24
|
userRequest
|
@@ -34,7 +27,6 @@ let isVendor = function isVendor(module) {
|
|
34
27
|
excludeList = [...excludeList, ...vendorExclude];
|
35
28
|
return userRequest && (vendorInclude.some(item => userRequest.indexOf(item) !== -1) || userRequest.indexOf('node_modules') >= 0 && userRequest.endsWith('.css') === false && userRequest.endsWith('publicPathConfig.js') === false && excludeList.every(item => userRequest.indexOf(`node_modules${ps}${item}${ps}`) === -1));
|
36
29
|
};
|
37
|
-
|
38
30
|
let isReact = module => {
|
39
31
|
let {
|
40
32
|
userRequest
|
@@ -42,7 +34,6 @@ let isReact = module => {
|
|
42
34
|
let reactBundle = ['react', 'react-dom'];
|
43
35
|
return userRequest && reactBundle.some(pkg => userRequest.indexOf(`node_modules${ps}${pkg}${ps}`) >= 0);
|
44
36
|
};
|
45
|
-
|
46
37
|
let defaultChunks = {
|
47
38
|
'react.vendor': {
|
48
39
|
name: 'react.vendor',
|
@@ -95,7 +86,8 @@ customChunks.map((obj, index) => ({
|
|
95
86
|
const {
|
96
87
|
userRequest
|
97
88
|
} = m;
|
98
|
-
return (0, _testPattern.testPattern)(userRequest, rules);
|
89
|
+
return (0, _testPattern.testPattern)(userRequest, rules);
|
90
|
+
// return (
|
99
91
|
// pkgs.some(p => isRelated(userRequest, p)) ||
|
100
92
|
// (includeDepenency && isDependency(m, pkgs))
|
101
93
|
// );
|
@@ -105,15 +97,12 @@ customChunks.map((obj, index) => ({
|
|
105
97
|
minChunks,
|
106
98
|
priority
|
107
99
|
};
|
108
|
-
|
109
100
|
if (minSize !== undefined) {
|
110
101
|
obj.minSize = minSize;
|
111
102
|
}
|
112
|
-
|
113
103
|
if (maxSize !== undefined) {
|
114
104
|
obj.maxSize = maxSize;
|
115
105
|
}
|
116
|
-
|
117
106
|
return customChunksConfig[name] = obj;
|
118
107
|
});
|
119
108
|
var _default = {
|
@@ -1,25 +1,16 @@
|
|
1
1
|
"use strict";
|
2
2
|
|
3
3
|
var _https = _interopRequireDefault(require("https"));
|
4
|
-
|
5
4
|
var _http = _interopRequireDefault(require("http"));
|
6
|
-
|
7
5
|
var _path = _interopRequireDefault(require("path"));
|
8
|
-
|
9
6
|
var _fs = _interopRequireDefault(require("fs"));
|
10
|
-
|
11
7
|
var _getOptions = _interopRequireDefault(require("../utils/getOptions"));
|
12
|
-
|
13
8
|
var _urlConcat = require("../utils/urlConcat");
|
14
|
-
|
15
9
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
16
|
-
|
17
10
|
const {
|
18
11
|
sslCertURL
|
19
12
|
} = (0, _getOptions.default)();
|
20
|
-
|
21
13
|
const CRET_FOLDER_PATH = _path.default.join(__dirname, '..', '..', 'cert');
|
22
|
-
|
23
14
|
console.log({
|
24
15
|
CRET_FOLDER_PATH,
|
25
16
|
sslCertURL
|
@@ -27,7 +18,6 @@ console.log({
|
|
27
18
|
const CERT_PATH = 'cert.pem';
|
28
19
|
const KEY_PATH = 'key.pem';
|
29
20
|
const PASSPHRASE_PATH = 'passphrase.pem';
|
30
|
-
|
31
21
|
function updateSSlFile(sslCertURL, filename) {
|
32
22
|
let url = (0, _urlConcat.urlConcat)(sslCertURL, filename);
|
33
23
|
console.log({
|
@@ -35,25 +25,24 @@ function updateSSlFile(sslCertURL, filename) {
|
|
35
25
|
});
|
36
26
|
(url.startsWith('https://') ? _https.default : _http.default).get(url, resp => {
|
37
27
|
let fpath = _path.default.join(CRET_FOLDER_PATH, filename);
|
38
|
-
|
39
|
-
|
40
|
-
|
28
|
+
let data = '';
|
29
|
+
// A chunk of data has been received.
|
41
30
|
resp.on('data', chunk => {
|
42
31
|
data += chunk;
|
43
|
-
});
|
32
|
+
});
|
44
33
|
|
34
|
+
// The whole response has been received. Print out the result.
|
45
35
|
resp.on('end', () => {
|
46
36
|
_fs.default.writeFileSync(fpath, data);
|
47
|
-
});
|
37
|
+
});
|
38
|
+
// return;
|
48
39
|
}).on('error', err => {
|
49
40
|
console.log(`Error: ${err.message}`);
|
50
41
|
});
|
51
42
|
}
|
52
|
-
|
53
43
|
if (!sslCertURL) {
|
54
44
|
throw 'sslCertURL not given';
|
55
45
|
}
|
56
|
-
|
57
46
|
updateSSlFile(sslCertURL, PASSPHRASE_PATH);
|
58
47
|
updateSSlFile(sslCertURL, CERT_PATH);
|
59
48
|
updateSSlFile(sslCertURL, KEY_PATH);
|
@@ -4,7 +4,6 @@ Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
5
5
|
});
|
6
6
|
exports.default = void 0;
|
7
|
-
|
8
7
|
var _default = (compilation, assets, assetTags, options) => {
|
9
8
|
Object.keys(assetTags).forEach(rootTag => {
|
10
9
|
assetTags[rootTag].forEach(tag => {
|
@@ -21,5 +20,4 @@ var _default = (compilation, assets, assetTags, options) => {
|
|
21
20
|
}
|
22
21
|
};
|
23
22
|
};
|
24
|
-
|
25
23
|
exports.default = _default;
|
@@ -6,64 +6,53 @@ Object.defineProperty(exports, "__esModule", {
|
|
6
6
|
exports.isDependency = isDependency;
|
7
7
|
exports.isRelatedPackage = exports.isRelated = void 0;
|
8
8
|
exports.testPattern = testPattern;
|
9
|
-
|
10
9
|
var _path = require("path");
|
11
|
-
|
12
10
|
// in our development we only use windows, mac and linux
|
13
|
-
const isWindows = _path.sep !== '/';
|
11
|
+
const isWindows = _path.sep !== '/';
|
14
12
|
|
13
|
+
// this function will return true if pattern matched
|
15
14
|
function _testPattern(req, pattern) {
|
16
15
|
let modifyedPattern = pattern;
|
17
|
-
|
18
16
|
if (/[*.$^]/.test(modifyedPattern)) {
|
19
17
|
if (isWindows) {
|
20
18
|
// modifyedPattern = pattern.replace(/\//g, ps.replace(/\\/g, '\\\\'));
|
21
19
|
modifyedPattern = modifyedPattern.replace(/\//g, '\\\\');
|
22
20
|
}
|
23
|
-
|
24
21
|
modifyedPattern = modifyedPattern.replace(/\./g, '\\.').replace(/\*/g, '.*');
|
25
22
|
const re = new RegExp(modifyedPattern);
|
26
23
|
return re.test(req);
|
27
24
|
}
|
28
|
-
|
29
25
|
if (isWindows) {
|
30
26
|
// modifyedPattern = pattern.replace(/\//g, ps.replace(/\\/g, '\\\\'));
|
31
27
|
modifyedPattern = modifyedPattern.replace(/\//g, '\\');
|
32
28
|
}
|
33
|
-
|
34
29
|
return req.indexOf(modifyedPattern) !== -1;
|
35
30
|
}
|
36
|
-
|
37
31
|
function testPattern(req, pattern) {
|
38
32
|
if (!req || !pattern) {
|
39
33
|
return false;
|
40
34
|
}
|
41
|
-
|
42
35
|
if (Array.isArray(pattern)) {
|
43
36
|
// eslint-disable-next-line no-unused-vars
|
44
37
|
return pattern.every(p => testPattern(req, p));
|
45
38
|
}
|
46
|
-
|
47
39
|
if (pattern[0] === '!') {
|
48
40
|
return !_testPattern(req, pattern.slice(1));
|
49
41
|
}
|
50
|
-
|
51
42
|
return _testPattern(req, pattern);
|
52
43
|
}
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
44
|
+
const isRelated = (req, item) => req && req.indexOf(item) !== -1;
|
45
|
+
// export const isRelated = (req, item) => testPattern(req, item);
|
57
46
|
exports.isRelated = isRelated;
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
47
|
+
const isRelatedPackage = (req, item) => isRelated(req, `node_modules${_path.sep}${item}${_path.sep}`) !== -1;
|
48
|
+
// export const isRelated = (req, item) => testPattern(req, item);
|
62
49
|
exports.isRelatedPackage = isRelatedPackage;
|
63
|
-
|
64
50
|
function isDependency(m, excludeList) {
|
65
51
|
// let reasons = m.reasons.map(r => r.module.userRequest);
|
66
52
|
// m.reasons.some(r => !r.module || !r.module.userRequest) && console.log(m.reasons);
|
67
53
|
return m.reasons.some(r => excludeList.some(item => r.module && isRelated(r.module.userRequest, item)));
|
68
|
-
}
|
54
|
+
}
|
55
|
+
|
56
|
+
// export function queryHandler(conditions, pattern) {
|
57
|
+
|
69
58
|
// }
|
@@ -1,53 +1,38 @@
|
|
1
1
|
"use strict";
|
2
2
|
|
3
3
|
var _postcss = _interopRequireDefault(require("postcss"));
|
4
|
-
|
5
4
|
var _path = _interopRequireDefault(require("path"));
|
6
|
-
|
7
5
|
var _fs = _interopRequireDefault(require("fs"));
|
8
|
-
|
9
6
|
var _folderIterator = _interopRequireDefault(require("../utils/folderIterator"));
|
10
|
-
|
11
7
|
var _utils = require("../utils");
|
12
|
-
|
13
8
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
14
|
-
|
15
9
|
const cwd = process.cwd();
|
16
|
-
|
17
10
|
const src = _path.default.join(cwd, process.argv[2]);
|
18
|
-
|
19
11
|
const dist = _path.default.join(cwd, process.argv[3]);
|
20
|
-
|
21
12
|
const docopy = process.argv[4] === 'true';
|
22
13
|
const {
|
23
14
|
css: {
|
24
15
|
valueReplacer
|
25
16
|
}
|
26
17
|
} = (0, _utils.getOptions)();
|
27
|
-
|
28
18
|
if (!_fs.default.existsSync(dist)) {
|
29
19
|
_fs.default.mkdirSync(dist, {
|
30
20
|
recursive: true
|
31
21
|
});
|
32
22
|
}
|
33
|
-
|
34
23
|
(0, _folderIterator.default)(src, dist, docopy ? false : ['.css'], false, (fromPath, toPath) => {
|
35
24
|
//console.log({ fromPath: fromPath, toPath: toPath });
|
36
25
|
let css = _fs.default.readFileSync(fromPath);
|
37
|
-
|
38
26
|
if (docopy && !fromPath.endsWith('.css')) {
|
39
27
|
//console.log(toPath,'....');
|
40
28
|
_fs.default.writeFileSync(toPath, css);
|
41
|
-
|
42
29
|
return;
|
43
30
|
}
|
44
|
-
|
45
31
|
(0, _postcss.default)([valueReplacer && require('../postcss-plugins/ValueReplacer')(valueReplacer)]).process(css, {
|
46
32
|
from: fromPath,
|
47
33
|
to: toPath
|
48
34
|
}).then(result => {
|
49
35
|
_fs.default.writeFile(toPath, result.css, () => true);
|
50
|
-
|
51
36
|
if (result.map) {
|
52
37
|
_fs.default.writeFile(`${toPath}.map`, result.map, () => true);
|
53
38
|
}
|