-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use velociraptor vr to run tasks and nest.land for dependencies
- Loading branch information
Showing
7 changed files
with
76 additions
and
46 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
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 |
---|---|---|
|
@@ -12,14 +12,20 @@ Test randomizing helps you to build randomized objects for your tests. | |
|
||
## 🏗 Install | ||
|
||
### Deno ([deno.land](https://deno.land/x/test_randomizing@0.2.0)) | ||
### Deno ([nest.land](https://nest.land/package/test_randomizing) and [deno.land](https://deno.land/x/test_randomizing)) | ||
|
||
```javascript | ||
import { | ||
freezeMerge, | ||
merge, | ||
RandomFn, | ||
} from "https://deno.land/x/[email protected]"; | ||
} from "https://x.nest.land/[email protected]/mod.ts"; | ||
// or | ||
import { | ||
freezeMerge, | ||
merge, | ||
RandomFn, | ||
} from "https://deno.land/x/[email protected]/mod.ts"; | ||
``` | ||
|
||
### Node.js ([npm.js](https://www.npmjs.com/package/test-randomizing)) | ||
|
@@ -47,7 +53,7 @@ import { | |
DeepPartial, | ||
freezeMerge, | ||
RandomFn, | ||
} from "https://deno.land/x/test_randomizing@0.2.1/mod.ts"; | ||
} from "https://x.nest.land/test_randomizing@0.4.0/mod.ts"; | ||
import { faker } from "https://deno.land/x/[email protected]/mod.ts"; | ||
import { assertEquals } from "https://deno.land/[email protected]/testing/asserts.ts"; | ||
|
||
|
@@ -179,8 +185,4 @@ Copyright (c) 2021 Ti/o | |
|
||
# Development | ||
|
||
Use alias `drake` to run all commands like `drake test` and `drake build`. | ||
|
||
```sh | ||
alias drake="deno run -A Drakefile.ts" | ||
``` | ||
Use `vr` ([Velociraptor](https://velociraptor.run/)) to run all commands like `vr check` and `vr publish`. |
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,24 @@ | ||
{ | ||
"$schema": "https://x.nest.land/[email protected]/src/schema.json", | ||
"name": "test_randomizing", | ||
"entry": "./mod.ts", | ||
"description": "Test Randomizing helps you to build randomized objects or class instances for your tests.", | ||
"homepage": "https://github.com/tiloio/test-randomizing", | ||
"version": "0.4.0", | ||
"releaseType": "minor", | ||
"unstable": false, | ||
"unlisted": false, | ||
"files": [ | ||
"./LICENSE", | ||
"./README.md", | ||
"./src/**/*" | ||
], | ||
"ignore": [ | ||
"./npm", | ||
"./examples" | ||
], | ||
"checkFormat": "deno fmt src", | ||
"checkTests": "deno test src", | ||
"checkInstallation": true, | ||
"check": true | ||
} |
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 |
---|---|---|
|
@@ -2,9 +2,11 @@ import { | |
DeepPartial, | ||
freezeMerge, | ||
RandomFn, | ||
} from "https://deno.land/x/[email protected]/mod.ts"; | ||
} from "https://x.nest.land/[email protected]/mod.ts"; | ||
// or via deno.land "https://deno.land/x/[email protected]/mod.ts" | ||
// or via Arweave "https://arweave.net/EQhts80yFWrBc7dZBpauJyD9J4sRDmHl2vlUSJKr_rQ/mod.ts" | ||
import { faker } from "https://deno.land/x/[email protected]/mod.ts"; | ||
import { assertEquals } from "https://deno.land/[email protected]/testing/asserts.ts"; | ||
import { assertEquals } from "https://deno.land/x/[email protected]/testing/asserts.ts"; | ||
import { generateEmail } from "./generate-email.ts"; | ||
|
||
const randomPerson: RandomFn<Person> = (override?: DeepPartial<Person>) => | ||
|
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,36 @@ | ||
import type { ScriptsConfiguration } from "https://arweave.net/c_Zr-jv4RfZ1ERXdE3PMCT7GjMSGXAT1wKnhPbC4Cmg/mod.ts"; | ||
import eggJson from "./egg.json" assert { type: "json" }; | ||
|
||
const srcDir = "src"; | ||
const version = eggJson.version; | ||
|
||
const test = `deno test ${srcDir}`; | ||
const lint = `deno lint ${srcDir}`; | ||
const fmt = `deno fmt ${srcDir}`; | ||
const publishNest = `egg publish`; | ||
const buildNpm = `deno run -A ./build_npm.ts ${version}`; | ||
const publishNpm = `cd ./npm && npm publish`; | ||
|
||
const check = { | ||
cmd: { | ||
pll: [test, fmt, lint], | ||
}, | ||
gitHook: "pre-commit", | ||
}; | ||
export default <ScriptsConfiguration> { | ||
scripts: { | ||
test, | ||
testWatch: { | ||
cmd: test, | ||
watch: true, | ||
}, | ||
lint, | ||
fmt, | ||
check, | ||
buildNpm, | ||
publishNpm, | ||
releaseNpm: [check, buildNpm, publishNpm], | ||
publishNest, | ||
release: [publishNest, buildNpm, publishNpm], | ||
}, | ||
}; |
This file was deleted.
Oops, something went wrong.