@blueprintui/cli 0.0.1 → 0.0.4

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 ADDED
@@ -0,0 +1 @@
1
+ 16.15.0
package/LICENSE.md ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2022 Crylan Software LLC
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,17 @@
1
+ # BlueprintUI CLI (alpha)
2
+
3
+ [![npm version](https://badge.fury.io/js/@blueprintui%2Fcli.svg)](https://badge.fury.io/js/@blueprintui%2Fcli)
4
+
5
+ ## Opinionated CLI for creating Web Component Libraries
6
+
7
+ Blueprint CLI provides an out-of-the-box tool kit for compiling and creating
8
+ Web Component libraries. This project is still an experimental work in progress.
9
+
10
+ | Command | Description |
11
+ | ------------ | ----------------------------- |
12
+ | build | Build library for production |
13
+
14
+ | Options | Description |
15
+ | -------------- | ------------------------------------------ |
16
+ | --config | Path for `blueprint.config.js` file |
17
+ | --watch | Runs build in watch mode for development |
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@blueprintui/cli",
3
- "version": "0.0.1",
3
+ "version": "0.0.4",
4
4
  "description": "",
5
5
  "main": "./index.mjs",
6
6
  "bin": {
@@ -12,7 +12,7 @@
12
12
  "author": "Cory Rylan",
13
13
  "license": "MIT",
14
14
  "dependencies": {
15
- "@custom-elements-manifest/analyzer": "^0.6.1",
15
+ "@custom-elements-manifest/analyzer": "^0.6.2",
16
16
  "@lit/ts-transformers": "^1.1.1",
17
17
  "@rollup/plugin-node-resolve": "^13.3.0",
18
18
  "@rollup/plugin-replace": "^4.0.0",
package/rollup.config.mjs CHANGED
@@ -24,7 +24,7 @@ const exec = promisify(_exec);
24
24
  const __filename = fileURLToPath(import.meta.url);
25
25
  const __dirname = dirname(__filename);
26
26
 
27
- let userConfig = { };;
27
+ let userConfig = { };
28
28
  if (process.env.BLUEPRINTUI_CONFIG) {
29
29
  userConfig = await import(process.env.BLUEPRINTUI_CONFIG);
30
30
  }
@@ -35,10 +35,10 @@ const config = {
35
35
  baseDir: './src',
36
36
  outDir: './dist/lib',
37
37
  entryPoints: ['./src/**/index.ts', './src/include/*.ts'],
38
- tsconfig: './tsconfig.json',
38
+ tsconfig: './tsconfig.lib.json',
39
39
  customElementsManifestConfig: './custom-elements-manifest.config.mjs',
40
40
  sourcemap: false,
41
- ...userConfig.default
41
+ ...userConfig.default.library
42
42
  };
43
43
 
44
44
  const cwd = process.cwd();
@@ -83,8 +83,8 @@ export default [
83
83
  project.prod ? minifyJavaScript() : [],
84
84
  project.prod ? inlinePackageVersion() : [],
85
85
  project.prod ? postClean(): [],
86
- project.prod ? customElementsAnalyzer() : [],
87
86
  project.prod ? packageCheck() : [],
87
+ // project.prod ? customElementsAnalyzer() : [],
88
88
  ],
89
89
  },
90
90
  ];
@@ -122,7 +122,7 @@ function inlinePackageVersion() {
122
122
  }
123
123
 
124
124
  function postClean() {
125
- return del({ targets: [`${project.outDir}/**/.tsbuildinfo`, `${project.outDir}/**/_virtual`, `${project.outDir}/**/*.spec.d.ts`, `${project.outDir}/**/*.performance.d.ts`], hook: 'writeBundle' });
125
+ return del({ targets: [`${project.outDir}/**/.tsbuildinfo`, `${project.outDir}/**/_virtual`], hook: 'writeBundle' });
126
126
  }
127
127
 
128
128
  function packageCheck() {
@@ -134,7 +134,6 @@ function customElementsAnalyzer() {
134
134
  return {
135
135
  name: 'custom-elements-analyzer',
136
136
  writeBundle: async () => {
137
- console.log('custom-elements-analyzer');
138
137
  if (copied) {
139
138
  return;
140
139
  } else {