@blueprintui/cli 0.8.1 → 0.9.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 +3 -0
- package/README.md +3 -3
- package/package.json +8 -9
- package/src/custom-elements-manifest.config.mjs +11 -2
- package/src/project/tsconfig.json +1 -1
- package/src/project/tsconfig.lib.json +1 -1
- package/src/rollup.config.mjs +1 -11
- package/src/utils.mjs +2 -2
package/CHANGELOG.md
CHANGED
package/README.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
[](https://badge.fury.io/js/@blueprintui%2Fcli)
|
|
4
4
|
|
|
5
|
-
## Opinionated CLI for creating Web Component Libraries
|
|
5
|
+
## Opinionated Minimal CLI for creating Web Component Libraries
|
|
6
6
|
|
|
7
7
|
Blueprint CLI provides an out-of-the-box tool kit for compiling and creating
|
|
8
8
|
Web Component libraries. This project is still an experimental work in progress.
|
|
@@ -48,10 +48,10 @@ Below are the default values unless otherwise specified.
|
|
|
48
48
|
export default {
|
|
49
49
|
library: {
|
|
50
50
|
externals: [],
|
|
51
|
-
assets: ['./README.md', './LICENSE.md'
|
|
51
|
+
assets: ['./README.md', './LICENSE.md'],
|
|
52
52
|
customElementsManifestLockFile: './custom-elements.lock.json',
|
|
53
53
|
baseDir: './src',
|
|
54
|
-
outDir: './dist
|
|
54
|
+
outDir: './dist',
|
|
55
55
|
entryPoints: ['./src/**/index.ts'],
|
|
56
56
|
tsconfig: './tsconfig.lib.json',
|
|
57
57
|
sourcemap: false,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@blueprintui/cli",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.9.0",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "./index.mjs",
|
|
6
6
|
"bin": {
|
|
@@ -14,30 +14,29 @@
|
|
|
14
14
|
"author": "Crylan Software",
|
|
15
15
|
"license": "MIT",
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"@custom-elements-manifest/analyzer": "0.10.
|
|
17
|
+
"@custom-elements-manifest/analyzer": "0.10.3",
|
|
18
18
|
"@lit/ts-transformers": "2.0.1",
|
|
19
19
|
"@rollup/plugin-node-resolve": "15.2.3",
|
|
20
20
|
"@rollup/plugin-replace": "5.0.7",
|
|
21
21
|
"@rollup/plugin-typescript": "11.1.6",
|
|
22
22
|
"@rollup/plugin-virtual": "3.0.2",
|
|
23
23
|
"@skypack/package-check": "0.2.2",
|
|
24
|
-
"
|
|
25
|
-
"acorn-import-assertions": "1.9.0",
|
|
26
|
-
"browserslist": "4.23.1",
|
|
24
|
+
"browserslist": "4.23.2",
|
|
27
25
|
"commander": "12.1.0",
|
|
26
|
+
"custom-element-vs-code-integration": "1.4.1",
|
|
28
27
|
"glob": "10.4.1",
|
|
29
28
|
"lightningcss": "1.25.1",
|
|
30
29
|
"minify-html-literals": "1.3.5",
|
|
31
30
|
"path": "0.12.7",
|
|
32
|
-
"rollup": "4.
|
|
31
|
+
"rollup": "4.19.0",
|
|
33
32
|
"rollup-plugin-copy": "3.5.0",
|
|
34
33
|
"rollup-plugin-css-modules": "0.1.2",
|
|
35
34
|
"rollup-plugin-delete": "2.0.0",
|
|
36
35
|
"rollup-plugin-shell": "1.0.9",
|
|
37
|
-
"terser": "5.31.
|
|
36
|
+
"terser": "5.31.3",
|
|
38
37
|
"tslib": "2.6.3",
|
|
39
|
-
"typescript": "~5.5.
|
|
40
|
-
"zx": "8.1.
|
|
38
|
+
"typescript": "~5.5.4",
|
|
39
|
+
"zx": "8.1.4"
|
|
41
40
|
},
|
|
42
41
|
"devDependencies": {
|
|
43
42
|
"lite-server": "2.6.1"
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { resolve } from 'path';
|
|
2
|
+
import { customElementVsCodePlugin } from 'custom-element-vs-code-integration';
|
|
2
3
|
|
|
3
4
|
const cwd = process.cwd();
|
|
4
5
|
const baseSrc = resolve(cwd, 'src');
|
|
@@ -10,7 +11,7 @@ if (process.env.BLUEPRINTUI_CONFIG) {
|
|
|
10
11
|
|
|
11
12
|
const config = {
|
|
12
13
|
baseDir: './src',
|
|
13
|
-
outDir: './dist
|
|
14
|
+
outDir: './dist',
|
|
14
15
|
...userConfig?.default?.library
|
|
15
16
|
};
|
|
16
17
|
|
|
@@ -26,7 +27,15 @@ export default {
|
|
|
26
27
|
],
|
|
27
28
|
outdir: config.outDir,
|
|
28
29
|
litelement: true,
|
|
29
|
-
plugins: [
|
|
30
|
+
plugins: [
|
|
31
|
+
tsExtension(),
|
|
32
|
+
baseDir(),
|
|
33
|
+
orderElements(),
|
|
34
|
+
metadata({ tags: ['docs', 'spec', 'status'] }),
|
|
35
|
+
customElementVsCodePlugin({
|
|
36
|
+
outdir: config.outDir
|
|
37
|
+
})
|
|
38
|
+
],
|
|
30
39
|
};
|
|
31
40
|
|
|
32
41
|
function orderElements() {
|
package/src/rollup.config.mjs
CHANGED
|
@@ -60,8 +60,7 @@ export default [
|
|
|
60
60
|
project.prod ? inlinePackageVersion() : [],
|
|
61
61
|
project.prod ? postClean(): [],
|
|
62
62
|
project.prod ? packageCheck() : [],
|
|
63
|
-
project.prod ? customElementsAnalyzer(project) : []
|
|
64
|
-
project.prod ? cleanPackageJson() : []
|
|
63
|
+
project.prod ? customElementsAnalyzer(project) : []
|
|
65
64
|
],
|
|
66
65
|
},
|
|
67
66
|
];
|
|
@@ -105,13 +104,4 @@ function postClean() {
|
|
|
105
104
|
|
|
106
105
|
function packageCheck() {
|
|
107
106
|
return execute({ commands: [`package-check --cwd ${project.outDir}`], sync: true, hook: 'writeBundle' });
|
|
108
|
-
};
|
|
109
|
-
|
|
110
|
-
function cleanPackageJson() {
|
|
111
|
-
return {
|
|
112
|
-
name: 'clean-package-json',
|
|
113
|
-
writeBundle: async () => {
|
|
114
|
-
await fs.writeFile(`${project.outDir}/package.json`, JSON.stringify({ ...project.packageJSON, scripts: undefined, devDependencies: undefined }, null, 2));
|
|
115
|
-
}
|
|
116
|
-
}
|
|
117
107
|
}
|
package/src/utils.mjs
CHANGED
|
@@ -12,10 +12,10 @@ export async function getUserConfig() {
|
|
|
12
12
|
|
|
13
13
|
return {
|
|
14
14
|
externals: [],
|
|
15
|
-
assets: [
|
|
15
|
+
assets: [],
|
|
16
16
|
customElementsManifestLockFile: './custom-elements.lock.json',
|
|
17
17
|
baseDir: './src',
|
|
18
|
-
outDir: './dist
|
|
18
|
+
outDir: './dist',
|
|
19
19
|
entryPoints: ['./src/**/index.ts'],
|
|
20
20
|
tsconfig: './tsconfig.lib.json',
|
|
21
21
|
sourcemap: false,
|