-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(monorepo): configure repo utils
- Loading branch information
1 parent
06f95ad
commit 7e35d60
Showing
117 changed files
with
2,456 additions
and
2,969 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,4 +13,3 @@ contracts/compiled | |
examples/*/pnpm-lock.yaml | ||
pnpm-debug.log | ||
docs-json | ||
docs |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
process.env.NODE_ENV = 'test' | ||
|
||
module.exports = { | ||
require: ['ts-node/register/transpile-only'], | ||
extension: ['ts'], | ||
watchExtensions: ['ts'], | ||
spec: ['test/**/*.test.ts'], | ||
timeout: 300_000, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
# Contribution Guide | ||
|
||
Download, install, build, and test with: | ||
|
||
```bash | ||
git clone https://github.com/nucypher/nucypher-ts | ||
cd nucypher-ts | ||
pnpm install | ||
``` | ||
|
||
## Development | ||
|
||
TODO: Update | ||
|
||
```bash | ||
pnpm build | ||
pnpm test | ||
``` | ||
|
||
## Documentation | ||
|
||
TODO: Update | ||
|
||
## Publishing | ||
|
||
TODO: Update |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,11 +5,11 @@ | |
"description": "A usage example for nucypher-ts", | ||
"author": "Piotr Rosłaniec <[email protected]>", | ||
"scripts": { | ||
"build": "tsc --noEmit && rimraf build && webpack --mode production --progress", | ||
"build": "tsc && rimraf build && webpack --mode production --progress", | ||
"start": "webpack serve --mode development" | ||
}, | ||
"dependencies": { | ||
"@nucypher/nucypher-ts": "workspace:*", | ||
"@nucypher/nucypher-ts": "^1.0.0-alpha.5", | ||
"ethers": "^5.4.1", | ||
"file-loader": "^6.2.0", | ||
"react": "^17.0.0", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
/** @type {import('jest').Config} */ | ||
const config = { | ||
"preset": "ts-jest", | ||
"testEnvironment": "node", | ||
"transform": { | ||
"^.+\\.ts": "babel-jest" | ||
}, | ||
"coverageReporters": [ | ||
"json", | ||
"text", | ||
"html", | ||
"lcov", | ||
"clover" | ||
], | ||
"collectCoverage": true, | ||
"coverageDirectory": "coverage", | ||
"collectCoverageFrom": [ | ||
"src/**/*.ts" | ||
] | ||
} | ||
|
||
module.exports = config; |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,10 +4,9 @@ | |
"license": "GPL-3.0-only", | ||
"author": "Piotr Roslaniec <[email protected]>", | ||
"scripts": { | ||
"postinstall": "pnpm build", | ||
"docs": "run-s docs:root docs:packages", | ||
"docs:root": "typedoc", | ||
"docs:packages": "pnpm run --parallel --aggregate-output --reporter append-only --filter './packages/**' docs", | ||
"build:docs": "run-s docs:root docs:packages docs:merge", | ||
"docs:root": "typedoc --out build/docs", | ||
"docs:packages": "pnpm run --parallel --aggregate-output --reporter append-only --filter './packages/**' build/docs", | ||
"docs:merge": "typedoc --entryPointStrategy merge \"docs-json/*.json\"", | ||
"doc:publish": "gh-pages -m \"[ci skip] Updates\" -d build/docs", | ||
"format": "prettier --check \"./**/*.ts\" README.md", | ||
|
@@ -17,13 +16,14 @@ | |
"typecheck": "pnpm --parallel --aggregate-output --reporter append-only typecheck", | ||
"build": "tsc --build --verbose ./tsconfig.prod.json", | ||
"watch": "tsc --build --verbose --watch ./tsconfig.prod.json", | ||
"package:check": "pnpm run --parallel --aggregate-output --reporter append-only --filter './packages/**' package-check", | ||
"test": "pnpm run --parallel --aggregate-output --reporter append-only --filter './packages/**' test", | ||
"test:fix": "pnpm fix && pnpm format:fix && pnpm typecheck && pnpm test", | ||
"package:check": "pnpm run --parallel --aggregate-output --reporter append-only --filter './packages/**' package-check", | ||
"packages:lint": "pnpm packages:sort --check", | ||
"packages:sort": "sort-package-json \"package.json\" \"examples/*/package.json\" \"packages/*/package.json\"", | ||
"exports:lint": "pnpm run --parallel --aggregate-output --reporter append-only --filter './packages/**' exports:lint", | ||
"fix": "pnpm lint:fix && pnpm format:fix && pnpm packages:sort", | ||
"ci:lint": "pnpm lint && pnpm typecheck && pnpm package:check && pnpm packages:lint" | ||
"ci:lint": "run-p lint typecheck package:check packages:lint exports:lint" | ||
}, | ||
"devDependencies": { | ||
"@skypack/package-check": "^0.2.2", | ||
|
@@ -47,7 +47,8 @@ | |
"prettier": "^2.8.8", | ||
"sort-package-json": "^2.5.1", | ||
"ts-jest": "^29.1.1", | ||
"ts-node": "^10.9.1", | ||
"ts-jest-resolver": "^2.0.1", | ||
"ts-node": "^10.7.0", | ||
"ts-unused-exports": "^10.0.1", | ||
"typedoc": "^0.25.1", | ||
"typedoc-plugin-missing-exports": "^2.1.0", | ||
|
@@ -57,7 +58,10 @@ | |
"baseDir": ".", | ||
"files": [ | ||
{ | ||
"path": "**/nucypher-ts/build/**/*.*" | ||
"path": "**/shared/build/**/*.*" | ||
}, | ||
{ | ||
"path": "**/taco/build/**/*.*" | ||
} | ||
] | ||
}, | ||
|
Oops, something went wrong.