create-gasket-app 6.15.0 → 6.19.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/CHANGELOG.md +5 -0
- package/{index.js → lib/index.js} +1 -1
- package/package.json +8 -7
- package/test/index.test.js +0 -33
- package/test/setup.js +0 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
# `create-gasket-app`
|
|
2
2
|
|
|
3
|
+
### 6.17.1
|
|
4
|
+
|
|
5
|
+
- Update relative path from `__dirname` ([#337])
|
|
6
|
+
|
|
3
7
|
### 6.0.0
|
|
4
8
|
|
|
5
9
|
- Version alignment
|
|
@@ -17,3 +21,4 @@
|
|
|
17
21
|
[#167]: https://github.com/godaddy/gasket/pull/167
|
|
18
22
|
[#171]: https://github.com/godaddy/gasket/pull/171
|
|
19
23
|
[#247]: https://github.com/godaddy/gasket/pull/247
|
|
24
|
+
[#337]: https://github.com/godaddy/gasket/pull/337
|
|
@@ -7,7 +7,7 @@ const [, , ...args] = process.argv;
|
|
|
7
7
|
|
|
8
8
|
function main() {
|
|
9
9
|
return fork(
|
|
10
|
-
path.join(__dirname, 'node_modules', '.bin', 'gasket'),
|
|
10
|
+
path.join(__dirname, '..', 'node_modules', '.bin', 'gasket'),
|
|
11
11
|
['create', ...args],
|
|
12
12
|
{ stdio: 'inherit', stdin: 'inherit', stderr: 'inherit' }
|
|
13
13
|
);
|
package/package.json
CHANGED
|
@@ -1,11 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-gasket-app",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.19.0",
|
|
4
4
|
"description": "starter pack for creating a gasket app",
|
|
5
|
-
"main": "
|
|
5
|
+
"main": "lib",
|
|
6
6
|
"bin": {
|
|
7
|
-
"create-gasket-app": "./index.js"
|
|
7
|
+
"create-gasket-app": "./lib/index.js"
|
|
8
8
|
},
|
|
9
|
+
"files": [
|
|
10
|
+
"lib"
|
|
11
|
+
],
|
|
9
12
|
"scripts": {
|
|
10
13
|
"lint": "eslint .",
|
|
11
14
|
"lint:fix": "npm run lint -- --fix",
|
|
@@ -28,7 +31,7 @@
|
|
|
28
31
|
},
|
|
29
32
|
"homepage": "https://github.com/godaddy/gasket/tree/main/packages/create-gasket-app",
|
|
30
33
|
"dependencies": {
|
|
31
|
-
"@gasket/cli": "^6.
|
|
34
|
+
"@gasket/cli": "^6.19.0"
|
|
32
35
|
},
|
|
33
36
|
"devDependencies": {
|
|
34
37
|
"assume": "^2.3.0",
|
|
@@ -56,8 +59,6 @@
|
|
|
56
59
|
}
|
|
57
60
|
},
|
|
58
61
|
"eslintIgnore": [
|
|
59
|
-
"coverage",
|
|
60
62
|
"test/fixtures"
|
|
61
|
-
]
|
|
62
|
-
"gitHead": "a5519d55df47e3b1d3b9008c1a1c1add562192d9"
|
|
63
|
+
]
|
|
63
64
|
}
|
package/test/index.test.js
DELETED
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
const assume = require('assume');
|
|
2
|
-
const sinon = require('sinon');
|
|
3
|
-
const proxyquire = require('proxyquire');
|
|
4
|
-
const path = require('path');
|
|
5
|
-
|
|
6
|
-
describe('create-gasket-app', function () {
|
|
7
|
-
let forkStub, mockExecute;
|
|
8
|
-
|
|
9
|
-
beforeEach(function () {
|
|
10
|
-
forkStub = sinon.stub();
|
|
11
|
-
|
|
12
|
-
mockExecute = (...args) => {
|
|
13
|
-
const argvStub = sinon.stub(process, 'argv').get(() => ['node', 'bin', ...args]);
|
|
14
|
-
proxyquire('../', { child_process: { fork: forkStub } });
|
|
15
|
-
argvStub.restore();
|
|
16
|
-
};
|
|
17
|
-
});
|
|
18
|
-
|
|
19
|
-
it('calls the @gasket/cli bin from node_modules', function () {
|
|
20
|
-
mockExecute();
|
|
21
|
-
assume(forkStub.args[0][0]).includes(path.join('node_modules', '.bin', 'gasket'));
|
|
22
|
-
});
|
|
23
|
-
|
|
24
|
-
it('passes the create arg', function () {
|
|
25
|
-
mockExecute();
|
|
26
|
-
assume(forkStub.args[0][1]).eqls(['create']);
|
|
27
|
-
});
|
|
28
|
-
|
|
29
|
-
it('passes through additional arguments', function () {
|
|
30
|
-
mockExecute('-p', '@gasket/preset-nextjs');
|
|
31
|
-
assume(forkStub.args[0][1]).eqls(['create', '-p', '@gasket/preset-nextjs']);
|
|
32
|
-
});
|
|
33
|
-
});
|
package/test/setup.js
DELETED