@tryghost/mg-jekyll-export 0.3.44 → 0.5.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 +1 -1
- package/lib/process.js +7 -1
- package/package.json +10 -7
package/README.md
CHANGED
|
@@ -89,7 +89,7 @@ This will process all posts from the zip file, and all authors will have an emai
|
|
|
89
89
|
|
|
90
90
|
## Develop
|
|
91
91
|
|
|
92
|
-
This is a mono repository, managed with [
|
|
92
|
+
This is a mono repository, managed with [Nx](https://nx.dev/) and yarn workspaces.
|
|
93
93
|
|
|
94
94
|
Follow the instructions for the top-level repo.
|
|
95
95
|
1. `git clone` this repo & `cd` into it as usual
|
package/lib/process.js
CHANGED
|
@@ -16,7 +16,13 @@ export default (input, options = {}) => {
|
|
|
16
16
|
};
|
|
17
17
|
|
|
18
18
|
if (input.posts && input.posts.length > 0) {
|
|
19
|
-
output.posts =
|
|
19
|
+
output.posts = [];
|
|
20
|
+
for (let i = 0; i < input.posts.length; i++) {
|
|
21
|
+
const post = input.posts[i];
|
|
22
|
+
if (post) {
|
|
23
|
+
output.posts.push(processPost(post.fileName, post.fileContents, globalUser, options));
|
|
24
|
+
}
|
|
25
|
+
}
|
|
20
26
|
}
|
|
21
27
|
|
|
22
28
|
return output;
|
package/package.json
CHANGED
|
@@ -1,8 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tryghost/mg-jekyll-export",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.5.0",
|
|
4
4
|
"description": "tbc",
|
|
5
|
-
"repository":
|
|
5
|
+
"repository": {
|
|
6
|
+
"type": "git",
|
|
7
|
+
"url": "git+https://github.com/TryGhost/migrate.git",
|
|
8
|
+
"directory": "packages/mg-jekyll-export"
|
|
9
|
+
},
|
|
6
10
|
"author": "Ghost Foundation",
|
|
7
11
|
"license": "MIT",
|
|
8
12
|
"main": "index.js",
|
|
@@ -10,8 +14,8 @@
|
|
|
10
14
|
"scripts": {
|
|
11
15
|
"dev": "echo \"Implement me!\"",
|
|
12
16
|
"test": "node --test 'test/**/*.test.js'",
|
|
13
|
-
"
|
|
14
|
-
"
|
|
17
|
+
"posttest": "yarn lint",
|
|
18
|
+
"lint": "eslint . --ext .js --cache"
|
|
15
19
|
},
|
|
16
20
|
"files": [
|
|
17
21
|
"index.js",
|
|
@@ -25,11 +29,10 @@
|
|
|
25
29
|
},
|
|
26
30
|
"dependencies": {
|
|
27
31
|
"@tryghost/errors": "3.0.3",
|
|
28
|
-
"@tryghost/mg-fs-utils": "0.
|
|
32
|
+
"@tryghost/mg-fs-utils": "0.18.0",
|
|
29
33
|
"@tryghost/string": "0.3.1",
|
|
30
34
|
"cheerio": "1.2.0",
|
|
31
35
|
"front-matter": "4.0.2",
|
|
32
36
|
"markdown-it": "14.1.1"
|
|
33
|
-
}
|
|
34
|
-
"gitHead": "dfaf02f58e6598ec4abb56a568eb1b6a65ee12f4"
|
|
37
|
+
}
|
|
35
38
|
}
|