Skip to content

Commit

Permalink
fix: add d-notif-project
Browse files Browse the repository at this point in the history
  • Loading branch information
Aman035 committed May 31, 2024
1 parent cad48bc commit fbaddc0
Show file tree
Hide file tree
Showing 104 changed files with 13,849 additions and 8 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"scripts": {
"prepare": "husky install",
"test:restapi": "cd packages/restapi && TS_NODE_PROJECT='./tsconfig.mocha.json' NODE_OPTIONS='--loader ts-node/esm' mocha -r ts-node/register 'tests/**/*.test.ts' --timeout 1200000 --require tests/root.ts --serial",
"test:d-node-notif": "cd packages/d-node-notif && TS_NODE_PROJECT='./tsconfig.mocha.json' NODE_OPTIONS='--loader ts-node/esm' mocha -r ts-node/register 'tests/**/*.test.ts' --timeout 1200000 --require tests/root.ts --serial",
"cleanbuild": "rimraf ./dist && rimraf ./tmp"
},
"config": {
Expand Down
10 changes: 10 additions & 0 deletions packages/d-node-notif/.babelrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"presets": [
[
"@nrwl/web/babel",
{
"useBuiltIns": "usage"
}
]
]
}
18 changes: 18 additions & 0 deletions packages/d-node-notif/.eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"extends": ["../../.eslintrc.json"],
"ignorePatterns": ["!**/*"],
"overrides": [
{
"files": ["*.ts", "*.tsx", "*.js", "*.jsx"],
"rules": {}
},
{
"files": ["*.ts", "*.tsx"],
"rules": {}
},
{
"files": ["*.js", "*.jsx"],
"rules": {}
}
]
}
7 changes: 7 additions & 0 deletions packages/d-node-notif/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# d-node-notif

This library was generated with [Nx](https://nx.dev).

## Building

Run `nx build d-node-notif` to build the library.
43 changes: 43 additions & 0 deletions packages/d-node-notif/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
{
"name": "@sdk/d-node-notif",
"version": "0.0.1",
"type": "commonjs",
"publishConfig": {
"registry": "https://registry.npmjs.org/"
},
"peerDependencies": {
"ethers": "^5.0.0 || ^6.0.0"
},
"peerDependenciesMeta": {
"ethers": {
"optional": true
}
},
"dependencies": {
"@metamask/eth-sig-util": "^5.0.2",
"buffer": "^6.0.3",
"crypto-js": "^4.1.1",
"immer": "^10.0.2",
"joi": "^17.9.2",
"lru-cache": "^10.1.0",
"openpgp": "^5.5.0",
"socket.io-client": "^4.7.2",
"viem": "^2.13.1"
},
"scripts": {
"test": "TS_NODE_PROJECT='./tsconfig.mocha.json' NODE_OPTIONS='--loader ts-node/esm' DOTENV_CONFIG_PATH='./tests/.env' mocha -r ts-node/register -r dotenv/config 'tests/**/*.test.ts' --timeout 1200000 --require tests/root.ts --serial"
},
"devDependencies": {
"@types/chai": "^4.3.4",
"@types/chai-as-promised": "^7.1.5",
"@types/crypto-js": "^4.1.1",
"@types/mocha": "^10.0.1",
"chai": "^4.3.7",
"chai-as-promised": "^7.1.1",
"envfile": "^7.1.0",
"mocha": "^10.2.0",
"mocha-typescript": "^1.1.17",
"ts-node": "^10.9.1",
"typescript": "^5.0.2"
}
}
57 changes: 57 additions & 0 deletions packages/d-node-notif/project.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
{
"$schema": "../../node_modules/nx/schemas/project-schema.json",
"sourceRoot": "packages/d-node-notif/src",
"projectType": "library",
"targets": {
"build": {
"executor": "@nrwl/js:tsc",
"outputs": ["{options.outputPath}"],
"options": {
"outputPath": "dist/packages/d-node-notif",
"main": "packages/d-node-notif/src/index.ts",
"tsConfig": "packages/d-node-notif/tsconfig.lib.json",
"assets": ["packages/d-node-notif/*.md"]
}
},
"lint": {
"executor": "@nrwl/linter:eslint",
"outputs": ["{options.outputFile}"],
"options": {
"lintFilePatterns": ["packages/d-node-notif/**/*.ts"]
}
}
},
"test": {
"executor": "@nrwl/workspace:run-commands",
"outputs": ["coverage/packages/restapi"],
"options": {
"commands": ["yarn run test:d-node-notif"],
"passWithNoTests": true
}
},
"ci-version": {
"executor": "@jscutlery/semver:version",
"options": {
"preset": "angular",
"commitMessageFormat": "ci(${projectName}): 🎉 cut release to ${projectName}-v${version}",
"postTargets": ["d-node_notif:build", "d-node_notif:ci-publish"]
}
},
"ci-version-beta": {
"executor": "@jscutlery/semver:version",
"options": {
"preset": "angular",
"commitMessageFormat": "ci(${projectName}): 🎉 cut beta release to ${projectName}-v${version}",
"postTargets": ["d-node_notif:build", "d-node_notif:ci-publish"],
"version": "prerelease",
"preid": "alpha"
}
},
"ci-publish": {
"executor": "@nrwl/workspace:run-commands",
"options": {
"command": "node tools/scripts/publish.mjs d-node_notif"
}
},
"tags": []
}
1 change: 1 addition & 0 deletions packages/d-node-notif/src/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export * from './lib';
Loading

0 comments on commit fbaddc0

Please sign in to comment.