mod-build 4.0.18-beta.2 → 4.0.18-beta.3
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/src/scripts/plugins.js +4 -10
- package/tasks/serve.js +1 -1
package/package.json
CHANGED
package/src/scripts/plugins.js
CHANGED
|
@@ -137,16 +137,10 @@ export const updateHandlebarsOnWatch = async (config) => {
|
|
|
137
137
|
}
|
|
138
138
|
|
|
139
139
|
export const createStylelintFile = () => {
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
writeBundle() {
|
|
143
|
-
// if the .stylelintrc.yml file doesn't exist in root, create it
|
|
144
|
-
const stylelintConfig = `extends:
|
|
145
|
-
./node_modules/mod-build/.stylelintrc.json`;
|
|
140
|
+
const stylelintConfig = `extends:
|
|
141
|
+
./node_modules/mod-build/.stylelintrc.json`;
|
|
146
142
|
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
}
|
|
150
|
-
}
|
|
143
|
+
if (!fs.existsSync('.stylelintrc.yml')) {
|
|
144
|
+
fs.writeFileSync('.stylelintrc.yml', stylelintConfig);
|
|
151
145
|
}
|
|
152
146
|
}
|
package/tasks/serve.js
CHANGED
|
@@ -6,7 +6,7 @@ import templates from './templates.js';
|
|
|
6
6
|
import { createStylelintFile, updateConfig } from '../src/scripts/plugins.js';
|
|
7
7
|
|
|
8
8
|
export async function startModBuild(config) {
|
|
9
|
-
|
|
9
|
+
createStylelintFile();
|
|
10
10
|
await grabCdn(config);
|
|
11
11
|
await Promise.all([
|
|
12
12
|
grabSharedComponents(config),
|