From 596968fa78b67eca9203286e8f6a0bdb347b3a79 Mon Sep 17 00:00:00 2001 From: Serban Iordache Date: Fri, 19 May 2017 09:28:10 +0200 Subject: [PATCH] release 2.2.0 --- build.gradle | 12 ++++++++++++ .../main/resources/public-html/textterm/README.md | 4 ++++ .../main/resources/public-html/textterm/package.json | 11 +++++++++++ 3 files changed, 27 insertions(+) create mode 100644 text-io-web/src/main/resources/public-html/textterm/README.md create mode 100644 text-io-web/src/main/resources/public-html/textterm/package.json diff --git a/build.gradle b/build.gradle index 69d5d841..f06c8ec2 100644 --- a/build.gradle +++ b/build.gradle @@ -402,3 +402,15 @@ bintray { } } } + +task prepareNpm(type: Copy) { + from "text-io-web/src/main/resources/public-html/textterm" + into "build/npm" + filter(ReplaceTokens, tokens:[textIoVersion : textIoVersion]) + filesMatching('*.js') { + filter { String line -> line.replace("var createTextTerm =", "exports.createTextTerm =") } + } + filteringCharset = 'UTF-8' +} + +build.dependsOn prepareNpm diff --git a/text-io-web/src/main/resources/public-html/textterm/README.md b/text-io-web/src/main/resources/public-html/textterm/README.md new file mode 100644 index 00000000..f5b3242d --- /dev/null +++ b/text-io-web/src/main/resources/public-html/textterm/README.md @@ -0,0 +1,4 @@ +The client-side library required by a [Text-IO](https://github.com/beryx/text-io) application that uses a web-based terminal. + + +[Documentation](http://text-io.beryx.org/releases/@textIoVersion@/#web_text_term) diff --git a/text-io-web/src/main/resources/public-html/textterm/package.json b/text-io-web/src/main/resources/public-html/textterm/package.json new file mode 100644 index 00000000..2240f0eb --- /dev/null +++ b/text-io-web/src/main/resources/public-html/textterm/package.json @@ -0,0 +1,11 @@ +{ + "name": "text-io", + "version": "@textIoVersion@", + "description": "The client-side library required by a Text-IO application that uses the WebTextTerminal.", + "main": "textterm.js", + "scripts": { + "test": "echo \"Error: no test specified\" && exit 1" + }, + "author": "Serban Iordache (http://www.beryx.org)", + "license": "Apache-2.0" +}