@blueprintui/cli 0.10.0 → 0.11.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/.nvmrc +1 -1
- package/CHANGELOG.md +4 -0
- package/package.json +15 -15
- package/src/index.mjs +3 -2
- package/src/project/blueprint.config.js +1 -1
- package/src/project/index.html +48 -0
- package/src/project/package.json +31 -15
- package/src/project/src/alert/element.css +7 -4
- package/src/project/src/alert/element.ts +1 -1
- package/src/project/src/include/alert.ts +3 -3
- package/src/project/tsconfig.json +1 -5
package/.nvmrc
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
22.
|
|
1
|
+
22.11.0
|
package/CHANGELOG.md
CHANGED
package/package.json
CHANGED
|
@@ -1,41 +1,41 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@blueprintui/cli",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.11.0",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "./index.mjs",
|
|
6
6
|
"bin": {
|
|
7
7
|
"bp": "./src/index.mjs"
|
|
8
8
|
},
|
|
9
9
|
"engines": {
|
|
10
|
-
"node": "22.
|
|
10
|
+
"node": "22.11.0"
|
|
11
11
|
},
|
|
12
12
|
"author": "Crylan Software",
|
|
13
13
|
"license": "MIT",
|
|
14
14
|
"dependencies": {
|
|
15
15
|
"@custom-elements-manifest/analyzer": "0.10.3",
|
|
16
16
|
"@lit/ts-transformers": "2.0.1",
|
|
17
|
-
"@rollup/plugin-node-resolve": "15.
|
|
18
|
-
"@rollup/plugin-replace": "
|
|
19
|
-
"@rollup/plugin-typescript": "
|
|
17
|
+
"@rollup/plugin-node-resolve": "15.3.0",
|
|
18
|
+
"@rollup/plugin-replace": "6.0.1",
|
|
19
|
+
"@rollup/plugin-typescript": "12.1.1",
|
|
20
20
|
"@rollup/plugin-virtual": "3.0.2",
|
|
21
|
-
"@rollup/pluginutils": "5.1.
|
|
22
|
-
"browserslist": "4.
|
|
21
|
+
"@rollup/pluginutils": "5.1.3",
|
|
22
|
+
"browserslist": "4.24.2",
|
|
23
23
|
"commander": "12.1.0",
|
|
24
24
|
"custom-element-vs-code-integration": "1.4.1",
|
|
25
|
-
"glob": "
|
|
26
|
-
"lightningcss": "1.
|
|
25
|
+
"glob": "11.0.0",
|
|
26
|
+
"lightningcss": "1.28.1",
|
|
27
27
|
"minify-html-literals": "1.3.5",
|
|
28
28
|
"path": "0.12.7",
|
|
29
|
-
"publint": "0.2.
|
|
30
|
-
"rollup": "4.
|
|
29
|
+
"publint": "0.2.12",
|
|
30
|
+
"rollup": "4.25.0",
|
|
31
31
|
"rollup-plugin-copy": "3.5.0",
|
|
32
32
|
"rollup-plugin-css-modules": "0.1.2",
|
|
33
33
|
"rollup-plugin-delete": "2.1.0",
|
|
34
34
|
"rollup-plugin-shell": "1.0.9",
|
|
35
|
-
"terser": "5.
|
|
36
|
-
"tslib": "2.
|
|
37
|
-
"typescript": "~5.6.
|
|
38
|
-
"zx": "8.1
|
|
35
|
+
"terser": "5.36.0",
|
|
36
|
+
"tslib": "2.8.1",
|
|
37
|
+
"typescript": "~5.6.3",
|
|
38
|
+
"zx": "8.2.1"
|
|
39
39
|
},
|
|
40
40
|
"devDependencies": {
|
|
41
41
|
"lite-server": "2.6.1"
|
package/src/index.mjs
CHANGED
|
@@ -111,11 +111,12 @@ function buildRollup(args) {
|
|
|
111
111
|
await bundle.close();
|
|
112
112
|
|
|
113
113
|
const { messages } = await spinner('Verifying Package...', async () => await publint({
|
|
114
|
-
strict: true
|
|
114
|
+
strict: true,
|
|
115
|
+
pkgDir: resolve(cwd())
|
|
115
116
|
}));
|
|
116
117
|
|
|
117
118
|
if (messages.length) {
|
|
118
|
-
const pkg = JSON.parse(readFileSync('./package.json', 'utf8'));
|
|
119
|
+
const pkg = JSON.parse(readFileSync(resolve(cwd(),'./package.json'), 'utf8'));
|
|
119
120
|
for (const message of messages) {
|
|
120
121
|
console.log(formatMessage(message, pkg))
|
|
121
122
|
}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
<html lang="en">
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="UTF-8" />
|
|
5
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
6
|
+
<title>Basic HTML Page</title>
|
|
7
|
+
<script type="importmap">
|
|
8
|
+
{
|
|
9
|
+
"imports": {
|
|
10
|
+
"lit": "./node_modules/lit/index.js",
|
|
11
|
+
"lit/": "./node_modules/lit/",
|
|
12
|
+
"@lit/reactive-element": "./node_modules/@lit/reactive-element/reactive-element.js",
|
|
13
|
+
"@lit/reactive-element/": "./node_modules/@lit/reactive-element/",
|
|
14
|
+
"lit-html": "./node_modules/lit-html/lit-html.js",
|
|
15
|
+
"lit-html/": "./node_modules/lit-html/",
|
|
16
|
+
"lit-element/": "./node_modules/lit-element/",
|
|
17
|
+
"tslib": "./node_modules/tslib/tslib.es6.js"
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
</script>
|
|
21
|
+
<style>
|
|
22
|
+
html { box-sizing: border-box; }
|
|
23
|
+
*, *:before, *:after { box-sizing: inherit; }
|
|
24
|
+
|
|
25
|
+
body {
|
|
26
|
+
display: flex;
|
|
27
|
+
flex-direction: column;
|
|
28
|
+
font-family: Helvetica, Arial, "Lucida Grande", sans-serif;
|
|
29
|
+
margin: 0;
|
|
30
|
+
padding: 24px;
|
|
31
|
+
gap: 12px;
|
|
32
|
+
}
|
|
33
|
+
</style>
|
|
34
|
+
</head>
|
|
35
|
+
<body>
|
|
36
|
+
<ui-alert status="neutral" closable>neutral</ui-alert>
|
|
37
|
+
|
|
38
|
+
<ui-alert status="success" closable>success</ui-alert>
|
|
39
|
+
|
|
40
|
+
<ui-alert status="warning" closable>warning</ui-alert>
|
|
41
|
+
|
|
42
|
+
<ui-alert status="danger" closable>danger</ui-alert>
|
|
43
|
+
|
|
44
|
+
<script type="module">
|
|
45
|
+
import './dist/include/alert.js';
|
|
46
|
+
</script>
|
|
47
|
+
</body>
|
|
48
|
+
</html>
|
package/src/project/package.json
CHANGED
|
@@ -1,43 +1,59 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "{{LIBRARY}}",
|
|
3
3
|
"version": "0.0.0",
|
|
4
|
-
"main": "./index.js",
|
|
5
|
-
"module": "./index.js",
|
|
6
|
-
"typings": "./index.d.ts",
|
|
7
4
|
"type": "module",
|
|
8
5
|
"customElements": "./custom-elements.json",
|
|
9
6
|
"homepage": "https://cli.blueprintui.dev",
|
|
10
7
|
"keywords": ["web components", "blueprintui"],
|
|
11
8
|
"license": "MIT",
|
|
12
|
-
"description": "
|
|
9
|
+
"description": "test-project web component library",
|
|
13
10
|
"scripts": {
|
|
14
|
-
"start": "
|
|
15
|
-
"build": "bp build"
|
|
11
|
+
"start": "NODE_NO_WARNINGS=1 serve & npm run build:watch",
|
|
12
|
+
"build": "bp build",
|
|
13
|
+
"build:watch": "bp build --watch"
|
|
16
14
|
},
|
|
17
15
|
"files": [
|
|
18
|
-
"
|
|
16
|
+
"package.json",
|
|
17
|
+
"README.md",
|
|
18
|
+
"LICENSE.md",
|
|
19
|
+
"dist/**/*"
|
|
19
20
|
],
|
|
20
21
|
"sideEffects": [
|
|
21
22
|
"./include/*.js"
|
|
22
23
|
],
|
|
23
24
|
"exports": {
|
|
24
|
-
"./
|
|
25
|
-
".": "./
|
|
26
|
-
"./include
|
|
27
|
-
|
|
25
|
+
"./package.json": "./package.json",
|
|
26
|
+
"./custom-elements.json": "./dist/custom-elements.json",
|
|
27
|
+
"./include/*.js": {
|
|
28
|
+
"types": "./dist/include/*.d.ts",
|
|
29
|
+
"default": "./dist/include/*.js"
|
|
30
|
+
},
|
|
31
|
+
"./*": {
|
|
32
|
+
"types": "./dist/*/index.d.ts",
|
|
33
|
+
"default": "./dist/*/index.js"
|
|
34
|
+
},
|
|
35
|
+
".": {
|
|
36
|
+
"types": "./dist/index.d.ts",
|
|
37
|
+
"default": "./dist/index.js"
|
|
38
|
+
}
|
|
28
39
|
},
|
|
29
40
|
"author": {
|
|
30
41
|
"name": ""
|
|
31
42
|
},
|
|
32
43
|
"repository": {
|
|
33
44
|
"type": "git",
|
|
34
|
-
"url": "https://
|
|
45
|
+
"url": "git+https://github.com/blueprintui/cli.git"
|
|
35
46
|
},
|
|
36
47
|
"dependencies": {
|
|
37
|
-
"lit": "^3.
|
|
48
|
+
"lit": "^3.2.0"
|
|
38
49
|
},
|
|
39
50
|
"devDependencies": {
|
|
40
|
-
"@
|
|
41
|
-
"
|
|
51
|
+
"@lit/reactive-element": "^2.0.4",
|
|
52
|
+
"@blueprintui/cli": "^0.10.0",
|
|
53
|
+
"lit-html": "^3.2.0",
|
|
54
|
+
"lit-element": "^4.1.0",
|
|
55
|
+
"serve": "14.2.3",
|
|
56
|
+
"tslib": "~2.7.0",
|
|
57
|
+
"typescript": "~5.6.2"
|
|
42
58
|
}
|
|
43
59
|
}
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
:host {
|
|
2
2
|
--background: #bed5f2;
|
|
3
3
|
--color: #2d2d2d;
|
|
4
|
-
--font-family: Helvetica, Arial, "Lucida Grande", sans-serif;
|
|
5
4
|
--gap: 12px;
|
|
6
5
|
--padding: 12px;
|
|
6
|
+
font-family: inherit;
|
|
7
7
|
display: block;
|
|
8
8
|
width: 100%;
|
|
9
9
|
}
|
|
10
10
|
|
|
11
11
|
.private-host {
|
|
12
12
|
background: var(--background);
|
|
13
|
-
font-family: var(--font-family);
|
|
14
13
|
color: var(--color);
|
|
15
14
|
gap: var(--gap);
|
|
16
15
|
padding: var(--padding);
|
|
17
16
|
display: flex;
|
|
18
17
|
align-items: center;
|
|
18
|
+
position: relative;
|
|
19
19
|
}
|
|
20
20
|
|
|
21
21
|
[part='icon'] {
|
|
@@ -49,9 +49,12 @@ button {
|
|
|
49
49
|
padding: 0;
|
|
50
50
|
cursor: pointer;
|
|
51
51
|
color: hsla(0, 0%, 0%, 0.4);
|
|
52
|
-
background: hsla(0, 0%, 0%, 0.05);
|
|
53
52
|
}
|
|
54
53
|
|
|
55
54
|
button:hover {
|
|
55
|
+
background: hsla(0, 0%, 0%, 0.05);
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
button:active {
|
|
56
59
|
background: hsla(0, 0%, 0%, 0.1);
|
|
57
|
-
}
|
|
60
|
+
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { Alert } from '
|
|
1
|
+
import { Alert } from '../alert/index.js';
|
|
2
2
|
|
|
3
|
-
customElements.get('
|
|
3
|
+
customElements.get('ui-alert') || customElements.define('ui-alert', Alert);
|
|
4
4
|
|
|
5
5
|
declare global {
|
|
6
6
|
interface HTMLElementTagNameMap {
|
|
7
7
|
'ui-alert': Alert;
|
|
8
8
|
}
|
|
9
|
-
}
|
|
9
|
+
}
|
|
@@ -10,7 +10,6 @@
|
|
|
10
10
|
"resolveJsonModule": true,
|
|
11
11
|
"outDir": "./dist",
|
|
12
12
|
"declaration": true,
|
|
13
|
-
"types": ["jasmine"],
|
|
14
13
|
"alwaysStrict": true,
|
|
15
14
|
"noImplicitAny": true,
|
|
16
15
|
"noImplicitReturns": true,
|
|
@@ -24,10 +23,7 @@
|
|
|
24
23
|
"inlineSourceMap": false,
|
|
25
24
|
"importHelpers": true,
|
|
26
25
|
"baseUrl": "./",
|
|
27
|
-
"rootDir": "./src"
|
|
28
|
-
"paths": {
|
|
29
|
-
"library/*": ["./src/*"]
|
|
30
|
-
}
|
|
26
|
+
"rootDir": "./src"
|
|
31
27
|
},
|
|
32
28
|
"exclude": ["dist", "node_modules"]
|
|
33
29
|
}
|