From 0498f6be5b4cc2cc9c3097eec23e6fd3eab69c9f Mon Sep 17 00:00:00 2001 From: Mononaut Date: Fri, 3 Dec 2021 11:35:25 -0600 Subject: [PATCH] Update licenses --- .gitignore | 1 + LICENSE.txt => LICENSE | 0 client/{LICENSE.txt => LICENSE} | 0 client/scripts/setupTypeScript.js | 117 ---------------------- client/src/assets/icon/LICENSE | 161 ++++++++++++++++++++++++++++++ 5 files changed, 162 insertions(+), 117 deletions(-) create mode 100644 .gitignore rename LICENSE.txt => LICENSE (100%) rename client/{LICENSE.txt => LICENSE} (100%) delete mode 100644 client/scripts/setupTypeScript.js create mode 100644 client/src/assets/icon/LICENSE diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..c0f942f --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +TIMESTAMP.txt diff --git a/LICENSE.txt b/LICENSE similarity index 100% rename from LICENSE.txt rename to LICENSE diff --git a/client/LICENSE.txt b/client/LICENSE similarity index 100% rename from client/LICENSE.txt rename to client/LICENSE diff --git a/client/scripts/setupTypeScript.js b/client/scripts/setupTypeScript.js deleted file mode 100644 index 3099c0f..0000000 --- a/client/scripts/setupTypeScript.js +++ /dev/null @@ -1,117 +0,0 @@ -// @ts-check - -/** This script modifies the project to support TS code in .svelte files like: - - - - As well as validating the code for CI. - */ - -/** To work on this script: - rm -rf test-template template && git clone sveltejs/template test-template && node scripts/setupTypeScript.js test-template -*/ - -const fs = require("fs") -const path = require("path") -const { argv } = require("process") - -const projectRoot = argv[2] || path.join(__dirname, "..") - -// Add deps to pkg.json -const packageJSON = JSON.parse(fs.readFileSync(path.join(projectRoot, "package.json"), "utf8")) -packageJSON.devDependencies = Object.assign(packageJSON.devDependencies, { - "svelte-check": "^1.0.0", - "svelte-preprocess": "^4.0.0", - "@rollup/plugin-typescript": "^6.0.0", - "typescript": "^3.9.3", - "tslib": "^2.0.0", - "@tsconfig/svelte": "^1.0.0" -}) - -// Add script for checking -packageJSON.scripts = Object.assign(packageJSON.scripts, { - "validate": "svelte-check" -}) - -// Write the package JSON -fs.writeFileSync(path.join(projectRoot, "package.json"), JSON.stringify(packageJSON, null, " ")) - -// mv src/main.js to main.ts - note, we need to edit rollup.config.js for this too -const beforeMainJSPath = path.join(projectRoot, "src", "main.js") -const afterMainTSPath = path.join(projectRoot, "src", "main.ts") -fs.renameSync(beforeMainJSPath, afterMainTSPath) - -// Switch the app.svelte file to use TS -const appSveltePath = path.join(projectRoot, "src", "App.svelte") -let appFile = fs.readFileSync(appSveltePath, "utf8") -appFile = appFile.replace("