aboutsummaryrefslogtreecommitdiff
path: root/packages
diff options
context:
space:
mode:
Diffstat (limited to 'packages')
-rw-r--r--packages/anastasis-webui/README.md19
-rw-r--r--packages/anastasis-webui/preact.config.js45
-rw-r--r--packages/anastasis-webui/tests/__mocks__/browserMocks.ts21
-rw-r--r--packages/anastasis-webui/tests/__mocks__/fileMocks.ts3
-rw-r--r--packages/anastasis-webui/tests/__mocks__/setupTests.ts6
-rw-r--r--packages/anastasis-webui/tests/declarations.d.ts3
6 files changed, 0 insertions, 97 deletions
diff --git a/packages/anastasis-webui/README.md b/packages/anastasis-webui/README.md
deleted file mode 100644
index 9f9b5987d..000000000
--- a/packages/anastasis-webui/README.md
+++ /dev/null
@@ -1,19 +0,0 @@
-# anastasis-webui
-
-## CLI Commands
-* `npm install`: Installs dependencies
-
-* `npm run dev`: Run a development, HMR server
-
-* `npm run serve`: Run a production-like server
-
-* `npm run build`: Production-ready build
-
-* `npm run lint`: Pass TypeScript files using ESLint
-
-* `npm run test`: Run Jest and Enzyme with
- [`enzyme-adapter-preact-pure`](https://github.com/preactjs/enzyme-adapter-preact-pure) for
- your tests
-
-
-For detailed explanation on how things work, checkout the [CLI Readme](https://github.com/developit/preact-cli/blob/master/README.md).
diff --git a/packages/anastasis-webui/preact.config.js b/packages/anastasis-webui/preact.config.js
deleted file mode 100644
index 3f6b69016..000000000
--- a/packages/anastasis-webui/preact.config.js
+++ /dev/null
@@ -1,45 +0,0 @@
-/*
- This file is part of GNU Taler
- (C) 2021 Taler Systems S.A.
-
- GNU Taler is free software; you can redistribute it and/or modify it under the
- terms of the GNU General Public License as published by the Free Software
- Foundation; either version 3, or (at your option) any later version.
-
- GNU Taler is distributed in the hope that it will be useful, but WITHOUT ANY
- WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
- A PARTICULAR PURPOSE. See the GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License along with
- GNU Taler; see the file COPYING. If not, see <http://www.gnu.org/licenses/>
- */
-
-/**
- *
- * @author Sebastian Javier Marchano (sebasjm)
- */
-
-import { DefinePlugin } from "webpack";
-
-import pack from "./package.json";
-import * as cp from "child_process";
-
-const commitHash = cp.execSync("git rev-parse --short HEAD").toString();
-
-export default {
- webpack(config, env, helpers) {
- // add __VERSION__ to be used in the html
- config.plugins.push(
- new DefinePlugin({
- "process.env.__VERSION__": JSON.stringify(
- env.isProd ? pack.version : `dev-${commitHash}`,
- ),
- }),
- );
- const crittersWrapper = helpers.getPluginsByName(config, "Critters");
- if (crittersWrapper && crittersWrapper.length > 0) {
- const [{ index }] = crittersWrapper;
- config.plugins.splice(index, 1);
- }
- },
-};
diff --git a/packages/anastasis-webui/tests/__mocks__/browserMocks.ts b/packages/anastasis-webui/tests/__mocks__/browserMocks.ts
deleted file mode 100644
index 5be8c3ce6..000000000
--- a/packages/anastasis-webui/tests/__mocks__/browserMocks.ts
+++ /dev/null
@@ -1,21 +0,0 @@
-// Mock Browser API's which are not supported by JSDOM, e.g. ServiceWorker, LocalStorage
-/**
- * An example how to mock localStorage is given below 👇
- */
-
-/*
-// Mocks localStorage
-const localStorageMock = (function() {
- let store = {};
-
- return {
- getItem: (key) => store[key] || null,
- setItem: (key, value) => store[key] = value.toString(),
- clear: () => store = {}
- };
-
-})();
-
-Object.defineProperty(window, 'localStorage', {
- value: localStorageMock
-}); */
diff --git a/packages/anastasis-webui/tests/__mocks__/fileMocks.ts b/packages/anastasis-webui/tests/__mocks__/fileMocks.ts
deleted file mode 100644
index 87109e355..000000000
--- a/packages/anastasis-webui/tests/__mocks__/fileMocks.ts
+++ /dev/null
@@ -1,3 +0,0 @@
-// This fixed an error related to the CSS and loading gif breaking my Jest test
-// See https://facebook.github.io/jest/docs/en/webpack.html#handling-static-assets
-export default 'test-file-stub';
diff --git a/packages/anastasis-webui/tests/__mocks__/setupTests.ts b/packages/anastasis-webui/tests/__mocks__/setupTests.ts
deleted file mode 100644
index 01dc92a29..000000000
--- a/packages/anastasis-webui/tests/__mocks__/setupTests.ts
+++ /dev/null
@@ -1,6 +0,0 @@
-import { configure } from 'enzyme';
-import Adapter from 'enzyme-adapter-preact-pure';
-
-configure({
- adapter: new Adapter()
-});
diff --git a/packages/anastasis-webui/tests/declarations.d.ts b/packages/anastasis-webui/tests/declarations.d.ts
deleted file mode 100644
index 67e940277..000000000
--- a/packages/anastasis-webui/tests/declarations.d.ts
+++ /dev/null
@@ -1,3 +0,0 @@
-// Enable enzyme adapter's integration with TypeScript
-// See: https://github.com/preactjs/enzyme-adapter-preact-pure#usage-with-typescript
-/// <reference types="enzyme-adapter-preact-pure" />