@embeddable.com/init 0.1.15 → 0.1.17
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 +6 -23
- package/dist/index.js +2 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -59,31 +59,14 @@ npx <path-to-this-repo>
|
|
|
59
59
|
|
|
60
60
|
## Publishing to npm
|
|
61
61
|
|
|
62
|
-
|
|
62
|
+
Publishing happens automatically when code is merged to `main`. The GitHub Action will:
|
|
63
63
|
|
|
64
|
-
1.
|
|
65
|
-
2.
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
```
|
|
64
|
+
1. Build the package
|
|
65
|
+
2. Bump the patch version
|
|
66
|
+
3. Publish to npm
|
|
67
|
+
4. Push the version bump commit back to the repo
|
|
69
68
|
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
1. Update the version in `package.json`:
|
|
73
|
-
```bash
|
|
74
|
-
npm version patch # or minor/major
|
|
75
|
-
```
|
|
76
|
-
|
|
77
|
-
2. Publish to npm:
|
|
78
|
-
```bash
|
|
79
|
-
npm publish --access public
|
|
80
|
-
```
|
|
81
|
-
|
|
82
|
-
The `prepublishOnly` script will automatically run the build before publishing.
|
|
83
|
-
|
|
84
|
-
### Verifying the release
|
|
85
|
-
|
|
86
|
-
After publishing, verify the package is available:
|
|
69
|
+
To verify a release:
|
|
87
70
|
|
|
88
71
|
```bash
|
|
89
72
|
npm view @embeddable.com/init
|
package/dist/index.js
CHANGED
|
@@ -78,7 +78,7 @@ async function main() {
|
|
|
78
78
|
await typewriter(" and the ", void 0, TYPEWRITER_SPEED);
|
|
79
79
|
await typewriter("data", chalk.bold, TYPEWRITER_SPEED);
|
|
80
80
|
await typewriter(" powering your dashboards.\n\n", void 0, TYPEWRITER_SPEED);
|
|
81
|
-
await typewriter("This tool creates a
|
|
81
|
+
await typewriter("This tool creates a ", void 0, TYPEWRITER_SPEED);
|
|
82
82
|
await typewriter("project folder", chalk.bold, TYPEWRITER_SPEED);
|
|
83
83
|
await typewriter(", containing ", void 0, TYPEWRITER_SPEED);
|
|
84
84
|
await typewriter("sample data models", chalk.bold, TYPEWRITER_SPEED);
|
|
@@ -90,7 +90,7 @@ async function main() {
|
|
|
90
90
|
{
|
|
91
91
|
type: "confirm",
|
|
92
92
|
name: "confirmDir",
|
|
93
|
-
message: `Ok to create a new
|
|
93
|
+
message: `Ok to create a new project subfolder in your current directory ${chalk.cyan(cwd)}?`,
|
|
94
94
|
initial: true
|
|
95
95
|
},
|
|
96
96
|
{ onCancel }
|