Skip to content
This repository has been archived by the owner on Aug 28, 2024. It is now read-only.

Commit

Permalink
[JS/TS] Modernize TypeScript / JavaScript flatbuffers support (google…
Browse files Browse the repository at this point in the history
  • Loading branch information
bjornharrtell authored Sep 17, 2020
1 parent b8e87fa commit 94873e5
Show file tree
Hide file tree
Showing 21 changed files with 2,093 additions and 1,404 deletions.
13 changes: 13 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
/* eslint-env node */

module.exports = {
root: true,
parser: '@typescript-eslint/parser',
plugins: [
'@typescript-eslint',
],
extends: [
'eslint:recommended',
'plugin:@typescript-eslint/recommended',
]
};
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -130,3 +130,8 @@ package-lock.json
/*.ilk
/*.pdb
.clwb
js/*.js
js/*.d.ts
mjs/*.js
mjs/*.d.ts
yarn-error.log
2 changes: 2 additions & 0 deletions appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,8 @@ test_script:
- rem "---------------- JS -----------------"
- "node --version"
- "..\\%CONFIGURATION%\\flatc -b -I include_test monster_test.fbs unicode_test.json"
- "npm install"
- "npm run pretest"
- "node JavaScriptTest ./monster_test_generated"
- rem "-------------- Python ---------------"
- where python
Expand Down
1 change: 1 addition & 0 deletions js/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
This folder is intentionally empty and will contain transpiled js modules in Common JS format after compiling with tsc.
Loading

0 comments on commit 94873e5

Please sign in to comment.