@jpmorganchase/mosaic-cli 0.1.0-beta.93 → 0.1.0-beta.95

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/fs.config.js +86 -0
  2. package/package.json +14 -13
package/fs.config.js ADDED
@@ -0,0 +1,86 @@
1
+ /** Mosaic fs config -base config that creates a basic site.
2
+ * DO NOT EDIT THIS FILE - edit mosaic.config.js instead with additional config.
3
+ *
4
+ * Refer to the Mosaic documentation for full details
5
+ *
6
+ * pageExtensions: supported file extensions which can be stored in the Virtual File System (VFS) created by Core FS
7
+ * ignorePages: list of files which will be ignored from pulled content,
8
+ * serialisers: define serialisers and deserialisers for the supported file extensions
9
+ * plugins: <...plugin definitions>
10
+ * sources: <...source definitions>
11
+ *
12
+ */
13
+ export default {
14
+ /** Generator name */
15
+ pageExtensions: ['.mdx', '.json'],
16
+ ignorePages: ['shared-config.json', 'sitemap.xml', 'sidebar.json'],
17
+ serialisers: [
18
+ {
19
+ modulePath: '@jpmorganchase/mosaic-serialisers/mdx',
20
+ filter: /\.mdx$/,
21
+ options: {}
22
+ },
23
+ {
24
+ modulePath: '@jpmorganchase/mosaic-serialisers/md',
25
+ filter: /\.md$/,
26
+ options: {}
27
+ }
28
+ ],
29
+ plugins: [
30
+ {
31
+ modulePath: '@jpmorganchase/mosaic-plugins/SearchIndexPlugin',
32
+ previewDisabled: true,
33
+ options: { maxLineLength: 240, maxLineCount: 240 }
34
+ },
35
+ {
36
+ modulePath: '@jpmorganchase/mosaic-plugins/BreadcrumbsPlugin',
37
+ options: {
38
+ indexPageName: 'index.mdx'
39
+ }
40
+ },
41
+ {
42
+ modulePath: '@jpmorganchase/mosaic-plugins/LazyPagePlugin',
43
+ // This plugin must be the very last to run, so it can strip off metadata and content after the other
44
+ // plugins are done with them
45
+ priority: -2,
46
+ // Exclude this plugin in builds
47
+ runTimeOnly: true,
48
+ options: {
49
+ cacheDir: '.tmp/.pull-docs-last-page-plugin-cache'
50
+ }
51
+ },
52
+ // TODO: Remove this plugin once the docs add file extensions in refs
53
+ {
54
+ modulePath: '@jpmorganchase/mosaic-plugins/PagesWithoutFileExtPlugin',
55
+ options: {},
56
+ priority: 1
57
+ },
58
+ {
59
+ modulePath: '@jpmorganchase/mosaic-plugins/SidebarPlugin',
60
+ options: {}
61
+ },
62
+ {
63
+ modulePath: '@jpmorganchase/mosaic-plugins/ReadingTimePlugin',
64
+ options: {}
65
+ },
66
+ {
67
+ modulePath: '@jpmorganchase/mosaic-plugins/SharedConfigPlugin',
68
+ options: {
69
+ filename: 'shared-config.json'
70
+ },
71
+ priority: 3
72
+ },
73
+ {
74
+ modulePath: '@jpmorganchase/mosaic-plugins/TableOfContentsPlugin',
75
+ options: {
76
+ minRank: 2,
77
+ maxRank: 3
78
+ }
79
+ },
80
+ {
81
+ modulePath: '@jpmorganchase/mosaic-plugins/FragmentPlugin',
82
+ options: {}
83
+ }
84
+ ],
85
+ sources: []
86
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jpmorganchase/mosaic-cli",
3
- "version": "0.1.0-beta.93",
3
+ "version": "0.1.0-beta.95",
4
4
  "author": "",
5
5
  "description": "Mosaic command line scripts",
6
6
  "license": "Apache-2.0",
@@ -12,7 +12,8 @@
12
12
  "import": "./dist/index.mjs",
13
13
  "node": "./dist/index.mjs",
14
14
  "default": "./dist/index.mjs"
15
- }
15
+ },
16
+ "./fs.config.js": "./fs.config.js"
16
17
  },
17
18
  "engines": {
18
19
  "node": ">=18.0.0 || >=20.0.0"
@@ -21,10 +22,11 @@
21
22
  "mosaic": "./dist/index.mjs"
22
23
  },
23
24
  "files": [
24
- "dist"
25
+ "dist",
26
+ "fs.config.js"
25
27
  ],
26
28
  "scripts": {
27
- "build": "npm-run-all --parallel build:*",
29
+ "build": "concurrently \"yarn:build:*\"",
28
30
  "build:types": "tsc",
29
31
  "build:cli": "node ./scripts/bundle.mjs",
30
32
  "clean": "rm -fr dist",
@@ -38,24 +40,23 @@
38
40
  "directory": "packages/cli"
39
41
  },
40
42
  "devDependencies": {
41
- "@jpmorganchase/mosaic-types": "^0.1.0-beta.93",
43
+ "@jpmorganchase/mosaic-types": "^0.1.0-beta.95",
44
+ "@types/ws": "^8.5.7",
42
45
  "esbuild": "0.25.0",
43
- "esbuild-node-externals": "^1.0.2",
44
- "fast-glob": "^3.2.7",
45
- "@types/ws": "^8.5.7"
46
+ "esbuild-node-externals": "^1.18.0",
47
+ "fast-glob": "^3.2.7"
46
48
  },
47
49
  "dependencies": {
48
- "@jpmorganchase/mosaic-core": "^0.1.0-beta.93",
49
- "@jpmorganchase/mosaic-plugins": "^0.1.0-beta.93",
50
- "@jpmorganchase/mosaic-standard-generator": "^0.1.0-beta.93",
51
- "@jpmorganchase/mosaic-source-local-folder": "^0.1.0-beta.93",
52
50
  "@aws-sdk/client-s3": "^3.859.0",
53
51
  "@fastify/middie": "^9.0.0",
54
52
  "@fastify/websocket": "^11.0.0",
53
+ "@jpmorganchase/mosaic-core": "^0.1.0-beta.95",
54
+ "@jpmorganchase/mosaic-plugins": "^0.1.0-beta.95",
55
+ "@jpmorganchase/mosaic-source-local-folder": "^0.1.0-beta.95",
55
56
  "commander": "^9.4.1",
56
57
  "cors": "^2.8.5",
57
58
  "deepmerge": "^4.2.2",
58
- "fastify": "^5.3.2",
59
+ "fastify": "^5.6.1",
59
60
  "fastify-plugin": "^5.0.0",
60
61
  "globby": "^13.1.3",
61
62
  "md5": "*",