@procore/core-scripts 12.4.2 → 12.5.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/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# Change Log
|
|
2
2
|
|
|
3
|
+
## 12.5.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- 28d0b3a: Deprecate core-scripts in favor of [Hammer](https://github.com/procore/hammer). Please use the [Hammer migration from core-scripts](https://procoretech.atlassian.net/wiki/x/owDtAQE).
|
|
8
|
+
|
|
9
|
+
## 12.4.3
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- 0c8df6d: Fixes the issue with infinite redirect when hosting an MFE locally.
|
|
14
|
+
|
|
3
15
|
## 12.4.2
|
|
4
16
|
|
|
5
17
|
### Patch Changes
|
package/README.md
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
# @procore/core-scripts
|
|
2
2
|
|
|
3
|
+
> **Deprecated.** This package is deprecated. Migrate to [Hammer](https://github.com/procore/hammer) using the [Hammer migration from core-scripts](https://procoretech.atlassian.net/wiki/spaces/FDS/pages/4327276707/Hammer+migration+from+core-scripts) guide.
|
|
4
|
+
|
|
3
5
|
Procore Platform CLI.
|
|
4
6
|
|
|
5
7
|
<!-- toc -->
|
package/bin/core-scripts
CHANGED
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
|
|
3
|
+
const deprecationMessage =
|
|
4
|
+
'\n @procore/core-scripts is deprecated. Migrate to Hammer.\n Migration guide: https://procoretech.atlassian.net/wiki/spaces/FDS/pages/4327276707/Hammer+migration+from+core-scripts\n'
|
|
5
|
+
process.stderr.write(deprecationMessage)
|
|
6
|
+
|
|
3
7
|
require('@oclif/command')
|
|
4
8
|
.run()
|
|
5
9
|
.then(require('@oclif/command/flush'))
|
|
6
|
-
.catch(require('@oclif/errors/handle'))
|
|
10
|
+
.catch(require('@oclif/errors/handle'))
|
|
@@ -5,7 +5,6 @@ const tslib_1 = require("tslib");
|
|
|
5
5
|
const evalSourceMapMiddleware_1 = tslib_1.__importDefault(require("react-dev-utils/evalSourceMapMiddleware"));
|
|
6
6
|
const ignoredFiles_1 = tslib_1.__importDefault(require("react-dev-utils/ignoredFiles"));
|
|
7
7
|
const noopServiceWorkerMiddleware_1 = tslib_1.__importDefault(require("react-dev-utils/noopServiceWorkerMiddleware"));
|
|
8
|
-
const redirectServedPathMiddleware_js_1 = tslib_1.__importDefault(require("react-dev-utils/redirectServedPathMiddleware.js"));
|
|
9
8
|
const url_1 = tslib_1.__importDefault(require("url"));
|
|
10
9
|
function devServerConfigFactory(workspace, config) {
|
|
11
10
|
const allowedHost = url_1.default.format({
|
|
@@ -61,11 +60,8 @@ function devServerConfigFactory(workspace, config) {
|
|
|
61
60
|
// or when you are migrating from the `onBeforeSetupMiddleware` option
|
|
62
61
|
middlewares.unshift(
|
|
63
62
|
// Keep `evalSourceMapMiddleware`
|
|
64
|
-
// middlewares before `redirectServedPath` otherwise will not have any effect
|
|
65
63
|
// This lets us fetch source contents from webpack for the error overlay
|
|
66
|
-
(0, evalSourceMapMiddleware_1.default)(devServer)
|
|
67
|
-
// Redirect to `PUBLIC_URL` or `homepage` from `package.json` if url not match
|
|
68
|
-
(0, redirectServedPathMiddleware_js_1.default)(config.publicPath));
|
|
64
|
+
(0, evalSourceMapMiddleware_1.default)(devServer));
|
|
69
65
|
// Use the `push` method if you want to run a middleware after all other middlewares
|
|
70
66
|
// or when you are migrating from the `onAfterSetupMiddleware` option
|
|
71
67
|
middlewares.push(
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"devServerConfig.js","sourceRoot":"","sources":["../../../src/webpack/app/devServerConfig.ts"],"names":[],"mappings":";;
|
|
1
|
+
{"version":3,"file":"devServerConfig.js","sourceRoot":"","sources":["../../../src/webpack/app/devServerConfig.ts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CAAC;YAC/B,KAAK,EAAE;gBACL,OAAO,EAAE,IAAA,sBAAY,EAAC,SAAS,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;aAChD;SACF;QAED,gBAAgB,EAAE,CAAC,WAAW,EAAE,SAAS,EAAE,EAAE;YAC3C,IAAI,CAAC,SAAS,EAAE,CAAC;gBACf,MAAM,IAAI,KAAK,CAAC,mCAAmC,CAAC,CAAA;YACtD,CAAC;YAED,MAAM,GAAG,GAAG,SAAS,CAAC,GAAI,CAAA;YAC1B,IAAI,MAAM,CAAC,iBAAiB,EAAE,CAAC;gBAC7B,MAAM,CAAC,iBAAiB,CAAC,GAAG,CAAC,CAAA;YAC/B,CAAC;YAED,wFAAwF;YACxF,sEAAsE;YACtE,WAAW,CAAC,OAAO;YACjB,iCAAiC;YACjC,wEAAwE;YACxE,IAAA,iCAAuB,EAAC,SAAS,CAAC,CACnC,CAAA;YAED,oFAAoF;YACpF,qEAAqE;YACrE,WAAW,CAAC,IAAI;YACd,wEAAwE;YACxE,yEAAyE;YACzE,qEAAqE;YACrE,kFAAkF;YAClF,IAAA,qCAA2B,EAAC,MAAM,CAAC,UAAU,CAAC,CAC/C,CAAA;YAED,OAAO,WAAW,CAAA;QACpB,CAAC;KACF,CAAA;AACH,CAAC"}
|
package/oclif.manifest.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":"12.
|
|
1
|
+
{"version":"12.5.0","commands":{"info":{"id":"info","description":"Gathers relevant information about the CLI.","pluginName":"@procore/core-scripts","pluginType":"core","aliases":[],"flags":{},"args":[]},"rm":{"id":"rm","description":"Removes things.","pluginName":"@procore/core-scripts","pluginType":"core","aliases":[],"flags":{"yes":{"name":"yes","type":"boolean","char":"y","description":"Automatically answer 'Yes' to the question.","allowNo":false},"dryRun":{"name":"dryRun","type":"boolean","char":"d","description":"List what would be deleted instead of deleting.","allowNo":false},"force":{"name":"force","type":"boolean","char":"f","description":"Allow deleting the current working directory and outside.","allowNo":false}},"args":[{"name":"path","description":"Path that will be remove.","required":true}]},"test":{"id":"test","description":"Runs Jest. Visit https://jestjs.io/docs/en/cli for more information about available options, only --config is documented.","pluginName":"@procore/core-scripts","pluginType":"core","aliases":[],"flags":{"config":{"name":"config","type":"option","description":"The path to a Jest config file specifying how to find and execute tests."}},"args":[]},"app:build":{"id":"app:build","description":"Compiles the application.","pluginName":"@procore/core-scripts","pluginType":"core","aliases":[],"flags":{"analyze":{"name":"analyze","type":"boolean","description":"Run webpack bundle analyzer.","allowNo":false},"railsMode":{"name":"railsMode","type":"boolean","description":"Enables Procore Rails integration.","allowNo":false},"inspect":{"name":"inspect","type":"boolean","description":"Prints the Webpack configuration.","allowNo":false},"sourceMapPublicPath":{"name":"sourceMapPublicPath","type":"option","description":"Base path for all the sourcemap."},"publicPath":{"name":"publicPath","type":"option","description":"Allows you to specify the base path for all the assets within your application."}},"args":[]},"app:clean":{"id":"app:clean","description":"Cleans the distribution folder (/build).","pluginName":"@procore/core-scripts","pluginType":"core","aliases":[],"flags":{},"args":[]},"app:gen":{"id":"app:gen","description":"Generates application scaffolding.","pluginName":"@procore/core-scripts","pluginType":"core","aliases":[],"flags":{},"args":[]},"app:start":{"id":"app:start","description":"Starts the development server.","pluginName":"@procore/core-scripts","pluginType":"core","aliases":[],"flags":{"railsMode":{"name":"railsMode","type":"boolean","description":"Enables Procore Rails integration.","allowNo":false},"inspect":{"name":"inspect","type":"boolean","description":"Prints the Webpack configuration.","allowNo":false},"openBrowser":{"name":"openBrowser","type":"boolean","description":"Open browser after initializing the server.","allowNo":false},"https":{"name":"https","type":"boolean","description":"Use HTTPS.","allowNo":false},"dangerouslyDisableHostCheck":{"name":"dangerouslyDisableHostCheck","type":"boolean","description":"Disable host checking.","allowNo":false},"port":{"name":"port","type":"option","description":"Server port.","default":"5000"},"host":{"name":"host","type":"option","description":"Server host.","default":"0.0.0.0"},"socketHost":{"name":"socketHost","type":"option","description":"HMR websocket host","default":"0.0.0.0"},"publicPath":{"name":"publicPath","type":"option","description":"Public asset path."}},"args":[]},"lib:build":{"id":"lib:build","description":"Compiles the library in production mode.","pluginName":"@procore/core-scripts","pluginType":"core","aliases":[],"flags":{"analyze":{"name":"analyze","type":"boolean","description":"Run webpack bundle analyzer.","allowNo":false},"inspect":{"name":"inspect","type":"boolean","description":"Prints the Webpack configuration.","allowNo":false}},"args":[]},"lib:clean":{"id":"lib:clean","description":"Cleans the distribution folder (/dist).","pluginName":"@procore/core-scripts","pluginType":"core","aliases":[],"flags":{},"args":[]},"lib:start":{"id":"lib:start","description":"Compiles the library in development mode.","pluginName":"@procore/core-scripts","pluginType":"core","aliases":[],"flags":{},"args":[]},"lint:eslint":{"id":"lint:eslint","description":"Runs the ESLint linter.","pluginName":"@procore/core-scripts","pluginType":"core","aliases":[],"flags":{"fix":{"name":"fix","type":"boolean","description":"Automatically fix problems.","allowNo":false},"fixTypes":{"name":"fixTypes","type":"option","description":"The types of lint errors/warnings to fix.","options":["layout","problem","suggestion"]}},"args":[{"name":"input","description":"Comma-delimited list of file and/or folder paths that the linter will run against.","required":false}]},"lint:stylelint":{"id":"lint:stylelint","description":"Runs the stylelint linter.","pluginName":"@procore/core-scripts","pluginType":"core","aliases":[],"flags":{"fix":{"name":"fix","type":"boolean","description":"Automatically fix problems.","allowNo":false}},"args":[{"name":"files","description":"Path to the file or folder that the linter will run against.","required":false}]}}}
|
package/package.json
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@procore/core-scripts",
|
|
3
|
-
"version": "12.
|
|
3
|
+
"version": "12.5.0",
|
|
4
4
|
"description": "A CLI to enhance your development experience",
|
|
5
|
+
"deprecated": "Deprecated. Migrate to Hammer. Migration guide: https://procoretech.atlassian.net/wiki/spaces/FDS/pages/4327276707/Hammer+migration+from+core-scripts",
|
|
5
6
|
"author": "Procore Technologies",
|
|
6
7
|
"homepage": "https://github.com/procore/frontend-tooling#readme",
|
|
7
8
|
"repository": {
|
|
@@ -164,7 +165,7 @@
|
|
|
164
165
|
"util": "^0.12.5",
|
|
165
166
|
"validate-npm-package-name": "^4.0.0",
|
|
166
167
|
"vm-browserify": "^1.1.2",
|
|
167
|
-
"webpack": "^5.
|
|
168
|
+
"webpack": "^5.104.1",
|
|
168
169
|
"webpack-bugsnag-plugins": "^1.8.0",
|
|
169
170
|
"webpack-bundle-analyzer": "^4.10.1",
|
|
170
171
|
"webpack-chain": "^6.5.1",
|