@stacksjs/buddy 0.57.4 → 0.58.20
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 +96 -122
- package/dist/chunk-815e657d8c6ba584.js +1677 -0
- package/dist/chunk-b75e6db0012faa55.js +22 -0
- package/dist/cli.js +49 -0
- package/dist/index.js +70 -0
- package/package.json +112 -64
- package/LICENSE.md +0 -21
- package/dist/cli.d.ts +0 -2
- package/dist/cli.mjs +0 -64
- package/dist/index.d.ts +0 -53
- package/dist/index.mjs +0 -59
- package/dist/shared/buddy.e59f9588.mjs +0 -866
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
var __create = Object.create;
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __toESM = (mod, isNodeMode, target) => {
|
|
7
|
+
target = mod != null ? __create(__getProtoOf(mod)) : {};
|
|
8
|
+
const to = isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target;
|
|
9
|
+
for (let key of __getOwnPropNames(mod))
|
|
10
|
+
if (!__hasOwnProp.call(to, key))
|
|
11
|
+
__defProp(to, key, {
|
|
12
|
+
get: () => mod[key],
|
|
13
|
+
enumerable: true
|
|
14
|
+
});
|
|
15
|
+
return to;
|
|
16
|
+
};
|
|
17
|
+
var __commonJS = (cb, mod) => () => (mod || cb((mod = { exports: {} }).exports, mod), mod.exports);
|
|
18
|
+
var __require = (id) => {
|
|
19
|
+
return import.meta.require(id);
|
|
20
|
+
};
|
|
21
|
+
|
|
22
|
+
export { __toESM, __commonJS, __require };
|
package/dist/cli.js
ADDED
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
import {
|
|
3
|
+
build,
|
|
4
|
+
changelog,
|
|
5
|
+
clean,
|
|
6
|
+
cloud,
|
|
7
|
+
configure,
|
|
8
|
+
deploy,
|
|
9
|
+
dev,
|
|
10
|
+
dns,
|
|
11
|
+
domains,
|
|
12
|
+
fresh,
|
|
13
|
+
http,
|
|
14
|
+
install,
|
|
15
|
+
key,
|
|
16
|
+
release,
|
|
17
|
+
setup
|
|
18
|
+
} from "./chunk-815e657d8c6ba584.js";
|
|
19
|
+
import"./chunk-b75e6db0012faa55.js";
|
|
20
|
+
|
|
21
|
+
// src/cli.ts
|
|
22
|
+
import process from "process";
|
|
23
|
+
import {handleError} from "@stacksjs/error-handling";
|
|
24
|
+
import {cli as cli2} from "@stacksjs/cli";
|
|
25
|
+
import {ensureProjectIsInitialized} from "@stacksjs/utils";
|
|
26
|
+
async function main() {
|
|
27
|
+
const buddy = cli2("buddy");
|
|
28
|
+
setup(buddy);
|
|
29
|
+
key(buddy);
|
|
30
|
+
await ensureProjectIsInitialized();
|
|
31
|
+
dev(buddy);
|
|
32
|
+
build(buddy);
|
|
33
|
+
changelog(buddy);
|
|
34
|
+
clean(buddy);
|
|
35
|
+
cloud(buddy);
|
|
36
|
+
deploy(buddy);
|
|
37
|
+
configure(buddy);
|
|
38
|
+
domains(buddy);
|
|
39
|
+
fresh(buddy);
|
|
40
|
+
http(buddy);
|
|
41
|
+
install(buddy);
|
|
42
|
+
dns(buddy);
|
|
43
|
+
release(buddy);
|
|
44
|
+
setup(buddy);
|
|
45
|
+
buddy.parse();
|
|
46
|
+
}
|
|
47
|
+
process.on("uncaughtException", handleError);
|
|
48
|
+
process.on("unhandledRejection", handleError);
|
|
49
|
+
await main();
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
import {
|
|
3
|
+
build,
|
|
4
|
+
changelog,
|
|
5
|
+
clean,
|
|
6
|
+
cloud,
|
|
7
|
+
commit,
|
|
8
|
+
configure,
|
|
9
|
+
create,
|
|
10
|
+
deploy,
|
|
11
|
+
dev,
|
|
12
|
+
dns,
|
|
13
|
+
domains,
|
|
14
|
+
example,
|
|
15
|
+
fresh,
|
|
16
|
+
generate,
|
|
17
|
+
http,
|
|
18
|
+
inspire,
|
|
19
|
+
install,
|
|
20
|
+
key,
|
|
21
|
+
lint,
|
|
22
|
+
make,
|
|
23
|
+
migrate,
|
|
24
|
+
optimizePkgxDeps,
|
|
25
|
+
prepublish,
|
|
26
|
+
release,
|
|
27
|
+
seed,
|
|
28
|
+
setup,
|
|
29
|
+
startDevelopmentServer,
|
|
30
|
+
test,
|
|
31
|
+
tinker,
|
|
32
|
+
types,
|
|
33
|
+
upgrade,
|
|
34
|
+
version
|
|
35
|
+
} from "./chunk-815e657d8c6ba584.js";
|
|
36
|
+
import"./chunk-b75e6db0012faa55.js";
|
|
37
|
+
export {
|
|
38
|
+
version,
|
|
39
|
+
upgrade,
|
|
40
|
+
types,
|
|
41
|
+
tinker,
|
|
42
|
+
test,
|
|
43
|
+
startDevelopmentServer,
|
|
44
|
+
setup,
|
|
45
|
+
seed,
|
|
46
|
+
release,
|
|
47
|
+
prepublish,
|
|
48
|
+
optimizePkgxDeps,
|
|
49
|
+
migrate,
|
|
50
|
+
make,
|
|
51
|
+
lint,
|
|
52
|
+
key,
|
|
53
|
+
install,
|
|
54
|
+
inspire,
|
|
55
|
+
http,
|
|
56
|
+
generate,
|
|
57
|
+
fresh,
|
|
58
|
+
example,
|
|
59
|
+
domains,
|
|
60
|
+
dns,
|
|
61
|
+
dev,
|
|
62
|
+
deploy,
|
|
63
|
+
create,
|
|
64
|
+
configure,
|
|
65
|
+
commit,
|
|
66
|
+
cloud,
|
|
67
|
+
clean,
|
|
68
|
+
changelog,
|
|
69
|
+
build
|
|
70
|
+
};
|
package/package.json
CHANGED
|
@@ -1,17 +1,16 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stacksjs/buddy",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.
|
|
5
|
-
"packageManager": "pnpm@8.6.6",
|
|
4
|
+
"version": "0.58.20",
|
|
6
5
|
"description": "Meet Buddy. The Stacks runtime.",
|
|
7
6
|
"author": "Chris Breuer",
|
|
8
7
|
"license": "MIT",
|
|
9
8
|
"funding": "https://github.com/sponsors/chrisbbreuer",
|
|
10
|
-
"homepage": "https://github.com/stacksjs/stacks/tree/main
|
|
9
|
+
"homepage": "https://github.com/stacksjs/stacks/tree/main/stacks#readme",
|
|
11
10
|
"repository": {
|
|
12
11
|
"type": "git",
|
|
13
12
|
"url": "git+https://github.com/stacksjs/stacks.git",
|
|
14
|
-
"directory": "
|
|
13
|
+
"directory": "./storage/framework/core/src/buddy"
|
|
15
14
|
},
|
|
16
15
|
"bugs": {
|
|
17
16
|
"url": "https://github.com/stacksjs/stacks/issues"
|
|
@@ -38,18 +37,21 @@
|
|
|
38
37
|
],
|
|
39
38
|
"exports": {
|
|
40
39
|
".": {
|
|
41
|
-
"
|
|
42
|
-
"import": "./dist/index.mjs"
|
|
40
|
+
"bun": "./src/index.ts"
|
|
43
41
|
},
|
|
44
42
|
"./cli": {
|
|
43
|
+
"bun": "./src/cli.ts",
|
|
45
44
|
"types": "./dist/cli.d.ts",
|
|
46
45
|
"import": "./dist/cli.mjs"
|
|
46
|
+
},
|
|
47
|
+
"./*": {
|
|
48
|
+
"bun": "./*"
|
|
47
49
|
}
|
|
48
50
|
},
|
|
49
|
-
"module": "dist/index.
|
|
51
|
+
"module": "dist/index.js",
|
|
50
52
|
"types": "dist/index.d.ts",
|
|
51
53
|
"contributors": [
|
|
52
|
-
"Chris Breuer <chris@
|
|
54
|
+
"Chris Breuer <chris@stacksjs.org>"
|
|
53
55
|
],
|
|
54
56
|
"bin": {
|
|
55
57
|
"stacks": "dist/cli.mjs",
|
|
@@ -58,69 +60,115 @@
|
|
|
58
60
|
"bud": "dist/cli.mjs"
|
|
59
61
|
},
|
|
60
62
|
"files": [
|
|
61
|
-
"
|
|
62
|
-
"
|
|
63
|
+
"README.md",
|
|
64
|
+
"dist"
|
|
63
65
|
],
|
|
66
|
+
"scripts": {
|
|
67
|
+
"buddy": "bunx ./src/cli.ts",
|
|
68
|
+
"build": "bun --bun build.ts",
|
|
69
|
+
"compile": "bun build ./src/cli.ts --compile --outfile budd",
|
|
70
|
+
"typecheck": "bun --bun tsc --noEmit",
|
|
71
|
+
"prepublishOnly": "bun --bun run build"
|
|
72
|
+
},
|
|
64
73
|
"peerDependencies": {
|
|
65
|
-
"@stacksjs/actions": "
|
|
66
|
-
"@stacksjs/ai": "
|
|
67
|
-
"@stacksjs/alias": "
|
|
68
|
-
"@stacksjs/arrays": "
|
|
69
|
-
"@stacksjs/auth": "
|
|
70
|
-
"@stacksjs/build": "
|
|
71
|
-
"@stacksjs/cache": "
|
|
72
|
-
"@stacksjs/cli": "
|
|
73
|
-
"@stacksjs/cloud": "
|
|
74
|
-
"@stacksjs/collections": "
|
|
75
|
-
"@stacksjs/config": "
|
|
76
|
-
"@stacksjs/database": "
|
|
77
|
-
"@stacksjs/desktop": "
|
|
78
|
-
"@stacksjs/development": "
|
|
79
|
-
"@stacksjs/dns": "
|
|
80
|
-
"@stacksjs/docs": "
|
|
81
|
-
"@stacksjs/email": "
|
|
82
|
-
"@stacksjs/
|
|
83
|
-
"@stacksjs/
|
|
84
|
-
"@stacksjs/
|
|
85
|
-
"@stacksjs/
|
|
86
|
-
"@stacksjs/
|
|
87
|
-
"@stacksjs/
|
|
88
|
-
"@stacksjs/
|
|
89
|
-
"@stacksjs/
|
|
90
|
-
"@stacksjs/notifications": "
|
|
91
|
-
"@stacksjs/objects": "
|
|
92
|
-
"@stacksjs/orm": "
|
|
93
|
-
"@stacksjs/
|
|
94
|
-
"@stacksjs/
|
|
95
|
-
"@stacksjs/
|
|
96
|
-
"@stacksjs/
|
|
97
|
-
"@stacksjs/
|
|
98
|
-
"@stacksjs/
|
|
99
|
-
"@stacksjs/
|
|
100
|
-
"@stacksjs/
|
|
101
|
-
"@stacksjs/
|
|
102
|
-
"@stacksjs/
|
|
103
|
-
"@stacksjs/
|
|
104
|
-
"@stacksjs/
|
|
105
|
-
"@stacksjs/types": "
|
|
106
|
-
"@stacksjs/ui": "
|
|
107
|
-
"@stacksjs/
|
|
108
|
-
"@stacksjs/
|
|
74
|
+
"@stacksjs/actions": "workspace:*",
|
|
75
|
+
"@stacksjs/ai": "workspace:*",
|
|
76
|
+
"@stacksjs/alias": "workspace:*",
|
|
77
|
+
"@stacksjs/arrays": "workspace:*",
|
|
78
|
+
"@stacksjs/auth": "workspace:*",
|
|
79
|
+
"@stacksjs/build": "workspace:*",
|
|
80
|
+
"@stacksjs/cache": "workspace:*",
|
|
81
|
+
"@stacksjs/cli": "workspace:*",
|
|
82
|
+
"@stacksjs/cloud": "workspace:*",
|
|
83
|
+
"@stacksjs/collections": "workspace:*",
|
|
84
|
+
"@stacksjs/config": "workspace:*",
|
|
85
|
+
"@stacksjs/database": "workspace:*",
|
|
86
|
+
"@stacksjs/desktop": "workspace:*",
|
|
87
|
+
"@stacksjs/development": "workspace:*",
|
|
88
|
+
"@stacksjs/dns": "workspace:*",
|
|
89
|
+
"@stacksjs/docs": "workspace:*",
|
|
90
|
+
"@stacksjs/email": "workspace:*",
|
|
91
|
+
"@stacksjs/enums": "workspace:*",
|
|
92
|
+
"@stacksjs/error-handling": "workspace:*",
|
|
93
|
+
"@stacksjs/events": "workspace:*",
|
|
94
|
+
"@stacksjs/faker": "workspace:*",
|
|
95
|
+
"@stacksjs/git": "workspace:*",
|
|
96
|
+
"@stacksjs/health": "workspace:*",
|
|
97
|
+
"@stacksjs/lint": "workspace:*",
|
|
98
|
+
"@stacksjs/logging": "workspace:*",
|
|
99
|
+
"@stacksjs/notifications": "workspace:*",
|
|
100
|
+
"@stacksjs/objects": "workspace:*",
|
|
101
|
+
"@stacksjs/orm": "workspace:*",
|
|
102
|
+
"@stacksjs/path": "workspace:*",
|
|
103
|
+
"@stacksjs/payments": "workspace:*",
|
|
104
|
+
"@stacksjs/realtime": "workspace:*",
|
|
105
|
+
"@stacksjs/router": "workspace:*",
|
|
106
|
+
"@stacksjs/search-engine": "workspace:*",
|
|
107
|
+
"@stacksjs/security": "workspace:*",
|
|
108
|
+
"@stacksjs/server": "workspace:*",
|
|
109
|
+
"@stacksjs/signals": "workspace:*",
|
|
110
|
+
"@stacksjs/storage": "workspace:*",
|
|
111
|
+
"@stacksjs/strings": "workspace:*",
|
|
112
|
+
"@stacksjs/testing": "workspace:*",
|
|
113
|
+
"@stacksjs/tunnel": "workspace:*",
|
|
114
|
+
"@stacksjs/types": "workspace:*",
|
|
115
|
+
"@stacksjs/ui": "workspace:*",
|
|
116
|
+
"@stacksjs/utils": "workspace:*",
|
|
117
|
+
"@stacksjs/validation": "workspace:*"
|
|
118
|
+
},
|
|
119
|
+
"dependencies": {
|
|
120
|
+
"@stacksjs/actions": "workspace:*",
|
|
121
|
+
"@stacksjs/ai": "workspace:*",
|
|
122
|
+
"@stacksjs/alias": "workspace:*",
|
|
123
|
+
"@stacksjs/arrays": "workspace:*",
|
|
124
|
+
"@stacksjs/auth": "workspace:*",
|
|
125
|
+
"@stacksjs/build": "workspace:*",
|
|
126
|
+
"@stacksjs/cache": "workspace:*",
|
|
127
|
+
"@stacksjs/cli": "workspace:*",
|
|
128
|
+
"@stacksjs/cloud": "workspace:*",
|
|
129
|
+
"@stacksjs/collections": "workspace:*",
|
|
130
|
+
"@stacksjs/config": "workspace:*",
|
|
131
|
+
"@stacksjs/database": "workspace:*",
|
|
132
|
+
"@stacksjs/desktop": "workspace:*",
|
|
133
|
+
"@stacksjs/development": "workspace:*",
|
|
134
|
+
"@stacksjs/dns": "workspace:*",
|
|
135
|
+
"@stacksjs/docs": "workspace:*",
|
|
136
|
+
"@stacksjs/email": "workspace:*",
|
|
137
|
+
"@stacksjs/enums": "workspace:*",
|
|
138
|
+
"@stacksjs/error-handling": "workspace:*",
|
|
139
|
+
"@stacksjs/events": "workspace:*",
|
|
140
|
+
"@stacksjs/faker": "workspace:*",
|
|
141
|
+
"@stacksjs/git": "workspace:*",
|
|
142
|
+
"@stacksjs/health": "workspace:*",
|
|
143
|
+
"@stacksjs/lint": "workspace:*",
|
|
144
|
+
"@stacksjs/logging": "workspace:*",
|
|
145
|
+
"@stacksjs/notifications": "workspace:*",
|
|
146
|
+
"@stacksjs/objects": "workspace:*",
|
|
147
|
+
"@stacksjs/orm": "workspace:*",
|
|
148
|
+
"@stacksjs/path": "workspace:*",
|
|
149
|
+
"@stacksjs/payments": "workspace:*",
|
|
150
|
+
"@stacksjs/realtime": "workspace:*",
|
|
151
|
+
"@stacksjs/router": "workspace:*",
|
|
152
|
+
"@stacksjs/search-engine": "workspace:*",
|
|
153
|
+
"@stacksjs/security": "workspace:*",
|
|
154
|
+
"@stacksjs/server": "workspace:*",
|
|
155
|
+
"@stacksjs/signals": "workspace:*",
|
|
156
|
+
"@stacksjs/storage": "workspace:*",
|
|
157
|
+
"@stacksjs/strings": "workspace:*",
|
|
158
|
+
"@stacksjs/testing": "workspace:*",
|
|
159
|
+
"@stacksjs/tunnel": "workspace:*",
|
|
160
|
+
"@stacksjs/types": "workspace:*",
|
|
161
|
+
"@stacksjs/ui": "workspace:*",
|
|
162
|
+
"@stacksjs/utils": "workspace:*",
|
|
163
|
+
"@stacksjs/validation": "workspace:*"
|
|
109
164
|
},
|
|
110
165
|
"devDependencies": {
|
|
111
|
-
"@stacksjs/development": "
|
|
166
|
+
"@stacksjs/development": "workspace:*"
|
|
112
167
|
},
|
|
113
168
|
"config": {
|
|
114
169
|
"commitizen": {
|
|
115
170
|
"path": "node_modules/cz-git"
|
|
116
171
|
}
|
|
117
172
|
},
|
|
118
|
-
"web-types": "./web-types.json"
|
|
119
|
-
|
|
120
|
-
"buddy": "tsx ./src/cli.ts",
|
|
121
|
-
"preinstall": "npx only-allow pnpm",
|
|
122
|
-
"build": "unbuild",
|
|
123
|
-
"dev": "unbuild --stub",
|
|
124
|
-
"typecheck": "tsc --noEmit"
|
|
125
|
-
}
|
|
126
|
-
}
|
|
173
|
+
"web-types": "./web-types.json"
|
|
174
|
+
}
|
package/LICENSE.md
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
# MIT License
|
|
2
|
-
|
|
3
|
-
Copyright (c) 2022 Open Web Foundation
|
|
4
|
-
|
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
-
in the Software without restriction, including without limitation the rights
|
|
8
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
-
furnished to do so, subject to the following conditions:
|
|
11
|
-
|
|
12
|
-
The above copyright notice and this permission notice shall be included in all
|
|
13
|
-
copies or substantial portions of the Software.
|
|
14
|
-
|
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
-
SOFTWARE.
|
package/dist/cli.d.ts
DELETED
package/dist/cli.mjs
DELETED
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
import { runAction } from '@stacksjs/actions';
|
|
3
|
-
import { handleError } from '@stacksjs/error-handling';
|
|
4
|
-
import { command, log } from '@stacksjs/cli';
|
|
5
|
-
import { env } from '@stacksjs/validation';
|
|
6
|
-
import { installIfVersionMismatch, isProjectCreated, frameworkVersion } from '@stacksjs/utils';
|
|
7
|
-
import { projectPath } from '@stacksjs/path';
|
|
8
|
-
import { Action } from '@stacksjs/types';
|
|
9
|
-
import { q as setup, k as key, o as preinstall, p as prepublish, u as upgrade, j as generate, g as dev, b as build, c as changelog, a as clean, d as commit, f as deploy, i as fresh, l as lint, r as release, m as make, n as migrate, s as seed, h as example, t as test, v as version, e as create } from './shared/buddy.e59f9588.mjs';
|
|
10
|
-
import '@stacksjs/actions/generate';
|
|
11
|
-
import '@stacksjs/actions/commit';
|
|
12
|
-
import '@stacksjs/storage';
|
|
13
|
-
import '@stacksjs/actions/dev';
|
|
14
|
-
import '@stacksjs/actions/examples';
|
|
15
|
-
import '@stacksjs/actions/make';
|
|
16
|
-
import '@stacksjs/actions/preinstall';
|
|
17
|
-
import '@stacksjs/logging';
|
|
18
|
-
|
|
19
|
-
const cli = command("buddy");
|
|
20
|
-
process.on("uncaughtException", handleError);
|
|
21
|
-
process.on("unhandledRejection", handleError);
|
|
22
|
-
async function main() {
|
|
23
|
-
await installIfVersionMismatch();
|
|
24
|
-
await setup(cli);
|
|
25
|
-
await key(cli);
|
|
26
|
-
if (!await isProjectCreated())
|
|
27
|
-
await initProject();
|
|
28
|
-
await preinstall(cli);
|
|
29
|
-
await prepublish(cli);
|
|
30
|
-
await upgrade(cli);
|
|
31
|
-
await generate(cli);
|
|
32
|
-
await dev(cli);
|
|
33
|
-
await build(cli);
|
|
34
|
-
await changelog(cli);
|
|
35
|
-
await clean(cli);
|
|
36
|
-
await commit(cli);
|
|
37
|
-
await deploy(cli);
|
|
38
|
-
await fresh(cli);
|
|
39
|
-
await lint(cli);
|
|
40
|
-
await release(cli);
|
|
41
|
-
await make(cli);
|
|
42
|
-
await migrate(cli);
|
|
43
|
-
await seed(cli);
|
|
44
|
-
await example(cli);
|
|
45
|
-
await test(cli);
|
|
46
|
-
await version(cli);
|
|
47
|
-
cli.help();
|
|
48
|
-
cli.version(await frameworkVersion());
|
|
49
|
-
cli.parse();
|
|
50
|
-
}
|
|
51
|
-
async function initProject() {
|
|
52
|
-
console.log("env.APP_ENV?");
|
|
53
|
-
console.log("env.APP_ENV", env.APP_ENV);
|
|
54
|
-
if (env.APP_ENV !== "production")
|
|
55
|
-
log.info("Project not yet initialized, generating application key...");
|
|
56
|
-
else
|
|
57
|
-
handleError(new Error("Please run `buddy key:generate` to generate an application key"));
|
|
58
|
-
const result = await runAction(Action.KeyGenerate, { cwd: projectPath() });
|
|
59
|
-
if (result.isErr())
|
|
60
|
-
handleError(result.error);
|
|
61
|
-
log.info("Application key generated.");
|
|
62
|
-
await create(cli);
|
|
63
|
-
}
|
|
64
|
-
main();
|
package/dist/index.d.ts
DELETED
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
import { CLI } from '@stacksjs/types';
|
|
2
|
-
|
|
3
|
-
declare function build(buddy: CLI): Promise<void>;
|
|
4
|
-
|
|
5
|
-
declare function changelog(buddy: CLI): Promise<void>;
|
|
6
|
-
|
|
7
|
-
declare function clean(buddy: CLI): Promise<void>;
|
|
8
|
-
|
|
9
|
-
declare function commit(buddy: CLI): Promise<void>;
|
|
10
|
-
|
|
11
|
-
declare function create(buddy: CLI): Promise<void>;
|
|
12
|
-
|
|
13
|
-
declare function deploy(buddy: CLI): Promise<void>;
|
|
14
|
-
|
|
15
|
-
declare function dev(buddy: CLI): Promise<void>;
|
|
16
|
-
|
|
17
|
-
declare function example(buddy: CLI): Promise<void>;
|
|
18
|
-
|
|
19
|
-
declare function fresh(buddy: CLI): Promise<void>;
|
|
20
|
-
|
|
21
|
-
declare function generate(buddy: CLI): Promise<void>;
|
|
22
|
-
|
|
23
|
-
declare function lint(buddy: CLI): Promise<void>;
|
|
24
|
-
|
|
25
|
-
declare function inspire(buddy: CLI): Promise<void>;
|
|
26
|
-
|
|
27
|
-
declare function key(buddy: CLI): Promise<void>;
|
|
28
|
-
|
|
29
|
-
declare function make(buddy: CLI): Promise<void>;
|
|
30
|
-
|
|
31
|
-
declare function migrate(buddy: CLI): Promise<void>;
|
|
32
|
-
|
|
33
|
-
declare function prepublish(buddy: CLI): Promise<void>;
|
|
34
|
-
|
|
35
|
-
declare function preinstall(buddy: CLI): Promise<void>;
|
|
36
|
-
|
|
37
|
-
declare function release(buddy: CLI): Promise<void>;
|
|
38
|
-
|
|
39
|
-
declare function seed(buddy: CLI): Promise<void>;
|
|
40
|
-
|
|
41
|
-
declare function setup(buddy: CLI): Promise<void>;
|
|
42
|
-
|
|
43
|
-
declare function test(buddy: CLI): Promise<void>;
|
|
44
|
-
|
|
45
|
-
declare function tinker(buddy: CLI): Promise<void>;
|
|
46
|
-
|
|
47
|
-
declare function types(buddy: CLI): Promise<void>;
|
|
48
|
-
|
|
49
|
-
declare function upgrade(buddy: CLI): Promise<void>;
|
|
50
|
-
|
|
51
|
-
declare function version(buddy: CLI): Promise<void>;
|
|
52
|
-
|
|
53
|
-
export { build, changelog, clean, commit, create, deploy, dev, example, fresh, generate, inspire, key, lint, make, migrate, preinstall, prepublish, release, seed, setup, test, tinker, types, upgrade, version };
|
package/dist/index.mjs
DELETED
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
export { b as build, c as changelog, a as clean, d as commit, e as create, f as deploy, g as dev, h as example, i as fresh, j as generate, k as key, l as lint, m as make, n as migrate, o as preinstall, p as prepublish, r as release, s as seed, q as setup, t as test, u as upgrade, v as version } from './shared/buddy.e59f9588.mjs';
|
|
2
|
-
import { runAction } from '@stacksjs/actions';
|
|
3
|
-
import { intro, outro } from '@stacksjs/cli';
|
|
4
|
-
import { Action, ExitCode } from '@stacksjs/types';
|
|
5
|
-
import { types as types$1 } from '@stacksjs/actions/generate';
|
|
6
|
-
import '@stacksjs/actions/commit';
|
|
7
|
-
import '@stacksjs/utils';
|
|
8
|
-
import '@stacksjs/storage';
|
|
9
|
-
import '@stacksjs/path';
|
|
10
|
-
import '@stacksjs/actions/dev';
|
|
11
|
-
import '@stacksjs/actions/examples';
|
|
12
|
-
import '@stacksjs/actions/make';
|
|
13
|
-
import '@stacksjs/actions/preinstall';
|
|
14
|
-
import '@stacksjs/logging';
|
|
15
|
-
|
|
16
|
-
async function inspire(buddy) {
|
|
17
|
-
buddy.command("inspire", "Inspire yourself with a random quote").option("--two", "Show two quotes", { default: false }).action(async () => {
|
|
18
|
-
const perf = await intro("buddy inspire");
|
|
19
|
-
const result = await runAction(Action.Inspire);
|
|
20
|
-
if (result.isErr()) {
|
|
21
|
-
outro("While running the inspire command, there was an issue", { startTime: perf, useSeconds: true, isError: true }, result.error);
|
|
22
|
-
process.exit();
|
|
23
|
-
}
|
|
24
|
-
outro("Your quote is: ...", { startTime: perf, useSeconds: true });
|
|
25
|
-
process.exit(ExitCode.Success);
|
|
26
|
-
});
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
async function tinker(buddy) {
|
|
30
|
-
const descriptions = {
|
|
31
|
-
tinker: "Tinker with your code",
|
|
32
|
-
verbose: "Enable verbose output"
|
|
33
|
-
};
|
|
34
|
-
buddy.command("tinker", descriptions.tinker).option("--verbose", descriptions.verbose, { default: false }).action(async (options) => {
|
|
35
|
-
const perf = await intro("buddy tinker");
|
|
36
|
-
const result = await runAction(Action.Tinker, options);
|
|
37
|
-
if (result.isErr()) {
|
|
38
|
-
outro("While running the tinker command, there was an issue", { startTime: perf, useSeconds: true, isError: true }, result.error || void 0);
|
|
39
|
-
process.exit();
|
|
40
|
-
}
|
|
41
|
-
outro("Tinker mode exited.", { startTime: perf, useSeconds: true });
|
|
42
|
-
process.exit(ExitCode.Success);
|
|
43
|
-
});
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
async function types(buddy) {
|
|
47
|
-
const descriptions = {
|
|
48
|
-
generate: "Generate the types of & for your library/libraries",
|
|
49
|
-
fix: "wip",
|
|
50
|
-
verbose: "Enable verbose output"
|
|
51
|
-
};
|
|
52
|
-
buddy.command("types:generate", descriptions.generate).option("--verbose", descriptions.verbose, { default: false }).action(async () => {
|
|
53
|
-
await types$1();
|
|
54
|
-
});
|
|
55
|
-
buddy.command("types:fix", descriptions.fix).option("--verbose", descriptions.verbose, { default: false }).action(async () => {
|
|
56
|
-
});
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
export { inspire, tinker, types };
|