File tree 4 files changed +61
-6
lines changed
4 files changed +61
-6
lines changed Original file line number Diff line number Diff line change @@ -6,15 +6,17 @@ node_js:
6
6
- " 6"
7
7
before_install :
8
8
- " 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
10
10
- " git clone https://github.com/danielo515/tiddlypouch.git tpouch"
11
11
- " ls -l"
12
12
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
14
14
- " (cd tpouch && npm i && gulp travis --production)"
15
- - export TIDDLYWIKI_PLUGIN_PATH="$TIDDLYWIKI_PLUGIN_PATH:$(pwd)/tpouch/dist"
16
15
script :
16
+ - npm run buid-plugin # builds NoteSelf core plugins
17
17
- 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)
18
20
- " (cd ./tpouch && gulp travis)" # Build non minified version of TPouch code ( no --production flag )
19
21
- tiddlywiki ./wiki --verbose --build develop # This is the same as the online one, but to a different dist path
20
22
- cp -r ./wiki/output/* ./dist/ # Copy everything to the dist directory
Original file line number Diff line number Diff line change
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
+ }
Original file line number Diff line number Diff line change
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
+ }
Original file line number Diff line number Diff line change 6
6
"scripts" : {
7
7
"add-module" : " node .bin/new-file.js" ,
8
8
"brocco" : " npm run clean && broccoli build" ,
9
- "dev " : " npm run brocco -- ./plugins/noteself" ,
9
+ "buid-plugin " : " npm run brocco -- ./plugins/noteself" ,
10
10
"tw" : " node -r dotenv/config ./node_modules/tiddlywiki/tiddlywiki.js" ,
11
11
"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" ,
13
13
"build" : " npm run tw -- ./wiki --verbose --build index --build OnlineDemo" ,
14
14
"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" ,
16
16
"postinstall" : " mkdir plugins"
17
17
},
18
18
"repository" : {
You can’t perform that action at this time.
0 commit comments