@reliverse/dler 1.7.34 → 1.7.35

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 CHANGED
@@ -131,14 +131,19 @@ bun dev # bun src/cli.ts --dev
131
131
  ```
132
132
 
133
133
  - the `.config/dler.ts` file is automatically created on first run.
134
- - **it's recommended to customize this file according to your needs.**
134
+
135
+ e. **optionally, customize `.config/dler.ts`**:
136
+
137
+ - it's recommended to customize this file according to your needs.
135
138
  - you can check an example config here: [.config/dler.ts](https://github.com/reliverse/dler/blob/main/.config/dler.ts)
139
+ - if you want to build files which have extensions other than `.ts` and `.js`, you can customize `buildPreExtensions` array (example: `["ts", "js", "vue", "tsx", "jsx"]`).
140
+ - if you want to exclude some files from being built, you can customize `buildTemplatesDir` string (example: `"templates"`). by placing them in this directory, they will not be built, whole directory will be copied from e.g. `src/foo/templates` to `dist-*/bin/foo/templates` as-is.
136
141
 
137
142
  3. **run and enjoy**:
138
143
 
139
144
  ```sh
140
- bun [build|pub] # if installed as dev dep
141
- dler [build|pub] # if installed globally
145
+ bun dler [build|pub|--help] # if installed as dev dep
146
+ dler [build|pub|--help] # if installed globally
142
147
  ```
143
148
 
144
149
  ## dler commands
@@ -151,9 +156,27 @@ if you run just `dler` — it will display a list of commands which you can laun
151
156
 
152
157
  ## **available commands**
153
158
 
154
- [agg](#1-agg) [build](#2-build) [check](#3-check) [conv](#4-conv) [copy](#6-copy) [init](#7-init) [inject](#8-inject) [libs](#9-libs) [merge](#10-merge) [migrate](#11-migrate) [pub](#12-pub) [rempts](#13-rempts) [rename](#14-rename) [spell](#15-magic) [split](#16-split) [pack](#17-pack) [unpack](#18-unpack)
159
+ [build](#1-build) [pub](#2-pub) [agg](#3-agg) — [check](#4-check) [conv](#5-conv) [copy](#6-copy) [init](#7-init) [inject](#8-inject) [libs](#9-libs) [merge](#10-merge) [migrate](#11-migrate) [rempts](#12-rempts) [rename](#13-rename) [spell](#14-magic) [split](#15-split) [pack](#16-pack) [unpack](#17-unpack)
160
+
161
+ ### 1. `build`
162
+
163
+ since dler is fully modular, build command is separated for its own build-in plugin as well.
164
+
165
+ ```bash
166
+ bun dler build ...
167
+ ```
168
+
169
+ ### 2. `pub`
170
+
171
+ pub command is separated for its own build-in plugin as well.
155
172
 
156
- ### 1. `agg`
173
+ it already calls build command by itself, so you don't need to run `dler build` separately.
174
+
175
+ ```bash
176
+ bun dler pub ...
177
+ ```
178
+
179
+ ### 3. `agg`
157
180
 
158
181
  generates aggregator file with content like `import { getsomething } from "./utils.js"`.
159
182
 
@@ -174,15 +197,7 @@ bun tools:agg # shortcut for:
174
197
  bun src/cli.ts tools --dev --tool agg --input src/libs/sdk/sdk-impl --out src/libs/sdk/sdk-mod.ts --recursive --named --strip src/libs/sdk
175
198
  ```
176
199
 
177
- ### 2. `build`
178
-
179
- since dler is fully modular, build command is separated for its own build-in plugin as well.
180
-
181
- ```bash
182
- bun dler build ...
183
- ```
184
-
185
- ### 3. `check`
200
+ ### 4. `check`
186
201
 
187
202
  checks your project for common issues and potential improvements. This command performs several types of checks (aka rules of dler):
188
203
 
@@ -248,11 +263,7 @@ dler check --json
248
263
  **pro tip:**
249
264
  the command will prompt you only for the arguments you haven't provided. for example, if you specify `--directory` but not `--checks`, it will only prompt you to select which checks to run.
250
265
 
251
- ### 4. `conv`
252
-
253
- not yet documented.
254
-
255
- ### 5. `deps`
266
+ **how deps check works**:
256
267
 
