@reliverse/dler 1.7.56 → 1.7.58

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
@@ -61,13 +61,13 @@ dler excels at managing both build and publish workflows, making it ideal for:
61
61
 
62
62
  ## getting started
63
63
 
64
- ensure git, node.js, and bun/pnpm/yarn/npm (**[bun](https://bun.sh/get) is highly recommended**) are installed. then:
64
+ make sure you have git, node.js, and bun/pnpm/yarn/npm (**[bun](https://bun.sh/get) is highly recommended**) are installed. then:
65
65
 
66
- ### playground
66
+ ### 0. try the playground
67
67
 
68
68
  > **💡 tip**:
69
69
  > want to test dler before integrating it into your project?
70
- > clone the repo and build it using dler itself!
70
+ > clone the dler repo and build it using dler itself!
71
71
 
72
72
  ```sh
73
73
  git clone https://github.com/reliverse/dler.git
@@ -76,75 +76,75 @@ bun i
76
76
  bun dev # bun src/cli.ts --dev
77
77
  ```
78
78
 
79
- ### installation
79
+ ### 1. install dler
80
80
 
81
- 1. **install**:
81
+ **install as dev dep (recommended)**:
82
82
 
83
- **install as dev dep (recommended)**:
83
+ ```sh
84
+ bun add -D @reliverse/dler
85
+ # or update as needed:
86
+ bun update --latest
87
+ ```
84
88
 
85
- ```sh
86
- bun add -D @reliverse/dler
87
- # or update as needed:
88
- bun update --latest
89
- ```
89
+ **and/or install globally**:
90
90
 
91
- **and/or install globally**:
91
+ ```sh
92
+ bun add -g @reliverse/dler
93
+ # or update as needed:
94
+ bun i -g update --latest
95
+ ```
92
96
 
93
- ```sh
94
- bun add -g @reliverse/dler
95
- # or update as needed:
96
- bun i -g update --latest
97
- ```
97
+ - **when installed globally**: use `dler` anywhere.
98
+ - **when installed as dev dep**: use with package manager name prefix, e.g. `bun dler`, inside your project directory.
98
99
 
99
- - **when installed globally**: use `dler` anywhere.
100
- - **when installed as dev dep**: use with package manager name prefix, e.g. `bun dler`, inside your project directory.
100
+ ### 2. prepare your project
101
101
 
102
- 2. **prepare your project**:
102
+ a. **configure `.gitignore`**:
103
103
 
104
- a. **configure `.gitignore`**:
104
+ ```sh
105
+ echo "dist*" >> .gitignore
106
+ echo "logs" >> .gitignore
107
+ ```
105
108
 
106
- ```sh
107
- echo "dist*" >> .gitignore
108
- echo "logs" >> .gitignore
109
- ```
109
+ b. **add `".config/**/*.ts"` to `include` in `tsconfig.json`**:
110
110
 
111
- b. **add `".config/**/*.ts"` to `include` in `tsconfig.json`**:
111
+ ```json
112
+ "include": [".config/**/*.ts", ...]
113
+ ```
112
114
 
113
- ```json
114
- "include": [".config/**/*.ts", ...]
115
- ```
115
+ c. **package.json**:
116
116
 
117
- c. **package.json**:
117
+ ```json
118
+ "scripts": {
119
+ "build": "dler build", // this is optional
120
+ "pub": "dler pub" // this does build+publish
121
+ }
122
+ ```
118
123
 
119
- ```json
120
- "scripts": {
121
- "build": "dler build", // this is optional
122
- "pub": "dler pub" // this does build+publish
123
- }
124
- ```
124
+ d. **initialize config**:
125
125
 
126
- d. **initialize config**:
126
+ ```sh
127
+ bun dler # if installed as dev dep
128
+ dler # if installed globally
129
+ ```
127
130
 
128
- ```sh
129
- bun [build|pub] # if installed as dev dep
130
- dler [build|pub] # if installed globally
131
- ```
131
+ - the `.config/dler.ts` file is automatically created on first run.
132
132
 
133
- - the `.config/dler.ts` file is automatically created on first run.
133
+ e. **optionally, customize `.config/dler.ts`**:
134
134
 
135
- e. **optionally, customize `.config/dler.ts`**:
135
+ - it's recommended to customize this file according to your needs.
136
+ - you can check an example config here: [.config/dler.ts](https://github.com/reliverse/dler/blob/main/.config/dler.ts)
137
+ - 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"]`).
138
+ - 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
139
 
137
- - it's recommended to customize this file according to your needs.
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.
140
+ ### 3. run and enjoy
141
141
 
142
- 3. **run and enjoy**:
142
+ ```sh
143
+ bun dler [build|pub|--help] # if installed as dev dep
144
+ dler [build|pub|--help] # if installed globally
145
+ ```
143
146
 
144
- ```sh
145
- bun dler [build|pub|--help] # if installed as dev dep
146
- dler [build|pub|--help] # if installed globally
147
- ```
147
+ (_run just `dler` to see an interactive list of commands_)
148
148
 
149
149
  ## dler commands
150
150
 
@@ -1,23 +1,24 @@
1
1
  import type { RseConfig } from "./rse-types";
2
2
  export declare const defineConfigRse: (userConfig?: Partial<RseConfig>) => {
3
+ version?: string | undefined;
3
4
  $schema?: "./schema.json" | "https://reliverse.org/schema.json" | undefined;
4
5
  projectName?: string | undefined;
5
6
  projectAuthor?: string | undefined;
6
7
  projectDescription?: string | undefined;
7
- version?: string | undefined;
8
8
  projectLicense?: string | undefined;
9
9
  projectRepository?: string | undefined;
10
10
  projectDomain?: string | undefined;
11
11
  projectGitService?: "none" | "github" | "gitlab" | "bitbucket" | undefined;
12
12
  projectDeployService?: "none" | "vercel" | "netlify" | "railway" | "deno" | undefined;
13
13
  projectPackageManager?: "bun" | "npm" | "yarn" | "pnpm" | undefined;
14
- projectState?: "creating" | "created" | undefined;
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
17
  projectFramework?: "rempts" | "npm-jsr" | "unknown" | "vscode" | "nextjs" | "vite" | "svelte" | "remix" | "astro" | "nuxt" | "solid" | "qwik" | "vue" | "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?: {
21
+ commands?: string[] | undefined;
21
22
  i18n?: boolean | undefined;
22
23
  analytics?: boolean | undefined;
23
24
  themeMode?: "light" | "dark" | "dark-light" | undefined;
@@ -27,12 +28,12 @@ export declare const defineConfigRse: (userConfig?: Partial<RseConfig>) => {
27
28
  testing?: boolean | undefined;
28
29
  docker?: boolean | undefined;
29
30
  ci?: boolean | undefined;
30
- commands?: string[] | undefined;
31
31
  webview?: string[] | undefined;
32
32
  language?: string[] | undefined;
33
33
  themes?: string[] | undefined;
34
34
  } | undefined;
35
35
  preferredLibraries?: {
36
+ search?: "unknown" | "algolia" | undefined;
36
37
  i18n?: "unknown" | "next-intl" | undefined;
37
38
  analytics?: "unknown" | "vercel" | undefined;
38
39
  authentication?: "unknown" | "better-auth" | "clerk" | "next-auth" | "supabase-auth" | "auth0" | undefined;
@@ -51,7 +52,6 @@ export declare const defineConfigRse: (userConfig?: Partial<RseConfig>) => {
51
52
  logging?: "unknown" | "axiom" | undefined;
52
53
  forms?: "unknown" | "react-hook-form" | undefined;
53
54
  notifications?: "unknown" | "sonner" | undefined;
54
- search?: "unknown" | "algolia" | undefined;
55
55
  uploads?: "unknown" | "uploadthing" | undefined;
56
56
  validation?: "unknown" | "zod" | "typebox" | "valibot" | undefined;
57
57
  documentation?: "unknown" | "starlight" | "nextra" | 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?: "all" | "none" | "es5" | undefined;
78
+ trailingComma?: "none" | "all" | "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?: "bun" | "pnpm" | "none" | "turborepo" | "nx" | undefined;
99
+ type?: "none" | "bun" | "pnpm" | "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.56";
2
+ const version = "1.7.58";
3
3
  export async function showStartPrompt(isDev) {
4
4
  await startPrompt({
5
5
  titleColor: "inverse",
@@ -54,6 +54,10 @@ export async function removeLogInternalCalls(targetDir) {
54
54
  /relinka\s*\(\s*["']internal["']\s*,\s*(?:`[^`]*`|'[^']*'|"[^"]*"|(?:[^;]*?,\s*)*[^;]*?)\s*\)\s*;?/g,
55
55
  ""
56
56
  );
57
+ newContent = newContent.replace(
58
+ /relinka\.internal\s*\(\s*(?:`[^`]*`|'[^']*'|"[^"]*"|(?:[^;]*?,\s*)*[^;]*?)\s*\)\s*;?/g,
59
+ ""
60
+ );
57
61
  newContent = newContent.replace(/\n\s*\n\s*\n/g, "\n\n").replace(/^\s*\n/gm, "").replace(/\n\s*$/g, "\n");
58
62
  if (newContent !== content) {
59
63
  await fs.writeFile(filePath, newContent);
package/package.json CHANGED
@@ -5,8 +5,8 @@
5
5
  "@reliverse/reglob": "^1.0.0",
6
6
  "@reliverse/relico": "^1.1.2",
7
7
  "@reliverse/relifso": "^1.4.5",
8
- "@reliverse/relinka": "^1.4.7",
9
- "@reliverse/rempts": "^1.7.29",
8
+ "@reliverse/relinka": "^1.5.3",
9
+ "@reliverse/rempts": "^1.7.40",
10
10
  "@reliverse/runtime": "^1.0.3",
11
11
  "@rollup/plugin-alias": "^5.1.1",
12
12
  "@rollup/plugin-commonjs": "^28.0.6",
@@ -39,7 +39,7 @@
39
39
  "postcss-nested": "^7.0.2",
40
40
  "pretty-bytes": "^7.0.0",
41
41
  "pretty-ms": "^9.2.0",
42
- "rollup": "^4.43.0",
42
+ "rollup": "^4.44.0",
43
43
  "rollup-plugin-dts": "^6.2.1",
44
44
  "scule": "^1.3.0",
45
45
  "semver": "^7.7.2",
@@ -53,7 +53,7 @@
53
53
  "license": "MIT",
54
54
  "name": "@reliverse/dler",
55
55
  "type": "module",
56
- "version": "1.7.56",
56
+ "version": "1.7.58",
57
57
  "keywords": [
58
58
  "reliverse",
59
59
  "cli",