@owdproject/cli 0.0.2 → 0.0.3

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.
Files changed (3) hide show
  1. package/README.md +8 -8
  2. package/bin/owd.js +18 -18
  3. package/package.json +1 -2
package/README.md CHANGED
@@ -6,27 +6,27 @@ This command-line interface (CLI) provides a set of tools to easily manage your
6
6
 
7
7
  To install the CLI globally, run:
8
8
 
9
- `npm install -g owd`
9
+ `npm install -g @owdproject/cli`
10
10
 
11
11
  ## Usage
12
12
 
13
- Once installed, you can use the CLI commands by typing `npx owd` followed by a command.
13
+ Once installed, you can use the CLI commands by typing `npx @owdproject/cli` followed by a command.
14
14
 
15
15
  ### Available Commands
16
16
 
17
- - `npx owd create`: Create a new Open Web Desktop project from a template.
18
- - `npx owd start`: Start the project in development mode (runs Nuxt.js).
19
- - `npx owd generate`: Generate the project for static deployment.
17
+ - `npx @owdproject/cli create`: Create a new Open Web Desktop project from a template.
18
+ - `npx @owdproject/cli start`: Start the project in development mode (runs Nuxt.js).
19
+ - `npx @owdproject/cli generate`: Generate the project for static deployment.
20
20
 
21
21
  For more information on each command, use:
22
22
 
23
- `npx owd <command> --help`
23
+ `npx @owdproject/cli <command> --help`
24
24
 
25
25
  ## Features
26
26
 
27
27
  - Easy setup for new Open Web Desktop projects.
28
- - Allows you to start development mode quickly with `npx owd start`.
29
- - Generates files for static deployment with `npx owd generate`.
28
+ - Allows you to start development mode quickly with `npx @owdproject/cli start`.
29
+ - Generates files for static deployment with `npx @owdproject/cli generate`.
30
30
 
31
31
  ## License
32
32
 
package/bin/owd.js CHANGED
@@ -9,10 +9,9 @@ import fs from 'fs'
9
9
  import path from 'path'
10
10
 
11
11
  import {cloneRepo} from '../src/utils/cloneRepo.js'
12
- import {installPackage} from "../src/utils/installPackage.js";
13
12
 
14
13
  const program = new Command()
15
- const owdGradient = gradient('#0080ff', '#0A4C92')
14
+ const owdGradient = gradient('#0080ff', '#53bdf3', '#0080ff')
16
15
 
17
16
  const logTitle = () => {
18
17
  console.log(owdGradient(`\n
@@ -23,12 +22,12 @@ const logTitle = () => {
23
22
  \\___/ | .__/ \\___|_| |_| \\/ \\/ \\___|_.__/ /___,' \\___||___/_|\\_\\\\__\\___/| .__/
24
23
  |_| |_|
25
24
  \n`))
26
- console.log(chalk.white('Launching Open Web Desktop on your computer'))
27
- console.log(chalk.white('\n───────────────────────────────────────────────────────────\n'))
28
- console.log(chalk.white(' ➜ ') + chalk.whiteBright('npx owd create') + chalk.gray(' Create a new project from the template'))
29
- console.log(chalk.white(' ➜ ') + chalk.whiteBright('npx owd start') + chalk.gray(' Start the dev server for local development'))
30
- console.log(chalk.white(' ➜ ') + chalk.whiteBright('npx owd generate') + chalk.gray(' Generate project for static deployment'))
31
- console.log(chalk.white('\n───────────────────────────────────────────────────────────\n'))
25
+ console.log(chalk.white(summonInspiration()))
26
+ console.log(chalk.white('\n──────────────────────────────────────────────────────────────────────────────\n'))
27
+ console.log(chalk.white(' ➜ ') + chalk.whiteBright('npx @owdproject/cli create') + chalk.gray(' Create a new project from the template'))
28
+ console.log(chalk.white(' ➜ ') + chalk.whiteBright('npx @owdproject/cli start') + chalk.gray(' Start the dev server for local development'))
29
+ console.log(chalk.white(' ➜ ') + chalk.whiteBright('npx @owdproject/cli generate') + chalk.gray(' Generate project for static deployment'))
30
+ console.log(chalk.white('\n──────────────────────────────────────────────────────────────────────────────\n'))
32
31
  }
33
32
 
34
33
  const logServerInfo = () => {
@@ -106,16 +105,17 @@ program.command('generate')
106
105
  }
107
106
  })
108
107
 
109
- export const installAppCommand = (program) => {
110
- program.command('install:app <source>')
111
- .description('Install a new application from a Git or NPM source')
112
- .action((source) => installPackage('Application', source))
113
- }
114
-
115
- export const installThemeCommand = (program) => {
116
- program.command('install:theme <source>')
117
- .description('Install a new theme from a Git or NPM source')
118
- .action((source) => installPackage('Theme', source))
108
+ function summonInspiration() {
109
+ const phrases = [
110
+ "Launching your digital workspace with Open Web Desktop",
111
+ "Unleashing the potential of your browser with Open Web Desktop",
112
+ "Crafting a better web experience with Open Web Desktop",
113
+ "Transforming how you showcase your portfolio on a browser",
114
+ "Bringing your digital garden to life, right in the browser",
115
+ "Opening up new possibilities with Open Web Desktop",
116
+ ];
117
+ const randomIndex = Math.floor(Math.random() * phrases.length);
118
+ return phrases[randomIndex];
119
119
  }
120
120
 
121
121
  program.parse()
package/package.json CHANGED
@@ -1,13 +1,12 @@
1
1
  {
2
2
  "name": "@owdproject/cli",
3
- "version": "0.0.2",
3
+ "version": "0.0.3",
4
4
  "description": "The official CLI for Open Web Desktop",
5
5
  "keywords": [
6
6
  "cli",
7
7
  "open-web-desktop",
8
8
  "owd",
9
9
  "nuxt",
10
- "desktop-environment",
11
10
  "owd-client",
12
11
  "generator"
13
12
  ],