-
Notifications
You must be signed in to change notification settings - Fork 122
Ported to Typescript #22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
mattes3
wants to merge
14
commits into
IceCreamYou:gh-pages
Choose a base branch
from
mattes3:gh-pages
base: gh-pages
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 6 commits
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
181edd3
Converted to Typescript and rollup...
41999dd
First running version after Typescript conversion.
614e727
Added forgotten imports.
0bad10d
Removed redundant default value checking.
3601996
Made levels or glsl optional, for base texture.
c36e3e9
Added linting, removed bower because...
fe6986c
Ported back from yarn to npm.
edae780
Minor cosmetics.
b23c2d5
Added trailing newline.
4778a78
Added return type annotation.
63c10a0
Moved interface before doc block.
f8bf90c
Make sure that build does not fail if dist does not exist, yet.
c717d94
Re-enabled sourcemaps.
200072a
Spread function now has access to the face and its coordinates.
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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,28 @@ | ||
| module.exports = { | ||
| parser: '@typescript-eslint/parser', // Specifies the ESLint parser | ||
| extends: [ | ||
| 'plugin:@typescript-eslint/recommended', // Uses the recommended rules from the @typescript-eslint/eslint-plugin | ||
| ], | ||
| parserOptions: { | ||
| ecmaVersion: 2018, // Allows for the parsing of modern ECMAScript features | ||
| sourceType: 'module', // Allows for the use of imports | ||
| }, | ||
| env: { | ||
| browser: true, | ||
| es6: true, | ||
| node: true | ||
| }, | ||
| globals: { | ||
| Atomics: "readonly", | ||
| SharedArrayBuffer: "readonly" | ||
| }, | ||
| rules: { | ||
| // Place to specify ESLint rules. Can be used to overwrite rules specified from the extended configs | ||
| // e.g. "@typescript-eslint/explicit-function-return-type": "off", | ||
| '@typescript-eslint/explicit-function-return-type': 'off', | ||
| '@typescript-eslint/no-use-before-define': 'off', | ||
| '@typescript-eslint/no-non-null-assertion': 'off', | ||
| '@typescript-eslint/no-object-literal-type-assertion': 'off', | ||
| '@typescript-eslint/no-explicit-any': 'off', | ||
| }, | ||
| }; |
This file contains hidden or 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 |
|---|---|---|
| @@ -1,2 +1,3 @@ | ||
| node_modules | ||
| package-lock.json | ||
| dist/ | ||
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains hidden or 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.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Missing trailing newline?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Cool.
OK, I've ported it back to npm.
I will have to think about this.
The demo simply runs as before. I changed almost nothing in the demo files. Just try
Yes, I'll re-enable them.
Exactly. People who use modules will have their own bundler, like webpack or similar. They will run their own minifier, of course.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Re-enabled sourcemaps, now.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since the artifacts produced by
npm run buildare not tracked by git, the demo will not run on GitHub Pages. (Previously the artifacts were tracked in thebuildfolder, whereas with this PR they're in thedistfolder which is in.gitignore.) Similarly, I think library releases would require an additional packaging step so that consumers would not have to build this project in order to make use of it as a dependency.