Skip to content

Commit 3cd0183

Browse files
committed
feat(dist): created editions (developer, edge, editor...)
1 parent 2b3f629 commit 3cd0183

File tree

4 files changed

+61
-6
lines changed

4 files changed

+61
-6
lines changed

.travis.yml

+5-3
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,17 @@ node_js:
66
- "6"
77
before_install:
88
- "npm i -g tiddlywiki@5.1.14"
9-
- "git clone https://github.com/danielo515/tw5-pouchdb.git pouchdb"
9+
- "git clone https://github.com/danielo515/tw5-pouchdb.git pouchdb" # note that I'm naming the output folders for easier reference later
1010
- "git clone https://github.com/danielo515/tiddlypouch.git tpouch"
1111
- "ls -l"
1212
before_script:
13-
- export TIDDLYWIKI_PLUGIN_PATH="$(pwd)/pouchdb/src/plugins"
13+
- export TIDDLYWIKI_PLUGIN_PATH="$(pwd)/pouchdb/src/plugins:$(pwd)/tpouch/dist:$(pwd)/plugins" # Plugins paths with all deps globally available
1414
- "(cd tpouch && npm i && gulp travis --production)"
15-
- export TIDDLYWIKI_PLUGIN_PATH="$TIDDLYWIKI_PLUGIN_PATH:$(pwd)/tpouch/dist"
1615
script:
16+
- npm run buid-plugin # builds NoteSelf core plugins
1717
- tiddlywiki ./wiki --verbose --build index --build OnlineDemo --build favicon --build library
18+
- tiddlywiki ./editions/developer --verbose --build index # build the developer edition
19+
- tiddlywiki ./editions/edge --verbose --build index # build the edge edition (includes not well tested stuff)
1820
- "(cd ./tpouch && gulp travis)" # Build non minified version of TPouch code ( no --production flag )
1921
- tiddlywiki ./wiki --verbose --build develop # This is the same as the online one, but to a different dist path
2022
- cp -r ./wiki/output/* ./dist/ # Copy everything to the dist directory

editions/developer/tiddlywiki.info

+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
{
2+
"plugins": [
3+
"danielo515/pouchdb",
4+
"danielo515/tiddlypouch",
5+
"tiddlywiki/highlight",
6+
"tiddlywiki/codemirror",
7+
"noteself/core"
8+
],
9+
"themes": [
10+
"tiddlywiki/vanilla",
11+
"tiddlywiki/snowwhite"
12+
],
13+
"languages": [
14+
"en-US"
15+
],
16+
"config": {
17+
"default-tiddler-location": "../src/core/tiddlers"
18+
},
19+
"build": {
20+
"index": [
21+
"--rendertiddler",
22+
"$:/NoteSelf/save/online",
23+
"../../../dist/developer/index.html",
24+
"text/plain"
25+
]
26+
}
27+
}

editions/edge/tiddlywiki.info

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
{
2+
"plugins": [
3+
"danielo515/pouchdb",
4+
"danielo515/tiddlypouch",
5+
"tiddlywiki/highlight",
6+
"noteself/core"
7+
],
8+
"themes": [
9+
"tiddlywiki/vanilla",
10+
"tiddlywiki/snowwhite"
11+
],
12+
"languages": [
13+
"en-US"
14+
],
15+
"config": {
16+
"default-tiddler-location": "../src/core/tiddlers"
17+
},
18+
"build": {
19+
"index": [
20+
"--rendertiddler",
21+
"$:/NoteSelf/save/online",
22+
"../../../dist/edge/index.html",
23+
"text/plain"
24+
]
25+
}
26+
}

package.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,13 @@
66
"scripts": {
77
"add-module": "node .bin/new-file.js",
88
"brocco": "npm run clean && broccoli build",
9-
"dev": "npm run brocco -- ./plugins/noteself",
9+
"buid-plugin": "npm run brocco -- ./plugins/noteself",
1010
"tw": "node -r dotenv/config ./node_modules/tiddlywiki/tiddlywiki.js",
1111
"tw-dev": "nodemon node_modules/tiddlywiki/tiddlywiki.js",
12-
"start": "npm run dev && npm run tw-dev -- ./wiki-dev --verbose --server 8087 $:/core/save/all text/plain text/html '' '' 0.0.0.0",
12+
"start": "npm run buid-plugin && npm run tw-dev -- ./wiki-dev --verbose --server 8087 $:/core/save/all text/plain text/html '' '' 0.0.0.0",
1313
"build": "npm run tw -- ./wiki --verbose --build index --build OnlineDemo",
1414
"clean": "rimraf ./plugins/noteself",
15-
"watch": "nodemon -r dotenv/config --exec 'npm run dev' --watch src",
15+
"watch": "nodemon -r dotenv/config --exec 'npm run buid-plugin' --watch src",
1616
"postinstall": "mkdir plugins"
1717
},
1818
"repository": {

0 commit comments

Comments
 (0)