Skip to content

Commit 653a452

Browse files
committedMay 7, 2018
chore: simpler build pipeline using TW features
1 parent 72f10a4 commit 653a452

File tree

2 files changed

+5
-7
lines changed

2 files changed

+5
-7
lines changed
 

‎.travis.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -14,18 +14,18 @@ before_script:
1414
- "(cd tpouch && npm i && gulp travis --production)"
1515
script:
1616
- npm run build-plugin # builds NoteSelf core plugins
17-
- tiddlywiki ./wiki --verbose --build index --build OnlineDemo --build favicon --build library
17+
- tiddlywiki ./wiki --verbose --output ./dist --build index --build OnlineDemo --build favicon --build library
1818
- tiddlywiki ./editions/developer --verbose --build index # build the developer edition
1919
- "(cd ./tpouch && gulp travis)" # Build non minified version of TPouch code ( no --production flag )
2020
- tiddlywiki ./wiki --verbose --build develop # This is the same as the online one, but to a different dist path
2121
# ===== Build the edge version with the latest version of tiddlywiki just to see if it works at all =====
2222
- "npm i tiddlywiki@latest && npx tiddlywiki --version"
2323
- "npx tiddlywiki ./editions/edge --verbose --build index" # build the edge edition (includes not well tested stuff)
24-
- cp -r ./wiki/output/* ./dist/ # Copy everything to the dist directory
25-
# Measures file sizes and adds that data to the pull request
24+
# === Measures file sizes and adds that data to the pull request ===
2625
- python node_modules/travis-weigh-in/weigh_in.py dist/online/index.html
2726
- python node_modules/travis-weigh-in/weigh_in.py dist/dev/index.html
2827
- python node_modules/travis-weigh-in/weigh_in.py dist/index.html
28+
after_script:
2929
- "ls -lR dist"
3030
deploy:
3131
provider: pages

‎editions/developer/tiddlywiki.info

+2-4
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,8 @@
1616
],
1717
"build": {
1818
"index": [
19-
"--rendertiddler",
20-
"$:/core/save/all",
21-
"../../../dist/developer/index.html",
22-
"text/plain"
19+
"--output", "./dist/developer/",
20+
"--rendertiddler", "$:/core/save/all", "index.html", "text/plain"
2321
]
2422
}
2523
}

0 commit comments

Comments
 (0)