257
268
  finds missing dependencies in your project by scanning your code for imports and comparing them to your `package.json`. This command is particularly useful for maintaining clean dependency lists and preventing runtime errors.
258
269
 
@@ -298,7 +309,6 @@ dler deps --include-builtins
298
309
  dler deps --all --directory ./src --include-builtins
299
310
  ```
300
311
 
301
- **pro tip:**
302
312
  missing dependencies are shown only once, even if used in multiple files.
303
313
  deep imports like `dep/some/file` or `@org/dep/some/thing` are always resolved to their root package.
304
314
 
@@ -308,6 +318,10 @@ deep imports like `dep/some/file` or `@org/dep/some/thing` are always resolved t
308
318
  - **Dev-only Dependencies**: Packages that are only in `devDependencies` but imported in production code
309
319
  - **Duplicate Dependencies**: Packages listed in both `dependencies` and `devDependencies`
310
320
 
321
+ ### 5. `conv`
322
+
323
+ not yet documented.
324
+
311
325
  ### 6. `copy`
312
326
 
313
327
  ```bash
@@ -600,17 +614,7 @@ dler relinka --input src/app.ts --from relinkaFunction --to consolaObject
600
614
  3. review any file system operations that might need manual updates
601
615
  4. consider using globby's advanced features like pattern matching and recursive searching
602
616
 
603
- ### 12. `pub`
604
-
605
- pub command is separated for its own build-in plugin as well.
606
-
607
- it already calls build command by itself, so you don't need to run `dler build` separately.
608
-
609
- ```bash
610
- bun dler pub ...
611
- ```
612
-
613
- ### 13. `rempts`
617
+ ### 12. `rempts`
614
618
 
615
619
  @reliverse/rempts's best friend. learn more in its [docs](https://github.com/reliverse/rempts).
616
620
 
@@ -619,13 +623,13 @@ bun dler rempts
619
623
  bun dler rempts --init cmd1 cmd2
620
624
  ```
621
625
 
622
- ### 14. `rename`
626
+ ### 13. `rename`
623
627
 
624
628
  ```bash
625
629
  bun dler rename ...
626
630
  ```
627
631
 
628
- ### 15. `magic`
632
+ ### 14. `magic`
629
633
 
630
634
  > Contributors: Please check the [docs/cmds/SPELLS.md](./docs/cmds/SPELLS.md) file for more technical details.
631
635
 
@@ -696,7 +700,7 @@ files: [] // means all files
696
700
 
697
701
  p.s. [see how rse cli uses hooked=true](https://github.com/reliverse/rse/blob/main/src/postbuild.ts)
698
702
 
699
- ### 16. `split`
703
+ ### 15. `split`
700
704
 
701
705
  splits your code/text file into multiple files.
702
706
 
@@ -704,7 +708,7 @@ splits your code/text file into multiple files.
704
708
  bun dler split ...
705
709
  ```
706
710
 
707
- ### 17. `pack`
711
+ ### 16. `pack`
708
712
 
709
713
  packs a directory of templates into TypeScript modules. This command is useful for creating reusable template packages that can be distributed and used by other projects.
710
714
 
@@ -764,7 +768,7 @@ output/
764
768
  └── mod.ts
