gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[taler-wallet-core] 03/07: remove old files


From: gnunet
Subject: [taler-wallet-core] 03/07: remove old files
Date: Mon, 06 Jun 2022 05:08:19 +0200

This is an automated email from the git hooks/post-receive script.

sebasjm pushed a commit to branch master
in repository wallet-core.

commit 1c1384d7c8193aa17375e630a960644f669d2b48
Author: Sebastian <sebasjm@gmail.com>
AuthorDate: Sun Jun 5 23:41:07 2022 -0300

    remove old files
---
 packages/anastasis-webui/README.md                 | 19 ---------
 packages/anastasis-webui/preact.config.js          | 45 ----------------------
 .../tests/__mocks__/browserMocks.ts                | 21 ----------
 .../anastasis-webui/tests/__mocks__/fileMocks.ts   |  3 --
 .../anastasis-webui/tests/__mocks__/setupTests.ts  |  6 ---
 packages/anastasis-webui/tests/declarations.d.ts   |  3 --
 6 files changed, 97 deletions(-)

diff --git a/packages/anastasis-webui/README.md 
b/packages/anastasis-webui/README.md
deleted file mode 100644
index 9f9b5987..00000000
--- 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 3f6b6901..00000000
--- 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 5be8c3ce..00000000
--- 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 87109e35..00000000
--- 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 01dc92a2..00000000
--- 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 67e94027..00000000
--- 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" />

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]