retold-content-system 1.0.0 → 1.0.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.
- package/docs/cli.md +2 -2
- package/package.json +21 -6
- package/server.js +1 -1
- package/source/cli/ContentSystem-Server-Setup.js +1 -1
- package/source/cli/commands/ContentSystem-Command-Serve.js +3 -3
- package/web-application/codejar-bundle.js +16 -0
- package/web-application/codemirror-bundle.js +29982 -0
- package/web-application/css/content-system.css +42 -0
- package/web-application/css/github.css +118 -0
- package/web-application/edit.html +25 -0
- package/web-application/index.html +25 -0
- package/web-application/indoctrinate_content_staging/Indoctrinate-Catalog-AppData.json +2912 -0
- package/web-application/js/pict.min.js +12 -0
- package/web-application/js/pict.min.js.map +1 -0
- package/web-application/preview.html +19 -0
- package/web-application/retold-content-system.compatible.js +4833 -0
- package/web-application/retold-content-system.compatible.js.map +1 -0
- package/web-application/retold-content-system.compatible.min.js +89 -0
- package/web-application/retold-content-system.compatible.min.js.map +1 -0
- package/web-application/retold-content-system.js +4832 -0
- package/web-application/retold-content-system.js.map +1 -0
- package/web-application/retold-content-system.min.js +89 -0
- package/web-application/retold-content-system.min.js.map +1 -0
- package/content/Dogs.txt.md +0 -2
- package/content/README.md +0 -35
- package/content/_sidebar.md +0 -3
- package/content/_topbar.md +0 -1
- package/content/cover.md +0 -12
- package/content/getting-started.md +0 -73
package/docs/cli.md
CHANGED
|
@@ -53,7 +53,7 @@ On startup the server prints a banner with all relevant paths and URLs:
|
|
|
53
53
|
Retold Content System running on http://localhost:7042
|
|
54
54
|
Content: /Users/you/my-docs
|
|
55
55
|
Uploads: /Users/you/my-docs/uploads
|
|
56
|
-
Assets: /path/to/retold-content-system/
|
|
56
|
+
Assets: /path/to/retold-content-system/web-application
|
|
57
57
|
Reader: http://localhost:7042/
|
|
58
58
|
Editor: http://localhost:7042/edit.html
|
|
59
59
|
```
|
|
@@ -102,7 +102,7 @@ setupServer(
|
|
|
102
102
|
{
|
|
103
103
|
ContentPath: '/path/to/content',
|
|
104
104
|
UploadPath: '/path/to/content/uploads',
|
|
105
|
-
DistPath: '/path/to/retold-content-system/
|
|
105
|
+
DistPath: '/path/to/retold-content-system/web-application',
|
|
106
106
|
Port: 8080
|
|
107
107
|
},
|
|
108
108
|
function (pError, pServerInfo)
|
package/package.json
CHANGED
|
@@ -1,18 +1,33 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "retold-content-system",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.1",
|
|
4
4
|
"description": "Retold Content System - Markdown content viewer and editor",
|
|
5
5
|
"main": "source/Pict-ContentSystem-Bundle.js",
|
|
6
6
|
"bin": {
|
|
7
7
|
"retold-content-system": "source/cli/ContentSystem-CLI-Run.js",
|
|
8
8
|
"rcs": "source/cli/ContentSystem-CLI-Run.js"
|
|
9
9
|
},
|
|
10
|
+
"files": [
|
|
11
|
+
"source/",
|
|
12
|
+
"web-application/",
|
|
13
|
+
"html/",
|
|
14
|
+
"css/",
|
|
15
|
+
"docs/",
|
|
16
|
+
"server.js",
|
|
17
|
+
"build-codemirror-bundle.js",
|
|
18
|
+
"build-codejar-bundle.js",
|
|
19
|
+
"codemirror-entry.js",
|
|
20
|
+
"codejar-entry.js",
|
|
21
|
+
"README.md",
|
|
22
|
+
"LICENSE"
|
|
23
|
+
],
|
|
10
24
|
"scripts": {
|
|
11
25
|
"start": "node server.js",
|
|
12
26
|
"build": "npx quack build && npx quack copy",
|
|
13
27
|
"build-codemirror": "node build-codemirror-bundle.js",
|
|
14
28
|
"build-codejar": "node build-codejar-bundle.js",
|
|
15
29
|
"build-all": "npm run build-codemirror && npm run build-codejar && npm run build",
|
|
30
|
+
"prepack": "npm run build-all",
|
|
16
31
|
"test": "echo \"Error: no test specified\" && exit 0"
|
|
17
32
|
},
|
|
18
33
|
"author": "steven velozo <steven@velozo.com>",
|
|
@@ -48,23 +63,23 @@
|
|
|
48
63
|
"copyFiles": [
|
|
49
64
|
{
|
|
50
65
|
"from": "./html/*",
|
|
51
|
-
"to": "./
|
|
66
|
+
"to": "./web-application/"
|
|
52
67
|
},
|
|
53
68
|
{
|
|
54
69
|
"from": "./css/**",
|
|
55
|
-
"to": "./
|
|
70
|
+
"to": "./web-application/css/"
|
|
56
71
|
},
|
|
57
72
|
{
|
|
58
73
|
"from": "./node_modules/pict/dist/pict.min.js",
|
|
59
|
-
"to": "./
|
|
74
|
+
"to": "./web-application/js/"
|
|
60
75
|
},
|
|
61
76
|
{
|
|
62
77
|
"from": "./node_modules/pict/dist/pict.min.js.map",
|
|
63
|
-
"to": "./
|
|
78
|
+
"to": "./web-application/js/"
|
|
64
79
|
},
|
|
65
80
|
{
|
|
66
81
|
"from": "./node_modules/highlight.js/styles/github.css",
|
|
67
|
-
"to": "./
|
|
82
|
+
"to": "./web-application/css/"
|
|
68
83
|
}
|
|
69
84
|
]
|
|
70
85
|
}
|
package/server.js
CHANGED
|
@@ -22,7 +22,7 @@ libSetupServer(
|
|
|
22
22
|
{
|
|
23
23
|
ContentPath: libPath.join(__dirname, 'content'),
|
|
24
24
|
UploadPath: libPath.join(__dirname, 'uploads'),
|
|
25
|
-
DistPath: libPath.join(__dirname, '
|
|
25
|
+
DistPath: libPath.join(__dirname, 'web-application'),
|
|
26
26
|
Port: tmpPort
|
|
27
27
|
},
|
|
28
28
|
function (pError, pServerInfo)
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
* @param {object} pOptions
|
|
8
8
|
* @param {string} pOptions.ContentPath - Absolute path to the markdown content folder
|
|
9
9
|
* @param {string} pOptions.UploadPath - Absolute path to the uploads folder
|
|
10
|
-
* @param {string} pOptions.DistPath - Absolute path to the built
|
|
10
|
+
* @param {string} pOptions.DistPath - Absolute path to the built web-application folder
|
|
11
11
|
* @param {number} pOptions.Port - HTTP port to listen on
|
|
12
12
|
* @param {Function} fCallback - Callback(pError, { Fable, Orator, Port })
|
|
13
13
|
*/
|
|
@@ -37,16 +37,16 @@ class ContentSystemCommandServe extends libCommandLineCommand
|
|
|
37
37
|
}
|
|
38
38
|
}
|
|
39
39
|
|
|
40
|
-
let tmpDistPath = libPath.resolve(__dirname, '..', '..', '..', '
|
|
40
|
+
let tmpDistPath = libPath.resolve(__dirname, '..', '..', '..', 'web-application');
|
|
41
41
|
let tmpUploadPath = libPath.join(tmpContentPath, 'uploads');
|
|
42
42
|
let tmpPortOption = parseInt(this.CommandOptions.port, 10);
|
|
43
43
|
let tmpPort = (tmpPortOption > 0) ? tmpPortOption : (7000 + Math.floor(Math.random() * 1000));
|
|
44
44
|
|
|
45
|
-
// Validate
|
|
45
|
+
// Validate web-application path (packaged with the module)
|
|
46
46
|
if (!libFs.existsSync(tmpDistPath))
|
|
47
47
|
{
|
|
48
48
|
this.log.error(`Built assets not found at ${tmpDistPath}. Run 'npm run build-all' in the retold-content-system package first.`);
|
|
49
|
-
return fCallback(new Error('
|
|
49
|
+
return fCallback(new Error('web-application folder not found'));
|
|
50
50
|
}
|
|
51
51
|
|
|
52
52
|
// Ensure content directory exists
|