@xiping/vite-version 0.0.46 → 0.0.48

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 (3) hide show
  1. package/LICENSE +21 -21
  2. package/README.md +63 -63
  3. package/package.json +2 -2
package/LICENSE CHANGED
@@ -1,21 +1,21 @@
1
- The MIT License (MIT)
2
-
3
- Copyright (c) 2023-present, xiping.wang
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
13
- all 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
21
- THE SOFTWARE.
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2023-present, xiping.wang
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
13
+ all 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
21
+ THE SOFTWARE.
package/README.md CHANGED
@@ -1,64 +1,64 @@
1
- # @xiping/vite-version
2
-
3
- A utility package for managing version information in Vite applications.
4
-
5
- ## Installation
6
-
7
- ```bash
8
- npm install @xiping/vite-version
9
- # or
10
- yarn add @xiping/vite-version
11
- # or
12
- pnpm i @xiping/vite-version
13
- ```
14
-
15
- ## Features
16
-
17
- - Automatically inject version information into your Vite application
18
- - Easy integration with your build process
19
- - Customizable version format
20
- - TypeScript support
21
-
22
- ## Usage
23
-
24
- ```typescript
25
- // vite.config.ts
26
- import { defineConfig } from 'vite'
27
- import viteVersion from '@xiping/vite-version'
28
-
29
- export default defineConfig({
30
- plugins: [
31
- viteVersion()
32
- ]
33
- })
34
- ```
35
-
36
- ## Configuration
37
-
38
- The plugin accepts the following options:
39
-
40
- ```typescript
41
- interface ViteVersionOptions {
42
- filename?: string; // The name of the file to write version information to (default: "version.txt")
43
- outDir?: string; // The output directory to write the file to (default: Vite's build.outDir or "dist")
44
- infoText?: string; // Additional custom information to write to the version file
45
- }
46
- ```
47
-
48
- ### Options Details
49
-
50
- - `filename`: Specifies the name of the file where version information will be written. Defaults to "version.txt".
51
- - `outDir`: Specifies the output directory where the version file will be created. If not provided, it uses Vite's build output directory.
52
- - `infoText`: Additional text content that will be appended to the version file after the build time information.
53
-
54
- The generated version file will contain:
55
- - Build timestamp in the format "YYYY-MM-DD HH:mm:ss"
56
- - Optional additional information specified in `infoText`
57
-
58
- ## License
59
-
60
- MIT
61
-
62
- ## Contributing
63
-
1
+ # @xiping/vite-version
2
+
3
+ A utility package for managing version information in Vite applications.
4
+
5
+ ## Installation
6
+
7
+ ```bash
8
+ npm install @xiping/vite-version
9
+ # or
10
+ yarn add @xiping/vite-version
11
+ # or
12
+ pnpm i @xiping/vite-version
13
+ ```
14
+
15
+ ## Features
16
+
17
+ - Automatically inject version information into your Vite application
18
+ - Easy integration with your build process
19
+ - Customizable version format
20
+ - TypeScript support
21
+
22
+ ## Usage
23
+
24
+ ```typescript
25
+ // vite.config.ts
26
+ import { defineConfig } from 'vite'
27
+ import viteVersion from '@xiping/vite-version'
28
+
29
+ export default defineConfig({
30
+ plugins: [
31
+ viteVersion()
32
+ ]
33
+ })
34
+ ```
35
+
36
+ ## Configuration
37
+
38
+ The plugin accepts the following options:
39
+
40
+ ```typescript
41
+ interface ViteVersionOptions {
42
+ filename?: string; // The name of the file to write version information to (default: "version.txt")
43
+ outDir?: string; // The output directory to write the file to (default: Vite's build.outDir or "dist")
44
+ infoText?: string; // Additional custom information to write to the version file
45
+ }
46
+ ```
47
+
48
+ ### Options Details
49
+
50
+ - `filename`: Specifies the name of the file where version information will be written. Defaults to "version.txt".
51
+ - `outDir`: Specifies the output directory where the version file will be created. If not provided, it uses Vite's build output directory.
52
+ - `infoText`: Additional text content that will be appended to the version file after the build time information.
53
+
54
+ The generated version file will contain:
55
+ - Build timestamp in the format "YYYY-MM-DD HH:mm:ss"
56
+ - Optional additional information specified in `infoText`
57
+
58
+ ## License
59
+
60
+ MIT
61
+
62
+ ## Contributing
63
+
64
64
  Contributions are welcome! Please feel free to submit a Pull Request.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xiping/vite-version",
3
- "version": "0.0.46",
3
+ "version": "0.0.48",
4
4
  "type": "module",
5
5
  "description": "vite-version",
6
6
  "author": "The-End-Hero <527409987@qq.com>",
@@ -25,7 +25,7 @@
25
25
  "bugs": {
26
26
  "url": "https://github.com/The-End-Hero/wang-ping/issues"
27
27
  },
28
- "gitHead": "254054650060e31a8b2f4f8a7ea1113d74b7c5a7",
28
+ "gitHead": "e7e62ae67bb40b5f3d4349e07b19caec17faeff9",
29
29
  "publishConfig": {
30
30
  "access": "public"
31
31
  },