@fishawack/lab-env 4.39.0-beta.3 → 4.39.0-beta.4

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.
Files changed (112) hide show
  1. package/.editorconfig +15 -0
  2. package/.prettierignore +17 -0
  3. package/.prettierrc.js +11 -0
  4. package/CHANGELOG.md +11 -0
  5. package/README.md +4 -3
  6. package/_Test/_fixtures/core@0/_Build/config/level-0.json +2 -3
  7. package/_Test/_fixtures/core@0/package.json +1 -1
  8. package/_Test/_fixtures/core@1/_Build/config/level-0.json +2 -3
  9. package/_Test/_fixtures/core@1/package.json +1 -1
  10. package/_Test/_helpers/globals.js +11 -6
  11. package/_Test/bash.js +78 -38
  12. package/_Test/boilerplate-adonis.js +23 -13
  13. package/_Test/boilerplate-craftcms.js +23 -13
  14. package/_Test/boilerplate-drupal.js +23 -13
  15. package/_Test/boilerplate-laravel.js +23 -13
  16. package/_Test/boilerplate-wordpress.js +23 -13
  17. package/_Test/boilerplate.js +23 -13
  18. package/_Test/check.js +42 -23
  19. package/_Test/email.js +12 -6
  20. package/_Test/key.js +14 -10
  21. package/_Test/provision.js +56 -26
  22. package/_Test/s3.js +23 -14
  23. package/_Test/utilities.js +56 -40
  24. package/adonis/0/docker-compose.yml +3 -3
  25. package/adonis/0/nginx/package.json +9 -9
  26. package/bitbucket-pipelines.yml +1 -1
  27. package/cli.js +92 -55
  28. package/commands/ace.js +10 -9
  29. package/commands/artisan.js +10 -9
  30. package/commands/check.js +26 -14
  31. package/commands/clean.js +13 -7
  32. package/commands/composer.js +10 -10
  33. package/commands/connect.js +10 -10
  34. package/commands/content.js +33 -24
  35. package/commands/craft.js +10 -9
  36. package/commands/create/cmds/dekey.js +35 -35
  37. package/commands/create/cmds/delete.js +24 -19
  38. package/commands/create/cmds/deprovision.js +53 -41
  39. package/commands/create/cmds/diagnose.js +110 -92
  40. package/commands/create/cmds/key.js +69 -54
  41. package/commands/create/cmds/new.js +51 -35
  42. package/commands/create/cmds/provision.js +127 -97
  43. package/commands/create/libs/aws-cloudfront-auth.js +38 -30
  44. package/commands/create/libs/aws-cloudfront-response.js +9 -5
  45. package/commands/create/libs/aws-cloudfront-simple.js +26 -22
  46. package/commands/create/libs/prompts.js +45 -40
  47. package/commands/create/libs/utilities.js +50 -47
  48. package/commands/create/libs/vars.js +424 -275
  49. package/commands/create/services/api.js +2 -2
  50. package/commands/create/services/aws/cloudfront.js +299 -173
  51. package/commands/create/services/aws/ec2.js +11 -10
  52. package/commands/create/services/aws/elasticbeanstalk.js +122 -64
  53. package/commands/create/services/aws/iam.js +242 -134
  54. package/commands/create/services/aws/index.js +230 -74
  55. package/commands/create/services/aws/misc.js +3 -3
  56. package/commands/create/services/aws/s3.js +118 -76
  57. package/commands/create/services/bitbucket.js +53 -36
  58. package/commands/create/services/egnyte.js +33 -18
  59. package/commands/create/services/email.js +8 -8
  60. package/commands/create/services/git.js +6 -6
  61. package/commands/create/services/gitlab.js +31 -17
  62. package/commands/create/services/guide.js +370 -259
  63. package/commands/create/services/test.js +138 -85
  64. package/commands/create/templates/credentials.html +21 -18
  65. package/commands/create/templates/elasticbeanstalk/.elasticbeanstalk/config.yml +5 -5
  66. package/commands/deploy.js +25 -11
  67. package/commands/docker/build.js +10 -10
  68. package/commands/docker/compose.js +10 -10
  69. package/commands/docker/config.js +6 -6
  70. package/commands/docker/down.js +6 -6
  71. package/commands/docker/mocha.js +11 -6
  72. package/commands/docker/rebuild.js +10 -10
  73. package/commands/docker/up.js +18 -18
  74. package/commands/docker/volumes.js +6 -6
  75. package/commands/drush.js +13 -10
  76. package/commands/execute.js +35 -30
  77. package/commands/install.js +10 -10
  78. package/commands/node.js +10 -10
  79. package/commands/npm.js +10 -10
  80. package/commands/nuke.js +11 -11
  81. package/commands/origin.js +111 -63
  82. package/commands/php.js +10 -10
  83. package/commands/production.js +10 -6
  84. package/commands/regenerate.js +21 -9
  85. package/commands/reinstall.js +15 -9
  86. package/commands/run.js +23 -19
  87. package/commands/script.js +17 -12
  88. package/commands/setup.js +24 -10
  89. package/commands/start.js +20 -13
  90. package/commands/test.js +14 -11
  91. package/commands/uninstall.js +10 -10
  92. package/commands/watch.js +22 -14
  93. package/commands/wp.js +20 -14
  94. package/core/0/docker-compose.yml +2 -2
  95. package/core/0/package.json +9 -9
  96. package/craftcms/3/apache/package.json +9 -9
  97. package/craftcms/3/docker-compose.yml +1 -1
  98. package/craftcms/3/php/package.json +9 -9
  99. package/drupal/9/apache/package.json +9 -9
  100. package/drupal/9/docker-compose.yml +1 -1
  101. package/drupal/9/php/package.json +9 -9
  102. package/globals.js +389 -208
  103. package/laravel/8/docker-compose.yml +2 -2
  104. package/laravel/8/nginx/package.json +9 -9
  105. package/laravel/8/php/package.json +9 -9
  106. package/laravel/9/docker-compose.yml +2 -2
  107. package/laravel/9/php/package.json +9 -9
  108. package/package.json +103 -103
  109. package/wordpress/0/docker-compose.yml +2 -2
  110. package/wordpress/0/package.json +9 -9
  111. package/wordpress/1/apache/package.json +9 -9
  112. package/wordpress/1/php/package.json +9 -9
