Skip to content

Commit

Permalink
Converts simplex-noise.js to typescript
Browse files Browse the repository at this point in the history
  • Loading branch information
jwagner committed Aug 22, 2021
1 parent 634a758 commit 1f4a474
Show file tree
Hide file tree
Showing 15 changed files with 19,426 additions and 3,953 deletions.
3 changes: 3 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ module.exports = {
'define': false,
'Float32Array': false
},
'parserOptions': {
'sourceType': 'module'
},
'rules': {
'indent': [
'error',
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,5 @@ jobs:
with:
node-version: ${{ matrix.node-version }}
- run: npm ci
- run: npm test
- run: npm test
- run: npm run-script build
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
node_modules
/node_modules
/.parcel-cache
/dist
7 changes: 7 additions & 0 deletions .mocharc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"extension": [
"ts"
],
"spec": "test/simplex-noise-test.ts",
"require": "ts-node/register"
}
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,10 @@ npm install && npm test
### main
- Dependency update
- Setting sideEffects: false in package.json
- Added snapshot tests
- Code converted to typescript, the package can of course still be used from regular JS
- Dropped bower
- Added support for es modules

### 2.4.0
- Included a PRNG based on ALEA to directly allow seeding
Expand Down
34 changes: 0 additions & 34 deletions bower.json

This file was deleted.

Loading

0 comments on commit 1f4a474

Please sign in to comment.