@fishawack/lab-env 4.39.1 → 4.40.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/.prettierignore +32 -1
- package/CHANGELOG.md +38 -0
- package/bitbucket-pipelines.yml +23 -2
- package/eslint.config.js +18 -1
- package/globals.js +17 -0
- package/laravel/9/docker-compose.yml +3 -2
- package/package.json +1 -1
- package/stylelint.config.js +15 -0
package/.prettierignore
CHANGED
|
@@ -27,4 +27,35 @@ resources/symbol
|
|
|
27
27
|
_Test/**/*fixture*/**
|
|
28
28
|
_Test/**/*expected*/**
|
|
29
29
|
_Test/**/_Build-syntax-error/**
|
|
30
|
-
_Tasks/helpers/htmlEmail/**/*
|
|
30
|
+
_Tasks/helpers/htmlEmail/**/*
|
|
31
|
+
|
|
32
|
+
# Wordpress specific ignores
|
|
33
|
+
wp-content/plugins/**/*
|
|
34
|
+
!wp-content/plugins/avalere-*/
|
|
35
|
+
!wp-content/plugins/avalere-*/**
|
|
36
|
+
|
|
37
|
+
wp-content/themes/**/*
|
|
38
|
+
!wp-content/themes/fishawack/
|
|
39
|
+
!wp-content/themes/fishawack/**
|
|
40
|
+
!wp-content/themes/avalerehealth/
|
|
41
|
+
!wp-content/themes/avalerehealth/**
|
|
42
|
+
!wp-content/themes/avalerehealth-*/
|
|
43
|
+
!wp-content/themes/avalerehealth-*/**
|
|
44
|
+
|
|
45
|
+
# Laravel specific
|
|
46
|
+
resources/content
|
|
47
|
+
public/
|
|
48
|
+
|
|
49
|
+
# Drupal specific ignores
|
|
50
|
+
themes/custom/**/*
|
|
51
|
+
!themes/custom/fishawack/
|
|
52
|
+
!themes/custom/fishawack/**
|
|
53
|
+
!themes/custom/avalerehealth/
|
|
54
|
+
!themes/custom/avalerehealth/**
|
|
55
|
+
!themes/custom/avalerehealth-*/
|
|
56
|
+
!themes/custom/avalerehealth-*/**
|
|
57
|
+
|
|
58
|
+
# Craftcms specific
|
|
59
|
+
templates/content
|
|
60
|
+
web/
|
|
61
|
+
storage/
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,43 @@
|
|
|
1
1
|
## Changelog
|
|
2
2
|
|
|
3
|
+
### 4.40.0 (2025-07-15)
|
|
4
|
+
|
|
5
|
+
#### Features
|
|
6
|
+
|
|
7
|
+
* can now customize the image platform with a config setting in the image override directory ([07cf41c](https://bitbucket.org/fishawackdigital/lab-env/commits/07cf41ce369af1002bf1ea88d74dba805262fe55))
|
|
8
|
+
* can now override laravel 9 php image ([4c89362](https://bitbucket.org/fishawackdigital/lab-env/commits/4c89362a1ccb8135c3b460dbd6ff23e27509ba4c))
|
|
9
|
+
|
|
10
|
+
#### Bug Fixes
|
|
11
|
+
|
|
12
|
+
* added craftcms specific ignores to lint files ([e40cecd](https://bitbucket.org/fishawackdigital/lab-env/commits/e40cecdbc0f145b1a65f7c8bdfa39d96b3b2f97f))
|
|
13
|
+
* added drupal specific ignores to lint files ([f73eb18](https://bitbucket.org/fishawackdigital/lab-env/commits/f73eb182d906c8894456197ae29edd8c89118ea8))
|
|
14
|
+
* added laravel specific ignores to lint files ([476cc75](https://bitbucket.org/fishawackdigital/lab-env/commits/476cc75a094722a4506d99308fd53db73224491c))
|
|
15
|
+
* ignore _App directory for stream specific builds ([edf9cec](https://bitbucket.org/fishawackdigital/lab-env/commits/edf9cec1cb3cc56baffd5a9e2604bc4d41ce764a))
|
|
16
|
+
* wordpress specific ignores ([78f7cc9](https://bitbucket.org/fishawackdigital/lab-env/commits/78f7cc91b3e3967842aae362c5e465acf09616ff))
|
|
17
|
+
|
|
18
|
+
#### Build Updates
|
|
19
|
+
|
|
20
|
+
* auto open a pr against beta on master publish ([88b7123](https://bitbucket.org/fishawackdigital/lab-env/commits/88b71237be90d7f7490f9447a815b1235071aa86))
|
|
21
|
+
|
|
22
|
+
### 4.40.0-beta.1 (2025-07-15)
|
|
23
|
+
|
|
24
|
+
#### Features
|
|
25
|
+
|
|
26
|
+
* can now customize the image platform with a config setting in the image override directory ([07cf41c](https://bitbucket.org/fishawackdigital/lab-env/commits/07cf41ce369af1002bf1ea88d74dba805262fe55))
|
|
27
|
+
* can now override laravel 9 php image ([4c89362](https://bitbucket.org/fishawackdigital/lab-env/commits/4c89362a1ccb8135c3b460dbd6ff23e27509ba4c))
|
|
28
|
+
|
|
29
|
+
#### Bug Fixes
|
|
30
|
+
|
|
31
|
+
* added craftcms specific ignores to lint files ([e40cecd](https://bitbucket.org/fishawackdigital/lab-env/commits/e40cecdbc0f145b1a65f7c8bdfa39d96b3b2f97f))
|
|
32
|
+
* added drupal specific ignores to lint files ([f73eb18](https://bitbucket.org/fishawackdigital/lab-env/commits/f73eb182d906c8894456197ae29edd8c89118ea8))
|
|
33
|
+
* added laravel specific ignores to lint files ([476cc75](https://bitbucket.org/fishawackdigital/lab-env/commits/476cc75a094722a4506d99308fd53db73224491c))
|
|
34
|
+
* ignore _App directory for stream specific builds ([edf9cec](https://bitbucket.org/fishawackdigital/lab-env/commits/edf9cec1cb3cc56baffd5a9e2604bc4d41ce764a))
|
|
35
|
+
* wordpress specific ignores ([78f7cc9](https://bitbucket.org/fishawackdigital/lab-env/commits/78f7cc91b3e3967842aae362c5e465acf09616ff))
|
|
36
|
+
|
|
37
|
+
#### Build Updates
|
|
38
|
+
|
|
39
|
+
* auto open a pr against beta on master publish ([88b7123](https://bitbucket.org/fishawackdigital/lab-env/commits/88b71237be90d7f7490f9447a815b1235071aa86))
|
|
40
|
+
|
|
3
41
|
### 4.39.1 (2025-06-26)
|
|
4
42
|
|
|
5
43
|
#### Bug Fixes
|
package/bitbucket-pipelines.yml
CHANGED
|
@@ -61,8 +61,29 @@ pipelines:
|
|
|
61
61
|
# Release version via node so can exit out when no release made
|
|
62
62
|
- |
|
|
63
63
|
node -e "const spawn = require('child_process').spawn('semantic-release', ['--repositoryUrl', 'https://$GIT_CREDENTIALS@bitbucket.org/$BITBUCKET_REPO_FULL_NAME'], { env: { ...process.env, FORCE_COLOR: true } }); spawn.stderr.on('data', d => process.stderr.write(d.toString())); spawn.stdout.on('data', d => {process.stdout.write(d.toString()); if(d.toString().includes('There are no relevant changes, so no new version is released.') || d.toString().includes('therefore a new version won\'t be published.')){process.exit(1);}})" || exit 0
|
|
64
|
-
#
|
|
65
|
-
-
|
|
64
|
+
# Open PR to re-sync beta after release
|
|
65
|
+
- |
|
|
66
|
+
curl https://api.bitbucket.org/2.0/repositories/${BITBUCKET_REPO_OWNER}/${BITBUCKET_REPO_SLUG}/pullrequests \
|
|
67
|
+
-u $GIT_CREDENTIALS \
|
|
68
|
+
--header 'Content-Type: application/json' \
|
|
69
|
+
--data "{
|
|
70
|
+
\"title\": \"fw-auto: sync beta after release\",
|
|
71
|
+
\"source\": {
|
|
72
|
+
\"branch\": {
|
|
73
|
+
\"name\": \"master\"
|
|
74
|
+
}
|
|
75
|
+
},
|
|
76
|
+
\"destination\": {
|
|
77
|
+
\"branch\": {
|
|
78
|
+
\"name\": \"beta\"
|
|
79
|
+
}
|
|
80
|
+
},
|
|
81
|
+
\"reviewers\": [
|
|
82
|
+
{
|
|
83
|
+
\"uuid\": \"{2518e4c3-fc1d-4653-b355-c00be099ce6c}\"
|
|
84
|
+
}
|
|
85
|
+
]
|
|
86
|
+
}"
|
|
66
87
|
# Commit and create pull request for new version on aws-runner repo
|
|
67
88
|
- git config --global user.email "digital@fishawack.com"
|
|
68
89
|
- git config --global user.name "Digital Fishawack"
|
package/eslint.config.js
CHANGED
|
@@ -29,6 +29,7 @@ module.exports = defineConfig([
|
|
|
29
29
|
"android",
|
|
30
30
|
"_Output",
|
|
31
31
|
"_Packages",
|
|
32
|
+
"_App",
|
|
32
33
|
".cache",
|
|
33
34
|
".husky",
|
|
34
35
|
"**/generated/**/*",
|
|
@@ -39,7 +40,23 @@ module.exports = defineConfig([
|
|
|
39
40
|
"_Test/**/*fixture*/**",
|
|
40
41
|
"_Test/**/*expected*/**",
|
|
41
42
|
"_Test/**/_Build-syntax-error/**",
|
|
42
|
-
|
|
43
|
+
// STREAM specific to ignore non-authored files
|
|
44
|
+
"**/js/level-*/**/libs/**",
|
|
45
|
+
// Wordpress specific ignores
|
|
46
|
+
"wp-content/plugins/**/*",
|
|
47
|
+
"wp-content/themes/**/*",
|
|
48
|
+
// Laravel specific
|
|
49
|
+
"resources/content",
|
|
50
|
+
"resources/handlebars/**/*.js",
|
|
51
|
+
"public/",
|
|
52
|
+
// Drupal specific ignores
|
|
53
|
+
"themes/**/*",
|
|
54
|
+
"modules/**/*",
|
|
55
|
+
// Craftcms specific
|
|
56
|
+
"templates/content",
|
|
57
|
+
"templates/handlebars/**/*.js",
|
|
58
|
+
"web/",
|
|
59
|
+
"storage/",
|
|
43
60
|
]),
|
|
44
61
|
{
|
|
45
62
|
plugins: {
|
package/globals.js
CHANGED
|
@@ -262,6 +262,8 @@ process.env.FW_CORE_1_IMAGE =
|
|
|
262
262
|
|
|
263
263
|
process.env.FW_LARAVEL_8_NGINX_IMAGE =
|
|
264
264
|
process.env.FW_LARAVEL_8_NGINX_IMAGE || `fishawack/lab-env-laravel-8-nginx`;
|
|
265
|
+
process.env.FW_LARAVEL_9_PHP_IMAGE =
|
|
266
|
+
process.env.FW_LARAVEL_9_PHP_IMAGE || `fishawack/lab-env-laravel-9-php`;
|
|
265
267
|
process.env.FW_ADONIS_0_NGINX_IMAGE =
|
|
266
268
|
process.env.FW_ADONIS_0_NGINX_IMAGE || `fishawack/lab-env-adonis-0-nginx`;
|
|
267
269
|
process.env.FW_ADONIS_0_NODE_IMAGE = process.env.FW_ADONIS_0_NODE_IMAGE || ``;
|
|
@@ -319,6 +321,7 @@ if (existsSync(path.join(contextOverride, "Dockerfile"))) {
|
|
|
319
321
|
process.env.FW_CORE_1_IMAGE += `-${repoSafe}`;
|
|
320
322
|
}
|
|
321
323
|
|
|
324
|
+
// Laravel
|
|
322
325
|
process.env.FW_LARAVEL_8_NGINX_CONTEXT =
|
|
323
326
|
process.env.FW_LARAVEL_8_NGINX_CONTEXT || `${__dirname}/laravel/8/nginx/`;
|
|
324
327
|
|
|
@@ -331,6 +334,20 @@ if (existsSync(path.join(contextOverride, "Dockerfile"))) {
|
|
|
331
334
|
).version;
|
|
332
335
|
}
|
|
333
336
|
|
|
337
|
+
process.env.FW_LARAVEL_9_PHP_CONTEXT =
|
|
338
|
+
process.env.FW_LARAVEL_9_PHP_CONTEXT || `${__dirname}/laravel/9/php/`;
|
|
339
|
+
|
|
340
|
+
contextOverride = path.join(cwd, "_Docker/laravel/9/php");
|
|
341
|
+
if (existsSync(path.join(contextOverride, "Dockerfile"))) {
|
|
342
|
+
process.env.FW_LARAVEL_9_PHP_CONTEXT = contextOverride;
|
|
343
|
+
process.env.FW_LARAVEL_9_PHP_IMAGE += `-${repoSafe}`;
|
|
344
|
+
process.env.FW_LARAVEL_9_PHP_VERSION = require(
|
|
345
|
+
`${contextOverride}/package.json`,
|
|
346
|
+
).version;
|
|
347
|
+
process.env.FW_LARAVEL_9_PHP_PLATFORM =
|
|
348
|
+
require(`${contextOverride}/package.json`).platform || "";
|
|
349
|
+
}
|
|
350
|
+
|
|
334
351
|
// ADONIS
|
|
335
352
|
process.env.FW_ADONIS_0_NGINX_CONTEXT =
|
|
336
353
|
process.env.FW_ADONIS_0_NGINX_CONTEXT || `${__dirname}/adonis/0/nginx/`;
|
|
@@ -25,9 +25,10 @@ services:
|
|
|
25
25
|
- "${PORT_WEB:-8000}:80"
|
|
26
26
|
php:
|
|
27
27
|
build:
|
|
28
|
-
context: $
|
|
28
|
+
context: $FW_LARAVEL_9_PHP_CONTEXT
|
|
29
29
|
target: development
|
|
30
|
-
image:
|
|
30
|
+
image: $FW_LARAVEL_9_PHP_IMAGE:${FW_LARAVEL_9_PHP_VERSION:-latest}
|
|
31
|
+
platform: ${FW_LARAVEL_9_PHP_PLATFORM:-}
|
|
31
32
|
init: true
|
|
32
33
|
working_dir: /app
|
|
33
34
|
networks:
|
package/package.json
CHANGED
package/stylelint.config.js
CHANGED
|
@@ -30,6 +30,7 @@ module.exports = {
|
|
|
30
30
|
"android/**/*",
|
|
31
31
|
"_Output/**/*",
|
|
32
32
|
"_Packages/**/*",
|
|
33
|
+
"_App/**/*",
|
|
33
34
|
".cache/**/*",
|
|
34
35
|
".husky/**/*",
|
|
35
36
|
".**/generated/**/*",
|
|
@@ -39,5 +40,19 @@ module.exports = {
|
|
|
39
40
|
"_Test/**/*fixture*/**",
|
|
40
41
|
"_Test/**/*expected*/**",
|
|
41
42
|
"_Test/**/_Build-syntax-error/**",
|
|
43
|
+
// Wordpress specific ignores
|
|
44
|
+
"wp-content/plugins/**/*",
|
|
45
|
+
"wp-content/themes/**/*",
|
|
46
|
+
// Laravel specific
|
|
47
|
+
"resources/content/**/*",
|
|
48
|
+
"public/**/*",
|
|
49
|
+
// Drupal specific ignores
|
|
50
|
+
"themes/**/*",
|
|
51
|
+
"modules/**/*",
|
|
52
|
+
// Craftcms specific
|
|
53
|
+
"templates/content/**/*",
|
|
54
|
+
"templates/handlebars/**/*.js",
|
|
55
|
+
"web/**/*",
|
|
56
|
+
"storage/**/*",
|
|
42
57
|
],
|
|
43
58
|
};
|