package/.editorconfig ADDED
@@ -0,0 +1,15 @@
1
+ root = true
2
+
3
+ [*]
4
+ charset = utf-8
5
+ end_of_line = lf
6
+ insert_final_newline = true
7
+ indent_style = space
8
+ indent_size = 4
9
+ trim_trailing_whitespace = true
10
+
11
+ [*.md]
12
+ trim_trailing_whitespace = false
13
+
14
+ [*.{yml,yaml}]
15
+ indent_size = 2
@@ -0,0 +1,17 @@
1
+ **/.git
2
+ **/.svn
3
+ **/.hg
4
+ **/node_modules
5
+ **/vendor
6
+ **/storage
7
+ bootstrap
8
+ coverage
9
+ .tmp
10
+ dist
11
+ ios
12
+ android
13
+ package-lock.json
14
+ composer.lock
15
+ CHANGELOG.md
16
+ fastlane
17
+ resources/symbol
package/.prettierrc.js ADDED
@@ -0,0 +1,11 @@
1
+ module.exports = {
2
+ plugins: [
3
+ `${require("child_process")
4
+ .execSync("npm root -g")
5
+ .toString()
6
+ .trim()}/@prettier/plugin-php/standalone.js`,
7
+ ],
8
+ phpVersion: "8.0",
9
+ braceStyle: "1tbs",
10
+ trailingCommaPHP: false,
11
+ };
package/CHANGELOG.md CHANGED
@@ -1,5 +1,16 @@
1
1
  ## Changelog