765
769
  ```
766
770
 
767
- ### 18. `unpack`
771
+ ### 17. `unpack`
768
772
 
769
773
  creates file structure from packed templates. This command is the counterpart to `pack` and is used to extract and restore template files from a packed template package.
770
774
 
@@ -14,7 +14,7 @@ export declare const defineConfigRse: (userConfig?: Partial<RseConfig>) => {
14
14
  projectState?: "created" | "creating" | undefined;
15
15
  projectCategory?: "browser" | "cli" | "unknown" | "website" | "vscode" | "library" | "mobile" | undefined;
16
16
  projectSubcategory?: "unknown" | "e-commerce" | "tool" | undefined;
17
- projectFramework?: "rempts" | "npm-jsr" | "vue" | "unknown" | "vscode" | "nextjs" | "vite" | "svelte" | "remix" | "astro" | "nuxt" | "solid" | "qwik" | "wxt" | "lynx" | "react-native" | "expo" | "capacitor" | "ionic" | "electron" | "tauri" | "neutralino" | "citty" | "commander" | "cac" | "meow" | "yargs" | "webextension" | "browser-extension" | undefined;
17
+ projectFramework?: "npm-jsr" | "rempts" | "vue" | "unknown" | "vscode" | "nextjs" | "vite" | "svelte" | "remix" | "astro" | "nuxt" | "solid" | "qwik" | "wxt" | "lynx" | "react-native" | "expo" | "capacitor" | "ionic" | "electron" | "tauri" | "neutralino" | "citty" | "commander" | "cac" | "meow" | "yargs" | "webextension" | "browser-extension" | undefined;
18
18
  projectTemplate?: "unknown" | "blefnk/relivator-nextjs-template" | "blefnk/relivator-docker-template" | "blefnk/next-react-ts-src-minimal" | "blefnk/all-in-one-nextjs-template" | "blefnk/create-t3-app" | "blefnk/create-next-app" | "blefnk/astro-starlight-template" | "blefnk/versator-nextjs-template" | "blefnk/relivator-lynxjs-template" | "blefnk/relivator-react-native-template" | "reliverse/template-browser-extension" | "microsoft/vscode-extension-samples" | "microsoft/vscode-extension-template" | "rsetarter-template" | "blefnk/deno-cli-tutorial" | undefined;
19
19
  projectTemplateDate?: string | undefined;
20
20
  features?: {
@@ -33,7 +33,6 @@ export declare const defineConfigRse: (userConfig?: Partial<RseConfig>) => {
33
33
  themes?: string[] | undefined;
34
34
  } | undefined;
35
35
  preferredLibraries?: {
36
- cdn?: "unknown" | "cloudflare" | undefined;
37
36
  i18n?: "unknown" | "next-intl" | undefined;
38
37
  analytics?: "unknown" | "vercel" | undefined;
39
38
  authentication?: "unknown" | "better-auth" | "clerk" | "next-auth" | "supabase-auth" | "auth0" | undefined;
@@ -60,6 +59,7 @@ export declare const defineConfigRse: (userConfig?: Partial<RseConfig>) => {
60
59
  mail?: "unknown" | "resend" | undefined;
61
60
  cache?: "unknown" | "redis" | undefined;
62
61
  storage?: "unknown" | "cloudflare" | undefined;
62
+ cdn?: "unknown" | "cloudflare" | undefined;
63
63
  cms?: "unknown" | "contentlayer" | undefined;
64
64
  seo?: "unknown" | "next-seo" | undefined;
65
65
  motion?: "unknown" | "framer" | undefined;
@@ -75,7 +75,7 @@ export declare const defineConfigRse: (userConfig?: Partial<RseConfig>) => {
75
75
  indentStyle?: "space" | "tab" | undefined;
76
76
  quoteMark?: "single" | "double" | undefined;
77
77
  semicolons?: boolean | undefined;
78
- trailingComma?: "none" | "all" | "es5" | undefined;
78
+ trailingComma?: "all" | "none" | "es5" | undefined;
79
79
  bracketSpacing?: boolean | undefined;
80
80
  arrowParens?: "always" | "avoid" | undefined;
81
81
  tabWidth?: number | undefined;
@@ -96,7 +96,7 @@ export declare const defineConfigRse: (userConfig?: Partial<RseConfig>) => {
96
96
  importSymbol?: string | undefined;
97
97
  } | undefined;
98
98
  monorepo?: {
99
- type?: "none" | "bun" | "pnpm" | "turborepo" | "nx" | undefined;
99
+ type?: "bun" | "pnpm" | "none" | "turborepo" | "nx" | undefined;
100
100
  packages?: string[] | undefined;
101
101
  sharedPackages?: string[] | undefined;
102
102
  } | undefined;
@@ -1,5 +1,5 @@
1
1
  import { endPrompt, startPrompt } from "@reliverse/rempts";
2
- const version = "1.7.34";
2
+ const version = "1.7.35";
3
3
  export async function showStartPrompt(isDev) {
4
4
  await startPrompt({
5
5
  titleColor: "inverse",
package/package.json CHANGED
@@ -53,7 +53,7 @@
53
53
  "license": "MIT",
54
54
  "name": "@reliverse/dler",
55
55
  "type": "module",
56
- "version": "1.7.34",
56
+ "version": "1.7.35",
57
57
  "keywords": [
58
58
  "reliverse",
59
59
  "cli",