@faststore/cli 0.2.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/README.md ADDED
@@ -0,0 +1,75 @@
1
+ FastStore CLI
2
+ =================
3
+
4
+ <!-- toc -->
5
+ * [Usage](#usage)
6
+ * [Commands](#commands)
7
+ <!-- tocstop -->
8
+ # Usage
9
+ <!-- usage -->
10
+ ```sh-session
11
+ $ npm install -g @faststore/cli
12
+ $ faststore COMMAND
13
+ running command...
14
+ $ faststore (--version)
15
+ @faststore/cli/0.2.0 darwin-arm64 node-v16.18.0
16
+ $ faststore --help [COMMAND]
17
+ USAGE
18
+ $ faststore COMMAND
19
+ ...
20
+ ```
21
+ <!-- usagestop -->
22
+ # Commands
23
+ <!-- commands -->
24
+ * [`faststore build`](#faststore-build)
25
+ * [`faststore dev`](#faststore-dev)
26
+ * [`faststore help [COMMAND]`](#faststore-help-command)
27
+ * [`faststore start`](#faststore-start)
28
+
29
+ ## `faststore build`
30
+
31
+ ```
32
+ USAGE
33
+ $ faststore build
34
+ ```
35
+
36
+ _See code: [dist/commands/build.ts](https://github.com/vtex/faststore/blob/v0.2.0/dist/commands/build.ts)_
37
+
38
+ ## `faststore dev`
39
+
40
+ ```
41
+ USAGE
42
+ $ faststore dev
43
+ ```
44
+
45
+ _See code: [dist/commands/dev.ts](https://github.com/vtex/faststore/blob/v0.2.0/dist/commands/dev.ts)_
46
+
47
+ ## `faststore help [COMMAND]`
48
+
49
+ Display help for faststore.
50
+
51
+ ```
52
+ USAGE
53
+ $ faststore help [COMMAND] [-n]
54
+
55
+ ARGUMENTS
56
+ COMMAND Command to show help for.
57
+
58
+ FLAGS
59
+ -n, --nested-commands Include all nested commands in the output.
60
+
61
+ DESCRIPTION
62
+ Display help for faststore.
63
+ ```
64
+
65
+ _See code: [@oclif/plugin-help](https://github.com/oclif/plugin-help/blob/v5.1.14/src/commands/help.ts)_
66
+
67
+ ## `faststore start`
68
+
69
+ ```
70
+ USAGE
71
+ $ faststore start
72
+ ```
73
+
74
+ _See code: [dist/commands/start.ts](https://github.com/vtex/faststore/blob/v0.2.0/dist/commands/start.ts)_
75
+ <!-- commandsstop -->
package/bin/dev ADDED
@@ -0,0 +1,17 @@
1
+ #!/usr/bin/env node
2
+
3
+ const oclif = require('@oclif/core')
4
+
5
+ const path = require('path')
6
+ const project = path.join(__dirname, '..', 'tsconfig.json')
7
+
8
+ // In dev mode -> use ts-node and dev plugins
9
+ process.env.NODE_ENV = 'development'
10
+
11
+ require('ts-node').register({project})
12
+
13
+ // In dev mode, always show stack traces
14
+ oclif.settings.debug = true;
15
+
16
+ // Start the CLI
17
+ oclif.run().then(oclif.flush).catch(oclif.Errors.handle)
package/bin/dev.cmd ADDED
@@ -0,0 +1,3 @@
1
+ @echo off
2
+
3
+ node "%~dp0\dev" %*
package/bin/run ADDED
@@ -0,0 +1,5 @@
1
+ #!/usr/bin/env node
2
+
3
+ const oclif = require('@oclif/core')
4
+
5
+ oclif.run().then(require('@oclif/core/flush')).catch(require('@oclif/core/handle'))
package/bin/run.cmd ADDED
@@ -0,0 +1,3 @@
1
+ @echo off
2
+
3
+ node "%~dp0\run" %*
@@ -0,0 +1,4 @@
1
+ import { Command } from '@oclif/core';
2
+ export default class Build extends Command {
3
+ run(): Promise<void>;
4
+ }
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const core_1 = require("@oclif/core");
4
+ class Build extends core_1.Command {
5
+ async run() {
6
+ console.log('running build command');
7
+ }
8
+ }
9
+ exports.default = Build;
10
+ //# sourceMappingURL=build.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"build.js","sourceRoot":"","sources":["../../src/commands/build.ts"],"names":[],"mappings":";;AAAA,sCAAqC;AAErC,MAAqB,KAAM,SAAQ,cAAO;IACxC,KAAK,CAAC,GAAG;QACP,OAAO,CAAC,GAAG,CAAC,uBAAuB,CAAC,CAAA;IACtC,CAAC;CACF;AAJD,wBAIC"}
@@ -0,0 +1,4 @@
1
+ import { Command } from '@oclif/core';
2
+ export default class Dev extends Command {
3
+ run(): Promise<void>;
4
+ }
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const core_1 = require("@oclif/core");
4
+ class Dev extends core_1.Command {
5
+ async run() {
6
+ console.log('running dev command');
7
+ }
8
+ }
9
+ exports.default = Dev;
10
+ //# sourceMappingURL=dev.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"dev.js","sourceRoot":"","sources":["../../src/commands/dev.ts"],"names":[],"mappings":";;AAAA,sCAAqC;AAErC,MAAqB,GAAI,SAAQ,cAAO;IACtC,KAAK,CAAC,GAAG;QACP,OAAO,CAAC,GAAG,CAAC,qBAAqB,CAAC,CAAA;IACpC,CAAC;CACF;AAJD,sBAIC"}
@@ -0,0 +1,4 @@
1
+ import { Command } from '@oclif/core';
2
+ export default class Start extends Command {
3
+ run(): Promise<void>;
4
+ }
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const core_1 = require("@oclif/core");
4
+ class Start extends core_1.Command {
5
+ async run() {
6
+ console.log('running start command');
7
+ }
8
+ }
9
+ exports.default = Start;
10
+ //# sourceMappingURL=start.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"start.js","sourceRoot":"","sources":["../../src/commands/start.ts"],"names":[],"mappings":";;AAAA,sCAAqC;AAErC,MAAqB,KAAM,SAAQ,cAAO;IACxC,KAAK,CAAC,GAAG;QACP,OAAO,CAAC,GAAG,CAAC,uBAAuB,CAAC,CAAA;IACtC,CAAC;CACF;AAJD,wBAIC"}
@@ -0,0 +1 @@
1
+ export { run } from '@oclif/core';
package/dist/index.js ADDED
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.run = void 0;
4
+ var core_1 = require("@oclif/core");
5
+ Object.defineProperty(exports, "run", { enumerable: true, get: function () { return core_1.run; } });
6
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;AAAA,oCAAiC;AAAxB,2FAAA,GAAG,OAAA"}
@@ -0,0 +1 @@
1
+ {"version":"0.2.0","commands":{"build":{"id":"build","strict":true,"pluginName":"@faststore/cli","pluginAlias":"@faststore/cli","pluginType":"core","aliases":[],"flags":{},"args":[]},"dev":{"id":"dev","strict":true,"pluginName":"@faststore/cli","pluginAlias":"@faststore/cli","pluginType":"core","aliases":[],"flags":{},"args":[]},"start":{"id":"start","strict":true,"pluginName":"@faststore/cli","pluginAlias":"@faststore/cli","pluginType":"core","aliases":[],"flags":{},"args":[]}}}
package/package.json ADDED
@@ -0,0 +1,60 @@
1
+ {
2
+ "name": "@faststore/cli",
3
+ "version": "0.2.0",
4
+ "description": "FastStore CLI",
5
+ "author": "Emerson Laurentino @emersonlaurentino",
6
+ "bin": {
7
+ "faststore": "./bin/run"
8
+ },
9
+ "homepage": "https://github.com/vtex/faststore",
10
+ "license": "MIT",
11
+ "main": "dist/index.js",
12
+ "repository": "vtex/faststore",
13
+ "files": [
14
+ "/bin",
15
+ "/dist",
16
+ "/npm-shrinkwrap.json",
17
+ "/oclif.manifest.json"
18
+ ],
19
+ "dependencies": {
20
+ "@oclif/core": "^1.16.4",
21
+ "@oclif/plugin-help": "^5",
22
+ "@oclif/plugin-not-found": "^2.3.3"
23
+ },
24
+ "devDependencies": {
25
+ "@types/chai": "^4",
26
+ "@types/node": "^16.11.63",
27
+ "chai": "^4",
28
+ "oclif": "^3",
29
+ "shx": "^0.3.3",
30
+ "ts-node": "^10.9.1",
31
+ "tslib": "^2.3.1",
32
+ "typescript": "^4.8.4"
33
+ },
34
+ "oclif": {
35
+ "bin": "faststore",
36
+ "dirname": "faststore",
37
+ "commands": "./dist/commands",
38
+ "plugins": [
39
+ "@oclif/plugin-help",
40
+ "@oclif/plugin-not-found"
41
+ ],
42
+ "topicSeparator": " "
43
+ },
44
+ "scripts": {
45
+ "build": "shx rm -rf dist && tsc -b",
46
+ "lint": "eslint src/**/*.ts",
47
+ "postpack": "shx rm -f oclif.manifest.json",
48
+ "posttest": "yarn lint",
49
+ "prepack": "yarn build && oclif manifest && oclif readme",
50
+ "version": "oclif readme && git add README.md"
51
+ },
52
+ "engines": {
53
+ "node": ">=12.0.0"
54
+ },
55
+ "bugs": "https://github.com/vtex/faststore/issues",
56
+ "keywords": [
57
+ "oclif"
58
+ ],
59
+ "types": "dist/index.d.ts"
60
+ }