mklauber / tw5-plugins-template

Template Repository for a TiddlyWiki plugin library
MIT License
12 stars 4 forks source link

Feature request: Support Tiddlywiki prerelease #1

Open kookma opened 4 years ago

kookma commented 4 years ago

The repo works great with Tiddlywiki 5.1.21 but it seems the .ytravis.yml should be revised to be able to work with prerelease.

I changed the before_install as below

 before_install:
- git clone --depth 1 https://github.com/Jermolene/TiddlyWiki5.git
  - cd TiddlyWiki5
  - npm link
  - cd ..

but it fails on the next part

script:
  - mkdir -p node_modules/tiddlywiki/plugins/published/
  - cp -r plugins/* node_modules/tiddlywiki/plugins/published
  - ./node_modules/.bin/tiddlywiki . --output output/library --build library
  - ./node_modules/.bin/tiddlywiki . --output output --build gui

travis issues an error on build seems it cannot find the folders above.

kookma commented 4 years ago

@mklauber

I could solve the issue

Change .travis.yml

script:
  - mkdir -p node_modules/tiddlywiki/plugins/published/
  - cp -r plugins/* node_modules/tiddlywiki/plugins/published
  - tiddlywiki . --output output/library --build library
  - tiddlywiki . --output output --build gui

and it will work.

mklauber commented 4 years ago

Hmm... you said it works for you for 5.1.21? I'm looking at the build history, and I'm seeing an error message invalid option "--token=". Are you sure you've setup your GITHUB_API_TOKEN correctly? I think that's what that error is indicating.

kookma commented 4 years ago

Yes, I have! I was able to create the library both for TW5.1.21 and 5.1.22p. My problem right now is how to customize the GUI (of course I change it to docs folder) On the local machine I cannot open the wiki and add new tiddlers to it! I am not sure how you did this.

kookma commented 4 years ago

@mklauber I followed everything as described in the Readme. The build process was successful. Travis shows successful deploy! But the library folder is empty!

I could not find the source of issue as Travis made the library few times but then I added more plugins to plugins folder and it did not deploy the library anymore while it shows the successful build.

More comments: Without Travis I tried to repeat the process using the tiddlywiki.info you provided and I was successful to create the library and upload to GitHub.

So, I think something goes wrong with Travis+GitHub