primo-cli 0.1.1 → 0.1.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.
package/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Primo CLI
2
2
 
3
- Local development CLI for [Primo](https://primocms.org) - build and edit sites with a visual CMS.
3
+ Local development CLI for [Primo](https://primo.page) - build and edit sites with a visual CMS.
4
4
 
5
5
  ## Installation
6
6
 
@@ -161,7 +161,7 @@ Each site gets its own subdomain: `site-one.localhost:3000`, `site-two.localhost
161
161
 
162
162
  ## Documentation
163
163
 
164
- Full documentation: [docs.primocms.org](https://docs.primocms.org)
164
+ Full documentation: [primo.page/docs](https://primo.page/docs)
165
165
 
166
166
  ## Requirements
167
167
 
package/dist/index.js CHANGED
@@ -12,7 +12,7 @@ const program = new Command();
12
12
  program
13
13
  .name('primo')
14
14
  .description('Build sites visually, edit them anywhere')
15
- .version('0.1.1');
15
+ .version('0.1.3');
16
16
  program
17
17
  .command('new [name]')
18
18
  .description('Create a new site and start local CMS')
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "primo-cli",
3
- "version": "0.1.1",
3
+ "version": "0.1.3",
4
4
  "description": "Local development CLI for Primo",
5
5
  "type": "module",
6
6
  "bin": {
@@ -9,13 +9,14 @@
9
9
  "scripts": {
10
10
  "build": "tsc",
11
11
  "dev": "tsc --watch",
12
- "prepublishOnly": "npm run build"
12
+ "prepublishOnly": "npm run build",
13
+ "postinstall": "node scripts/postinstall.js"
13
14
  },
14
15
  "repository": {
15
16
  "type": "git",
16
17
  "url": "git+https://github.com/palacms/cli.git"
17
18
  },
18
- "homepage": "https://primocms.org",
19
+ "homepage": "https://primo.page",
19
20
  "bugs": {
20
21
  "url": "https://github.com/palacms/cli/issues"
21
22
  },
@@ -45,7 +46,8 @@
45
46
  "typescript": "^5.3.3"
46
47
  },
47
48
  "files": [
48
- "dist"
49
+ "dist",
50
+ "scripts"
49
51
  ],
50
52
  "engines": {
51
53
  "node": ">=18.0.0"
@@ -0,0 +1,16 @@
1
+ #!/usr/bin/env node
2
+
3
+ const message = `
4
+ ┌─────────────────────────────────────────┐
5
+ │ │
6
+ │ Primo CLI installed successfully │
7
+ │ │
8
+ │ Get started: │
9
+ │ $ primo new my-site │
10
+ │ │
11
+ │ Docs: https://primo.page/docs │
12
+ │ │
13
+ └─────────────────────────────────────────┘
14
+ `
15
+
16
+ console.log(message)