Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ package-lock.json
!.yarn/releases
!.yarn/sdks
!.yarn/versions
.yarnrc.yml


# Ignore build artifacts from version control
lib
Expand Down
783 changes: 0 additions & 783 deletions .yarn/releases/yarn-3.2.2.cjs

This file was deleted.

894 changes: 894 additions & 0 deletions .yarn/releases/yarn-4.2.2.cjs

Large diffs are not rendered by default.

6 changes: 5 additions & 1 deletion .yarnrc.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
compressionLevel: mixed

enableGlobalCache: false

nodeLinker: node-modules

plugins:
- path: .yarn/plugins/@ojkelly/plugin-all.cjs
spec: 'https://yarn.build/latest'

yarnPath: .yarn/releases/yarn-3.2.2.cjs
yarnPath: .yarn/releases/yarn-4.2.2.cjs
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ Be a part of this project! You can run the tests using the following.

#### Adding new packages and or enhancing functionality of existing packages !

To add a new package like @chancejs/person or @chancejs/web you can run `npm run package:create`
To add a new package like @johnallentech/person or @johnallentech/web you can run `npm run package:create`

To add functions to that (or any other) package you can run `npm run function:create`

Expand All @@ -66,7 +66,7 @@ This project is licensed under the [MIT License](http://en.wikipedia.org/wiki/MI

Run tests for all packages with `npm run test:all `

Run test for individual package with `yarn workspace @chancejs/${PACKAGE_TO_TEST} test` ie `yarn workspace @chancejs/letter test`
Run test for individual package with `yarn workspace @johnallentech/${PACKAGE_TO_TEST} test` ie `yarn workspace @johnallentech/letter test`
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed Markdown lint issue.

There is a Markdown lint issue due to spaces inside code span elements. Remove the spaces to resolve this issue.

- Run test for individual package with `yarn workspace @johnallentech/${PACKAGE_TO_TEST} test` ie `yarn workspace @johnallentech/letter test`
+ Run test for individual package with `yarn workspace @johnallentech/${PACKAGE_TO_TEST} test` i.e. `yarn workspace @johnallentech/letter test`
Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
Run test for individual package with `yarn workspace @johnallentech/${PACKAGE_TO_TEST} test` ie `yarn workspace @johnallentech/letter test`
Run test for individual package with `yarn workspace @johnallentech/${PACKAGE_TO_TEST} test` i.e. `yarn workspace @johnallentech/letter test`


Proudly written in Washington, D.C. 🇺🇸

Expand Down
2 changes: 1 addition & 1 deletion docs/basics/hex.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
Return a random hex number as string.

```ts
import { hex } from '@chancejs/hex'
import { hex } from '@johnallentech/hex'

// returns either '9', 'a' or 'b'.
hex({ min: 9, max: 11, casing: 'lower' })
Expand Down
12 changes: 6 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,11 @@
"description": "Chance - Utility library to generate anything random",
"homepage": "http://chancejs.com",
"author": "Victor Quinn <mail@victorquinn.com>",
"private": true,
"workspaces": [
"packages/*"
],
"engines": {
"yarn": ">=3",
"yarn": ">=4",
"node": ">=18"
},
"bugs": {
Expand All @@ -21,6 +20,7 @@
},
"license": "MIT",
"devDependencies": {
"@changesets/cli": "^2.27.5",
"@nx/jest": "19.0.0",
"docpress": "0.7.1",
"git-update-ghpages": "1.3.0",
Expand All @@ -30,8 +30,7 @@
"nx": "19.0.0",
"nyc": "^15.1.0",
"plop": "^3.1.0",
"prettier": "3.2.5",
"@changesets/cli": "^2.27.5"
"prettier": "3.2.5"
},
"scripts": {
"package:create": "plop --plopfile ./scripts/create-package/plopfile.js",
Expand All @@ -40,7 +39,8 @@
"test:all": "yarn nx run-many -t test",
"build:all": "yarn nx run-many -t build",
"graph": "yarn nx graph",
"version": "yarn changeset"
"version": "yarn changeset",
"publish": "yarn workspaces foreach -A npm publish"
},
"keywords": [
"chance",
Expand All @@ -63,5 +63,5 @@
"lint-staged": {
"**/*": "prettier --write --ignore-unknown"
},
"packageManager": "yarn@3.2.2"
"packageManager": "yarn@4.2.2"
}
12 changes: 10 additions & 2 deletions packages/animal/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@chancejs/animal",
"version": "1.0.0",
"version": "1.0.2",
"description": "gives a random &#x27;animal&#x27; based on what you specify",
"homepage": "https://chancejs.com/",
"author": "Victor Quinn <mail@victorquinn.com>",
Expand Down Expand Up @@ -35,5 +35,13 @@
"ts-jest": "^27.1.4",
"ts-node": "^10.7.0",
"typescript": "^4.6.3"
}
},
"dependencies": {
"@chancejs/generator": "1.0.2",
"@chancejs/pick": "1.0.0"
},
"directories": {
"lib": "lib"
},
"types": "./lib/cjs/index.d.ts"
}
2 changes: 0 additions & 2 deletions packages/animal/src/exceptions.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import { AnimalTypes } from './interfaces'

export class AnimalOptionTypeException extends TypeError {
constructor() {
super(
Expand Down
2 changes: 1 addition & 1 deletion packages/bool/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,6 @@
"typescript": "^4.6.3"
},
"dependencies": {
"@chancejs/generator": "1.0.0"
"@chancejs/generator": "1.0.2"
}
}
1 change: 0 additions & 1 deletion packages/chance/index.ts

This file was deleted.

13 changes: 0 additions & 13 deletions packages/chance/jest.config.json

This file was deleted.

53 changes: 0 additions & 53 deletions packages/chance/package.json

This file was deleted.

60 changes: 0 additions & 60 deletions packages/chance/src/basics/bool.test.ts

This file was deleted.

49 changes: 0 additions & 49 deletions packages/chance/src/basics/character.test.ts

This file was deleted.

21 changes: 0 additions & 21 deletions packages/chance/src/basics/falsy.test.ts

This file was deleted.

57 changes: 0 additions & 57 deletions packages/chance/src/basics/floating.test.ts

This file was deleted.

Loading