Skip to content

Commit 1d57cac

Browse files
committed
Merge branch 'release/v3.0.1'
2 parents 0cd9371 + 98a74ca commit 1d57cac

11 files changed

+36
-15
lines changed

bun.lockb

417 Bytes
Binary file not shown.

dist/simplyCountdown.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/simplyCountdown.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/simplyCountdown.umd.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/dist/assets/main.min.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/dist/assets/main.min.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/dist/index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
"@context": "https://schema.org",
4040
"@type": "SoftwareSourceCode",
4141
"name": "simplyCountdown.js",
42-
"version": "3.0.0",
42+
"version": "3.0.1",
4343
"programmingLanguage": "JavaScript",
4444
"author": {
4545
"@type": "Person",
@@ -91,7 +91,7 @@ <h1 class="text-3xl sm:text-4xl md:text-6xl font-bold mb-4" itemprop="name">
9191
</div>
9292

9393
<span class="inline-flex items-center px-3 py-1.5 text-xs font-medium text-indigo-300 bg-indigo-950/50 rounded-full border border-indigo-500/20 shadow-sm shadow-indigo-950/10">
94-
v3.0.0
94+
v3.0.1
9595
</span>
9696

9797
<span class="text-xs">MIT License</span>

docs/src/index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
"@context": "https://schema.org",
4040
"@type": "SoftwareSourceCode",
4141
"name": "simplyCountdown.js",
42-
"version": "3.0.0",
42+
"version": "__SCD_VERSION__",
4343
"programmingLanguage": "JavaScript",
4444
"author": {
4545
"@type": "Person",
@@ -89,7 +89,7 @@ <h1 class="text-3xl sm:text-4xl md:text-6xl font-bold mb-4" itemprop="name">
8989
</div>
9090

9191
<span class="inline-flex items-center px-3 py-1.5 text-xs font-medium text-indigo-300 bg-indigo-950/50 rounded-full border border-indigo-500/20 shadow-sm shadow-indigo-950/10">
92-
v3.0.0
92+
v__SCD_VERSION__
9393
</span>
9494

9595
<span class="text-xs">MIT License</span>

package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "simplycountdown.js",
33
"description": "A lightweight (<5KB) JavaScript countdown library with zero dependencies. Create customizable countdown timers with multiple themes, TypeScript support, and a modern API for websites and web applications.",
4-
"version": "3.0.0",
4+
"version": "3.0.1",
55
"type": "module",
66
"homepage": "http://vincentloy.github.io/simplyCountdown.js",
77
"author": {
@@ -71,6 +71,7 @@
7171
"tailwindcss": "^3.4.17",
7272
"terser": "^5.26.0",
7373
"typescript": "^5.3.3",
74-
"vite": "^5.0.0"
74+
"vite": "^5.0.0",
75+
"vite-plugin-replace": "^0.1.1"
7576
}
7677
}

src/core/simplyCountdown.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
/*!
22
* Project : simplyCountdown.js
3-
* Date : 2024-12-27
3+
* Date : __SCD_BUILD_DATE__
44
* License : MIT
5-
* Version : 3.0.0
5+
* Version : __SCD_VERSION__
66
* Author : Vincent Loy-Serre
77
* Contributors :
88
* - Justin Beasley

vite.config.ts

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,28 @@
11
import { defineConfig } from "vite";
22
import { resolve } from "path";
3+
import pkg from "./package.json";
4+
import { replaceCodePlugin } from "vite-plugin-replace";
35

46
// Configuration commune
57
const commonConfig = {
68
sourcemap: true,
79
};
810

11+
const commonPlugins = [
12+
replaceCodePlugin({
13+
replacements: [
14+
{
15+
from: /__SCD_BUILD_DATE__/g,
16+
to: new Date().toISOString().split("T")[0],
17+
},
18+
{
19+
from: /__SCD_VERSION__/g,
20+
to: pkg.version,
21+
},
22+
],
23+
}),
24+
];
25+
926
// Configuration pour le build ES
1027
const esConfig = defineConfig({
1128
build: {
@@ -29,6 +46,7 @@ const esConfig = defineConfig({
2946
},
3047
},
3148
},
49+
plugins: commonPlugins,
3250
});
3351

3452
// Configuration pour le build UMD
@@ -65,6 +83,7 @@ const umdConfig = defineConfig({
6583
},
6684
},
6785
},
86+
plugins: commonPlugins,
6887
});
6988

7089
// Configuration pour la documentation
@@ -95,6 +114,7 @@ const docsConfig = defineConfig({
95114
},
96115
},
97116
},
117+
plugins: commonPlugins,
98118
});
99119

100120
// Export la configuration en fonction du mode

0 commit comments

Comments
 (0)