@mrpelz/boilerplate-preact 9.0.0 → 9.2.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/package.json +1 -1
- package/scripts/bootstrap.sh +10 -10
package/package.json
CHANGED
package/scripts/bootstrap.sh
CHANGED
|
@@ -9,7 +9,7 @@ BOILERPLATE_DOM_MODULE_NAME="@mrpelz/boilerplate-dom"
|
|
|
9
9
|
BOILERPLATE_DOM_MODULE_PATH="$(realpath --relative-to=. "$(npm ls --parseable --silent "$BOILERPLATE_DOM_MODULE_NAME" 2>/dev/null)")"
|
|
10
10
|
|
|
11
11
|
BOILERPLATE_PREACT_MODULE_NAME="@mrpelz/boilerplate-preact"
|
|
12
|
-
BOILERPLATE_PREACT_MODULE_PATH="$(realpath --relative-to=. "$(npm ls --parseable --silent "$BOILERPLATE_PREACT_MODULE_NAME" 2>/dev/null)")"
|
|
12
|
+
# BOILERPLATE_PREACT_MODULE_PATH="$(realpath --relative-to=. "$(npm ls --parseable --silent "$BOILERPLATE_PREACT_MODULE_NAME" 2>/dev/null)")"
|
|
13
13
|
|
|
14
14
|
SCRIPT_PATH="${BOILERPLATE_MODULE_PATH}/scripts"
|
|
15
15
|
# shellcheck disable=SC1091
|
|
@@ -33,7 +33,7 @@ if [[ $SKIP_FILES -ne 1 ]]; then
|
|
|
33
33
|
make_ln "${BOILERPLATE_DOM_MODULE_PATH}/scripts/watch-dev.sh" scripts/watch-dev.sh
|
|
34
34
|
fi
|
|
35
35
|
|
|
36
|
-
if check_response "📃 install bare config files extending base files in \"$BOILERPLATE_MODULE_NAME\", \"$BOILERPLATE_DOM_MODULE_NAME\" and \"$
|
|
36
|
+
if check_response "📃 install bare config files extending base files in \"$BOILERPLATE_MODULE_NAME\", \"$BOILERPLATE_DOM_MODULE_NAME\" and \"$BOILERPLATE_PREACT_MODULE_NAME\"?" y; then
|
|
37
37
|
|
|
38
38
|
# no indent
|
|
39
39
|
make_config .gitignore "$(
|
|
@@ -47,7 +47,7 @@ EOF
|
|
|
47
47
|
|
|
48
48
|
make_config Makefile "$(
|
|
49
49
|
cat <<EOF
|
|
50
|
-
BASE_FILE := \$(shell npm ls --parseable --silent "$
|
|
50
|
+
BASE_FILE := \$(shell npm ls --parseable --silent "$BOILERPLATE_PREACT_MODULE_NAME" 2>/dev/null)
|
|
51
51
|
|
|
52
52
|
include \$(BASE_FILE)/Makefile
|
|
53
53
|
EOF
|
|
@@ -56,7 +56,7 @@ EOF
|
|
|
56
56
|
make_config commitlint.config.mjs "$(
|
|
57
57
|
cat <<EOF
|
|
58
58
|
// @ts-ignore
|
|
59
|
-
import config from '$
|
|
59
|
+
import config from '$BOILERPLATE_PREACT_MODULE_NAME/commitlint.config.mjs';
|
|
60
60
|
|
|
61
61
|
/** @type {import('@commitlint/types').UserConfig} */
|
|
62
62
|
export default config;
|
|
@@ -66,7 +66,7 @@ EOF
|
|
|
66
66
|
make_config eslint.config.js "$(
|
|
67
67
|
cat <<EOF
|
|
68
68
|
// @ts-ignore
|
|
69
|
-
import config from '$
|
|
69
|
+
import config from '$BOILERPLATE_PREACT_MODULE_NAME/eslint.config.js';
|
|
70
70
|
|
|
71
71
|
/** @type {import('eslint').Linter.FlatConfig[]} */
|
|
72
72
|
export default config;
|
|
@@ -76,7 +76,7 @@ EOF
|
|
|
76
76
|
make_config jest.config.js "$(
|
|
77
77
|
cat <<EOF
|
|
78
78
|
// @ts-ignore
|
|
79
|
-
import config from '$
|
|
79
|
+
import config from '$BOILERPLATE_PREACT_MODULE_NAME/jest.config.js';
|
|
80
80
|
|
|
81
81
|
/** @type {import('ts-jest').JestConfigWithTsJest} */
|
|
82
82
|
export default config;
|
|
@@ -92,7 +92,7 @@ import { resolve } from 'node:path';
|
|
|
92
92
|
export default {
|
|
93
93
|
extends: [
|
|
94
94
|
resolve(
|
|
95
|
-
execSync('npm ls --parseable "$
|
|
95
|
+
execSync('npm ls --parseable "$BOILERPLATE_PREACT_MODULE_NAME"', {
|
|
96
96
|
encoding: 'utf8',
|
|
97
97
|
}).trim(),
|
|
98
98
|
'stylelint.config.js',
|
|
@@ -105,7 +105,7 @@ EOF
|
|
|
105
105
|
make_config webpack.config.js "$(
|
|
106
106
|
cat <<EOF
|
|
107
107
|
// @ts-ignore
|
|
108
|
-
import config from '$
|
|
108
|
+
import config from '$BOILERPLATE_PREACT_MODULE_NAME/webpack.config.js';
|
|
109
109
|
|
|
110
110
|
/** @type {import('webpack').Configuration | import('webpack').WebpackOptionsNormalized} */
|
|
111
111
|
export default config;
|
|
@@ -118,7 +118,7 @@ EOF
|
|
|
118
118
|
"compilerOptions": {
|
|
119
119
|
"outDir": "dist",
|
|
120
120
|
},
|
|
121
|
-
"extends": "$
|
|
121
|
+
"extends": "$BOILERPLATE_PREACT_MODULE_NAME/tsconfig.json",
|
|
122
122
|
"include": ["src/**/*"]
|
|
123
123
|
}
|
|
124
124
|
EOF
|
|
@@ -141,7 +141,7 @@ EOF
|
|
|
141
141
|
cat <<EOF
|
|
142
142
|
{
|
|
143
143
|
"exclude": ["dist/**/*", "node_modules/**/*", "packages/**/*", "src/**/*"],
|
|
144
|
-
"extends": "$
|
|
144
|
+
"extends": "$BOILERPLATE_PREACT_MODULE_NAME/tsconfig.meta.json",
|
|
145
145
|
"include": ["**/*.js", "**/*.mjs"]
|
|
146
146
|
}
|
|
147
147
|
EOF
|