Skip to content

Commit 1f4a474

Browse files
committed
Converts simplex-noise.js to typescript
1 parent 634a758 commit 1f4a474

15 files changed

+19426
-3953
lines changed

.eslintrc.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@ module.exports = {
1111
'define': false,
1212
'Float32Array': false
1313
},
14+
'parserOptions': {
15+
'sourceType': 'module'
16+
},
1417
'rules': {
1518
'indent': [
1619
'error',

.github/workflows/tests.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,5 @@ jobs:
2222
with:
2323
node-version: ${{ matrix.node-version }}
2424
- run: npm ci
25-
- run: npm test
25+
- run: npm test
26+
- run: npm run-script build

.gitignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
1-
node_modules
1+
/node_modules
2+
/.parcel-cache
3+
/dist

.mocharc.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"extension": [
3+
"ts"
4+
],
5+
"spec": "test/simplex-noise-test.ts",
6+
"require": "ts-node/register"
7+
}

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,10 @@ npm install && npm test
8080
### main
8181
- Dependency update
8282
- Setting sideEffects: false in package.json
83+
- Added snapshot tests
84+
- Code converted to typescript, the package can of course still be used from regular JS
85+
- Dropped bower
86+
- Added support for es modules
8387

8488
### 2.4.0
8589
- Included a PRNG based on ALEA to directly allow seeding

bower.json

Lines changed: 0 additions & 34 deletions
This file was deleted.

0 commit comments

Comments
 (0)