@elliemae/pui-cli 9.0.0-next.31 → 9.0.0-next.33
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/dist/cjs/commands/lint.js +2 -2
- package/dist/cjs/commands/utils.js +3 -1
- package/dist/cjs/index.cjs +0 -2
- package/dist/cjs/index.js +1 -1
- package/dist/cjs/lint-config/stylelint.config.js +43 -0
- package/dist/cjs/release.config.js +46 -0
- package/dist/cjs/testing/setup-tests.js +1 -0
- package/dist/cjs/webpack/webpack.base.babel.js +5 -3
- package/dist/cjs/webpack/webpack.lib.dev.babel.js +3 -1
- package/dist/cjs/webpack/webpack.lib.prod.babel.js +3 -1
- package/dist/esm/commands/lint.js +2 -2
- package/dist/esm/commands/utils.js +3 -1
- package/dist/esm/index.cjs +0 -2
- package/dist/esm/index.js +1 -1
- package/dist/{cjs/lint-config/stylelint.config.cjs → esm/lint-config/stylelint.config.js} +7 -4
- package/dist/esm/release.config.js +26 -0
- package/dist/esm/testing/setup-tests.js +1 -0
- package/dist/esm/webpack/webpack.base.babel.js +5 -3
- package/dist/esm/webpack/webpack.lib.dev.babel.js +3 -1
- package/dist/esm/webpack/webpack.lib.prod.babel.js +3 -1
- package/dist/types/docusaurus.config.d.ts +2 -0
- package/dist/types/{index.d.cts → lib/index.d.cts} +1 -2
- package/dist/types/{index.d.ts → lib/index.d.ts} +2 -1
- package/dist/types/{lint-config/stylelint.config.d.cts → lib/lint-config/stylelint.config.d.ts} +2 -2
- package/dist/types/lib/release.config.d.ts +10 -0
- package/package.json +18 -17
- package/dist/cjs/release.config.cjs +0 -24
- package/dist/esm/lint-config/stylelint.config.cjs +0 -20
- package/dist/esm/release.config.cjs +0 -24
- package/dist/types/release.config.d.cts +0 -7
- /package/dist/types/{babel.config.d.cts → lib/babel.config.d.cts} +0 -0
- /package/dist/types/{cli.d.ts → lib/cli.d.ts} +0 -0
- /package/dist/types/{commands → lib/commands}/build.d.ts +0 -0
- /package/dist/types/{commands → lib/commands}/codemod.d.ts +0 -0
- /package/dist/types/{commands → lib/commands}/gendoc.d.ts +0 -0
- /package/dist/types/{commands → lib/commands}/lint.d.ts +0 -0
- /package/dist/types/{commands → lib/commands}/pack.d.ts +0 -0
- /package/dist/types/{commands → lib/commands}/start.d.ts +0 -0
- /package/dist/types/{commands → lib/commands}/storybook.d.ts +0 -0
- /package/dist/types/{commands → lib/commands}/test.d.ts +0 -0
- /package/dist/types/{commands → lib/commands}/tscheck.d.ts +0 -0
- /package/dist/types/{commands → lib/commands}/utils.d.ts +0 -0
- /package/dist/types/{commands → lib/commands}/version.d.ts +0 -0
- /package/dist/types/{commands → lib/commands}/vitest.d.ts +0 -0
- /package/dist/types/{dummy.d.ts → lib/dummy.d.ts} +0 -0
- /package/dist/types/{lint-config → lib/lint-config}/commitlint.config.d.cts +0 -0
- /package/dist/types/{lint-config → lib/lint-config}/eslint/common.d.cts +0 -0
- /package/dist/types/{lint-config → lib/lint-config}/eslint/non-react.d.cts +0 -0
- /package/dist/types/{lint-config → lib/lint-config}/eslint/react.d.cts +0 -0
- /package/dist/types/{lint-config → lib/lint-config}/eslint/typescript/common.d.cts +0 -0
- /package/dist/types/{lint-config → lib/lint-config}/eslint/typescript/non-react.d.cts +0 -0
- /package/dist/types/{lint-config → lib/lint-config}/eslint/typescript/react.d.cts +0 -0
- /package/dist/types/{lint-config → lib/lint-config}/lint-staged.config.d.ts +0 -0
- /package/dist/types/{lint-config → lib/lint-config}/prettier.config.d.cts +0 -0
- /package/dist/types/{monorepo → lib/monorepo}/delete-merged-tags.d.ts +0 -0
- /package/dist/types/{monorepo → lib/monorepo}/set-registry-version.d.ts +0 -0
- /package/dist/types/{monorepo → lib/monorepo}/set-workspace-version.d.ts +0 -0
- /package/dist/types/{monorepo → lib/monorepo}/utils.d.cts +0 -0
- /package/dist/types/{monorepo → lib/monorepo}/utils.d.ts +0 -0
- /package/dist/types/{pui-config.d.ts → lib/pui-config.d.ts} +0 -0
- /package/dist/types/{server → lib/server}/appRoutes.d.ts +0 -0
- /package/dist/types/{server → lib/server}/csp.d.ts +0 -0
- /package/dist/types/{server → lib/server}/index.d.ts +0 -0
- /package/dist/types/{server → lib/server}/logger.d.ts +0 -0
- /package/dist/types/{server → lib/server}/middlewares.d.ts +0 -0
- /package/dist/types/{server → lib/server}/utils.d.ts +0 -0
- /package/dist/types/{server → lib/server}/wsServer.d.ts +0 -0
- /package/dist/types/{testing → lib/testing}/ExtendedJSDomEnv.d.cts +0 -0
- /package/dist/types/{testing → lib/testing}/extended/axe-core/getMessageAndPass.d.ts +0 -0
- /package/dist/types/{testing → lib/testing}/extended/axe-core/index.d.ts +0 -0
- /package/dist/types/{testing → lib/testing}/extended/axe-core/reporter.d.ts +0 -0
- /package/dist/types/{testing → lib/testing}/extended/axe-core/shouldIgnoreNodeViolation.d.ts +0 -0
- /package/dist/types/{testing → lib/testing}/extended/axe-core/toHaveNoViolations.d.ts +0 -0
- /package/dist/types/{testing → lib/testing}/jest.config.d.cts +0 -0
- /package/dist/types/{testing → lib/testing}/jest.node.config.d.cts +0 -0
- /package/dist/types/{testing → lib/testing}/jest.polyfills.d.cts +0 -0
- /package/dist/types/{testing → lib/testing}/mocks/axios.d.ts +0 -0
- /package/dist/types/{testing → lib/testing}/mocks/cssModule.d.ts +0 -0
- /package/dist/types/{testing → lib/testing}/mocks/html.d.ts +0 -0
- /package/dist/types/{testing → lib/testing}/mocks/image.d.ts +0 -0
- /package/dist/types/{testing → lib/testing}/mocks/matchMedia.d.ts +0 -0
- /package/dist/types/{testing → lib/testing}/mocks/pui-app-loader.d.ts +0 -0
- /package/dist/types/{testing → lib/testing}/mocks/pui-diagnostics.d.ts +0 -0
- /package/dist/types/{testing → lib/testing}/mocks/pui-user-monitoring.d.ts +0 -0
- /package/dist/types/{testing → lib/testing}/mocks/retry-axios.d.ts +0 -0
- /package/dist/types/{testing → lib/testing}/mocks/svg.d.ts +0 -0
- /package/dist/types/{testing → lib/testing}/mocks/webpack-hmr.d.ts +0 -0
- /package/dist/types/{testing → lib/testing}/resolver.d.cts +0 -0
- /package/dist/types/{testing → lib/testing}/setup-react-env.d.ts +0 -0
- /package/dist/types/{testing → lib/testing}/setup-test-env.d.ts +0 -0
- /package/dist/types/{testing → lib/testing}/setup-tests.d.ts +0 -0
- /package/dist/types/{testing → lib/testing}/vitest.config.d.ts +0 -0
- /package/dist/types/{tests → lib/tests}/basic.test.d.ts +0 -0
- /package/dist/types/{transpile → lib/transpile}/esbuild.d.ts +0 -0
- /package/dist/types/{transpile → lib/transpile}/react-shim.d.ts +0 -0
- /package/dist/types/{transpile → lib/transpile}/swcrc.config.d.cts +0 -0
- /package/dist/types/{typedoc.d.cts → lib/typedoc.d.cts} +0 -0
- /package/dist/types/{update-notifier.d.ts → lib/update-notifier.d.ts} +0 -0
- /package/dist/types/{utils.d.cts → lib/utils.d.cts} +0 -0
- /package/dist/types/{utils.d.ts → lib/utils.d.ts} +0 -0
- /package/dist/types/{webpack → lib/webpack}/helpers.d.ts +0 -0
- /package/dist/types/{webpack → lib/webpack}/webpack.base.babel.d.ts +0 -0
- /package/dist/types/{webpack → lib/webpack}/webpack.dev.babel.d.ts +0 -0
- /package/dist/types/{webpack → lib/webpack}/webpack.lib.base.babel.d.ts +0 -0
- /package/dist/types/{webpack → lib/webpack}/webpack.lib.dev.babel.d.ts +0 -0
- /package/dist/types/{webpack → lib/webpack}/webpack.lib.prod.babel.d.ts +0 -0
- /package/dist/types/{webpack → lib/webpack}/webpack.prod.babel.d.ts +0 -0
- /package/dist/types/{webpack → lib/webpack}/webpack.storybook.d.ts +0 -0
|
@@ -38,7 +38,7 @@ var import_utils = require("./utils.js");
|
|
|
38
38
|
const lintCSS = async (args) => {
|
|
39
39
|
const fixIssues = args.fix ? "--fix" : "";
|
|
40
40
|
if (args.debug) {
|
|
41
|
-
const configPath = import_node_path.default.join(process.cwd(), "stylelint.config.
|
|
41
|
+
const configPath = import_node_path.default.join(process.cwd(), "stylelint.config.mjs");
|
|
42
42
|
const config = await import(configPath);
|
|
43
43
|
(0, import_utils.logInfo)("stylelint version:");
|
|
44
44
|
await (0, import_utils.exec)(`stylelint ./{lib,app}/**/*.{js,jsx,ts,tsx} --version`);
|
|
@@ -48,7 +48,7 @@ const lintCSS = async (args) => {
|
|
|
48
48
|
await (0, import_utils.exec)(
|
|
49
49
|
`stylelint ./{lib,app}/**/*.{js,jsx,ts,tsx} ${fixIssues} ${!(0, import_utils.getCIEnv)() ? "--color" : "--no-color"} --allow-empty-input --config ${import_node_path.default.join(
|
|
50
50
|
process.cwd(),
|
|
51
|
-
"stylelint.config.
|
|
51
|
+
"stylelint.config.mjs"
|
|
52
52
|
)}`
|
|
53
53
|
);
|
|
54
54
|
};
|
|
@@ -155,7 +155,9 @@ const updateManifestWithVersionInfo = async (dest) => {
|
|
|
155
155
|
const updateRuntimeFile = async (src, dest, version) => {
|
|
156
156
|
const latestJSFolder = "latest/js";
|
|
157
157
|
const pipe = (0, import_node_util.promisify)(import_node_stream.pipeline);
|
|
158
|
-
const results = await (0, import_fast_glob.default)([
|
|
158
|
+
const results = await (0, import_fast_glob.default)([
|
|
159
|
+
import_node_path.default.join(src, "runtime~app.*.js").replace(/\\/g, "/")
|
|
160
|
+
]);
|
|
159
161
|
if (!results?.length)
|
|
160
162
|
throw new Error("Runtime file not found");
|
|
161
163
|
const runtimeFilePath = results[0];
|
package/dist/cjs/index.cjs
CHANGED
|
@@ -5,7 +5,6 @@ const {
|
|
|
5
5
|
const {
|
|
6
6
|
esReactConfig: eslintConfig,
|
|
7
7
|
} = require('./lint-config/eslint/react.cjs');
|
|
8
|
-
const { stylelintConfig } = require('./lint-config/stylelint.config.cjs');
|
|
9
8
|
const { prettierConfig } = require('./lint-config/prettier.config.cjs');
|
|
10
9
|
const { commitlintConfig } = require('./lint-config/commitlint.config.cjs');
|
|
11
10
|
const { jestConfig } = require('./testing/jest.config.cjs');
|
|
@@ -15,7 +14,6 @@ module.exports = {
|
|
|
15
14
|
babelConfig,
|
|
16
15
|
eslintBaseConfig,
|
|
17
16
|
eslintConfig,
|
|
18
|
-
stylelintConfig,
|
|
19
17
|
prettierConfig,
|
|
20
18
|
commitlintConfig,
|
|
21
19
|
jestConfig,
|
package/dist/cjs/index.js
CHANGED
|
@@ -35,7 +35,7 @@ module.exports = __toCommonJS(lib_exports);
|
|
|
35
35
|
var import_babel_config = require("./babel.config.cjs");
|
|
36
36
|
var import_non_react = require("./lint-config/eslint/non-react.cjs");
|
|
37
37
|
var import_react = require("./lint-config/eslint/react.cjs");
|
|
38
|
-
var import_stylelint_config = require("./lint-config/stylelint.config.
|
|
38
|
+
var import_stylelint_config = require("./lint-config/stylelint.config.js");
|
|
39
39
|
var import_prettier_config = require("./lint-config/prettier.config.cjs");
|
|
40
40
|
var import_commitlint_config = require("./lint-config/commitlint.config.cjs");
|
|
41
41
|
var import_jest_config = require("./testing/jest.config.cjs");
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
var stylelint_config_exports = {};
|
|
20
|
+
__export(stylelint_config_exports, {
|
|
21
|
+
stylelintConfig: () => stylelintConfig
|
|
22
|
+
});
|
|
23
|
+
module.exports = __toCommonJS(stylelint_config_exports);
|
|
24
|
+
const stylelintConfig = {
|
|
25
|
+
ignoreFiles: [
|
|
26
|
+
"/dist/**/*",
|
|
27
|
+
"/coverage/**/*",
|
|
28
|
+
"/build/**/*",
|
|
29
|
+
"/reports/**/*",
|
|
30
|
+
"/temp/**/*",
|
|
31
|
+
"/docs/**/*",
|
|
32
|
+
"/demo/**/*",
|
|
33
|
+
"/node_modules/**/*",
|
|
34
|
+
"/vendor/**/*"
|
|
35
|
+
],
|
|
36
|
+
customSyntax: "@stylelint/postcss-css-in-js",
|
|
37
|
+
// customSyntax: "postcss-styled-components", // '@stylelint/postcss-css-in-js' is deprecated, this may be a replacement?
|
|
38
|
+
extends: [
|
|
39
|
+
"stylelint-config-recommended",
|
|
40
|
+
"stylelint-config-styled-components"
|
|
41
|
+
],
|
|
42
|
+
rules: { "selector-type-no-unknown": null, "function-no-unknown": null }
|
|
43
|
+
};
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
var release_config_exports = {};
|
|
20
|
+
__export(release_config_exports, {
|
|
21
|
+
default: () => release_config_default
|
|
22
|
+
});
|
|
23
|
+
module.exports = __toCommonJS(release_config_exports);
|
|
24
|
+
var release_config_default = {
|
|
25
|
+
branches: [
|
|
26
|
+
"+([0-9])?(.{+([0-9]),x}).x",
|
|
27
|
+
"master",
|
|
28
|
+
"next-major",
|
|
29
|
+
{ name: "beta", prerelease: true },
|
|
30
|
+
{ name: "alpha", prerelease: true },
|
|
31
|
+
{ name: "hotfix", prerelease: true },
|
|
32
|
+
{ name: "next", prerelease: true }
|
|
33
|
+
],
|
|
34
|
+
plugins: [
|
|
35
|
+
"@semantic-release/commit-analyzer",
|
|
36
|
+
"@semantic-release/release-notes-generator",
|
|
37
|
+
[
|
|
38
|
+
"@semantic-release/changelog",
|
|
39
|
+
{
|
|
40
|
+
changelogTitle: "# Changelog\n\nAll notable changes to this project will be documented in this file. See\n[Conventional Commits](https://conventionalcommits.org) for commit guidelines."
|
|
41
|
+
}
|
|
42
|
+
],
|
|
43
|
+
"@semantic-release/npm",
|
|
44
|
+
"@semantic-release/github"
|
|
45
|
+
]
|
|
46
|
+
};
|
|
@@ -129,14 +129,16 @@ const plugins = [
|
|
|
129
129
|
noErrorOnMissing: true,
|
|
130
130
|
globOptions: {
|
|
131
131
|
ignore: ["readme.md"]
|
|
132
|
-
}
|
|
132
|
+
},
|
|
133
|
+
info: { minimized: true }
|
|
133
134
|
},
|
|
134
135
|
{
|
|
135
136
|
from: "webroot",
|
|
136
137
|
noErrorOnMissing: true,
|
|
137
138
|
globOptions: {
|
|
138
139
|
ignore: ["readme.md"]
|
|
139
|
-
}
|
|
140
|
+
},
|
|
141
|
+
info: { minimized: true }
|
|
140
142
|
}
|
|
141
143
|
])
|
|
142
144
|
}),
|
|
@@ -145,7 +147,7 @@ const plugins = [
|
|
|
145
147
|
fileName: "./latest/manifest.json",
|
|
146
148
|
publicPath: "",
|
|
147
149
|
map: (file) => {
|
|
148
|
-
file.name = file.name.replace(/^latest
|
|
150
|
+
file.name = file.name.replace(/^latest(\/|\\)/, "");
|
|
149
151
|
return file;
|
|
150
152
|
}
|
|
151
153
|
}),
|
|
@@ -42,7 +42,9 @@ var import_helpers = require("./helpers.js");
|
|
|
42
42
|
var import_webpack_lib_base_babel = require("./webpack.lib.base.babel.js");
|
|
43
43
|
const { basePath } = (0, import_helpers.getPaths)();
|
|
44
44
|
const getHtmlWebpackPlugins = () => {
|
|
45
|
-
const htmlTemplateFiles = import_fast_glob.default.sync([
|
|
45
|
+
const htmlTemplateFiles = import_fast_glob.default.sync([
|
|
46
|
+
import_node_path.default.join(process.cwd(), "lib", "*.html").replace(/\\/g, "/")
|
|
47
|
+
]);
|
|
46
48
|
return htmlTemplateFiles.map(
|
|
47
49
|
(htmlTemplateFile) => new import_html_webpack_plugin.default({
|
|
48
50
|
template: htmlTemplateFile,
|
|
@@ -41,7 +41,9 @@ var import_browserslist_to_esbuild = __toESM(require("browserslist-to-esbuild"),
|
|
|
41
41
|
var import_helpers = require("./helpers.js");
|
|
42
42
|
var import_webpack_lib_base_babel = require("./webpack.lib.base.babel.js");
|
|
43
43
|
const getHtmlWebpackPlugins = () => {
|
|
44
|
-
const htmlTemplateFiles = import_fast_glob.default.sync([
|
|
44
|
+
const htmlTemplateFiles = import_fast_glob.default.sync([
|
|
45
|
+
import_node_path.default.join(process.cwd(), "lib", "*.html").replace(/\\/g, "/")
|
|
46
|
+
]);
|
|
45
47
|
return htmlTemplateFiles.map(
|
|
46
48
|
(htmlTemplateFile) => new import_html_webpack_plugin.default({
|
|
47
49
|
template: htmlTemplateFile,
|
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
const lintCSS = async (args) => {
|
|
13
13
|
const fixIssues = args.fix ? "--fix" : "";
|
|
14
14
|
if (args.debug) {
|
|
15
|
-
const configPath = path.join(process.cwd(), "stylelint.config.
|
|
15
|
+
const configPath = path.join(process.cwd(), "stylelint.config.mjs");
|
|
16
16
|
const config = await import(configPath);
|
|
17
17
|
logInfo("stylelint version:");
|
|
18
18
|
await exec(`stylelint ./{lib,app}/**/*.{js,jsx,ts,tsx} --version`);
|
|
@@ -22,7 +22,7 @@ const lintCSS = async (args) => {
|
|
|
22
22
|
await exec(
|
|
23
23
|
`stylelint ./{lib,app}/**/*.{js,jsx,ts,tsx} ${fixIssues} ${!getCIEnv() ? "--color" : "--no-color"} --allow-empty-input --config ${path.join(
|
|
24
24
|
process.cwd(),
|
|
25
|
-
"stylelint.config.
|
|
25
|
+
"stylelint.config.mjs"
|
|
26
26
|
)}`
|
|
27
27
|
);
|
|
28
28
|
};
|
|
@@ -123,7 +123,9 @@ const updateManifestWithVersionInfo = async (dest) => {
|
|
|
123
123
|
const updateRuntimeFile = async (src, dest, version) => {
|
|
124
124
|
const latestJSFolder = "latest/js";
|
|
125
125
|
const pipe = promisify(pipeline);
|
|
126
|
-
const results = await fg([
|
|
126
|
+
const results = await fg([
|
|
127
|
+
path.join(src, "runtime~app.*.js").replace(/\\/g, "/")
|
|
128
|
+
]);
|
|
127
129
|
if (!results?.length)
|
|
128
130
|
throw new Error("Runtime file not found");
|
|
129
131
|
const runtimeFilePath = results[0];
|
package/dist/esm/index.cjs
CHANGED
|
@@ -5,7 +5,6 @@ const {
|
|
|
5
5
|
const {
|
|
6
6
|
esReactConfig: eslintConfig,
|
|
7
7
|
} = require('./lint-config/eslint/react.cjs');
|
|
8
|
-
const { stylelintConfig } = require('./lint-config/stylelint.config.cjs');
|
|
9
8
|
const { prettierConfig } = require('./lint-config/prettier.config.cjs');
|
|
10
9
|
const { commitlintConfig } = require('./lint-config/commitlint.config.cjs');
|
|
11
10
|
const { jestConfig } = require('./testing/jest.config.cjs');
|
|
@@ -15,7 +14,6 @@ module.exports = {
|
|
|
15
14
|
babelConfig,
|
|
16
15
|
eslintBaseConfig,
|
|
17
16
|
eslintConfig,
|
|
18
|
-
stylelintConfig,
|
|
19
17
|
prettierConfig,
|
|
20
18
|
commitlintConfig,
|
|
21
19
|
jestConfig,
|
package/dist/esm/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { babelConfig } from "./babel.config.cjs";
|
|
2
2
|
import { esConfig } from "./lint-config/eslint/non-react.cjs";
|
|
3
3
|
import { esReactConfig } from "./lint-config/eslint/react.cjs";
|
|
4
|
-
import { stylelintConfig } from "./lint-config/stylelint.config.
|
|
4
|
+
import { stylelintConfig } from "./lint-config/stylelint.config.js";
|
|
5
5
|
import { prettierConfig } from "./lint-config/prettier.config.cjs";
|
|
6
6
|
import { commitlintConfig } from "./lint-config/commitlint.config.cjs";
|
|
7
7
|
import { jestConfig } from "./testing/jest.config.cjs";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
const stylelintConfig = {
|
|
2
2
|
ignoreFiles: [
|
|
3
3
|
"/dist/**/*",
|
|
4
4
|
"/coverage/**/*",
|
|
@@ -8,13 +8,16 @@ exports.stylelintConfig = {
|
|
|
8
8
|
"/docs/**/*",
|
|
9
9
|
"/demo/**/*",
|
|
10
10
|
"/node_modules/**/*",
|
|
11
|
-
"/vendor/**/*"
|
|
11
|
+
"/vendor/**/*"
|
|
12
12
|
],
|
|
13
13
|
customSyntax: "@stylelint/postcss-css-in-js",
|
|
14
14
|
// customSyntax: "postcss-styled-components", // '@stylelint/postcss-css-in-js' is deprecated, this may be a replacement?
|
|
15
15
|
extends: [
|
|
16
16
|
"stylelint-config-recommended",
|
|
17
|
-
"stylelint-config-styled-components"
|
|
17
|
+
"stylelint-config-styled-components"
|
|
18
18
|
],
|
|
19
|
-
rules: { "selector-type-no-unknown": null, "function-no-unknown": null }
|
|
19
|
+
rules: { "selector-type-no-unknown": null, "function-no-unknown": null }
|
|
20
|
+
};
|
|
21
|
+
export {
|
|
22
|
+
stylelintConfig
|
|
20
23
|
};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
var release_config_default = {
|
|
2
|
+
branches: [
|
|
3
|
+
"+([0-9])?(.{+([0-9]),x}).x",
|
|
4
|
+
"master",
|
|
5
|
+
"next-major",
|
|
6
|
+
{ name: "beta", prerelease: true },
|
|
7
|
+
{ name: "alpha", prerelease: true },
|
|
8
|
+
{ name: "hotfix", prerelease: true },
|
|
9
|
+
{ name: "next", prerelease: true }
|
|
10
|
+
],
|
|
11
|
+
plugins: [
|
|
12
|
+
"@semantic-release/commit-analyzer",
|
|
13
|
+
"@semantic-release/release-notes-generator",
|
|
14
|
+
[
|
|
15
|
+
"@semantic-release/changelog",
|
|
16
|
+
{
|
|
17
|
+
changelogTitle: "# Changelog\n\nAll notable changes to this project will be documented in this file. See\n[Conventional Commits](https://conventionalcommits.org) for commit guidelines."
|
|
18
|
+
}
|
|
19
|
+
],
|
|
20
|
+
"@semantic-release/npm",
|
|
21
|
+
"@semantic-release/github"
|
|
22
|
+
]
|
|
23
|
+
};
|
|
24
|
+
export {
|
|
25
|
+
release_config_default as default
|
|
26
|
+
};
|
|
@@ -102,14 +102,16 @@ const plugins = [
|
|
|
102
102
|
noErrorOnMissing: true,
|
|
103
103
|
globOptions: {
|
|
104
104
|
ignore: ["readme.md"]
|
|
105
|
-
}
|
|
105
|
+
},
|
|
106
|
+
info: { minimized: true }
|
|
106
107
|
},
|
|
107
108
|
{
|
|
108
109
|
from: "webroot",
|
|
109
110
|
noErrorOnMissing: true,
|
|
110
111
|
globOptions: {
|
|
111
112
|
ignore: ["readme.md"]
|
|
112
|
-
}
|
|
113
|
+
},
|
|
114
|
+
info: { minimized: true }
|
|
113
115
|
}
|
|
114
116
|
])
|
|
115
117
|
}),
|
|
@@ -118,7 +120,7 @@ const plugins = [
|
|
|
118
120
|
fileName: "./latest/manifest.json",
|
|
119
121
|
publicPath: "",
|
|
120
122
|
map: (file) => {
|
|
121
|
-
file.name = file.name.replace(/^latest
|
|
123
|
+
file.name = file.name.replace(/^latest(\/|\\)/, "");
|
|
122
124
|
return file;
|
|
123
125
|
}
|
|
124
126
|
}),
|
|
@@ -9,7 +9,9 @@ import { getPaths, getLibraryVariableName } from "./helpers.js";
|
|
|
9
9
|
import { baseConfig } from "./webpack.lib.base.babel.js";
|
|
10
10
|
const { basePath } = getPaths();
|
|
11
11
|
const getHtmlWebpackPlugins = () => {
|
|
12
|
-
const htmlTemplateFiles = fg.sync([
|
|
12
|
+
const htmlTemplateFiles = fg.sync([
|
|
13
|
+
path.join(process.cwd(), "lib", "*.html").replace(/\\/g, "/")
|
|
14
|
+
]);
|
|
13
15
|
return htmlTemplateFiles.map(
|
|
14
16
|
(htmlTemplateFile) => new HtmlWebpackPlugin({
|
|
15
17
|
template: htmlTemplateFile,
|
|
@@ -12,7 +12,9 @@ import {
|
|
|
12
12
|
} from "./helpers.js";
|
|
13
13
|
import { baseConfig } from "./webpack.lib.base.babel.js";
|
|
14
14
|
const getHtmlWebpackPlugins = () => {
|
|
15
|
-
const htmlTemplateFiles = fg.sync([
|
|
15
|
+
const htmlTemplateFiles = fg.sync([
|
|
16
|
+
path.join(process.cwd(), "lib", "*.html").replace(/\\/g, "/")
|
|
17
|
+
]);
|
|
16
18
|
return htmlTemplateFiles.map(
|
|
17
19
|
(htmlTemplateFile) => new HtmlWebpackPlugin({
|
|
18
20
|
template: htmlTemplateFile,
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import { babelConfig } from "./babel.config.cjs";
|
|
2
2
|
import { esConfig as eslintBaseConfig } from "./lint-config/eslint/non-react.cjs";
|
|
3
3
|
import { esReactConfig as eslintConfig } from "./lint-config/eslint/react.cjs";
|
|
4
|
-
import { stylelintConfig } from "./lint-config/stylelint.config.cjs";
|
|
5
4
|
import { prettierConfig } from "./lint-config/prettier.config.cjs";
|
|
6
5
|
import { commitlintConfig } from "./lint-config/commitlint.config.cjs";
|
|
7
6
|
import { jestConfig } from "./testing/jest.config.cjs";
|
|
8
7
|
import { jestNodeConfig } from "./testing/jest.node.config.cjs";
|
|
9
|
-
export { babelConfig, eslintBaseConfig, eslintConfig,
|
|
8
|
+
export { babelConfig, eslintBaseConfig, eslintConfig, prettierConfig, commitlintConfig, jestConfig, jestNodeConfig };
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
+
export type LIB_NAME = 'pui-cli';
|
|
1
2
|
export { babelConfig } from './babel.config.cjs';
|
|
2
3
|
export { esConfig as eslintBaseConfig } from './lint-config/eslint/non-react.cjs';
|
|
3
4
|
export { esReactConfig as eslintConfig } from './lint-config/eslint/react.cjs';
|
|
4
|
-
export { stylelintConfig } from './lint-config/stylelint.config.
|
|
5
|
+
export { stylelintConfig } from './lint-config/stylelint.config.js';
|
|
5
6
|
export { prettierConfig } from './lint-config/prettier.config.cjs';
|
|
6
7
|
export { commitlintConfig } from './lint-config/commitlint.config.cjs';
|
|
7
8
|
export { jestConfig } from './testing/jest.config.cjs';
|
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@elliemae/pui-cli",
|
|
3
|
-
"version": "9.0.0-next.
|
|
3
|
+
"version": "9.0.0-next.33",
|
|
4
4
|
"description": "ICE MT UI Platform CLI",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"type": "module",
|
|
7
7
|
"main": "./dist/cjs/index.cjs",
|
|
8
8
|
"module": "./dist/esm/index.js",
|
|
9
|
-
"types": "./dist/types/index.d.ts",
|
|
9
|
+
"types": "./dist/types/lib/index.d.ts",
|
|
10
10
|
"bin": {
|
|
11
11
|
"pui-cli": "./dist/esm/cli.js"
|
|
12
12
|
},
|
|
@@ -16,7 +16,8 @@
|
|
|
16
16
|
"require": "./dist/cjs/index.cjs"
|
|
17
17
|
},
|
|
18
18
|
"./releaseConfig": {
|
|
19
|
-
"
|
|
19
|
+
"import": "./dist/esm/release.config.js",
|
|
20
|
+
"require": "./dist/cjs/release.config.js"
|
|
20
21
|
},
|
|
21
22
|
"./storybook": {
|
|
22
23
|
"import": "./dist/esm/webpack/webpack.storybook.js",
|
|
@@ -55,10 +56,10 @@
|
|
|
55
56
|
"scripts": {
|
|
56
57
|
"build": "tsx ./lib/cli.ts pack -p -t node",
|
|
57
58
|
"build:dev": "tsx ./lib/cli.ts pack -t node",
|
|
58
|
-
"docs:start": "
|
|
59
|
-
"docs:build": "
|
|
60
|
-
"docs:version": "
|
|
61
|
-
"docs:serve": "
|
|
59
|
+
"docs:start": "pui-doc-gen start",
|
|
60
|
+
"docs:build": "pui-doc-gen build",
|
|
61
|
+
"docs:version": "pui-doc-gen version",
|
|
62
|
+
"docs:serve": "pui-doc-gen serve",
|
|
62
63
|
"lint": "tsx ./lib/cli.ts lint",
|
|
63
64
|
"lint:fix": "tsx ./lib/cli.ts lint --fix",
|
|
64
65
|
"prettify": "prettier --write",
|
|
@@ -70,7 +71,7 @@
|
|
|
70
71
|
"tscheck": "tsx ./lib/cli.ts tscheck --files",
|
|
71
72
|
"setup": "rimraf node_modules && rimraf pnpm-lock.yaml && pnpm i",
|
|
72
73
|
"upgrade": "ncu -u && npm run setup",
|
|
73
|
-
"prepare": "[ -n \"$CI\" ] || husky
|
|
74
|
+
"prepare": "[ -n \"$CI\" ] || husky"
|
|
74
75
|
},
|
|
75
76
|
"jestSonar": {
|
|
76
77
|
"reportPath": "reports",
|
|
@@ -165,7 +166,7 @@
|
|
|
165
166
|
"babel-plugin-transform-remove-console": "~6.9.4",
|
|
166
167
|
"babel-plugin-transform-strip-block": "~0.0.5",
|
|
167
168
|
"body-parser": "~1.20.2",
|
|
168
|
-
"browserslist": "~4.22.
|
|
169
|
+
"browserslist": "~4.22.3",
|
|
169
170
|
"browserslist-to-esbuild": "~1.2.0",
|
|
170
171
|
"chalk": "~5.3.0",
|
|
171
172
|
"circular-dependency-plugin": "~5.2.2",
|
|
@@ -174,11 +175,11 @@
|
|
|
174
175
|
"copy-webpack-plugin": "~11.0.0",
|
|
175
176
|
"cors": "~2.8.5",
|
|
176
177
|
"cross-env": "~7.0.3",
|
|
177
|
-
"css-loader": "~6.
|
|
178
|
+
"css-loader": "~6.10.0",
|
|
178
179
|
"css-minimizer-webpack-plugin": "~5.0.1",
|
|
179
180
|
"depcheck": "~1.4.7",
|
|
180
181
|
"docdash": "~2.0.2",
|
|
181
|
-
"dotenv": "~16.
|
|
182
|
+
"dotenv": "~16.4.1",
|
|
182
183
|
"dotenv-webpack": "~8.0.1",
|
|
183
184
|
"duplicate-package-checker-webpack-plugin": "~3.0.0",
|
|
184
185
|
"enhanced-resolve": "5.15.0",
|
|
@@ -220,7 +221,7 @@
|
|
|
220
221
|
"happy-dom": "~12.10.3",
|
|
221
222
|
"helmet-csp": "~3.4.0",
|
|
222
223
|
"html-loader": "~4.2.0",
|
|
223
|
-
"html-webpack-plugin": "~5.
|
|
224
|
+
"html-webpack-plugin": "~5.6.0",
|
|
224
225
|
"http-server": "~14.1.1",
|
|
225
226
|
"husky": "~8.0.3",
|
|
226
227
|
"husky-init": "~8.0.0",
|
|
@@ -238,7 +239,7 @@
|
|
|
238
239
|
"lint-staged": "~15.1.0",
|
|
239
240
|
"mini-css-extract-plugin": "~2.7.6",
|
|
240
241
|
"minimist": "~1.2.8",
|
|
241
|
-
"moment": "~2.
|
|
242
|
+
"moment": "~2.30.1",
|
|
242
243
|
"moment-locales-webpack-plugin": "~1.2.0",
|
|
243
244
|
"msw": "~2.0.6",
|
|
244
245
|
"npm-run-all": "~4.1.5",
|
|
@@ -255,7 +256,7 @@
|
|
|
255
256
|
"postcss": "~8.4.31",
|
|
256
257
|
"postcss-html": "~1.5.0",
|
|
257
258
|
"postcss-jsx": "~0.36.4",
|
|
258
|
-
"postcss-loader": "~7.3.
|
|
259
|
+
"postcss-loader": "~7.3.4",
|
|
259
260
|
"postcss-markdown": "~1.2.0",
|
|
260
261
|
"postcss-preset-env": "~9.3.0",
|
|
261
262
|
"postcss-syntax": "~0.36.2",
|
|
@@ -276,11 +277,11 @@
|
|
|
276
277
|
"storybook": "~7.5.3",
|
|
277
278
|
"storybook-addon-turbo-build": "~2.0.1",
|
|
278
279
|
"storybook-react-router": "~1.0.8",
|
|
279
|
-
"style-loader": "~3.3.
|
|
280
|
+
"style-loader": "~3.3.4",
|
|
280
281
|
"stylelint": "~15.11.0",
|
|
281
282
|
"stylelint-config-recommended": "~13.0.0",
|
|
282
283
|
"stylelint-config-styled-components": "~0.1.1",
|
|
283
|
-
"supertest": "~6.3.
|
|
284
|
+
"supertest": "~6.3.4",
|
|
284
285
|
"swc-loader": "~0.2.3",
|
|
285
286
|
"tsconfig-paths-webpack-plugin": "~4.1.0",
|
|
286
287
|
"ts-node": "~10.9.1",
|
|
@@ -307,7 +308,7 @@
|
|
|
307
308
|
"yargs": "~17.7.2"
|
|
308
309
|
},
|
|
309
310
|
"devDependencies": {
|
|
310
|
-
"@elliemae/pui-doc-gen": "~
|
|
311
|
+
"@elliemae/pui-doc-gen": "~2.0.1",
|
|
311
312
|
"react": "~18.2.0",
|
|
312
313
|
"react-dom": "~18.2.0",
|
|
313
314
|
"redux": "~4.2.1",
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
module.exports = {
|
|
2
|
-
branches: [
|
|
3
|
-
'+([0-9])?(.{+([0-9]),x}).x',
|
|
4
|
-
'master',
|
|
5
|
-
'next-major',
|
|
6
|
-
{ name: 'beta', prerelease: true },
|
|
7
|
-
{ name: 'alpha', prerelease: true },
|
|
8
|
-
{ name: 'hotfix', prerelease: true },
|
|
9
|
-
{ name: 'next', prerelease: true },
|
|
10
|
-
],
|
|
11
|
-
plugins: [
|
|
12
|
-
'@semantic-release/commit-analyzer',
|
|
13
|
-
'@semantic-release/release-notes-generator',
|
|
14
|
-
[
|
|
15
|
-
'@semantic-release/changelog',
|
|
16
|
-
{
|
|
17
|
-
changelogTitle:
|
|
18
|
-
'# Changelog\n\nAll notable changes to this project will be documented in this file. See\n[Conventional Commits](https://conventionalcommits.org) for commit guidelines.',
|
|
19
|
-
},
|
|
20
|
-
],
|
|
21
|
-
'@semantic-release/npm',
|
|
22
|
-
'@semantic-release/github',
|
|
23
|
-
],
|
|
24
|
-
};
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
exports.stylelintConfig = {
|
|
2
|
-
ignoreFiles: [
|
|
3
|
-
"/dist/**/*",
|
|
4
|
-
"/coverage/**/*",
|
|
5
|
-
"/build/**/*",
|
|
6
|
-
"/reports/**/*",
|
|
7
|
-
"/temp/**/*",
|
|
8
|
-
"/docs/**/*",
|
|
9
|
-
"/demo/**/*",
|
|
10
|
-
"/node_modules/**/*",
|
|
11
|
-
"/vendor/**/*",
|
|
12
|
-
],
|
|
13
|
-
customSyntax: "@stylelint/postcss-css-in-js",
|
|
14
|
-
// customSyntax: "postcss-styled-components", // '@stylelint/postcss-css-in-js' is deprecated, this may be a replacement?
|
|
15
|
-
extends: [
|
|
16
|
-
"stylelint-config-recommended",
|
|
17
|
-
"stylelint-config-styled-components",
|
|
18
|
-
],
|
|
19
|
-
rules: { "selector-type-no-unknown": null, "function-no-unknown": null },
|
|
20
|
-
};
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
module.exports = {
|
|
2
|
-
branches: [
|
|
3
|
-
'+([0-9])?(.{+([0-9]),x}).x',
|
|
4
|
-
'master',
|
|
5
|
-
'next-major',
|
|
6
|
-
{ name: 'beta', prerelease: true },
|
|
7
|
-
{ name: 'alpha', prerelease: true },
|
|
8
|
-
{ name: 'hotfix', prerelease: true },
|
|
9
|
-
{ name: 'next', prerelease: true },
|
|
10
|
-
],
|
|
11
|
-
plugins: [
|
|
12
|
-
'@semantic-release/commit-analyzer',
|
|
13
|
-
'@semantic-release/release-notes-generator',
|
|
14
|
-
[
|
|
15
|
-
'@semantic-release/changelog',
|
|
16
|
-
{
|
|
17
|
-
changelogTitle:
|
|
18
|
-
'# Changelog\n\nAll notable changes to this project will be documented in this file. See\n[Conventional Commits](https://conventionalcommits.org) for commit guidelines.',
|
|
19
|
-
},
|
|
20
|
-
],
|
|
21
|
-
'@semantic-release/npm',
|
|
22
|
-
'@semantic-release/github',
|
|
23
|
-
],
|
|
24
|
-
};
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/dist/types/{testing → lib/testing}/extended/axe-core/shouldIgnoreNodeViolation.d.ts
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|