@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 CHANGED
@@ -1 +1 @@
1
- 22.8.0
1
+ 22.11.0
package/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.11.0
4
+ - feat: improved starter project generation
5
+ - fix: bump dependencies
6
+
3
7
  ## 0.10.0
4
8
  - feat: improved package publishing verification
5
9
 
package/package.json CHANGED
@@ -1,41 +1,41 @@
1
1
  {
2
2
  "name": "@blueprintui/cli",
3
- "version": "0.10.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.8.0"
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.2.3",
18
- "@rollup/plugin-replace": "5.0.7",
19
- "@rollup/plugin-typescript": "11.1.6",
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.0",
22
- "browserslist": "4.23.2",
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": "10.4.1",
26
- "lightningcss": "1.25.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.10",
30
- "rollup": "4.21.3",
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.32.0",
36
- "tslib": "2.7.0",
37
- "typescript": "~5.6.2",
38
- "zx": "8.1.6"
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
  }
@@ -2,6 +2,6 @@
2
2
  export default {
3
3
  library: {
4
4
  entryPoints: ['./src/**/index.ts', './src/include/*.ts'],
5
- externals: [/^library/, /^tslib/, /^lit/],
5
+ externals: [/^tslib/, /^lit/],
6
6
  }
7
7
  };
@@ -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>
@@ -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": "{{LIBRARY}} web component library",
9
+ "description": "test-project web component library",
13
10
  "scripts": {
14
- "start": "bp build --watch",
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
- "./custom-elements.json": "./custom-elements.json",
25
- ".": "./index.js",
26
- "./include/*": "./include/*",
27
- "./*": "./*/index.js"
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://cli.blueprintui.dev"
45
+ "url": "git+https://github.com/blueprintui/cli.git"
35
46
  },
36
47
  "dependencies": {
37
- "lit": "^3.1.4"
48
+ "lit": "^3.2.0"
38
49
  },
39
50
  "devDependencies": {
40
- "@blueprintui/cli": "^0.7.1",
41
- "typescript": "~5.4.5"
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,6 +1,6 @@
1
1
  import { html, LitElement } from 'lit';
2
2
  import { property } from 'lit/decorators/property.js';
3
- import styles from './element.css' assert { type: 'css' };
3
+ import styles from './element.css' with { type: 'css' };
4
4
 
5
5
  /**
6
6
  * @element ui-alert
@@ -1,9 +1,9 @@
1
- import { Alert } from 'library/alert';
1
+ import { Alert } from '../alert/index.js';
2
2
 
3
- customElements.get('bp-alert') || customElements.define('ui-alert', Alert);
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
  }