@craftland/ggpm 0.1.0 → 0.1.1

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 (2) hide show
  1. package/README.md +51 -31
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -1,31 +1,51 @@
1
- # GG Package Manager
2
-
3
- Package Manager for Craftland Packages
4
-
5
- ## Install the CLI
6
-
7
- Once the CLI is published, install it with Node.js and npm:
8
-
9
- ```powershell
10
- npm install -g @craftland/ggpm
11
- ```
12
-
13
- The first version supports `ggpm -v` and `ggpm --version`. Both print the
14
- installed CLI version, such as `0.1.0`.
15
-
16
- npm distributes the CLI. The separate `ggpm-registry` GitHub repo is the
17
- planned home for `registry.json` and the Craftland package ZIPs.
18
-
19
- ## Planned commands
20
-
21
- - `ggpm list` shows available packages and their latest versions.
22
- - `ggpm init` creates `ggpackage.json` at the root of a Craftland project.
23
- - `ggpm install` installs the packages declared in the project manifest.
24
- - `ggpm install <package-name> [version]` installs a package and records it in
25
- the project manifest. Omitting the version selects the latest stable release.
26
- - `ggpm update` updates installed packages to match the versions in the
27
- project manifest.
28
- - `ggpm publish` uploads a package ZIP and updates the registry index.
29
-
30
- ## Note
31
- Reference example packages for a package
1
+ # GG Package Manager
2
+
3
+ Package Manager for Craftland Packages
4
+
5
+ ## Install the CLI
6
+
7
+ Once the CLI is published, install it with Node.js and npm:
8
+
9
+ ```powershell
10
+ npm install -g @craftland/ggpm
11
+ ```
12
+
13
+ The first version supports `ggpm -v` and `ggpm --version`. Both print the
14
+ installed CLI version, such as `0.1.0`.
15
+
16
+ npm distributes the CLI. The separate `ggpm-registry` GitHub repo is the
17
+ planned home for `registry.json` and the Craftland package ZIPs.
18
+
19
+ ## Publish a CLI release
20
+
21
+ Add `NPM_TOKEN` under **Settings → Secrets and variables → Actions** in the
22
+ GitHub repository. Use an npm granular token with publish access to
23
+ `@craftland/ggpm` and **Bypass 2FA** enabled. The project's `.npmrc` reads the
24
+ token from the environment.
25
+
26
+ Commit your changes, including the publish workflow, before creating the tag.
27
+ For example, to release `0.1.1` from `0.1.0`:
28
+
29
+ ```powershell
30
+ npm version patch
31
+ git push origin HEAD
32
+ git push origin v0.1.1
33
+ ```
34
+
35
+ The tag push starts **Publish ggpm to npm** in the repository's Actions tab.
36
+ The workflow checks that the tag matches the version in `package.json` before
37
+ publishing.
38
+
39
+ ## Planned commands
40
+
41
+ - `ggpm list` shows available packages and their latest versions.
42
+ - `ggpm init` creates `ggpackage.json` at the root of a Craftland project.
43
+ - `ggpm install` installs the packages declared in the project manifest.
44
+ - `ggpm install <package-name> [version]` installs a package and records it in
45
+ the project manifest. Omitting the version selects the latest stable release.
46
+ - `ggpm update` updates installed packages to match the versions in the
47
+ project manifest.
48
+ - `ggpm publish` uploads a package ZIP and updates the registry index.
49
+
50
+ ## Note
51
+ Reference example packages for a package
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@craftland/ggpm",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "description": "Package manager for Craftland projects",
5
5
  "bin": {
6
6
  "ggpm": "bin/ggpm.cjs"