nwui-cli 0.4.5 → 0.4.7

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.
@@ -1,5 +1,5 @@
1
1
 
2
2
  
3
- > nwui-cli@0.4.5 build /Users/dan/Developer/NativeWindUI/nativewindui/apps/cli
3
+ > nwui-cli@0.4.7 build /Users/dan/Developer/NativeWindUI/nativewindui/apps/cli
4
4
  > tsc && chmod +x ./build/index.js
5
5
 
package/LICENSE ADDED
@@ -0,0 +1,34 @@
1
+ NativeWindUI License
2
+
3
+ This software package includes two types of components: Free Components and Paid Components. The licensing terms for each are outlined below.
4
+
5
+
6
+ Free Components
7
+
8
+ The Free Components are licensed under the MIT License:
9
+
10
+ Permission is hereby granted, free of charge, to any person obtaining a copy of these components and associated documentation files (the "Free Components"), to deal in the Free Components without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Free Components, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Free Components.
13
+
14
+ THE FREE COMPONENTS ARE PROVIDED "AS IS," WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES, OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT, OR OTHERWISE, ARISING FROM, OUT OF, OR IN CONNECTION WITH THE FREE COMPONENTS OR THE USE OR OTHER DEALINGS IN THE FREE COMPONENTS.
15
+
16
+
17
+ Paid Components and Templates
18
+
19
+ The Paid Components and Templates are licensed under the following terms:
20
+
21
+ 1. Ownership: Once incorporated into a project, the Paid Components and/or Templates become part of that project. The user assumes full ownership of their project, including any parts derived from the Paid Components.
22
+
23
+ 2. Non-Competition: The Paid Components or Templates, or any substantial portion thereof, may not be used to create, develop, or distribute any product or service that competes directly with NativeWindUI.
24
+
25
+ 3. Redistribution: The Paid Components or Templates may not be shared, distributed, or sub-licensed to third parties without explicit permission from Ronin Technologies LLC.
26
+
27
+ 4. Term and Termination: The license for the Paid Components and Templates is granted perpetually unless terminated. The license is terminated immediately if the user violates these terms.
28
+
29
+ 5. Disclaimer: THE PAID COMPONENTS AND TEMPLATES ARE PROVIDED "AS IS," WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, OR NON-INFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES, OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT, OR OTHERWISE, ARISING FROM, OUT OF, OR IN CONNECTION WITH THE PAID COMPONENTS OR THE USE OR OTHER DEALINGS IN THE PAID COMPONENTS.
30
+
31
+
32
+ General Terms
33
+
34
+ By using this software, you agree to the above terms. For questions about licensing or to request additional permissions, contact dan@danstepanov.com.
package/build/index.js CHANGED
@@ -11,12 +11,14 @@ import { renderTitle } from './utils/opening.js';
11
11
  const main = async () => {
12
12
  let quiet = false;
13
13
  try {
14
- if (!quiet) {
14
+ if (!process.argv.includes('--quiet') && !process.argv.includes('-q')) {
15
15
  await renderTitle();
16
16
  }
17
17
  }
18
18
  catch (_err) {
19
- console.log(`\n${color.blue('welcome to the')} ${color.cyan('nativewindui cli')}`);
19
+ if (!quiet) {
20
+ console.log(`\n${color.blue('welcome to the')} ${color.cyan('nativewindui cli')}`);
21
+ }
20
22
  }
21
23
  try {
22
24
  switch (process.argv[2]) {
@@ -251,6 +251,10 @@ export const installComponent = async (slugs, overwrite = false, directory = `.$
251
251
  }
252
252
  if (!quiet)
253
253
  console.log("");
254
+ if (!quiet)
255
+ console.log("If you're looking to move even faster, I may be able to help!");
256
+ if (!quiet)
257
+ console.log("- dan@nativewindui.com");
254
258
  };
255
259
  const resolveNormalizedPath = (cwd, filePath) => {
256
260
  return path.join(cwd, ...filePath.replace(/^[~][/]/, '').split('/'));
package/package.json CHANGED
@@ -1,20 +1,13 @@
1
1
  {
2
2
  "name": "nwui-cli",
3
- "version": "0.4.5",
3
+ "version": "0.4.7",
4
4
  "description": "NativeWindUI CLI",
5
5
  "type": "module",
6
6
  "main": "./build/index.js",
7
7
  "bin": {
8
8
  "nwui-cli": "build/index.js"
9
9
  },
10
- "scripts": {
11
- "build": "tsc && chmod +x ./build/index.js",
12
- "dev": "nodemon --watch src/ --ext ts --exec \"pnpm run build\"",
13
- "start": "NODE_ENV=development ./build/index.js",
14
- "typecheck": "tsc --noEmit"
15
- },
16
10
  "devDependencies": {
17
- "@nativewindui/registry": "workspace:*",
18
11
  "@tsconfig/node20": "^20.1.4",
19
12
  "@types/figlet": "^1.5.8",
20
13
  "@types/gradient-string": "^1.1.6",
@@ -22,7 +15,8 @@
22
15
  "@types/node": "^20.14.9",
23
16
  "@types/node-localstorage": "^1.3.3",
24
17
  "nodemon": "^3.1.4",
25
- "typescript": "^5.5.2"
18
+ "typescript": "^5.5.2",
19
+ "@nativewindui/registry": "1.0.0"
26
20
  },
27
21
  "dependencies": {
28
22
  "@clack/core": "~0.3.4",
@@ -37,5 +31,11 @@
37
31
  "open": "^10.1.0",
38
32
  "ora": "^8.0.1",
39
33
  "picocolors": "^1.0.1"
34
+ },
35
+ "scripts": {
36
+ "build": "tsc && chmod +x ./build/index.js",
37
+ "dev": "nodemon --watch src/ --ext ts --exec \"pnpm run build\"",
38
+ "start": "NODE_ENV=development ./build/index.js",
39
+ "typecheck": "tsc --noEmit"
40
40
  }
41
- }
41
+ }