Skip to content

Commit 847edfe

Browse files
committed
feat: apply {{source}} to key where you want the source to be stored
1 parent 15811ef commit 847edfe

File tree

8 files changed

+83
-381
lines changed

8 files changed

+83
-381
lines changed

CoCreate.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@ module.exports = {
88
{
99
"entry": "./docs/index.html",
1010
"collection": "files",
11-
"key": "src",
1211
"document": {
1312
"_id": "601460b19f64ba1680b8669b",
1413
"name": "index.html",
1514
"path": "/docs/docs/index.html",
15+
"src": "{{source}}",
1616
"domains": [
1717
"*",
1818
"general.cocreate.app"

demo/CoCreate-xxx.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
<script>
2525
var CoCreateConfig = {
2626
apiKey: 'c2b08663-06e3-440c-ef6f-13978b42883a',
27-
organization_id: '5de0387b12e200ea63204d6c'
27+
organization_id: '5ff747727005da1c272740ab'
2828
}
2929
</script>
3030

src/extract.js

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,23 @@ const fs = require('fs');
33
const path = require("path")
44
const glob = require('glob');
55
const parseHtmlComments = require('parse-html-comments')
6+
/**
7+
* "extract": {
8+
"directory": "./src/",
9+
"extensions": [
10+
"js",
11+
"css",
12+
"html"
13+
],
14+
"ignores": [
15+
"node_modules",
16+
"vendor",
17+
"bower_components",
18+
"archive"
19+
]
20+
}
621
22+
*/
723
class ExtractComment {
824
constructor() {
925

src/index.1.js

Lines changed: 0 additions & 117 deletions
This file was deleted.

src/index.2.js

Lines changed: 0 additions & 186 deletions
This file was deleted.

0 commit comments

Comments
 (0)