@tryghost/mg-ghost-api 0.6.0 → 0.8.0
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 +7 -7
- package/package.json +8 -8
package/README.md
CHANGED
|
@@ -17,7 +17,7 @@ To use this package in your own project:
|
|
|
17
17
|
|
|
18
18
|
or
|
|
19
19
|
|
|
20
|
-
`
|
|
20
|
+
`pnpm add @tryghost/mg-ghost-api`
|
|
21
21
|
|
|
22
22
|
|
|
23
23
|
## Usage
|
|
@@ -88,26 +88,26 @@ See the [Filter documentation](https://docs.ghost.org/content-api/filtering) for
|
|
|
88
88
|
|
|
89
89
|
## Develop
|
|
90
90
|
|
|
91
|
-
This is a mono repository, managed with [Nx](https://nx.dev/) and
|
|
91
|
+
This is a mono repository, managed with [Nx](https://nx.dev/) and pnpm workspaces.
|
|
92
92
|
|
|
93
93
|
Follow the instructions for the top-level repo.
|
|
94
94
|
1. `git clone` this repo & `cd` into it as usual
|
|
95
|
-
2. Run `
|
|
95
|
+
2. Run `pnpm install` to install top-level dependencies.
|
|
96
96
|
|
|
97
97
|
|
|
98
98
|
## Run
|
|
99
99
|
|
|
100
|
-
To run a local development copy, `cd` into this directory, and replace `migrate` with `
|
|
100
|
+
To run a local development copy, `cd` into this directory, and replace `migrate` with `pnpm dev`, like so:
|
|
101
101
|
|
|
102
102
|
```sh
|
|
103
|
-
|
|
103
|
+
pnpm dev ghost --url https://example.com --apikey 1234abcd
|
|
104
104
|
```
|
|
105
105
|
|
|
106
106
|
|
|
107
107
|
## Test
|
|
108
108
|
|
|
109
|
-
- `
|
|
110
|
-
- `
|
|
109
|
+
- `pnpm lint` run just eslint
|
|
110
|
+
- `pnpm test` run lint and tests
|
|
111
111
|
|
|
112
112
|
|
|
113
113
|
# Copyright & License
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tryghost/mg-ghost-api",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.8.0",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "git+https://github.com/TryGhost/migrate.git",
|
|
@@ -10,12 +10,6 @@
|
|
|
10
10
|
"license": "MIT",
|
|
11
11
|
"main": "index.js",
|
|
12
12
|
"type": "module",
|
|
13
|
-
"scripts": {
|
|
14
|
-
"dev": "echo \"Implement me!\"",
|
|
15
|
-
"test": "node --test 'test/**/*.test.js'",
|
|
16
|
-
"posttest": "yarn lint",
|
|
17
|
-
"lint": "eslint . --ext .js --cache"
|
|
18
|
-
},
|
|
19
13
|
"files": [
|
|
20
14
|
"index.js",
|
|
21
15
|
"lib"
|
|
@@ -28,5 +22,11 @@
|
|
|
28
22
|
},
|
|
29
23
|
"dependencies": {
|
|
30
24
|
"@tryghost/admin-api": "1.14.6"
|
|
25
|
+
},
|
|
26
|
+
"scripts": {
|
|
27
|
+
"dev": "echo \"Implement me!\"",
|
|
28
|
+
"test": "node --test 'test/**/*.test.js'",
|
|
29
|
+
"posttest": "pnpm lint",
|
|
30
|
+
"lint": "eslint . --ext .js --cache"
|
|
31
31
|
}
|
|
32
|
-
}
|
|
32
|
+
}
|