@fishawack/lab-env 4.39.0-beta.4 → 4.39.0-beta.6
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/.husky/commit-msg +1 -1
- package/.husky/pre-push +1 -0
- package/.prettierignore +2 -1
- package/CHANGELOG.md +21 -0
- package/cli.js +2 -0
- package/commands/lint.js +14 -0
- package/commands/pretty.js +14 -0
- package/globals.js +33 -4
- package/package.json +1 -1
package/.husky/commit-msg
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
commitlint --edit $1
|
package/.husky/pre-push
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
fw lint
|
package/.prettierignore
CHANGED
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,26 @@
|
|
|
1
1
|
## Changelog
|
|
2
2
|
|
|
3
|
+
### 4.39.0-beta.6 (2025-05-15)
|
|
4
|
+
|
|
5
|
+
#### Features
|
|
6
|
+
|
|
7
|
+
* added new lint command ([b1729c9](https://bitbucket.org/fishawackdigital/lab-env/commits/b1729c97739b8b04c5ed8f902d4090c985eb21d7))
|
|
8
|
+
* added pre-push hook ([7e57de1](https://bitbucket.org/fishawackdigital/lab-env/commits/7e57de1b8b78ba697395a7949f40ee70a61cccc7))
|
|
9
|
+
* added pretty command ([e739ae7](https://bitbucket.org/fishawackdigital/lab-env/commits/e739ae7166fac30ab85dbbac7c53f5d00eef2ac3))
|
|
10
|
+
* copy editorconfig to project repo ([1293372](https://bitbucket.org/fishawackdigital/lab-env/commits/129337208d04ce9069d1fa71096b71098dabf8af))
|
|
11
|
+
* copy prettier configs into project repo ([5cca79c](https://bitbucket.org/fishawackdigital/lab-env/commits/5cca79cba2e894ef418c802396765a82ca1f950f))
|
|
12
|
+
|
|
13
|
+
#### Bug Fixes
|
|
14
|
+
|
|
15
|
+
* ignore hbs files ([f86cee4](https://bitbucket.org/fishawackdigital/lab-env/commits/f86cee439f6cd368d350688b3e15abf78c97bbe3))
|
|
16
|
+
* use global commitlint install instead of local ([0535555](https://bitbucket.org/fishawackdigital/lab-env/commits/0535555e1ec98b9b3a681b997920fac25d71833b))
|
|
17
|
+
|
|
18
|
+
### 4.39.0-beta.5 (2025-05-15)
|
|
19
|
+
|
|
20
|
+
#### Build Updates
|
|
21
|
+
|
|
22
|
+
* **core/1:** Bumped lab-env-core-1 ([f79a81a](https://bitbucket.org/fishawackdigital/lab-env/commits/f79a81aabdd6b4da217d90382622810bfd20ea0d))
|
|
23
|
+
|
|
3
24
|
### 4.39.0-beta.4 (2025-05-15)
|
|
4
25
|
|
|
5
26
|
#### Features
|
package/cli.js
CHANGED
package/commands/lint.js
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
const execSync = require("child_process").execSync;
|
|
2
|
+
|
|
3
|
+
const _ = require("../globals.js");
|
|
4
|
+
|
|
5
|
+
module.exports = [
|
|
6
|
+
"lint",
|
|
7
|
+
"runs code style, javascript, scss & php linting",
|
|
8
|
+
(yargs) => {},
|
|
9
|
+
(argv) =>
|
|
10
|
+
execSync("npx prettier --check .", {
|
|
11
|
+
encoding: "utf8",
|
|
12
|
+
stdio: "inherit",
|
|
13
|
+
}),
|
|
14
|
+
];
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
const execSync = require("child_process").execSync;
|
|
2
|
+
|
|
3
|
+
const _ = require("../globals.js");
|
|
4
|
+
|
|
5
|
+
module.exports = [
|
|
6
|
+
"pretty",
|
|
7
|
+
"applies fixes to code style",
|
|
8
|
+
(yargs) => {},
|
|
9
|
+
(argv) =>
|
|
10
|
+
execSync("npx prettier --write .", {
|
|
11
|
+
encoding: "utf8",
|
|
12
|
+
stdio: "inherit",
|
|
13
|
+
}),
|
|
14
|
+
];
|
package/globals.js
CHANGED
|
@@ -118,7 +118,9 @@ if (composer && composer.require && composer.require["laravel/framework"]) {
|
|
|
118
118
|
args[0] !== "--help" &&
|
|
119
119
|
args[0] !== "new" &&
|
|
120
120
|
args[0] !== "key" &&
|
|
121
|
-
args[0] !== "dekey"
|
|
121
|
+
args[0] !== "dekey" &&
|
|
122
|
+
args[0] !== "lint" &&
|
|
123
|
+
args[0] !== "pretty"
|
|
122
124
|
) {
|
|
123
125
|
if (!args.find((d) => d === "--force")) {
|
|
124
126
|
console.log(
|
|
@@ -166,7 +168,9 @@ if (composer && composer.require && composer.require["laravel/framework"]) {
|
|
|
166
168
|
args[0] !== "--help" &&
|
|
167
169
|
args[0] !== "new" &&
|
|
168
170
|
args[0] !== "key" &&
|
|
169
|
-
args[0] !== "dekey"
|
|
171
|
+
args[0] !== "dekey" &&
|
|
172
|
+
args[0] !== "lint" &&
|
|
173
|
+
args[0] !== "pretty"
|
|
170
174
|
) {
|
|
171
175
|
if (!args.find((d) => d === "--force")) {
|
|
172
176
|
console.log(
|
|
@@ -224,7 +228,9 @@ if (process.env.FW_NEXT) {
|
|
|
224
228
|
args[0] !== "--help" &&
|
|
225
229
|
args[0] !== "new" &&
|
|
226
230
|
args[0] !== "key" &&
|
|
227
|
-
args[0] !== "dekey"
|
|
231
|
+
args[0] !== "dekey" &&
|
|
232
|
+
args[0] !== "lint" &&
|
|
233
|
+
args[0] !== "pretty"
|
|
228
234
|
) {
|
|
229
235
|
if (!args.find((d) => d === "--force")) {
|
|
230
236
|
console.log(
|
|
@@ -366,6 +372,27 @@ if (!existsSync(path.join(cwd, ".commitlintrc.json"))) {
|
|
|
366
372
|
);
|
|
367
373
|
}
|
|
368
374
|
|
|
375
|
+
if (!existsSync(path.join(cwd, ".prettierignore"))) {
|
|
376
|
+
copyFileSync(
|
|
377
|
+
path.join(__dirname, ".prettierignore"),
|
|
378
|
+
path.join(cwd, ".prettierignore"),
|
|
379
|
+
);
|
|
380
|
+
}
|
|
381
|
+
|
|
382
|
+
if (!existsSync(path.join(cwd, ".prettierrc.js"))) {
|
|
383
|
+
copyFileSync(
|
|
384
|
+
path.join(__dirname, ".prettierrc.js"),
|
|
385
|
+
path.join(cwd, ".prettierrc.js"),
|
|
386
|
+
);
|
|
387
|
+
}
|
|
388
|
+
|
|
389
|
+
if (!existsSync(path.join(cwd, ".editorconfig"))) {
|
|
390
|
+
copyFileSync(
|
|
391
|
+
path.join(__dirname, ".editorconfig"),
|
|
392
|
+
path.join(cwd, ".editorconfig"),
|
|
393
|
+
);
|
|
394
|
+
}
|
|
395
|
+
|
|
369
396
|
// If docker-compose.yml exists in project _Docker folder append to end
|
|
370
397
|
let localOverride = "";
|
|
371
398
|
if (existsSync(path.join(cwd, "_Docker/docker-compose.yml"))) {
|
|
@@ -412,7 +439,9 @@ if (
|
|
|
412
439
|
args[0] !== "--help" &&
|
|
413
440
|
args[0] !== "new" &&
|
|
414
441
|
args[0] !== "key" &&
|
|
415
|
-
args[0] !== "dekey"
|
|
442
|
+
args[0] !== "dekey" &&
|
|
443
|
+
args[0] !== "lint" &&
|
|
444
|
+
args[0] !== "pretty"
|
|
416
445
|
) {
|
|
417
446
|
// Stop here if diagnosis either unset or outdated
|
|
418
447
|
if (
|