Skip to content

Commit b283170

Browse files
committed
wip
1 parent 7afc9d5 commit b283170

10 files changed

Lines changed: 30 additions & 15 deletions

File tree

.github/workflows/release.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,6 @@ jobs:
2828
- name: Run tests
2929
run: npm test
3030

31-
- name: Build library
32-
run: npm run build
33-
3431
- name: Get version from tag
3532
id: get_version
3633
run: echo "VERSION=${GITHUB_REF#refs/tags/v}" >> $GITHUB_OUTPUT
@@ -50,6 +47,9 @@ jobs:
5047
echo "✅ Version already matches: v$TAG_VERSION"
5148
fi
5249
50+
- name: Build library
51+
run: npm run build
52+
5353
- name: Create release notes
5454
id: release_notes
5555
run: |

dist/build-report.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
2-
"timestamp": "2025-07-29T08:48:07.070Z",
3-
"version": "1.0.0",
2+
"timestamp": "2025-07-29T11:28:39.560Z",
3+
"version": "1.0.1",
44
"files": {
55
"microui.js": {
66
"original": 49772,

dist/microui.esm.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/*! MicroUI v1.0.0 | MIT License | https://github.com/lam0819/microui */
1+
/*! MicroUI v1.0.1 | MIT License | https://github.com/lam0819/microui */
22
function _arrayLikeToArray(r, a) {
33
(null == a || a > r.length) && (a = r.length);
44
for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];
@@ -1659,7 +1659,7 @@ var MicroUI = {
16591659
isVisible: isVisible,
16601660
offset: offset,
16611661
// Version
1662-
version: '1.0.0'
1662+
version: '1.0.1'
16631663
};
16641664

16651665
// For UMD build

dist/microui.esm.js.gz

0 Bytes
Binary file not shown.

dist/microui.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/*! MicroUI v1.0.0 | MIT License | https://github.com/lam0819/microui */
1+
/*! MicroUI v1.0.1 | MIT License | https://github.com/lam0819/microui */
22
(function (global, factory) {
33
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
44
typeof define === 'function' && define.amd ? define(factory) :
@@ -1665,7 +1665,7 @@
16651665
isVisible: isVisible,
16661666
offset: offset,
16671667
// Version
1668-
version: '1.0.0'
1668+
version: '1.0.1'
16691669
};
16701670

16711671
// For UMD build

dist/microui.js.gz

0 Bytes
Binary file not shown.

dist/microui.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.

dist/microui.min.js.gz

0 Bytes
Binary file not shown.

rollup.config.js

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,18 @@
11
import terser from '@rollup/plugin-terser';
22
import babel from '@rollup/plugin-babel';
33
import { nodeResolve } from '@rollup/plugin-node-resolve';
4+
import { readFileSync } from 'fs';
5+
6+
const pkg = JSON.parse(readFileSync('./package.json', 'utf8'));
7+
const banner = `/*! MicroUI v${pkg.version} | MIT License | https://github.com/lam0819/microui */`;
8+
9+
// Simple plugin to replace __VERSION__ with actual version
10+
const replaceVersion = () => ({
11+
name: 'replace-version',
12+
transform(code) {
13+
return code.replace(/__VERSION__/g, pkg.version);
14+
}
15+
});
416

517
export default [
618
// Development build
@@ -10,10 +22,11 @@ export default [
1022
file: 'dist/microui.js',
1123
format: 'umd',
1224
name: 'MicroUI',
13-
banner: '/*! MicroUI v1.0.0 | MIT License | https://github.com/lam0819/microui */'
25+
banner
1426
},
1527
plugins: [
1628
nodeResolve(),
29+
replaceVersion(),
1730
babel({
1831
babelHelpers: 'bundled',
1932
exclude: 'node_modules/**'
@@ -27,10 +40,11 @@ export default [
2740
file: 'dist/microui.min.js',
2841
format: 'umd',
2942
name: 'MicroUI',
30-
banner: '/*! MicroUI v1.0.0 | MIT License | https://github.com/lam0819/microui */'
43+
banner
3144
},
3245
plugins: [
3346
nodeResolve(),
47+
replaceVersion(),
3448
babel({
3549
babelHelpers: 'bundled',
3650
exclude: 'node_modules/**'
@@ -48,10 +62,11 @@ export default [
4862
output: {
4963
file: 'dist/microui.esm.js',
5064
format: 'es',
51-
banner: '/*! MicroUI v1.0.0 | MIT License | https://github.com/lam0819/microui */'
65+
banner
5266
},
5367
plugins: [
5468
nodeResolve(),
69+
replaceVersion(),
5570
babel({
5671
babelHelpers: 'bundled',
5772
exclude: 'node_modules/**'

src/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ const MicroUI = {
8888
offset,
8989

9090
// Version
91-
version: '1.0.0'
91+
version: '__VERSION__'
9292
};
9393

9494
// For UMD build

0 commit comments

Comments
 (0)