Skip to content

Commit 7be4da0

Browse files
authored
Merge pull request #18 from aeternity/fix-readme-npm
Fix Readme and Npm
2 parents 6621512 + 284d983 commit 7be4da0

File tree

12 files changed

+31590
-8963
lines changed

12 files changed

+31590
-8963
lines changed

.env.e2e

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,5 @@
11
VUE_APP_WALLET_PUBLIC_KEY=ak_2c7b7BwbAjpM7wkCsMkNxMS1aKHKSRavbmFKvmzHcbyBRZ4zdV
22
VUE_APP_WALLET_SECRET_KEY=edaabd0c6e384bc2d6841113650b2388795af74d2fdf2833d24ff76ab9105e4fd36d0095b6df171b9c11f85884b8ad38761040b15d2f79ee829c04fa9c38a952
3+
VUE_APP_TYPE=ae_uat
4+
VUE_APP_NAME=testnet
5+
VUE_APP_URL=https://testnet.aeternity.io

.env.unit

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
VUE_APP_WALLET_PUBLIC_KEY=ak_2c7b7BwbAjpM7wkCsMkNxMS1aKHKSRavbmFKvmzHcbyBRZ4zdV
2+
VUE_APP_WALLET_SECRET_KEY=edaabd0c6e384bc2d6841113650b2388795af74d2fdf2833d24ff76ab9105e4fd36d0095b6df171b9c11f85884b8ad38761040b15d2f79ee829c04fa9c38a952
3+
VUE_APP_TYPE=ae_uat
4+
VUE_APP_NAME=testnet
5+
VUE_APP_URL=https://testnet.aeternity.io

.eslintrc.js

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -3,22 +3,19 @@ module.exports = {
33
env: {
44
node: true,
55
},
6-
plugins: ["vue"],
7-
8-
extends: ["plugin:vue/vue3-essential", "eslint:recommended"],
9-
parser: "vue-eslint-parser",
6+
extends: ['plugin:vue/vue3-essential', 'eslint:recommended'],
107
parserOptions: {
11-
parser: "@babel/eslint-parser",
12-
ecmaVersion: 2020,
13-
requireConfigFile: false,
14-
sourceType: "module",
8+
parser: '@babel/eslint-parser',
9+
},
10+
rules: {
11+
'no-console': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
12+
'no-debugger': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
1513
},
16-
rules: {},
1714
overrides: [
1815
{
1916
files: [
20-
"**/__tests__/*.{j,t}s?(x)",
21-
"**/tests/unit/**/*.spec.{j,t}s?(x)",
17+
'**/__tests__/*.{j,t}s?(x)',
18+
'**/tests/unit/**/*.spec.{j,t}s?(x)',
2219
],
2320
env: {
2421
jest: true,

.github/workflows/ci.action.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,5 @@ jobs:
2222
node-version: ${{ matrix.node-version }}
2323
- name: Install dependencies
2424
run: npm ci
25-
- run: npx cypress install
2625
- run: npm run test:e2e
2726
- run: npm run test:unit

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,22 +12,22 @@ Clone repo via git or use the template button above.
1212

1313
Install the dependencies
1414
```
15-
yarn install
15+
npm install
1616
```
1717

1818
For development purposes (hot-reloading)
1919
```
20-
yarn serve
20+
npm run serve
2121
```
2222

2323
To build the bundle for production
2424
```
25-
yarn build
25+
npm run build
2626
```
2727

2828
For running the integration tests
2929
```
30-
yarn lint
30+
npm run lint
3131
```
3232

3333
## Prerequisites

jest.config.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
11
module.exports = {
22
preset: '@vue/cli-plugin-unit-jest',
3+
setupFiles: ["<rootDir>/tests/unit/setup-tests.js"],
34
transform: {
4-
'^.+\\.vue$': 'vue-jest',
5+
'^.+\\.vue$': '@vue/vue3-jest',
56
'\\.(aes)$': '<rootDir>/jest-ignore-aes.js'
7+
},
8+
globals: {
9+
Uint8Array: Uint8Array,
610
}
711
}

0 commit comments

Comments
 (0)