create-gasket-app 6.14.0 → 6.17.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/{index.js → lib/index.js} +1 -1
- package/package.json +8 -6
- package/CHANGELOG.md +0 -19
- package/test/index.test.js +0 -33
- package/test/setup.js +0 -4
|
@@ -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.17.1",
|
|
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.17.0"
|
|
32
35
|
},
|
|
33
36
|
"devDependencies": {
|
|
34
37
|
"assume": "^2.3.0",
|
|
@@ -56,8 +59,7 @@
|
|
|
56
59
|
}
|
|
57
60
|
},
|
|
58
61
|
"eslintIgnore": [
|
|
59
|
-
"coverage",
|
|
60
62
|
"test/fixtures"
|
|
61
63
|
],
|
|
62
|
-
"gitHead": "
|
|
64
|
+
"gitHead": "710cfbaa8db3a27d399a89df3c6adc709c20dc3d"
|
|
63
65
|
}
|
package/CHANGELOG.md
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
# `create-gasket-app`
|
|
2
|
-
|
|
3
|
-
### 6.0.0
|
|
4
|
-
|
|
5
|
-
- Version alignment
|
|
6
|
-
- Upgraded dependencies ([#247])
|
|
7
|
-
|
|
8
|
-
### 5.6.2
|
|
9
|
-
|
|
10
|
-
- Fix bug with additional arguments ([#171])
|
|
11
|
-
|
|
12
|
-
### 5.6.0
|
|
13
|
-
|
|
14
|
-
- Introducing `create-gasket-app` ([#167])
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
[#167]: https://github.com/godaddy/gasket/pull/167
|
|
18
|
-
[#171]: https://github.com/godaddy/gasket/pull/171
|
|
19
|
-
[#247]: https://github.com/godaddy/gasket/pull/247
|
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