@fishawack/lab-env 1.18.0 → 1.18.1
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/CHANGELOG.md +3 -0
- package/commands/check.js +1 -1
- package/commands/deploy.js +1 -1
- package/commands/reinstall.js +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
package/commands/check.js
CHANGED
|
@@ -15,7 +15,7 @@ module.exports = [
|
|
|
15
15
|
argv => {
|
|
16
16
|
execSync(`${_.docker} ${_.run}c "check-dependencies ${argv.v ? '' : '&>/dev/null'} && echo -e '\\033[0;32mNpm deps OK\\033[0m' || { echo -e '\\033[0;31mNpm deps missing or outdated\\033[0m'; }"`, _.opts);
|
|
17
17
|
|
|
18
|
-
if(_.platform === "laravel" || _.platform === "drupal" || _.platform === "craftcms"
|
|
18
|
+
if(_.platform === "laravel" || _.platform === "drupal" || _.platform === "craftcms"){
|
|
19
19
|
execSync(`${_.docker} ${_.method} php bash -lc "composer install --dry-run ${argv.v ? '' : '2>&1'} | grep -q 'Nothing to install, update or remove' && echo -e '\\033[0;32mComposer deps OK\\033[0m' || echo -e '\\033[0;31mComposer deps missing or outdated\\033[0m'"`, _.opts);
|
|
20
20
|
}
|
|
21
21
|
}
|
package/commands/deploy.js
CHANGED
|
@@ -7,7 +7,7 @@ module.exports = [
|
|
|
7
7
|
'deploys the repo',
|
|
8
8
|
yargs => {},
|
|
9
9
|
argv => {
|
|
10
|
-
if(_.platform === "laravel" || _.platform === "wordpress" || _.platform === "drupal"){
|
|
10
|
+
if(_.platform === "laravel" || _.platform === "wordpress" || _.platform === "drupal" || _.platform === "craftcms"){
|
|
11
11
|
_.up(() => execSync(`source ${__dirname}/../intercept.sh && /bin/bash ./_Scripts/deploy.sh`, _.opts));
|
|
12
12
|
} else {
|
|
13
13
|
execSync(`${_.docker} ${_.run}c "xvfb-run npm run deploy"`, _.opts);
|
package/commands/reinstall.js
CHANGED
|
@@ -9,7 +9,7 @@ module.exports = [
|
|
|
9
9
|
argv => {
|
|
10
10
|
execSync(`${_.docker} ${_.run}c "npm ci || npm i"`, _.opts);
|
|
11
11
|
|
|
12
|
-
if(_.platform === "laravel" || _.platform === "drupal"){
|
|
12
|
+
if(_.platform === "laravel" || _.platform === "drupal" || _.platform === "craftcms"){
|
|
13
13
|
execSync(`${_.docker} ${_.method} php bash -lc "composer install"`, _.opts);
|
|
14
14
|
}
|
|
15
15
|
}
|