frontpl 0.6.0 → 0.6.2
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 +6 -0
- package/dist/cli.mjs +1 -1
- package/dist/index.mjs +1 -1
- package/dist/{package-D5wcPeH8.mjs → package-ChZ_08zS.mjs} +12 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -50,6 +50,7 @@ Generated output includes (based on options):
|
|
|
50
50
|
- `.editorconfig`, `.gitignore`, `.gitattributes`
|
|
51
51
|
- `package.json` (+ scripts like optional `lint`, `format:check`, `test`, `build`)
|
|
52
52
|
- `tsconfig.json`, `src/index.ts`
|
|
53
|
+
- Generated `tsconfig.json` enables `allowImportingTsExtensions` for `.ts` import paths
|
|
53
54
|
- Relative TypeScript imports use explicit `.ts` extensions (e.g. generated `src/index.test.ts`)
|
|
54
55
|
- Optional configs: `oxlint.config.ts`, `.oxfmtrc.json`, `tsdown.config.ts`
|
|
55
56
|
- Optional GitHub Actions workflows in `.github/workflows/`
|
|
@@ -57,6 +58,7 @@ Generated output includes (based on options):
|
|
|
57
58
|
When `pnpm workspace mode` is enabled:
|
|
58
59
|
|
|
59
60
|
- Root contains `pnpm-workspace.yaml` and the workspace `package.json`
|
|
61
|
+
- Workspace root `package.json` includes `"type": "module"`
|
|
60
62
|
- `oxlint`/`oxfmt` scripts, dependencies, and config files are generated at the workspace root
|
|
61
63
|
- App/library package is scaffolded under `packages/<name>/` with its own `package.json`, `src`, and `tsconfig.json`
|
|
62
64
|
- If root `oxlint` is enabled, package `package.json` does not add redundant `typecheck: tsc --noEmit`
|
|
@@ -177,6 +179,10 @@ What it does:
|
|
|
177
179
|
- `format:check`: `oxfmt --check`
|
|
178
180
|
- Ensures `devDependencies.oxfmt` exists (defaults to `latest` when missing)
|
|
179
181
|
- Creates or updates `.oxfmtrc.json`
|
|
182
|
+
- Rebuild mode writes baseline formatter options:
|
|
183
|
+
- `$schema: "./node_modules/oxfmt/configuration_schema.json"`
|
|
184
|
+
- `useTabs: false`, `indentWidth: 2`, `lineWidth: 100`
|
|
185
|
+
- `trailingComma: "all"`, `semi: true`, `singleQuote: false`, `arrowParens: "always"`
|
|
180
186
|
- Optionally removes `prettier` / `prettier-plugin-*` / `@prettier/plugin-*` dependencies, `package.json#prettier`, and Prettier config files (`.prettierrc*`, `prettier.config.*`)
|
|
181
187
|
- Optionally installs dependencies with detected package manager
|
|
182
188
|
|
package/dist/cli.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { a as runBump, i as runCi, n as runOxfmt, o as runAdd, r as runOxlint, s as runInit, t as runPackage } from "./package-
|
|
2
|
+
import { a as runBump, i as runCi, n as runOxfmt, o as runAdd, r as runOxlint, s as runInit, t as runPackage } from "./package-ChZ_08zS.mjs";
|
|
3
3
|
import bin from "tiny-bin";
|
|
4
4
|
|
|
5
5
|
//#region src/cli.ts
|
package/dist/index.mjs
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { a as runBump, c as validateProjectName, d as oxlintConfigTemplate, f as packageJsonTemplate, i as runCi, l as githubCliCiWorkflowTemplate, n as runOxfmt, o as runAdd, p as workspaceRootPackageJsonTemplate, r as runOxlint, s as runInit, t as runPackage, u as githubDependabotTemplate } from "./package-
|
|
1
|
+
import { a as runBump, c as validateProjectName, d as oxlintConfigTemplate, f as packageJsonTemplate, i as runCi, l as githubCliCiWorkflowTemplate, n as runOxfmt, o as runAdd, p as workspaceRootPackageJsonTemplate, r as runOxlint, s as runInit, t as runPackage, u as githubDependabotTemplate } from "./package-ChZ_08zS.mjs";
|
|
2
2
|
|
|
3
3
|
export { githubCliCiWorkflowTemplate, githubDependabotTemplate, oxlintConfigTemplate, packageJsonTemplate, runAdd, runBump, runCi, runInit, runOxfmt, runOxlint, runPackage, validateProjectName, workspaceRootPackageJsonTemplate };
|
|
@@ -90,6 +90,7 @@ function tsconfigTemplate() {
|
|
|
90
90
|
target: "ES2022",
|
|
91
91
|
module: "ESNext",
|
|
92
92
|
moduleResolution: "Bundler",
|
|
93
|
+
allowImportingTsExtensions: true,
|
|
93
94
|
strict: true,
|
|
94
95
|
skipLibCheck: true,
|
|
95
96
|
noEmit: true
|
|
@@ -136,7 +137,16 @@ function oxlintConfigTemplate({ useVitest }) {
|
|
|
136
137
|
].join("\n");
|
|
137
138
|
}
|
|
138
139
|
function oxfmtConfigTemplate() {
|
|
139
|
-
return JSON.stringify({
|
|
140
|
+
return JSON.stringify({
|
|
141
|
+
$schema: "./node_modules/oxfmt/configuration_schema.json",
|
|
142
|
+
useTabs: false,
|
|
143
|
+
indentWidth: 2,
|
|
144
|
+
lineWidth: 100,
|
|
145
|
+
trailingComma: "all",
|
|
146
|
+
semi: true,
|
|
147
|
+
singleQuote: false,
|
|
148
|
+
arrowParens: "always"
|
|
149
|
+
}, null, 2) + "\n";
|
|
140
150
|
}
|
|
141
151
|
function tsdownConfigTemplate() {
|
|
142
152
|
return [
|
|
@@ -198,6 +208,7 @@ function workspaceRootPackageJsonTemplate(opts) {
|
|
|
198
208
|
const manifest = {
|
|
199
209
|
name: opts.name,
|
|
200
210
|
private: true,
|
|
211
|
+
type: "module",
|
|
201
212
|
packageManager: opts.packageManager
|
|
202
213
|
};
|
|
203
214
|
if (Object.keys(scripts).length > 0) manifest.scripts = scripts;
|