@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.
- package/.editorconfig +15 -0
- package/.prettierignore +17 -0
- package/.prettierrc.js +11 -0
- package/CHANGELOG.md +11 -0
- package/README.md +4 -3
- package/_Test/_fixtures/core@0/_Build/config/level-0.json +2 -3
- package/_Test/_fixtures/core@0/package.json +1 -1
- package/_Test/_fixtures/core@1/_Build/config/level-0.json +2 -3
- package/_Test/_fixtures/core@1/package.json +1 -1
- package/_Test/_helpers/globals.js +11 -6
- package/_Test/bash.js +78 -38
- package/_Test/boilerplate-adonis.js +23 -13
- package/_Test/boilerplate-craftcms.js +23 -13
- package/_Test/boilerplate-drupal.js +23 -13
- package/_Test/boilerplate-laravel.js +23 -13
- package/_Test/boilerplate-wordpress.js +23 -13
- package/_Test/boilerplate.js +23 -13
- package/_Test/check.js +42 -23
- package/_Test/email.js +12 -6
- package/_Test/key.js +14 -10
- package/_Test/provision.js +56 -26
- package/_Test/s3.js +23 -14
- package/_Test/utilities.js +56 -40
- package/adonis/0/docker-compose.yml +3 -3
- package/adonis/0/nginx/package.json +9 -9
- package/bitbucket-pipelines.yml +1 -1
- package/cli.js +92 -55
- package/commands/ace.js +10 -9
- package/commands/artisan.js +10 -9
- package/commands/check.js +26 -14
- package/commands/clean.js +13 -7
- package/commands/composer.js +10 -10
- package/commands/connect.js +10 -10
- package/commands/content.js +33 -24
- package/commands/craft.js +10 -9
- package/commands/create/cmds/dekey.js +35 -35
- package/commands/create/cmds/delete.js +24 -19
- package/commands/create/cmds/deprovision.js +53 -41
- package/commands/create/cmds/diagnose.js +110 -92
- package/commands/create/cmds/key.js +69 -54
- package/commands/create/cmds/new.js +51 -35
- package/commands/create/cmds/provision.js +127 -97
- package/commands/create/libs/aws-cloudfront-auth.js +38 -30
- package/commands/create/libs/aws-cloudfront-response.js +9 -5
- package/commands/create/libs/aws-cloudfront-simple.js +26 -22
- package/commands/create/libs/prompts.js +45 -40
- package/commands/create/libs/utilities.js +50 -47
- package/commands/create/libs/vars.js +424 -275
- package/commands/create/services/api.js +2 -2
- package/commands/create/services/aws/cloudfront.js +299 -173
- package/commands/create/services/aws/ec2.js +11 -10
- package/commands/create/services/aws/elasticbeanstalk.js +122 -64
- package/commands/create/services/aws/iam.js +242 -134
- package/commands/create/services/aws/index.js +230 -74
- package/commands/create/services/aws/misc.js +3 -3
- package/commands/create/services/aws/s3.js +118 -76
- package/commands/create/services/bitbucket.js +53 -36
- package/commands/create/services/egnyte.js +33 -18
- package/commands/create/services/email.js +8 -8
- package/commands/create/services/git.js +6 -6
- package/commands/create/services/gitlab.js +31 -17
- package/commands/create/services/guide.js +370 -259
- package/commands/create/services/test.js +138 -85
- package/commands/create/templates/credentials.html +21 -18
- package/commands/create/templates/elasticbeanstalk/.elasticbeanstalk/config.yml +5 -5
- package/commands/deploy.js +25 -11
- package/commands/docker/build.js +10 -10
- package/commands/docker/compose.js +10 -10
- package/commands/docker/config.js +6 -6
- package/commands/docker/down.js +6 -6
- package/commands/docker/mocha.js +11 -6
- package/commands/docker/rebuild.js +10 -10
- package/commands/docker/up.js +18 -18
- package/commands/docker/volumes.js +6 -6
- package/commands/drush.js +13 -10
- package/commands/execute.js +35 -30
- package/commands/install.js +10 -10
- package/commands/node.js +10 -10
- package/commands/npm.js +10 -10
- package/commands/nuke.js +11 -11
- package/commands/origin.js +111 -63
- package/commands/php.js +10 -10
- package/commands/production.js +10 -6
- package/commands/regenerate.js +21 -9
- package/commands/reinstall.js +15 -9
- package/commands/run.js +23 -19
- package/commands/script.js +17 -12
- package/commands/setup.js +24 -10
- package/commands/start.js +20 -13
- package/commands/test.js +14 -11
- package/commands/uninstall.js +10 -10
- package/commands/watch.js +22 -14
- package/commands/wp.js +20 -14
- package/core/0/docker-compose.yml +2 -2
- package/core/0/package.json +9 -9
- package/craftcms/3/apache/package.json +9 -9
- package/craftcms/3/docker-compose.yml +1 -1
- package/craftcms/3/php/package.json +9 -9
- package/drupal/9/apache/package.json +9 -9
- package/drupal/9/docker-compose.yml +1 -1
- package/drupal/9/php/package.json +9 -9
- package/globals.js +389 -208
- package/laravel/8/docker-compose.yml +2 -2
- package/laravel/8/nginx/package.json +9 -9
- package/laravel/8/php/package.json +9 -9
- package/laravel/9/docker-compose.yml +2 -2
- package/laravel/9/php/package.json +9 -9
- package/package.json +103 -103
- package/wordpress/0/docker-compose.yml +2 -2
- package/wordpress/0/package.json +9 -9
- package/wordpress/1/apache/package.json +9 -9
- package/wordpress/1/php/package.json +9 -9
package/.editorconfig
ADDED
package/.prettierignore
ADDED
package/.prettierrc.js
ADDED
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
|
-
|
|
16
|
-
|
|
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,10 +1,15 @@
|
|
|
1
|
-
const fs = require(
|
|
2
|
-
const os = require(
|
|
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`))[
|
|
4
|
+
const creds = JSON.parse(fs.readFileSync(`${os.homedir()}/targets/.ftppass`))[
|
|
5
|
+
host
|
|
6
|
+
];
|
|
5
7
|
|
|
6
8
|
module.exports = {
|
|
7
|
-
opts: {
|
|
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
|
-
|
|
1
|
+
"use strict";
|
|
2
2
|
|
|
3
|
-
const expect = require(
|
|
4
|
-
const execSync = require(
|
|
3
|
+
const expect = require("chai").expect;
|
|
4
|
+
const execSync = require("child_process").execSync;
|
|
5
5
|
|
|
6
|
-
describe(
|
|
7
|
-
describe(
|
|
6
|
+
describe("bash", () => {
|
|
7
|
+
describe("core@0", () => {
|
|
8
8
|
const repo = `core@0`;
|
|
9
|
-
const cwd = {cwd: `_Test/_fixtures/${repo}`};
|
|
10
|
-
const opts = {encoding:
|
|
9
|
+
const cwd = { cwd: `_Test/_fixtures/${repo}` };
|
|
10
|
+
const opts = { encoding: "utf8", stdio: "inherit", cwd: cwd.cwd };
|
|
11
11
|
|
|
12
|
-
describe(
|
|
12
|
+
describe("run", () => {
|
|
13
13
|
it(`Should show correct user when executing commands`, () => {
|
|
14
|
-
expect(
|
|
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(
|
|
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(
|
|
31
|
+
|
|
32
|
+
describe("exec", () => {
|
|
23
33
|
before(() => {
|
|
24
|
-
execSync(
|
|
34
|
+
execSync("node ../../../cli.js up -d", opts);
|
|
25
35
|
});
|
|
26
|
-
|
|
36
|
+
|
|
27
37
|
it(`Should show correct user when executing commands`, () => {
|
|
28
|
-
expect(
|
|
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(
|
|
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(
|
|
37
|
-
})
|
|
56
|
+
execSync("node ../../../cli.js down", opts);
|
|
57
|
+
});
|
|
38
58
|
});
|
|
39
59
|
});
|
|
40
60
|
|
|
41
|
-
describe(
|
|
61
|
+
describe("core@1", () => {
|
|
42
62
|
const repo = `core@1`;
|
|
43
|
-
const cwd = {cwd: `_Test/_fixtures/${repo}`};
|
|
44
|
-
const opts = {encoding:
|
|
63
|
+
const cwd = { cwd: `_Test/_fixtures/${repo}` };
|
|
64
|
+
const opts = { encoding: "utf8", stdio: "inherit", cwd: cwd.cwd };
|
|
45
65
|
|
|
46
|
-
describe(
|
|
66
|
+
describe("run", () => {
|
|
47
67
|
it(`Should show correct user when executing commands`, () => {
|
|
48
|
-
expect(
|
|
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(
|
|
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(
|
|
85
|
+
|
|
86
|
+
describe("exec", () => {
|
|
57
87
|
before(() => {
|
|
58
|
-
execSync(
|
|
88
|
+
execSync("node ../../../cli.js up -d", opts);
|
|
59
89
|
});
|
|
60
|
-
|
|
90
|
+
|
|
61
91
|
it(`Should show correct user when executing commands`, () => {
|
|
62
|
-
expect(
|
|
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(
|
|
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(
|
|
71
|
-
})
|
|
110
|
+
execSync("node ../../../cli.js down", opts);
|
|
111
|
+
});
|
|
72
112
|
});
|
|
73
113
|
});
|
|
74
114
|
});
|
|
@@ -1,29 +1,39 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
2
|
|
|
3
3
|
const repo = `boilerplate-adonis`;
|
|
4
|
-
const opts = {
|
|
4
|
+
const opts = {
|
|
5
|
+
encoding: "utf8",
|
|
6
|
+
stdio: "inherit",
|
|
7
|
+
cwd: `_Test/_fixtures/${repo}`,
|
|
8
|
+
};
|
|
5
9
|
|
|
6
|
-
const expect = require(
|
|
7
|
-
const execSync = require(
|
|
10
|
+
const expect = require("chai").expect;
|
|
11
|
+
const execSync = require("child_process").execSync;
|
|
8
12
|
|
|
9
|
-
describe(
|
|
10
|
-
before(function(){
|
|
13
|
+
describe("deploy", () => {
|
|
14
|
+
before(function () {
|
|
11
15
|
this.timeout(60000 * 10);
|
|
12
16
|
|
|
13
|
-
execSync(
|
|
17
|
+
execSync(
|
|
18
|
+
`git -C _Test/_fixtures clone git@bitbucket.org:fishawackdigital/${repo}`,
|
|
19
|
+
{ encoding: "utf8", stdio: "inherit" },
|
|
20
|
+
);
|
|
14
21
|
|
|
15
|
-
execSync(
|
|
22
|
+
execSync("node ../../../cli.js setup", opts);
|
|
16
23
|
|
|
17
|
-
execSync(
|
|
24
|
+
execSync("node ../../../cli.js prod", opts);
|
|
18
25
|
});
|
|
19
|
-
|
|
26
|
+
|
|
20
27
|
it(`All ${repo} tests should pass`, async () => {
|
|
21
|
-
expect(execSync(
|
|
28
|
+
expect(execSync("node ../../../cli.js test", opts)).to.not.equal(Error);
|
|
22
29
|
});
|
|
23
30
|
|
|
24
31
|
after(() => {
|
|
25
|
-
execSync(
|
|
32
|
+
execSync("node ../../../cli.js nuke", opts);
|
|
26
33
|
|
|
27
|
-
execSync(`rm -rf _Test/_fixtures/${repo}`, {
|
|
34
|
+
execSync(`rm -rf _Test/_fixtures/${repo}`, {
|
|
35
|
+
encoding: "utf8",
|
|
36
|
+
stdio: "inherit",
|
|
37
|
+
});
|
|
28
38
|
});
|
|
29
39
|
});
|
|
@@ -1,29 +1,39 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
2
|
|
|
3
3
|
const repo = `boilerplate-craftcms`;
|
|
4
|
-
const opts = {
|
|
4
|
+
const opts = {
|
|
5
|
+
encoding: "utf8",
|
|
6
|
+
stdio: "inherit",
|
|
7
|
+
cwd: `_Test/_fixtures/${repo}`,
|
|
8
|
+
};
|
|
5
9
|
|
|
6
|
-
const expect = require(
|
|
7
|
-
const execSync = require(
|
|
10
|
+
const expect = require("chai").expect;
|
|
11
|
+
const execSync = require("child_process").execSync;
|
|
8
12
|
|
|
9
|
-
describe(
|
|
10
|
-
before(function(){
|
|
13
|
+
describe("deploy", () => {
|
|
14
|
+
before(function () {
|
|
11
15
|
this.timeout(60000 * 10);
|
|
12
16
|
|
|
13
|
-
execSync(
|
|
17
|
+
execSync(
|
|
18
|
+
`git -C _Test/_fixtures clone git@bitbucket.org:fishawackdigital/${repo}`,
|
|
19
|
+
{ encoding: "utf8", stdio: "inherit" },
|
|
20
|
+
);
|
|
14
21
|
|
|
15
|
-
execSync(
|
|
22
|
+
execSync("node ../../../cli.js setup", opts);
|
|
16
23
|
|
|
17
|
-
execSync(
|
|
24
|
+
execSync("node ../../../cli.js prod", opts);
|
|
18
25
|
});
|
|
19
|
-
|
|
26
|
+
|
|
20
27
|
it(`All ${repo} tests should pass`, async () => {
|
|
21
|
-
expect(execSync(
|
|
28
|
+
expect(execSync("node ../../../cli.js test", opts)).to.not.equal(Error);
|
|
22
29
|
});
|
|
23
30
|
|
|
24
31
|
after(() => {
|
|
25
|
-
execSync(
|
|
32
|
+
execSync("node ../../../cli.js nuke", opts);
|
|
26
33
|
|
|
27
|
-
execSync(`rm -rf _Test/_fixtures/${repo}`, {
|
|
34
|
+
execSync(`rm -rf _Test/_fixtures/${repo}`, {
|
|
35
|
+
encoding: "utf8",
|
|
36
|
+
stdio: "inherit",
|
|
37
|
+
});
|
|
28
38
|
});
|
|
29
39
|
});
|
|
@@ -1,29 +1,39 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
2
|
|
|
3
3
|
const repo = `boilerplate-drupal`;
|
|
4
|
-
const opts = {
|
|
4
|
+
const opts = {
|
|
5
|
+
encoding: "utf8",
|
|
6
|
+
stdio: "inherit",
|
|
7
|
+
cwd: `_Test/_fixtures/${repo}`,
|
|
8
|
+
};
|
|
5
9
|
|
|
6
|
-
const expect = require(
|
|
7
|
-
const execSync = require(
|
|
10
|
+
const expect = require("chai").expect;
|
|
11
|
+
const execSync = require("child_process").execSync;
|
|
8
12
|
|
|
9
|
-
describe(
|
|
10
|
-
before(function(){
|
|
13
|
+
describe("deploy", () => {
|
|
14
|
+
before(function () {
|
|
11
15
|
this.timeout(60000 * 10);
|
|
12
16
|
|
|
13
|
-
execSync(
|
|
17
|
+
execSync(
|
|
18
|
+
`git -C _Test/_fixtures clone git@bitbucket.org:fishawackdigital/${repo}`,
|
|
19
|
+
{ encoding: "utf8", stdio: "inherit" },
|
|
20
|
+
);
|
|
14
21
|
|
|
15
|
-
execSync(
|
|
22
|
+
execSync("node ../../../cli.js setup", opts);
|
|
16
23
|
|
|
17
|
-
execSync(
|
|
24
|
+
execSync("node ../../../cli.js prod", opts);
|
|
18
25
|
});
|
|
19
|
-
|
|
26
|
+
|
|
20
27
|
it(`All ${repo} tests should pass`, async () => {
|
|
21
|
-
expect(execSync(
|
|
28
|
+
expect(execSync("node ../../../cli.js test", opts)).to.not.equal(Error);
|
|
22
29
|
});
|
|
23
30
|
|
|
24
31
|
after(() => {
|
|
25
|
-
execSync(
|
|
32
|
+
execSync("node ../../../cli.js nuke", opts);
|
|
26
33
|
|
|
27
|
-
execSync(`rm -rf _Test/_fixtures/${repo}`, {
|
|
34
|
+
execSync(`rm -rf _Test/_fixtures/${repo}`, {
|
|
35
|
+
encoding: "utf8",
|
|
36
|
+
stdio: "inherit",
|
|
37
|
+
});
|
|
28
38
|
});
|
|
29
39
|
});
|
|
@@ -1,29 +1,39 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
2
|
|
|
3
3
|
const repo = `boilerplate-laravel`;
|
|
4
|
-
const opts = {
|
|
4
|
+
const opts = {
|
|
5
|
+
encoding: "utf8",
|
|
6
|
+
stdio: "inherit",
|
|
7
|
+
cwd: `_Test/_fixtures/${repo}`,
|
|
8
|
+
};
|
|
5
9
|
|
|
6
|
-
const expect = require(
|
|
7
|
-
const execSync = require(
|
|
10
|
+
const expect = require("chai").expect;
|
|
11
|
+
const execSync = require("child_process").execSync;
|
|
8
12
|
|
|
9
|
-
describe(
|
|
10
|
-
before(function(){
|
|
13
|
+
describe("deploy", () => {
|
|
14
|
+
before(function () {
|
|
11
15
|
this.timeout(60000 * 10);
|
|
12
16
|
|
|
13
|
-
execSync(
|
|
17
|
+
execSync(
|
|
18
|
+
`git -C _Test/_fixtures clone git@bitbucket.org:fishawackdigital/${repo}`,
|
|
19
|
+
{ encoding: "utf8", stdio: "inherit" },
|
|
20
|
+
);
|
|
14
21
|
|
|
15
|
-
execSync(
|
|
22
|
+
execSync("node ../../../cli.js setup", opts);
|
|
16
23
|
|
|
17
|
-
execSync(
|
|
24
|
+
execSync("node ../../../cli.js prod", opts);
|
|
18
25
|
});
|
|
19
|
-
|
|
26
|
+
|
|
20
27
|
it(`All ${repo} tests should pass`, async () => {
|
|
21
|
-
expect(execSync(
|
|
28
|
+
expect(execSync("node ../../../cli.js test", opts)).to.not.equal(Error);
|
|
22
29
|
});
|
|
23
30
|
|
|
24
31
|
after(() => {
|
|
25
|
-
execSync(
|
|
32
|
+
execSync("node ../../../cli.js nuke", opts);
|
|
26
33
|
|
|
27
|
-
execSync(`rm -rf _Test/_fixtures/${repo}`, {
|
|
34
|
+
execSync(`rm -rf _Test/_fixtures/${repo}`, {
|
|
35
|
+
encoding: "utf8",
|
|
36
|
+
stdio: "inherit",
|
|
37
|
+
});
|
|
28
38
|
});
|
|
29
39
|
});
|
|
@@ -1,29 +1,39 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
2
|
|
|
3
3
|
const repo = `boilerplate-wordpress`;
|
|
4
|
-
const opts = {
|
|
4
|
+
const opts = {
|
|
5
|
+
encoding: "utf8",
|
|
6
|
+
stdio: "inherit",
|
|
7
|
+
cwd: `_Test/_fixtures/${repo}`,
|
|
8
|
+
};
|
|
5
9
|
|
|
6
|
-
const expect = require(
|
|
7
|
-
const execSync = require(
|
|
10
|
+
const expect = require("chai").expect;
|
|
11
|
+
const execSync = require("child_process").execSync;
|
|
8
12
|
|
|
9
|
-
describe(
|
|
10
|
-
before(function(){
|
|
13
|
+
describe("deploy", () => {
|
|
14
|
+
before(function () {
|
|
11
15
|
this.timeout(60000 * 10);
|
|
12
16
|
|
|
13
|
-
execSync(
|
|
17
|
+
execSync(
|
|
18
|
+
`git -C _Test/_fixtures clone git@bitbucket.org:fishawackdigital/${repo}`,
|
|
19
|
+
{ encoding: "utf8", stdio: "inherit" },
|
|
20
|
+
);
|
|
14
21
|
|
|
15
|
-
execSync(
|
|
22
|
+
execSync("node ../../../cli.js setup", opts);
|
|
16
23
|
|
|
17
|
-
execSync(
|
|
24
|
+
execSync("node ../../../cli.js prod", opts);
|
|
18
25
|
});
|
|
19
|
-
|
|
26
|
+
|
|
20
27
|
it(`All ${repo} tests should pass`, async () => {
|
|
21
|
-
expect(execSync(
|
|
28
|
+
expect(execSync("node ../../../cli.js test", opts)).to.not.equal(Error);
|
|
22
29
|
});
|
|
23
30
|
|
|
24
31
|
after(() => {
|
|
25
|
-
execSync(
|
|
32
|
+
execSync("node ../../../cli.js nuke", opts);
|
|
26
33
|
|
|
27
|
-
execSync(`rm -rf _Test/_fixtures/${repo}`, {
|
|
34
|
+
execSync(`rm -rf _Test/_fixtures/${repo}`, {
|
|
35
|
+
encoding: "utf8",
|
|
36
|
+
stdio: "inherit",
|
|
37
|
+
});
|
|
28
38
|
});
|
|
29
39
|
});
|
package/_Test/boilerplate.js
CHANGED
|
@@ -1,29 +1,39 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
2
|
|
|
3
3
|
const repo = `boilerplate`;
|
|
4
|
-
const opts = {
|
|
4
|
+
const opts = {
|
|
5
|
+
encoding: "utf8",
|
|
6
|
+
stdio: "inherit",
|
|
7
|
+
cwd: `_Test/_fixtures/${repo}`,
|
|
8
|
+
};
|
|
5
9
|
|
|
6
|
-
const expect = require(
|
|
7
|
-
const execSync = require(
|
|
10
|
+
const expect = require("chai").expect;
|
|
11
|
+
const execSync = require("child_process").execSync;
|
|
8
12
|
|
|
9
|
-
describe(
|
|
10
|
-
before(function(){
|
|
13
|
+
describe("deploy", () => {
|
|
14
|
+
before(function () {
|
|
11
15
|
this.timeout(60000 * 10);
|
|
12
16
|
|
|
13
|
-
execSync(
|
|
17
|
+
execSync(
|
|
18
|
+
`git -C _Test/_fixtures clone git@bitbucket.org:fishawackdigital/${repo}`,
|
|
19
|
+
{ encoding: "utf8", stdio: "inherit" },
|
|
20
|
+
);
|
|
14
21
|
|
|
15
|
-
execSync(
|
|
22
|
+
execSync("node ../../../cli.js setup", opts);
|
|
16
23
|
|
|
17
|
-
execSync(
|
|
24
|
+
execSync("node ../../../cli.js prod", opts);
|
|
18
25
|
});
|
|
19
|
-
|
|
26
|
+
|
|
20
27
|
it(`All ${repo} tests should pass`, async () => {
|
|
21
|
-
expect(execSync(
|
|
28
|
+
expect(execSync("node ../../../cli.js test", opts)).to.not.equal(Error);
|
|
22
29
|
});
|
|
23
30
|
|
|
24
31
|
after(() => {
|
|
25
|
-
execSync(
|
|
32
|
+
execSync("node ../../../cli.js nuke", opts);
|
|
26
33
|
|
|
27
|
-
execSync(`rm -rf _Test/_fixtures/${repo}`, {
|
|
34
|
+
execSync(`rm -rf _Test/_fixtures/${repo}`, {
|
|
35
|
+
encoding: "utf8",
|
|
36
|
+
stdio: "inherit",
|
|
37
|
+
});
|
|
28
38
|
});
|
|
29
39
|
});
|