Skip to content

Commit

Permalink
chore(wallet): package setup
Browse files Browse the repository at this point in the history
  • Loading branch information
rhyslbw committed Sep 14, 2021
1 parent 2f7ca7c commit b893b49
Show file tree
Hide file tree
Showing 8 changed files with 67 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/wallet/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
node_modules
dist
1 change: 1 addition & 0 deletions packages/wallet/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# Cardano JS SDK | Wallet
27 changes: 27 additions & 0 deletions packages/wallet/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
{
"name": "@cardano-sdk/wallet",
"version": "0.1.0",
"description": "Wallet modules",
"engines": {
"node": "^14"
},
"main": "dist/index.js",
"repository": "https://github.com/input-output-hk/cardano-js-sdk/packages/wallet",
"contributors": [
"Rhys Bartels-Waller <rhys.bartelswaller@iohk.io> (https://iohk.io)",
"James Sweetland <james.sweetland@iohk.io> (https://iohk.io)",
"Martynas Kazlauskas <martynas.kazlauskas@iohk.io> (https://iohk.io)"
],
"license": "MPL-2.0",
"scripts": {
"build": "which tsc",
"tsc": "shx echo typescript --noEmit command not implemented yet",
"cleanup": "shx rm -rf dist node_modules",
"lint": "eslint --ignore-path ../../.eslintignore \"**/*.ts\"",
"test": "shx echo No tests in this package",
"test:debug": "DEBUG=true yarn test"
},
"devDependencies": {
"shx": "^0.3.3"
}
}
Empty file added packages/wallet/src/index.ts
Empty file.
7 changes: 7 additions & 0 deletions packages/wallet/src/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"extends": "../../../tsconfig.json",
"compilerOptions": {
"outDir": "../dist/",
"rootDir": "."
}
}
7 changes: 7 additions & 0 deletions packages/wallet/test/.eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
module.exports = {
"extends": ["../../../test/.eslintrc.js"],
"parserOptions": {
"project": "./tsconfig.json",
"tsconfigRootDir": __dirname
}
}
11 changes: 11 additions & 0 deletions packages/wallet/test/jest.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
const { pathsToModuleNameMapper } = require('ts-jest/utils')
const { compilerOptions } = require('./tsconfig')

module.exports = {
moduleNameMapper: pathsToModuleNameMapper(compilerOptions.paths),
preset: 'ts-jest',
transform: {
"^.+\\.test.ts?$": "ts-jest"
},
testTimeout: 120000
}
12 changes: 12 additions & 0 deletions packages/wallet/test/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"extends": "../../../tsconfig.json",
"compilerOptions": {
"baseUrl": ".",
"paths": {
"@src/*": ["../src/*"]
}
},
"references": [
{ "path": "../src" }
]
}

0 comments on commit b893b49

Please sign in to comment.