@fastkit/plugboy 0.0.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.
Files changed (36) hide show
  1. package/LICENSE +21 -0
  2. package/cli.mjs +2 -0
  3. package/dist/chunk-QSOC5WYP.mjs +1493 -0
  4. package/dist/chunk-QSOC5WYP.mjs.map +1 -0
  5. package/dist/cli.d.ts +3 -0
  6. package/dist/cli.mjs +142 -0
  7. package/dist/cli.mjs.map +1 -0
  8. package/dist/dependencies/bundle-require.d.ts +1 -0
  9. package/dist/dependencies/bundle-require.mjs +3 -0
  10. package/dist/dependencies/bundle-require.mjs.map +1 -0
  11. package/dist/dependencies/cac.d.ts +1 -0
  12. package/dist/dependencies/cac.mjs +3 -0
  13. package/dist/dependencies/cac.mjs.map +1 -0
  14. package/dist/dependencies/esbuild.d.ts +1 -0
  15. package/dist/dependencies/esbuild.mjs +3 -0
  16. package/dist/dependencies/esbuild.mjs.map +1 -0
  17. package/dist/dependencies/glob.d.ts +1 -0
  18. package/dist/dependencies/glob.mjs +3 -0
  19. package/dist/dependencies/glob.mjs.map +1 -0
  20. package/dist/dependencies/inquirer.d.ts +3 -0
  21. package/dist/dependencies/inquirer.mjs +8 -0
  22. package/dist/dependencies/inquirer.mjs.map +1 -0
  23. package/dist/dependencies/pkg-types.d.ts +1 -0
  24. package/dist/dependencies/pkg-types.mjs +3 -0
  25. package/dist/dependencies/pkg-types.mjs.map +1 -0
  26. package/dist/dependencies/sort-package-json.d.ts +2 -0
  27. package/dist/dependencies/sort-package-json.mjs +7 -0
  28. package/dist/dependencies/sort-package-json.mjs.map +1 -0
  29. package/dist/dependencies/tsup.d.ts +1 -0
  30. package/dist/dependencies/tsup.mjs +3 -0
  31. package/dist/dependencies/tsup.mjs.map +1 -0
  32. package/dist/plugboy.d.ts +619 -0
  33. package/dist/plugboy.mjs +97 -0
  34. package/dist/plugboy.mjs.map +1 -0
  35. package/env.d.ts +35 -0
  36. package/package.json +93 -0
