ada-ui 5.3.1 → 5.4.0
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/CHANGELOG.md +6 -0
- package/README.md +2 -2
- package/install.js +23 -0
- package/package.json +3 -1
package/CHANGELOG.md
CHANGED
package/README.md
CHANGED
|
@@ -34,10 +34,10 @@ e.g.:
|
|
|
34
34
|
|
|
35
35
|
- Releases are created via GitHub Actions using
|
|
36
36
|
[Changesets](https://github.com/changesets/changesets)
|
|
37
|
-
- When adding changes which
|
|
37
|
+
- When adding changes which need a version update, add a changeset by running
|
|
38
38
|
`npm run changeset`
|
|
39
39
|
- When the changes are done, commit/merge your branch which will create/update a
|
|
40
40
|
Release PR (opened by a bot) that incorporates the changesets to update the
|
|
41
41
|
changelog and version number
|
|
42
42
|
- When ready for release, merge the Release PR
|
|
43
|
-
- For creating prereleases (snapshots),
|
|
43
|
+
- For creating prereleases (snapshots), add a new comment to your PR which contains only `/snapshot`
|
package/install.js
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
|
|
3
|
+
"use strict";
|
|
4
|
+
|
|
5
|
+
import { writeFile, readFile } from "fs/promises";
|
|
6
|
+
import { fileURLToPath } from "url";
|
|
7
|
+
import { resolve, dirname } from "path";
|
|
8
|
+
|
|
9
|
+
const __dirname = dirname(fileURLToPath(import.meta.url));
|
|
10
|
+
|
|
11
|
+
const run = async (theme) => {
|
|
12
|
+
const themeFile = await readFile(
|
|
13
|
+
resolve(__dirname, "css", `ada.${theme}.css`),
|
|
14
|
+
"utf8",
|
|
15
|
+
);
|
|
16
|
+
const baseFile = await readFile(resolve(__dirname, "css", "ada.css"), "utf8");
|
|
17
|
+
|
|
18
|
+
const themeSuffix = theme === "blue" ? "" : `-${theme}`;
|
|
19
|
+
writeFile(`ada${themeSuffix}.css`, themeFile.trim() + baseFile.trim());
|
|
20
|
+
};
|
|
21
|
+
|
|
22
|
+
const theme = process.argv[2] ?? "blue";
|
|
23
|
+
run(theme);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ada-ui",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.4.0",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"dev": "concurrently -n scss,serve 'sass scss:css --watch' 'alive-server .'",
|
|
6
6
|
"build": "rm -rf css && sass scss:css -s compressed --no-source-map",
|
|
@@ -8,6 +8,8 @@
|
|
|
8
8
|
"remove-snapshot": "f(){ if [ -z \"$1\" ]; then echo \"Error: No tag name specified, exiting.\"; exit 1; fi; npm dist-tag rm ada-ui $1; }; f",
|
|
9
9
|
"version": "npm run build && changeset version"
|
|
10
10
|
},
|
|
11
|
+
"bin": "install.js",
|
|
12
|
+
"type": "module",
|
|
11
13
|
"license": "MIT",
|
|
12
14
|
"exports": {
|
|
13
15
|
".": "./css/ada.css",
|