2
2
 
3
+ ### 4.39.0-beta.4 (2025-05-15)
4
+
5
+ #### Features
6
+
7
+ * configured prettier ([316efb0](https://bitbucket.org/fishawackdigital/lab-env/commits/316efb009cf63b3b0d074bc7f56f4815acb255fa))
8
+
9
+ #### Bug Fixes
10
+
11
+ * remove closing p tag in credentials html as not needed ([a09f4e0](https://bitbucket.org/fishawackdigital/lab-env/commits/a09f4e07cda9f55ca6ab8de1177b1916e5d2f9a7))
12
+ * use string replacement for cloudfront auth function so it stays valid js ([8830a10](https://bitbucket.org/fishawackdigital/lab-env/commits/8830a104fa68f5c377debb970001db419ec1dad9))
13
+
3
14
  ### 4.39.0-beta.3 (2025-05-15)
4
15
 
5
16
  #### Build Updates
package/README.md CHANGED
@@ -12,8 +12,8 @@ To automate the spinning up of our tech stack and to provide a consistent enviro
12
12
 
13
13
  Click on the following links and follow the instructions.
14
14
 
15
- * [Docker](https://docs.docker.com/get-docker/)
16
- * [npm](https://nodejs.org/en/download/)
15
+ - [Docker](https://docs.docker.com/get-docker/)
16
+ - [npm](https://nodejs.org/en/download/)
17
17
 
18
18
  Alternatively you can install via `brew` or `choco` depending on your platform.
19
19
 
@@ -110,6 +110,7 @@ npm WARN tar ENOSPC: no space left on device, write
110
110
  ```
111
111
 
112
112
  When setting up a new project, one of the package may fail to pull from docker and shows an "invalid signature" or "is not signed" error:
113
+
113
114
  ```bash
114
115
  => ERROR [alpine 3/19] RUN apt-get update
115
116
  Get:1 http://deb.debian.org/debian bullseye InRelease
@@ -496,4 +497,4 @@ The deploy paths also need updating to take into account the new folder structur
496
497
  "dest": "wp-content/themes"
497
498
  }
498
499
  ]
499
- ```
500
+ ```
@@ -1,4 +1,3 @@
1
1
  {
2
- "attributes": {
3
- }
4
- }
2
+ "attributes": {}
3
+ }
@@ -4,4 +4,4 @@
4
4
  "devDependencies": {
5
5
  "@fishawack/core": "7.0.0"
6
6
  }
7
- }
7
+ }
@@ -1,4 +1,3 @@
1
1
  {
2
- "attributes": {
3
- }
4
- }
2
+ "attributes": {}
3
+ }
@@ -4,4 +4,4 @@
4
4
  "devDependencies": {
5
5
  "@fishawack/core": "8.0.0"
6
6
  }
7
- }
7
+ }
@@ -1,10 +1,15 @@
1
- const fs = require('fs');
2
- const os = require('os');
1
+ const fs = require("fs");
2
+ const os = require("os");
3
3
  const host = "ftp-fishawack.egnyte.com";
4
- const creds = JSON.parse(fs.readFileSync(`${os.homedir()}/targets/.ftppass`))[host];
4
+ const creds = JSON.parse(fs.readFileSync(`${os.homedir()}/targets/.ftppass`))[
5
+ host
6
+ ];
5
7
 
6
8
  module.exports = {
7
- opts: {encoding: 'utf8', stdio: process.argv.includes('--publish') ? 'pipe' : 'inherit'},
9
+ opts: {
10
+ encoding: "utf8",
11
+ stdio: process.argv.includes("--publish") ? "pipe" : "inherit",
12
+ },
8
13
  host,
9
- creds
10
- };
14
+ creds,
15
+ };
package/_Test/bash.js CHANGED
@@ -1,74 +1,114 @@
1
- 'use strict';
1
+ "use strict";
2
2
 
3
- const expect = require('chai').expect;
4
- const execSync = require('child_process').execSync;
3
+ const expect = require("chai").expect;
4
+ const execSync = require("child_process").execSync;
5
5
 
6
- describe('bash', () => {
7
- describe('core@0', () => {
6
+ describe("bash", () => {
7
+ describe("core@0", () => {
8
8
  const repo = `core@0`;
9
- const cwd = {cwd: `_Test/_fixtures/${repo}`};
10
- const opts = {encoding: 'utf8', stdio: 'inherit', cwd: cwd.cwd};
9
+ const cwd = { cwd: `_Test/_fixtures/${repo}` };
10
+ const opts = { encoding: "utf8", stdio: "inherit", cwd: cwd.cwd };
11
11
 
12
- describe('run', () => {
12
+ describe("run", () => {
13
13
  it(`Should show correct user when executing commands`, () => {
14
- expect(execSync('node ../../../cli.js exec whoami', cwd).toString()).to.contain('root');
14
+ expect(
15
+ execSync(
16
+ "node ../../../cli.js exec whoami",
17
+ cwd,
18
+ ).toString(),
19
+ ).to.contain("root");
15
20
  });
16
-
21
+
17
22
  it(`Should have cli tools in $PATH`, () => {
18
- expect(execSync('node ../../../cli.js exec "env | grep PATH"', cwd).toString()).to.contain('ebcli-virtual-env');
23
+ expect(
24
+ execSync(
25
+ 'node ../../../cli.js exec "env | grep PATH"',
26
+ cwd,
27
+ ).toString(),
28
+ ).to.contain("ebcli-virtual-env");
19
29
  });
20
30
  });
21
-
22
- describe('exec', () => {
31
+
32
+ describe("exec", () => {
23
33
  before(() => {
24
- execSync('node ../../../cli.js up -d', opts);
34
+ execSync("node ../../../cli.js up -d", opts);
25
35
  });
26
-
36
+
27
37
  it(`Should show correct user when executing commands`, () => {
28
- expect(execSync('node ../../../cli.js exec whoami', cwd).toString()).to.contain('root');
38
+ expect(
39
+ execSync(
40
+ "node ../../../cli.js exec whoami",
41
+ cwd,
42
+ ).toString(),
43
+ ).to.contain("root");
29
44
  });
30
-
45
+
31
46
  it(`Should have cli tools in $PATH`, () => {
32
- expect(execSync('node ../../../cli.js exec "env | grep PATH"', cwd).toString()).to.contain('ebcli-virtual-env');
47
+ expect(
48
+ execSync(
49
+ 'node ../../../cli.js exec "env | grep PATH"',
50
+ cwd,
51
+ ).toString(),
52
+ ).to.contain("ebcli-virtual-env");
33
53
  });
34
-
54
+
35
55
  after(() => {
36
- execSync('node ../../../cli.js down', opts);
37
- })
56
+ execSync("node ../../../cli.js down", opts);
57
+ });
38
58
  });
39
59
  });
40
60
 
41
- describe('core@1', () => {
61
+ describe("core@1", () => {
42
62
  const repo = `core@1`;
43
- const cwd = {cwd: `_Test/_fixtures/${repo}`};
44
- const opts = {encoding: 'utf8', stdio: 'inherit', cwd: cwd.cwd};
63
+ const cwd = { cwd: `_Test/_fixtures/${repo}` };
64
+ const opts = { encoding: "utf8", stdio: "inherit", cwd: cwd.cwd };
45
65
 
46
- describe('run', () => {
66
+ describe("run", () => {
47
67
  it(`Should show correct user when executing commands`, () => {
48
- expect(execSync('node ../../../cli.js exec whoami', cwd).toString()).to.contain('node');
68
+ expect(
69
+ execSync(
70
+ "node ../../../cli.js exec whoami",
71
+ cwd,
72
+ ).toString(),
73
+ ).to.contain("node");
49
74
  });
50
-
75
+
51
76
  it(`Should have cli tools in $PATH`, () => {
52
- expect(execSync('node ../../../cli.js exec "env | grep PATH"', cwd).toString()).to.contain(':/dart-sass/');
77
+ expect(
78
+ execSync(
79
+ 'node ../../../cli.js exec "env | grep PATH"',
80
+ cwd,
81
+ ).toString(),
82
+ ).to.contain(":/dart-sass/");
53
83
  });
54
84
  });
55
-
56
- describe('exec', () => {
85
+
86
+ describe("exec", () => {
57
87
  before(() => {
58
- execSync('node ../../../cli.js up -d', opts);
88
+ execSync("node ../../../cli.js up -d", opts);
59
89
  });
60
-
90
+
61
91
  it(`Should show correct user when executing commands`, () => {
62
- expect(execSync('node ../../../cli.js exec whoami', cwd).toString()).to.contain('node');
92
+ expect(
93
+ execSync(
94
+ "node ../../../cli.js exec whoami",
95
+ cwd,
96
+ ).toString(),
97
+ ).to.contain("node");
63
98
  });
64
-
99
+
65
100
  it(`Should have cli tools in $PATH`, () => {
66
- expect(execSync('node ../../../cli.js exec "env | grep PATH"', cwd).toString()).to.contain(':/dart-sass/');
101
+ expect(
102
+ execSync(
103
+ 'node ../../../cli.js exec "env | grep PATH"',
104
+ cwd,
105
+ ).toString(),
106
+ ).to.contain(":/dart-sass/");
67
107
  });
68
-
108
+
69
109
  after(() => {
70
- execSync('node ../../../cli.js down', opts);
71
- })
110
+ execSync("node ../../../cli.js down", opts);
111
+ });
72
112
  });
73
113
  });
74
114
  });
@@ -1,29 +1,39 @@
1
- 'use strict';
1
+ "use strict";
2
2
 
3
3
  const repo = `boilerplate-adonis`;
4
- const opts = {encoding: 'utf8', stdio: 'inherit', cwd: `_Test/_fixtures/${repo}`};
4
+ const opts = {
5
+ encoding: "utf8",
6
+ stdio: "inherit",
7
+ cwd: `_Test/_fixtures/${repo}`,
8
+ };
5
9
 
6
- const expect = require('chai').expect;
7
- const execSync = require('child_process').execSync;
10
+ const expect = require("chai").expect;
11
+ const execSync = require("child_process").execSync;
8
12
 
9
- describe('deploy', () => {
10
- before(function(){
13
+ describe("deploy", () => {
14
+ before(function () {
11
15
  this.timeout(60000 * 10);
12
16
 
13
- execSync(`git -C _Test/_fixtures clone git@bitbucket.org:fishawackdigital/${repo}`, {encoding: 'utf8', stdio: 'inherit'});
17
+ execSync(
18
+ `git -C _Test/_fixtures clone git@bitbucket.org:fishawackdigital/${repo}`,
19
+ { encoding: "utf8", stdio: "inherit" },
20
+ );
14
21
 
15
- execSync('node ../../../cli.js setup', opts);
22
+ execSync("node ../../../cli.js setup", opts);
16
23
 
17
- execSync('node ../../../cli.js prod', opts);
24
+ execSync("node ../../../cli.js prod", opts);
18
25
  });
19
-
26
+
20
27
  it(`All ${repo} tests should pass`, async () => {
21
- expect(execSync('node ../../../cli.js test', opts)).to.not.equal(Error);
28
+ expect(execSync("node ../../../cli.js test", opts)).to.not.equal(Error);
22
29
  });
23
30
 
24
31
  after(() => {
25
- execSync('node ../../../cli.js nuke', opts)
32
+ execSync("node ../../../cli.js nuke", opts);
26
33
 
27
- execSync(`rm -rf _Test/_fixtures/${repo}`, {encoding: 'utf8', stdio: 'inherit'});
34
+ execSync(`rm -rf _Test/_fixtures/${repo}`, {
35
+ encoding: "utf8",
36
+ stdio: "inherit",
37
+ });
28
38
  });
29
39
  });
@@ -1,29 +1,39 @@
1
- 'use strict';
1
+ "use strict";
2
2
 
3
3
  const repo = `boilerplate-craftcms`;
4
- const opts = {encoding: 'utf8', stdio: 'inherit', cwd: `_Test/_fixtures/${repo}`};
4
+ const opts = {
5
+ encoding: "utf8",
6
+ stdio: "inherit",
7
+ cwd: `_Test/_fixtures/${repo}`,
8
+ };
5
9
 
6
- const expect = require('chai').expect;
7
- const execSync = require('child_process').execSync;
10
+ const expect = require("chai").expect;
11
+ const execSync = require("child_process").execSync;
8
12
 
9
- describe('deploy', () => {
10
- before(function(){
13
+ describe("deploy", () => {
14
+ before(function () {
11
15
  this.timeout(60000 * 10);
12
16
 
13
- execSync(`git -C _Test/_fixtures clone git@bitbucket.org:fishawackdigital/${repo}`, {encoding: 'utf8', stdio: 'inherit'});
17
+ execSync(
18
+ `git -C _Test/_fixtures clone git@bitbucket.org:fishawackdigital/${repo}`,
19
+ { encoding: "utf8", stdio: "inherit" },
20
+ );
14
21
 
15
- execSync('node ../../../cli.js setup', opts);
22
+ execSync("node ../../../cli.js setup", opts);
16
23
 
17
- execSync('node ../../../cli.js prod', opts);
24
+ execSync("node ../../../cli.js prod", opts);
18
25
  });
19
-
26
+
20
27
  it(`All ${repo} tests should pass`, async () => {
21
- expect(execSync('node ../../../cli.js test', opts)).to.not.equal(Error);
28
+ expect(execSync("node ../../../cli.js test", opts)).to.not.equal(Error);
22
29
  });
23
30
 
24
31
  after(() => {
25
- execSync('node ../../../cli.js nuke', opts)
32
+ execSync("node ../../../cli.js nuke", opts);
26
33
 
27
- execSync(`rm -rf _Test/_fixtures/${repo}`, {encoding: 'utf8', stdio: 'inherit'});
34
+ execSync(`rm -rf _Test/_fixtures/${repo}`, {
35
+ encoding: "utf8",
36
+ stdio: "inherit",
37
+ });
28
38
  });
29
39
  });
@@ -1,29 +1,39 @@
1
- 'use strict';
1
+ "use strict";
2
2
 
3
3
  const repo = `boilerplate-drupal`;
4
- const opts = {encoding: 'utf8', stdio: 'inherit', cwd: `_Test/_fixtures/${repo}`};
4
+ const opts = {
5
+ encoding: "utf8",
6
+ stdio: "inherit",
7
+ cwd: `_Test/_fixtures/${repo}`,
8
+ };
5
9
 
6
- const expect = require('chai').expect;
7
- const execSync = require('child_process').execSync;
10
+ const expect = require("chai").expect;
11
+ const execSync = require("child_process").execSync;
8
12
 
9
- describe('deploy', () => {
10
- before(function(){
13
+ describe("deploy", () => {
14
+ before(function () {
11
15
  this.timeout(60000 * 10);
12
16
 
13
- execSync(`git -C _Test/_fixtures clone git@bitbucket.org:fishawackdigital/${repo}`, {encoding: 'utf8', stdio: 'inherit'});
17
+ execSync(
18
+ `git -C _Test/_fixtures clone git@bitbucket.org:fishawackdigital/${repo}`,
19
+ { encoding: "utf8", stdio: "inherit" },
20
+ );
14
21
 
15
- execSync('node ../../../cli.js setup', opts);
22
+ execSync("node ../../../cli.js setup", opts);
16
23
 
17
- execSync('node ../../../cli.js prod', opts);
24
+ execSync("node ../../../cli.js prod", opts);
18
25
  });
19
-
26
+
20
27
  it(`All ${repo} tests should pass`, async () => {
21
- expect(execSync('node ../../../cli.js test', opts)).to.not.equal(Error);
28
+ expect(execSync("node ../../../cli.js test", opts)).to.not.equal(Error);
22
29
  });
23
30
 
24
31
  after(() => {
25
- execSync('node ../../../cli.js nuke', opts)
32
+ execSync("node ../../../cli.js nuke", opts);
26
33
 
27
- execSync(`rm -rf _Test/_fixtures/${repo}`, {encoding: 'utf8', stdio: 'inherit'});
34
+ execSync(`rm -rf _Test/_fixtures/${repo}`, {
35
+ encoding: "utf8",
36
+ stdio: "inherit",
37
+ });
28
38
  });
29
39
  });
@@ -1,29 +1,39 @@
1
- 'use strict';
1
+ "use strict";
2
2
 
3
3
  const repo = `boilerplate-laravel`;
4
- const opts = {encoding: 'utf8', stdio: 'inherit', cwd: `_Test/_fixtures/${repo}`};
4
+ const opts = {
5
+ encoding: "utf8",
6
+ stdio: "inherit",
7
+ cwd: `_Test/_fixtures/${repo}`,
8
+ };
5
9
 
6
- const expect = require('chai').expect;
7
- const execSync = require('child_process').execSync;
10
+ const expect = require("chai").expect;
11
+ const execSync = require("child_process").execSync;
8
12
 
9
- describe('deploy', () => {
10
- before(function(){
13
+ describe("deploy", () => {
14
+ before(function () {
11
15
  this.timeout(60000 * 10);
12
16
 
13
- execSync(`git -C _Test/_fixtures clone git@bitbucket.org:fishawackdigital/${repo}`, {encoding: 'utf8', stdio: 'inherit'});
17
+ execSync(
18
+ `git -C _Test/_fixtures clone git@bitbucket.org:fishawackdigital/${repo}`,
19
+ { encoding: "utf8", stdio: "inherit" },
20
+ );
14
21
 
15
- execSync('node ../../../cli.js setup', opts);
22
+ execSync("node ../../../cli.js setup", opts);
16
23
 
17
- execSync('node ../../../cli.js prod', opts);
24
+ execSync("node ../../../cli.js prod", opts);
18
25
  });
19
-
26
+
20
27
  it(`All ${repo} tests should pass`, async () => {
21
- expect(execSync('node ../../../cli.js test', opts)).to.not.equal(Error);
28
+ expect(execSync("node ../../../cli.js test", opts)).to.not.equal(Error);
22
29
  });
23
30
 
24
31
  after(() => {
25
- execSync('node ../../../cli.js nuke', opts)
32
+ execSync("node ../../../cli.js nuke", opts);
26
33
 
27
- execSync(`rm -rf _Test/_fixtures/${repo}`, {encoding: 'utf8', stdio: 'inherit'});
34
+ execSync(`rm -rf _Test/_fixtures/${repo}`, {
35
+ encoding: "utf8",
36
+ stdio: "inherit",
37
+ });
28
38
  });
29
39
  });
@@ -1,29 +1,39 @@
1
- 'use strict';
1
+ "use strict";
2
2
 
3
3
  const repo = `boilerplate-wordpress`;
4
- const opts = {encoding: 'utf8', stdio: 'inherit', cwd: `_Test/_fixtures/${repo}`};
4
+ const opts = {
5
+ encoding: "utf8",
6
+ stdio: "inherit",
7
+ cwd: `_Test/_fixtures/${repo}`,
8
+ };
5
9
 
6
- const expect = require('chai').expect;
7
- const execSync = require('child_process').execSync;
10
+ const expect = require("chai").expect;
11
+ const execSync = require("child_process").execSync;
8
12
 
9
- describe('deploy', () => {
10
- before(function(){
13
+ describe("deploy", () => {
14
+ before(function () {
11
15
  this.timeout(60000 * 10);
12
16
 
13
- execSync(`git -C _Test/_fixtures clone git@bitbucket.org:fishawackdigital/${repo}`, {encoding: 'utf8', stdio: 'inherit'});
17
+ execSync(
18
+ `git -C _Test/_fixtures clone git@bitbucket.org:fishawackdigital/${repo}`,
19
+ { encoding: "utf8", stdio: "inherit" },
20
+ );
14
21
 
15
- execSync('node ../../../cli.js setup', opts);
22
+ execSync("node ../../../cli.js setup", opts);
16
23
 
17
- execSync('node ../../../cli.js prod', opts);
24
+ execSync("node ../../../cli.js prod", opts);
18
25
  });
19
-
26
+
20
27
  it(`All ${repo} tests should pass`, async () => {
21
- expect(execSync('node ../../../cli.js test', opts)).to.not.equal(Error);
28
+ expect(execSync("node ../../../cli.js test", opts)).to.not.equal(Error);
22
29
  });
23
30
 
24
31
  after(() => {
25
- execSync('node ../../../cli.js nuke', opts)
32
+ execSync("node ../../../cli.js nuke", opts);
26
33
 
27
- execSync(`rm -rf _Test/_fixtures/${repo}`, {encoding: 'utf8', stdio: 'inherit'});
34
+ execSync(`rm -rf _Test/_fixtures/${repo}`, {
35
+ encoding: "utf8",
36
+ stdio: "inherit",
37
+ });
28
38
  });
29
39
  });
@@ -1,29 +1,39 @@
1
- 'use strict';
1
+ "use strict";
2
2
 
3
3
  const repo = `boilerplate`;
4
- const opts = {encoding: 'utf8', stdio: 'inherit', cwd: `_Test/_fixtures/${repo}`};
4
+ const opts = {
5
+ encoding: "utf8",
6
+ stdio: "inherit",
7
+ cwd: `_Test/_fixtures/${repo}`,
8
+ };
5
9
 
6
- const expect = require('chai').expect;
7
- const execSync = require('child_process').execSync;
10
+ const expect = require("chai").expect;
11
+ const execSync = require("child_process").execSync;
8
12
 
9
- describe('deploy', () => {
10
- before(function(){
13
+ describe("deploy", () => {
14
+ before(function () {
11
15
  this.timeout(60000 * 10);
12
16
 
13
- execSync(`git -C _Test/_fixtures clone git@bitbucket.org:fishawackdigital/${repo}`, {encoding: 'utf8', stdio: 'inherit'});
17
+ execSync(
18
+ `git -C _Test/_fixtures clone git@bitbucket.org:fishawackdigital/${repo}`,
19
+ { encoding: "utf8", stdio: "inherit" },
20
+ );
14
21
 
15
- execSync('node ../../../cli.js setup', opts);
22
+ execSync("node ../../../cli.js setup", opts);
16
23
 
17
- execSync('node ../../../cli.js prod', opts);
24
+ execSync("node ../../../cli.js prod", opts);
18
25
  });
19
-
26
+
20
27
  it(`All ${repo} tests should pass`, async () => {
21
- expect(execSync('node ../../../cli.js test', opts)).to.not.equal(Error);
28
+ expect(execSync("node ../../../cli.js test", opts)).to.not.equal(Error);
22
29
  });
23
30
 
24
31
  after(() => {
25
- execSync('node ../../../cli.js nuke', opts)
32
+ execSync("node ../../../cli.js nuke", opts);
26
33
 
27
- execSync(`rm -rf _Test/_fixtures/${repo}`, {encoding: 'utf8', stdio: 'inherit'});
34
+ execSync(`rm -rf _Test/_fixtures/${repo}`, {
35
+ encoding: "utf8",
36
+ stdio: "inherit",
37
+ });
28
38
  });
29
39
  });