@@ -0,0 +1,97 @@
1
+ import {
2
+ Builder,
3
+ PROJECT_REQUIRED_FIELDS,
4
+ Path,
5
+ PlugboyProject,
6
+ PlugboyWorkspace,
7
+ TSUP_SYNC_OPTIONS,
8
+ WORKSPACE_PACKAGE_SYNC_FIELDS,
9
+ WORKSPACE_REQUIRED_FIELDS,
10
+ buildHooks,
11
+ copyDirSync,
12
+ createHooksDefaults,
13
+ definePlugin,
14
+ defineProjectConfig,
15
+ defineWorkspaceConfig,
16
+ extractProjectPlugins,
17
+ findConfig,
18
+ findFile,
19
+ findProjectPlugin,
20
+ findWorkspacePackages,
21
+ generateWorkspace,
22
+ getDirname,
23
+ getFilename,
24
+ getProject,
25
+ getProjectPackageJson,
26
+ getWorkspace,
27
+ getWorkspacePackageJson,
28
+ isFileNotFoundException,
29
+ isProjectPackageJson,
30
+ isPromise,
31
+ isWorkspacePackageJson,
32
+ loadProjectConfig,
33
+ loadWorkspaceConfig,
34
+ mergeDTSSettingsList,
35
+ normalizeDTSPreserveTypeSettings,
36
+ normalizeDTSPreserveTypeTarget,
37
+ normalizeDTSSettings,
38
+ pathExists,
39
+ resolveListable,
40
+ resolveRawWorkspaceEntries,
41
+ resolveRawWorkspaceEntry,
42
+ resolveUserHooks,
43
+ resolveUserPluginOptions,
44
+ resolveUserProjectConfig,
45
+ resolveUserWorkspaceConfig,
46
+ rmrf,
47
+ syncWorkspacePackageFields
48
+ } from "./chunk-QSOC5WYP.mjs";
49
+ export {
50
+ Builder,
51
+ PROJECT_REQUIRED_FIELDS,
52
+ Path,
53
+ PlugboyProject,
54
+ PlugboyWorkspace,
55
+ TSUP_SYNC_OPTIONS,
56
+ WORKSPACE_PACKAGE_SYNC_FIELDS,
57
+ WORKSPACE_REQUIRED_FIELDS,
58
+ buildHooks,
59
+ copyDirSync,
60
+ createHooksDefaults,
61
+ definePlugin,
62
+ defineProjectConfig,
63
+ defineWorkspaceConfig,
64
+ extractProjectPlugins,
65
+ findConfig,
66
+ findFile,
67
+ findProjectPlugin,
68
+ findWorkspacePackages,
69
+ generateWorkspace,
70
+ getDirname,
71
+ getFilename,
72
+ getProject,
73
+ getProjectPackageJson,
74
+ getWorkspace,
75
+ getWorkspacePackageJson,
76
+ isFileNotFoundException,
77
+ isProjectPackageJson,
78
+ isPromise,
79
+ isWorkspacePackageJson,
80
+ loadProjectConfig,
81
+ loadWorkspaceConfig,
82
+ mergeDTSSettingsList,
83
+ normalizeDTSPreserveTypeSettings,
84
+ normalizeDTSPreserveTypeTarget,
85
+ normalizeDTSSettings,
86
+ pathExists,
87
+ resolveListable,
88
+ resolveRawWorkspaceEntries,
89
+ resolveRawWorkspaceEntry,
90
+ resolveUserHooks,
91
+ resolveUserPluginOptions,
92
+ resolveUserProjectConfig,
93
+ resolveUserWorkspaceConfig,
94
+ rmrf,
95
+ syncWorkspacePackageFields
96
+ };
97
+ //# sourceMappingURL=plugboy.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
package/env.d.ts ADDED
@@ -0,0 +1,35 @@
1
+ declare global {
2
+ /**
3
+ * Development bundle or not
4
+ *
5
+ * @remarks This feature is still under development and is currently only `true` in stub mode.
6
+ */
7
+ const __PLUGBOY_DEV__: boolean;
8
+
9
+ /**
10
+ * The bundle is in stub mode.
11
+ *
12
+ * @remarks In stub mode, source code is executed in the source directory. This flag is available because of the different way of loading files in relative paths.
13
+ */
14
+ const __PLUGBOY_STUB__: boolean;
15
+
16
+ /**
17
+ * Get the directory path of the workspace
18
+ * @param paths - List of paths to be concatenated
19
+ */
20
+ function __plugboyWorkspaceDir(...paths: string[]): string;
21
+
22
+ /**
23
+ * Get the path to the source directory of the workspace
24
+ * @param paths - List of paths to be concatenated
25
+ */
26
+ function __plugboySrcDir(...paths: string[]): string;
27
+
28
+ /**
29
+ * Get the path to the public directory of the workspace
30
+ * @param paths - List of paths to be concatenated
31
+ */
32
+ function __plugboyPublicDir(...paths: string[]): string;
33
+ }
34
+
35
+ export {};
package/package.json ADDED
@@ -0,0 +1,93 @@
1
+ {
2
+ "name": "@fastkit/plugboy",
3
+ "version": "0.0.1",
4
+ "description": "",
5
+ "keywords": [],
6
+ "repository": {
7
+ "type": "git",
8
+ "url": "git+https://github.com/dadajam4/fastkit.git"
9
+ },
10
+ "license": "MIT",
11
+ "author": "dadajam4",
12
+ "type": "module",
13
+ "exports": {
14
+ "./package.json": "./package.json",
15
+ "./dependencies/bundle-require": {
16
+ "import": "./dist/dependencies/bundle-require.mjs"
17
+ },
18
+ "./dependencies/cac": {
19
+ "import": "./dist/dependencies/cac"
20
+ },
21
+ "./dependencies/esbuild": {
22
+ "import": "./dist/dependencies/esbuild"
23
+ },
24
+ "./dependencies/glob": {
25
+ "import": "./dist/dependencies/glob"
26
+ },
27
+ "./dependencies/inquirer": {
28
+ "import": "./dist/dependencies/inquirer"
29
+ },
30
+ "./dependencies/pkg-types": {
31
+ "import": "./dist/dependencies/pkg-types"
32
+ },
33
+ "./dependencies/sort-package-json": {
34
+ "import": "./dist/dependencies/sort-package-json"
35
+ },
36
+ "./dependencies/tsup": {
37
+ "import": "./dist/dependencies/tsup"
38
+ },
39
+ "./cli": {
40
+ "import": "./dist/cli.mjs"
41
+ },
42
+ ".": {
43
+ "import": "./dist/plugboy.mjs"
44
+ }
45
+ },
46
+ "main": "./dist/plugboy.mjs",
47
+ "types": "./dist/plugboy.d.ts",
48
+ "typesVersions": {
49
+ "*": {
50
+ ".": [
51
+ "./dist/plugboy.d.ts"
52
+ ],
53
+ "cli": [
54
+ "./dist/cli.d.ts"
55
+ ],
56
+ "dependencies/*": [
57
+ "./dist/dependencies/*.d.ts"
58
+ ]
59
+ }
60
+ },
61
+ "bin": {
62
+ "plugboy": "./cli.mjs"
63
+ },
64
+ "files": [
65
+ "env.d.ts",
66
+ "cli.mjs",
67
+ "dist"
68
+ ],
69
+ "dependencies": {
70
+ "bundle-require": "^4.0.1",
71
+ "cac": "^6.7.14",
72
+ "esbuild": "^0.17.15",
73
+ "execa": "^7.1.1",
74
+ "glob": "^9.3.4",
75
+ "inquirer": "^9.1.5",
76
+ "pkg-types": "^1.0.2",
77
+ "sort-package-json": "^2.4.1",
78
+ "tsup": "^6.7.0"
79
+ },
80
+ "devDependencies": {
81
+ "@types/inquirer": "^9.0.3"
82
+ },
83
+ "scripts": {
84
+ "build": "tsup",
85
+ "clean": "rm -rf .turbo && rm -rf node_modules && rm -rf dist",
86
+ "eslint": "eslint . --ext ts,tsx,js,vue,html,yaml",
87
+ "eslint:fix": "eslint . --ext ts,tsx,js,vue,html,yaml --fix",
88
+ "lint": "pnpm run eslint",
89
+ "format": "pnpm run eslint:fix",
90
+ "typecheck": "tsc --noEmit --skipLibCheck",
91
+ "test": "vitest run"
92
+ }
93
+ }