summaryrefslogtreecommitdiff
path: root/src/common/build
diff options
context:
space:
mode:
authorsyuilo <syuilotan@yahoo.co.jp>2018-01-01 02:08:41 +0900
committersyuilo <syuilotan@yahoo.co.jp>2018-01-01 02:08:41 +0900
commit88e4f1b287e9fa6be12b5a2277073265d6732527 (patch)
treee57d73ac9c20358f58c679ae57937c6b0c2e77cc /src/common/build
parentUpdate dependencies :rocket: (diff)
downloadmisskey-88e4f1b287e9fa6be12b5a2277073265d6732527.tar.gz
misskey-88e4f1b287e9fa6be12b5a2277073265d6732527.tar.bz2
misskey-88e4f1b287e9fa6be12b5a2277073265d6732527.zip
:v:
Diffstat (limited to 'src/common/build')
-rw-r--r--src/common/build/license.ts13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/common/build/license.ts b/src/common/build/license.ts
new file mode 100644
index 0000000000..e5c264df8a
--- /dev/null
+++ b/src/common/build/license.ts
@@ -0,0 +1,13 @@
+import * as fs from 'fs';
+
+const license = fs.readFileSync(__dirname + '/../../../LICENSE', 'utf-8');
+
+const licenseHtml = license
+ .replace(/\r\n/g, '\n')
+ .replace(/(.)\n(.)/g, '$1 $2')
+ .replace(/(^|\n)(.*?)($|\n)/g, '<p>$2</p>');
+
+export {
+ license,
+ licenseHtml
+};