@vtex/checkout 0.0.6 → 0.0.7
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/.next/BUILD_ID +1 -0
- package/.next/app.js +76 -0
- package/.next/build-manifest.json +76 -0
- package/.next/cache/webpack/client-production/0.pack +0 -0
- package/.next/cache/webpack/client-production/index.pack +0 -0
- package/.next/cache/webpack/server-production/0.pack +0 -0
- package/.next/cache/webpack/server-production/index.pack +0 -0
- package/.next/export-marker.json +1 -0
- package/.next/images-manifest.json +1 -0
- package/.next/next-minimal-server.js.nft.json +1 -0
- package/.next/next-server.js.nft.json +1 -0
- package/.next/package.json +1 -0
- package/.next/prerender-manifest.js +1 -0
- package/.next/prerender-manifest.json +1 -0
- package/.next/react-loadable-manifest.json +30 -0
- package/.next/required-server-files.json +1 -0
- package/.next/routes-manifest.json +1 -0
- package/.next/server/child.js.nft.json +1 -0
- package/.next/server/chunks/13.js +6 -0
- package/.next/server/chunks/196.js +6 -0
- package/.next/server/chunks/229.js +1 -0
- package/.next/server/chunks/360.js +1 -0
- package/.next/server/chunks/591.js +1 -0
- package/.next/server/chunks/596.js +1 -0
- package/.next/server/chunks/597.js +1 -0
- package/.next/server/chunks/614.js +1 -0
- package/.next/server/chunks/666.js +1 -0
- package/.next/server/chunks/font-manifest.json +1 -0
- package/.next/server/font-manifest.json +1 -0
- package/.next/server/functions-config-manifest.json +1 -0
- package/.next/server/middleware-build-manifest.js +1 -0
- package/.next/server/middleware-manifest.json +6 -0
- package/.next/server/middleware-react-loadable-manifest.js +1 -0
- package/.next/server/next-font-manifest.js +1 -0
- package/.next/server/next-font-manifest.json +1 -0
- package/.next/server/pages/404.html +1 -0
- package/.next/server/pages/500.html +1 -0
- package/.next/server/pages/_app.js +1 -0
- package/.next/server/pages/_app.js.nft.json +1 -0
- package/.next/server/pages/_document.js +1 -0
- package/.next/server/pages/_document.js.nft.json +1 -0
- package/.next/server/pages/_error.js +1 -0
- package/.next/server/pages/_error.js.nft.json +1 -0
- package/.next/server/pages/api/extensions-config.js +1 -0
- package/.next/server/pages/api/extensions-config.js.nft.json +1 -0
- package/.next/server/pages/cart.html +1 -0
- package/.next/server/pages/cart.js.nft.json +1 -0
- package/.next/server/pages/error.html +1 -0
- package/.next/server/pages/error.js.nft.json +1 -0
- package/.next/server/pages/index.html +1 -0
- package/.next/server/pages/index.js.nft.json +1 -0
- package/.next/server/pages/information.html +1 -0
- package/.next/server/pages/information.js.nft.json +1 -0
- package/.next/server/pages/order-placed.html +1 -0
- package/.next/server/pages/order-placed.js.nft.json +1 -0
- package/.next/server/pages/payment.html +1 -0
- package/.next/server/pages/payment.js.nft.json +1 -0
- package/.next/server/pages/review.html +1 -0
- package/.next/server/pages/review.js.nft.json +1 -0
- package/.next/server/pages/shipping.html +1 -0
- package/.next/server/pages/shipping.js.nft.json +1 -0
- package/.next/server/pages-manifest.json +1 -0
- package/.next/server/webpack-api-runtime.js +1 -0
- package/.next/server/webpack-runtime.js +1 -0
- package/.next/standalone/.next/BUILD_ID +1 -0
- package/.next/standalone/.next/build-manifest.json +76 -0
- package/.next/standalone/.next/package.json +1 -0
- package/.next/standalone/.next/prerender-manifest.js +1 -0
- package/.next/standalone/.next/prerender-manifest.json +1 -0
- package/.next/standalone/.next/react-loadable-manifest.json +30 -0
- package/.next/standalone/.next/required-server-files.json +1 -0
- package/.next/standalone/.next/routes-manifest.json +1 -0
- package/.next/standalone/.next/server/chunks/13.js +6 -0
- package/.next/standalone/.next/server/chunks/196.js +6 -0
- package/.next/standalone/.next/server/chunks/229.js +1 -0
- package/.next/standalone/.next/server/chunks/591.js +1 -0
- package/.next/standalone/.next/server/chunks/596.js +1 -0
- package/.next/standalone/.next/server/chunks/597.js +1 -0
- package/.next/standalone/.next/server/font-manifest.json +1 -0
- package/.next/standalone/.next/server/middleware-build-manifest.js +1 -0
- package/.next/standalone/.next/server/middleware-manifest.json +6 -0
- package/.next/standalone/.next/server/middleware-react-loadable-manifest.js +1 -0
- package/.next/standalone/.next/server/next-font-manifest.js +1 -0
- package/.next/standalone/.next/server/next-font-manifest.json +1 -0
- package/.next/standalone/.next/server/pages/404.html +1 -0
- package/.next/standalone/.next/server/pages/500.html +1 -0
- package/.next/standalone/.next/server/pages/_app.js +1 -0
- package/.next/standalone/.next/server/pages/_app.js.nft.json +1 -0
- package/.next/standalone/.next/server/pages/_document.js +1 -0
- package/.next/standalone/.next/server/pages/_document.js.nft.json +1 -0
- package/.next/standalone/.next/server/pages/_error.js +1 -0
- package/.next/standalone/.next/server/pages/_error.js.nft.json +1 -0
- package/.next/standalone/.next/server/pages/api/extensions-config.js +1 -0
- package/.next/standalone/.next/server/pages/api/extensions-config.js.nft.json +1 -0
- package/.next/standalone/.next/server/pages/cart.html +1 -0
- package/.next/standalone/.next/server/pages/cart.js.nft.json +1 -0
- package/.next/standalone/.next/server/pages/error.html +1 -0
- package/.next/standalone/.next/server/pages/error.js.nft.json +1 -0
- package/.next/standalone/.next/server/pages/index.html +1 -0
- package/.next/standalone/.next/server/pages/index.js.nft.json +1 -0
- package/.next/standalone/.next/server/pages/information.html +1 -0
- package/.next/standalone/.next/server/pages/information.js.nft.json +1 -0
- package/.next/standalone/.next/server/pages/order-placed.html +1 -0
- package/.next/standalone/.next/server/pages/order-placed.js.nft.json +1 -0
- package/.next/standalone/.next/server/pages/payment.html +1 -0
- package/.next/standalone/.next/server/pages/payment.js.nft.json +1 -0
- package/.next/standalone/.next/server/pages/review.html +1 -0
- package/.next/standalone/.next/server/pages/review.js.nft.json +1 -0
- package/.next/standalone/.next/server/pages/shipping.html +1 -0
- package/.next/standalone/.next/server/pages/shipping.js.nft.json +1 -0
- package/.next/standalone/.next/server/pages-manifest.json +1 -0
- package/.next/standalone/.next/server/webpack-api-runtime.js +1 -0
- package/.next/standalone/.next/server/webpack-runtime.js +1 -0
- package/.next/standalone/.next/static/96lW3r-ZNM5LehtzSr74W/_buildManifest.js +1 -0
- package/.next/standalone/.next/static/96lW3r-ZNM5LehtzSr74W/_ssgManifest.js +1 -0
- package/.next/standalone/.next/static/chunks/283.ae878e569cc1c6c6.js +1 -0
- package/.next/standalone/.next/static/chunks/289.89baf2cd56f364dd.js +1 -0
- package/.next/standalone/.next/static/chunks/32.77dec453f2270ac9.js +1 -0
- package/.next/standalone/.next/static/chunks/470.954dd42c6941259d.js +1 -0
- package/.next/standalone/.next/static/chunks/518-67462cf6ca5ce0db.js +28 -0
- package/.next/standalone/.next/static/chunks/547.ecc657de7f828c6d.js +1 -0
- package/.next/standalone/.next/static/chunks/580.8522f095114392b2.js +1 -0
- package/.next/standalone/.next/static/chunks/837.9ce4bf09b289da12.js +1 -0
- package/.next/standalone/.next/static/chunks/858.76a48a7294ed50ea.js +1 -0
- package/.next/standalone/.next/static/chunks/875.250c8953ac0e1470.js +1 -0
- package/.next/standalone/.next/static/chunks/962-414e49b8ce83711c.js +1 -0
- package/.next/standalone/.next/static/chunks/__federation_expose_next__router.b5a9abc98090a2de.js +1 -0
- package/.next/standalone/.next/static/chunks/__federation_expose_noop.963a2fdd1fba2758.js +1 -0
- package/.next/standalone/.next/static/chunks/framework.f78291b49cc273b4.js +33 -0
- package/.next/standalone/.next/static/chunks/host_partial-b86a775d37294c54.js +1 -0
- package/.next/standalone/.next/static/chunks/main-3ae760138ff00173.js +76 -0
- package/.next/standalone/.next/static/chunks/mf-manifest.json +489 -0
- package/.next/standalone/.next/static/chunks/mf-stats.json +531 -0
- package/.next/standalone/.next/static/chunks/pages/_app-102cc164b8756901.js +221 -0
- package/.next/standalone/.next/static/chunks/pages/_error-e4e778d2d8049b12.js +1 -0
- package/.next/standalone/.next/static/chunks/pages/cart-c15f23d6ba45ea4a.js +1 -0
- package/.next/standalone/.next/static/chunks/pages/error-fdf19c392113b456.js +1 -0
- package/.next/standalone/.next/static/chunks/pages/index-f92bc70523038de7.js +1 -0
- package/.next/standalone/.next/static/chunks/pages/information-f42887ed471298ee.js +1 -0
- package/.next/standalone/.next/static/chunks/pages/order-placed-6795d1403e161b74.js +1 -0
- package/.next/standalone/.next/static/chunks/pages/payment-3622d476d85fec9d.js +1 -0
- package/.next/standalone/.next/static/chunks/pages/review-021c622d1537c281.js +23 -0
- package/.next/standalone/.next/static/chunks/pages/shipping-e6031db5b23c0825.js +1 -0
- package/.next/standalone/.next/static/chunks/polyfills-c67a75d1b6f99dc8.js +1 -0
- package/.next/standalone/.next/static/chunks/webpack-f8d746de0be5458e.js +76 -0
- package/.next/standalone/.next/static/css/09afc1751a2ca2fe.css +1 -0
- package/.next/standalone/.next/static/css/30f3b49b5938f6c4.css +1 -0
- package/.next/standalone/.next/static/css/65e8db6b3657c50f.css +1 -0
- package/.next/standalone/.next/static/css/741c001a49d26e95.css +1 -0
- package/.next/standalone/.next/static/css/80119f1a45aadc7a.css +1 -0
- package/.next/standalone/.next/static/css/990b0e9a20406dce.css +1 -0
- package/.next/standalone/.next/static/css/a72e7c781e89969d.css +1 -0
- package/.next/standalone/.next/static/css/b14020f61a09730f.css +1 -0
- package/.next/standalone/.next/static/css/cff0de3c4e07eb3f.css +1 -0
- package/.next/standalone/.next/static/css/de57192918392a3e.css +1 -0
- package/.next/standalone/package.json +41 -0
- package/.next/standalone/server.js +38 -0
- package/.next/standalone/src/core/components/CustomerDataForm/CountryForms/BRA/index.tsx +1 -0
- package/.next/standalone/src/core/components/CustomerDataForm/CountryForms/USA/index.ts +1 -0
- package/.next/standalone/src/pages/_app.tsx +82 -0
- package/.next/standalone/src/pages/_document.tsx +15 -0
- package/.next/standalone/yarn.lock +1366 -0
- package/.next/trace +257 -0
- package/package.json +7 -2
- package/CHANGELOG.md +0 -48
- package/eslintrc.json +0 -18
- package/src/commands/build.ts +0 -30
- package/src/commands/dev.ts +0 -101
- package/src/commands/index.ts +0 -3
- package/src/commands/init.ts +0 -30
- package/src/hooks/build/post.ts +0 -3
- package/src/hooks/build/pre.ts +0 -3
- package/src/hooks/dev/post.ts +0 -3
- package/src/hooks/dev/pre.ts +0 -3
- package/src/hooks/index.ts +0 -8
- package/src/hooks/init/post.ts +0 -1
- package/src/hooks/init/pre.ts +0 -1
- package/src/hooks/serve/post.ts +0 -3
- package/src/hooks/serve/pre.ts +0 -3
- package/src/index.ts +0 -13
- package/tsconfig.json +0 -16
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vtex/checkout",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.7",
|
|
4
4
|
"author": "VTEX",
|
|
5
5
|
"bin": {
|
|
6
6
|
"checkout": "./bin/run.js"
|
|
@@ -35,5 +35,10 @@
|
|
|
35
35
|
"scripts": {
|
|
36
36
|
"cli": "./bin/dev.js"
|
|
37
37
|
},
|
|
38
|
-
"types": "dist/index.d.ts"
|
|
38
|
+
"types": "dist/index.d.ts",
|
|
39
|
+
"files": [
|
|
40
|
+
".next",
|
|
41
|
+
"dist",
|
|
42
|
+
"bin"
|
|
43
|
+
]
|
|
39
44
|
}
|
package/CHANGELOG.md
DELETED
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
# Changelog
|
|
2
|
-
|
|
3
|
-
All notable changes to this project will be documented in this file.
|
|
4
|
-
|
|
5
|
-
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
|
|
6
|
-
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
7
|
-
|
|
8
|
-
## [Unreleased]
|
|
9
|
-
|
|
10
|
-
## [0.0.6] - 2024-09-05
|
|
11
|
-
|
|
12
|
-
### Added
|
|
13
|
-
- feat: Added local extensions server
|
|
14
|
-
|
|
15
|
-
## [0.0.5] - 2024-08-24
|
|
16
|
-
|
|
17
|
-
### Fix
|
|
18
|
-
- fix: Added missing runtime dependency
|
|
19
|
-
|
|
20
|
-
### Added
|
|
21
|
-
|
|
22
|
-
- feat: Added `dev`, `build` and `init` commands
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
## [0.0.4] - 2024-08-20
|
|
26
|
-
|
|
27
|
-
### Feature
|
|
28
|
-
- Added Checkout CLI
|
|
29
|
-
|
|
30
|
-
## [0.0.3] - 2024-07-11
|
|
31
|
-
|
|
32
|
-
### Fix
|
|
33
|
-
- Added missing configuration field
|
|
34
|
-
|
|
35
|
-
## [0.0.2] - 2024-07-10
|
|
36
|
-
|
|
37
|
-
### Fix
|
|
38
|
-
- Fixed runtime issues in dev mode
|
|
39
|
-
|
|
40
|
-
## [0.0.1] - 2024-07-10
|
|
41
|
-
|
|
42
|
-
### Added
|
|
43
|
-
- First release
|
|
44
|
-
|
|
45
|
-
[unreleased]: https://github.com/vtex/fastcheckout/compare/v0.0.3-core...HEAD
|
|
46
|
-
[0.0.2]: https://github.com/vtex/fastcheckout/releases/tag/v0.0.2-core
|
|
47
|
-
|
|
48
|
-
[0.0.3]: https://github.com/vtex/fastcheckout/releases/tag/v0.0.3-core
|
package/eslintrc.json
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"extends": ["../../../.eslintrc.json"],
|
|
3
|
-
"ignorePatterns": ["!**/*"],
|
|
4
|
-
"overrides": [
|
|
5
|
-
{
|
|
6
|
-
"files": ["*.ts", "*.tsx", "*.js", "*.jsx"],
|
|
7
|
-
"rules": {}
|
|
8
|
-
},
|
|
9
|
-
{
|
|
10
|
-
"files": ["*.ts", "*.tsx"],
|
|
11
|
-
"rules": {}
|
|
12
|
-
},
|
|
13
|
-
{
|
|
14
|
-
"files": ["*.js", "*.jsx"],
|
|
15
|
-
"rules": {}
|
|
16
|
-
}
|
|
17
|
-
]
|
|
18
|
-
}
|
package/src/commands/build.ts
DELETED
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import { Args, Command, Flags } from '@oclif/core';
|
|
2
|
-
|
|
3
|
-
export class Build extends Command {
|
|
4
|
-
static override args = {
|
|
5
|
-
file: Args.string({ description: 'file to read' }),
|
|
6
|
-
};
|
|
7
|
-
|
|
8
|
-
static override description = 'describe the command here';
|
|
9
|
-
|
|
10
|
-
static override examples = ['<%= config.bin %> <%= command.id %>'];
|
|
11
|
-
|
|
12
|
-
static override flags = {
|
|
13
|
-
// flag with no value (-f, --force)
|
|
14
|
-
force: Flags.boolean({ char: 'f' }),
|
|
15
|
-
// flag with a value (-n, --name=VALUE)
|
|
16
|
-
name: Flags.string({ char: 'n', description: 'name to print' }),
|
|
17
|
-
};
|
|
18
|
-
|
|
19
|
-
public async run(): Promise<void> {
|
|
20
|
-
const { args, flags } = await this.parse(Build);
|
|
21
|
-
|
|
22
|
-
const name = flags.name ?? 'world';
|
|
23
|
-
this.log(
|
|
24
|
-
`hello ${name} from /Users/marcosoliveira/projects/vtex/fastcheckout/packages/libs/extensions/src/commands/build.ts`
|
|
25
|
-
);
|
|
26
|
-
if (args.file && flags.force) {
|
|
27
|
-
this.log(`you input --force and --file: ${args.file}`);
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
}
|
package/src/commands/dev.ts
DELETED
|
@@ -1,101 +0,0 @@
|
|
|
1
|
-
import { Command } from '@oclif/core';
|
|
2
|
-
import getPort from 'get-port';
|
|
3
|
-
import express from 'express';
|
|
4
|
-
import path from 'path';
|
|
5
|
-
import fs from 'fs/promises';
|
|
6
|
-
import { existsSync } from 'fs';
|
|
7
|
-
import { spawn } from 'child_process';
|
|
8
|
-
|
|
9
|
-
type BaseProps = {
|
|
10
|
-
accountName: string;
|
|
11
|
-
};
|
|
12
|
-
|
|
13
|
-
type TmpFolderFields = {
|
|
14
|
-
checkoutTmpFolder: string;
|
|
15
|
-
};
|
|
16
|
-
|
|
17
|
-
type CreateExtensionsServer = BaseProps & TmpFolderFields;
|
|
18
|
-
|
|
19
|
-
const CORE_PATH = path.resolve('node_modules', '@vtex', 'checkout', '.next');
|
|
20
|
-
const CHECKOUT_PORT = 4301;
|
|
21
|
-
const IS_VERBOSE = process.env.CHECKOUT_CLI_VERBOSE === 'true';
|
|
22
|
-
|
|
23
|
-
const debug = (...args: any[]) => {
|
|
24
|
-
if (IS_VERBOSE) {
|
|
25
|
-
console.log(...args);
|
|
26
|
-
}
|
|
27
|
-
};
|
|
28
|
-
|
|
29
|
-
const createTempFolder = async ({
|
|
30
|
-
accountName,
|
|
31
|
-
}: BaseProps): Promise<TmpFolderFields> => {
|
|
32
|
-
const tmpFolder = path.resolve(accountName, 'checkout', '.tmp');
|
|
33
|
-
const checkoutTmpFolder = path.resolve(tmpFolder, '.next');
|
|
34
|
-
|
|
35
|
-
if (existsSync(tmpFolder)) {
|
|
36
|
-
await fs.rm(tmpFolder, { recursive: true, force: true });
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
await fs.mkdir(tmpFolder);
|
|
40
|
-
await fs.cp(CORE_PATH, checkoutTmpFolder, { recursive: true });
|
|
41
|
-
|
|
42
|
-
return {
|
|
43
|
-
checkoutTmpFolder,
|
|
44
|
-
};
|
|
45
|
-
};
|
|
46
|
-
|
|
47
|
-
const createExtensionsServer = async ({
|
|
48
|
-
accountName,
|
|
49
|
-
checkoutTmpFolder,
|
|
50
|
-
}: CreateExtensionsServer) => {
|
|
51
|
-
const app = express();
|
|
52
|
-
|
|
53
|
-
app.get('/extensions-config', (_, res) =>
|
|
54
|
-
res.json({
|
|
55
|
-
accountName,
|
|
56
|
-
// TODO: Change after creating the static server using CLI
|
|
57
|
-
staticServer: 'http://localhost:4302',
|
|
58
|
-
})
|
|
59
|
-
);
|
|
60
|
-
|
|
61
|
-
const EXTENSIONS_SERVER_PORT = await getPort();
|
|
62
|
-
|
|
63
|
-
app.listen(EXTENSIONS_SERVER_PORT, () => {
|
|
64
|
-
debug(`Checkout running at htt://localhost:${EXTENSIONS_SERVER_PORT}`);
|
|
65
|
-
});
|
|
66
|
-
|
|
67
|
-
const checkoutServer = path.resolve(
|
|
68
|
-
checkoutTmpFolder,
|
|
69
|
-
'standalone',
|
|
70
|
-
'server.js'
|
|
71
|
-
);
|
|
72
|
-
|
|
73
|
-
const child = spawn(process.execPath, [checkoutServer], {
|
|
74
|
-
stdio: IS_VERBOSE ? 'inherit' : 'ignore',
|
|
75
|
-
env: {
|
|
76
|
-
PORT: CHECKOUT_PORT.toString(),
|
|
77
|
-
CHECKOUT_CLI_EXTENSIONS_SERVER_PORT: EXTENSIONS_SERVER_PORT.toString(),
|
|
78
|
-
},
|
|
79
|
-
shell: true,
|
|
80
|
-
});
|
|
81
|
-
|
|
82
|
-
child.on('close', (code) => {
|
|
83
|
-
debug(`Next.js server exited with code: ${code}`);
|
|
84
|
-
});
|
|
85
|
-
};
|
|
86
|
-
|
|
87
|
-
export class Dev extends Command {
|
|
88
|
-
static override args = {};
|
|
89
|
-
|
|
90
|
-
static override description = 'Run checkout in development mode';
|
|
91
|
-
|
|
92
|
-
static override examples = [];
|
|
93
|
-
|
|
94
|
-
static override flags = {};
|
|
95
|
-
|
|
96
|
-
public async run(): Promise<void> {
|
|
97
|
-
const storeInfo = { accountName: 'vtexgame1' };
|
|
98
|
-
const { checkoutTmpFolder } = await createTempFolder(storeInfo);
|
|
99
|
-
await createExtensionsServer({ ...storeInfo, checkoutTmpFolder });
|
|
100
|
-
}
|
|
101
|
-
}
|
package/src/commands/index.ts
DELETED
package/src/commands/init.ts
DELETED
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import { Args, Command, Flags } from '@oclif/core';
|
|
2
|
-
|
|
3
|
-
export class Init extends Command {
|
|
4
|
-
static override args = {
|
|
5
|
-
file: Args.string({ description: 'file to read' }),
|
|
6
|
-
};
|
|
7
|
-
|
|
8
|
-
static override description = 'describe the command here';
|
|
9
|
-
|
|
10
|
-
static override examples = ['<%= config.bin %> <%= command.id %>'];
|
|
11
|
-
|
|
12
|
-
static override flags = {
|
|
13
|
-
// flag with no value (-f, --force)
|
|
14
|
-
force: Flags.boolean({ char: 'f' }),
|
|
15
|
-
// flag with a value (-n, --name=VALUE)
|
|
16
|
-
name: Flags.string({ char: 'n', description: 'name to print' }),
|
|
17
|
-
};
|
|
18
|
-
|
|
19
|
-
public async run(): Promise<void> {
|
|
20
|
-
const { args, flags } = await this.parse(Init);
|
|
21
|
-
|
|
22
|
-
const name = flags.name ?? 'world';
|
|
23
|
-
this.log(
|
|
24
|
-
`hello ${name} from /Users/marcosoliveira/projects/vtex/fastcheckout/packages/libs/extensions/src/commands/init.ts`
|
|
25
|
-
);
|
|
26
|
-
if (args.file && flags.force) {
|
|
27
|
-
this.log(`you input --force and --file: ${args.file}`);
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
}
|
package/src/hooks/build/post.ts
DELETED
package/src/hooks/build/pre.ts
DELETED
package/src/hooks/dev/post.ts
DELETED
package/src/hooks/dev/pre.ts
DELETED
package/src/hooks/index.ts
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
export { postBuild } from './build/post.js';
|
|
2
|
-
export { preBuild } from './build/pre.js';
|
|
3
|
-
export { postDev } from './dev/post.js';
|
|
4
|
-
export { preDev } from './dev/pre.js';
|
|
5
|
-
export { postInit } from './init/post.js';
|
|
6
|
-
export { preInit } from './init/pre.js';
|
|
7
|
-
export { postServe } from './serve/post.js';
|
|
8
|
-
export { preServe } from './serve/pre.js';
|
package/src/hooks/init/post.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export async function postInit() {}
|
package/src/hooks/init/pre.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export async function preInit() {}
|
package/src/hooks/serve/post.ts
DELETED
package/src/hooks/serve/pre.ts
DELETED
package/src/index.ts
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
export { run } from '@oclif/core';
|
|
2
|
-
|
|
3
|
-
import * as hooks_ from './hooks/index.js';
|
|
4
|
-
|
|
5
|
-
import { Dev as dev, Build as build, Init as init } from './commands/index.js';
|
|
6
|
-
|
|
7
|
-
export const hooks = hooks_;
|
|
8
|
-
|
|
9
|
-
export const commands = {
|
|
10
|
-
dev,
|
|
11
|
-
build,
|
|
12
|
-
init,
|
|
13
|
-
};
|
package/tsconfig.json
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"extends": "../../../tsconfig.base.json",
|
|
3
|
-
"compilerOptions": {
|
|
4
|
-
"declaration": true,
|
|
5
|
-
"module": "Node16",
|
|
6
|
-
"outDir": "dist",
|
|
7
|
-
"rootDir": "src",
|
|
8
|
-
"strict": true,
|
|
9
|
-
"target": "es2022",
|
|
10
|
-
"moduleResolution": "node16"
|
|
11
|
-
},
|
|
12
|
-
"include": ["./src/**/*"],
|
|
13
|
-
"ts-node": {
|
|
14
|
-
"esm": true
|
|
15
|
-
}
|
|
16
|
-
}
|