Releases: Eccenux/wikiploy-rollout-example
v2.1 edit summary
This version is an update to Wikiploy version 2.1 which introduced a setupSummary()
function.
setupSummary is a helper function that can replace your usages of userPrompt
. It prompts a user running wikiploy for a summary of changes. It can optionally add a version number to the full summary of deploy-edits.
Parameters
ployBot
: AWikiploy
bot object. This is required to setup thesummary()
function.version
(optional): The version of your gadget. Defaults to an empty string if not provided.standardSummary
(optional): A string that provides a standard summary. Defaults to "changes from Github".
If your answer to the prompt would be: "fixed bug #123", you would get a full summary: "v5.6.0: fixed bug #123" (v${version}: ${summary}
).
For no answer you would get: "v5.6.0: changes from Github".
Usage
Basic usage:
// custom summary from a prompt
await setupSummary(ployBot);
Version from package:
(async () => {
// custom summary from a prompt
let version = await readVersion('package.json');
await setupSummary(ployBot, version);
// [...]
await ployBot.deploy(configs);
})().catch(err => {
console.error(err);
process.exit(1);
});
v2.0 light and fast
You can use wiki-gadget-example*.zip
files as a starting point for your own project. See usage info in: README-dev-usage.md (a copy is provided both zip files).
In this release:
- Updated to Wikiploy v2.0.
WikiployLite
is now synonymous withWikiploy
. You can use either of the class names. - Uses Browserify to build JS.
- Uses LessCSS to build CSS.
- Uses Mocha/Chai for unit testing.
v1.8 prompt for summary
This repo can now be used as a starting point for your own project. See usage info in: README-dev-usage.md (a copy is provided in zip files).
In this release:
- Wikiploy Lite is now a recommended usage scenario.
- Uses Wikiploy v1.8, which introduced a helper for user prompt, Wikiploy. This makes it easier to ask for a summary when you wikiploy changes.
- Uses Browserify to build JS.
- Uses LessCSS to build CSS.
- Uses Mocha/Chai for unit testing.