Skip to content

Commit

Permalink
Merge branch 'release/v3.0.1'
Browse files Browse the repository at this point in the history
  • Loading branch information
VincentLoy committed Dec 29, 2024
2 parents 0cd9371 + 98a74ca commit 1d57cac
Show file tree
Hide file tree
Showing 11 changed files with 36 additions and 15 deletions.
Binary file modified bun.lockb
Binary file not shown.
4 changes: 2 additions & 2 deletions dist/simplyCountdown.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/simplyCountdown.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/simplyCountdown.umd.js.map

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions docs/dist/assets/main.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/dist/assets/main.min.js.map

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions docs/dist/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
"@context": "https://schema.org",
"@type": "SoftwareSourceCode",
"name": "simplyCountdown.js",
"version": "3.0.0",
"version": "3.0.1",
"programmingLanguage": "JavaScript",
"author": {
"@type": "Person",
Expand Down Expand Up @@ -91,7 +91,7 @@ <h1 class="text-3xl sm:text-4xl md:text-6xl font-bold mb-4" itemprop="name">
</div>

<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">
v3.0.0
v3.0.1
</span>

<span class="text-xs">MIT License</span>
Expand Down
4 changes: 2 additions & 2 deletions docs/src/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
"@context": "https://schema.org",
"@type": "SoftwareSourceCode",
"name": "simplyCountdown.js",
"version": "3.0.0",
"version": "__SCD_VERSION__",
"programmingLanguage": "JavaScript",
"author": {
"@type": "Person",
Expand Down Expand Up @@ -89,7 +89,7 @@ <h1 class="text-3xl sm:text-4xl md:text-6xl font-bold mb-4" itemprop="name">
</div>

<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">
v3.0.0
v__SCD_VERSION__
</span>

<span class="text-xs">MIT License</span>
Expand Down
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "simplycountdown.js",
"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.",
"version": "3.0.0",
"version": "3.0.1",
"type": "module",
"homepage": "http://vincentloy.github.io/simplyCountdown.js",
"author": {
Expand Down Expand Up @@ -71,6 +71,7 @@
"tailwindcss": "^3.4.17",
"terser": "^5.26.0",
"typescript": "^5.3.3",
"vite": "^5.0.0"
"vite": "^5.0.0",
"vite-plugin-replace": "^0.1.1"
}
}
4 changes: 2 additions & 2 deletions src/core/simplyCountdown.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
/*!
* Project : simplyCountdown.js
* Date : 2024-12-27
* Date : __SCD_BUILD_DATE__
* License : MIT
* Version : 3.0.0
* Version : __SCD_VERSION__
* Author : Vincent Loy-Serre
* Contributors :
* - Justin Beasley
Expand Down
20 changes: 20 additions & 0 deletions vite.config.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,28 @@
import { defineConfig } from "vite";
import { resolve } from "path";
import pkg from "./package.json";
import { replaceCodePlugin } from "vite-plugin-replace";

// Configuration commune
const commonConfig = {
sourcemap: true,
};

const commonPlugins = [
replaceCodePlugin({
replacements: [
{
from: /__SCD_BUILD_DATE__/g,
to: new Date().toISOString().split("T")[0],
},
{
from: /__SCD_VERSION__/g,
to: pkg.version,
},
],
}),
];

// Configuration pour le build ES
const esConfig = defineConfig({
build: {
Expand All @@ -29,6 +46,7 @@ const esConfig = defineConfig({
},
},
},
plugins: commonPlugins,
});

// Configuration pour le build UMD
Expand Down Expand Up @@ -65,6 +83,7 @@ const umdConfig = defineConfig({
},
},
},
plugins: commonPlugins,
});

// Configuration pour la documentation
Expand Down Expand Up @@ -95,6 +114,7 @@ const docsConfig = defineConfig({
},
},
},
plugins: commonPlugins,
});

// Export la configuration en fonction du mode
Expand Down

0 comments on commit 1d57cac

Please sign in to comment.