├── .gitignore ├── .travis.yml ├── LICENSE ├── README.md ├── gui ├── $__DefaultTiddlers.tid └── Library.tid ├── plugins └── .placeholder └── tiddlywiki.info /.gitignore: -------------------------------------------------------------------------------- 1 | .DS_Store 2 | .c9/ 3 | tmp/ 4 | output/ 5 | node_modules/ 6 | -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- 1 | language: javascript 2 | 3 | before_install: 4 | - npm install tiddlywiki 5 | 6 | install: true 7 | 8 | script: 9 | - mkdir -p node_modules/tiddlywiki/plugins/published/ 10 | - cp -r plugins/* node_modules/tiddlywiki/plugins/published 11 | - ./node_modules/.bin/tiddlywiki . --output output/library --build library 12 | - ./node_modules/.bin/tiddlywiki . --output output --build gui 13 | 14 | deploy: 15 | provider: pages 16 | local-dir: output 17 | skip-cleanup: true 18 | github-token: $GITHUB_TOKEN # Set in travis-ci.org dashboard, marked secure 19 | keep-history: true 20 | on: 21 | branch: master 22 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2018 Matt Lauber 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | 2 | This repository is designed to serve as a template for hosting your plugins in a plugin library. Plugins placed in the plugin 3 | folder will be hosted on the github pages site for this repository automatically, and commits to the `master` branch will 4 | automatically update the library. This README assumes familiarity with git and github. 5 | 6 | 7 | ## Setup: 8 | 9 | * Setup a github.com account if you do not have one. 10 | 11 | * Fork this repository to your own github account. 12 | 13 | * Go to settings on your repo, and most of the way down the page, there will be a section on "Github Pages". You need to select the gh-pages branch as the source. 14 | 15 | * In `gui/Library.tid` replace `{GITHUB PAGES URL}` with the github pages url where you're planning to host this. Typically, 16 | this is of the form `{github username}.github.io/{repo name}.` So for example, if my repository was available at 17 | `https://github.com/mklauber/tw5-plugins` I would replace `{GITHUB PAGES URL}` with `mklauber.github.io/tw5-plugins`. 18 | Commit and push this code to github.com 19 | 20 | * Sign into travis-ci.org with your github credentials. 21 | 22 | * Enable builds for your forked repository. 23 | 24 | * Generate a github token, ala https://help.github.com/articles/creating-a-personal-access-token-for-the-command-line/ to 25 | allows travis-ci to upload to your github pages. You'll need to have repo scope on this token. 26 | 27 | * Go to settings for your travis-ci job and add an environment variable with the name `GITHUB_TOKEN` and the set the value to 28 | the github token string from the previous step. 29 | 30 | * At this point, travis should attempt to build and publish your plugins. If all goes well, you should have a new branch named gh-pages. 31 | 32 | * Finally check your library at 33 | `{github username}.github.io/{repo name}.` 34 | 35 | 36 | -------------------------------------------------------------------------------- /gui/$__DefaultTiddlers.tid: -------------------------------------------------------------------------------- 1 | created: 20180117192907380 2 | modified: 20180117192908405 3 | title: $:/DefaultTiddlers 4 | 5 | Library -------------------------------------------------------------------------------- /gui/Library.tid: -------------------------------------------------------------------------------- 1 | created: 20160309143802331 2 | modified: 20160309204655688 3 | tags: $:/tags/PluginLibrary 4 | title: Library 5 | url: https://{GITHUB PAGES URL}/library/index.html 6 | 7 | The plugin library for the plugins made by mklauber. This library only contains plugins that are mature enough for general use. Be aware that I update these plugins on occasion. 8 | 9 | Copy this link to add the plugin library: [[Library]] 10 | -------------------------------------------------------------------------------- /plugins/.placeholder: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mklauber/tw5-plugins-template/c5de7ddcfb143efebf5ce0b82410e4c5d5ba60b7/plugins/.placeholder -------------------------------------------------------------------------------- /tiddlywiki.info: -------------------------------------------------------------------------------- 1 | { 2 | "description": "TiddlyWiki Plugin Library", 3 | "plugins": [ 4 | "tiddlywiki/pluginlibrary" 5 | ], 6 | "themes": [ 7 | "tiddlywiki/vanilla", 8 | "tiddlywiki/snowwhite" 9 | ], 10 | "includeWikis": [ 11 | ], 12 | "build": { 13 | "library": [ 14 | "--makelibrary","$:/UpgradeLibrary", 15 | "--savelibrarytiddlers","$:/UpgradeLibrary","[prefix[$:/]] -[prefix[$:/plugins/tiddlywiki/]] -[prefix[$:/themes/tiddlywiki/]] -[prefix[$:/languages/]] -[[$:/plugins/tiddlywiki/upgrade]] -[[$:/plugins/tiddlywiki/translators]] -[[$:/plugins/tiddlywiki/pluginlibrary]] -[[$:/plugins/tiddlywiki/jasmine]]","recipes/library/tiddlers/","$:/UpgradeLibrary/List", 16 | "--savetiddler","$:/UpgradeLibrary/List","recipes/library/tiddlers.json", 17 | "--rendertiddler","$:/plugins/tiddlywiki/pluginlibrary/library.template.html","index.html","text/plain"], 18 | "gui": ["--load","gui/", 19 | "--rendertiddler","$:/core/save/all","index.html","text/plain"] 20 | } 21 | } 22 | --------------------------------------------------------------------------------