-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This is an effort towards making this a Typescript library * added Babel.js in the process (merged with browserify) * preserved the compilation process * replaced legacy JSHint with JSLint * ensured that tests passes in QUnit * extracted error reporting functions into a separate error.js file * converted files into ESModules (the compilation target is still UMD though) * preserved the way that sax is included in "imsc.all.*" build and excluded from "imsc.*" builds -- Todos: * extract IMSC objects classes into separate file * move to the Typescript compiler (google-closure-compiler can still be used for minification) * extract proper TS interfaces * export types and extract to *.d.ts definition file * fix potentially buggy code (replacing string with object in array, etc.) * use ValueObject pattern (immutable IMSC classes with parameter injection via constructor, instead of "initFromNode") * cloning process improvement
- Loading branch information
BasBastian
committed
Mar 6, 2022
1 parent
a6ed5f4
commit 22d7d2d
Showing
13 changed files
with
12,145 additions
and
4,001 deletions.
There are no files selected for viewing
This file contains 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,33 @@ | ||
module.exports = { | ||
"env": { | ||
"browser": true, | ||
"commonjs": true, | ||
"es2021": true, | ||
"node": true | ||
}, | ||
"extends": "eslint:recommended", | ||
"parserOptions": { | ||
"ecmaVersion": "latest" | ||
}, | ||
globals: { | ||
'sax' : "writable" | ||
}, | ||
"rules": { | ||
"indent": [ | ||
"error", | ||
4 | ||
], | ||
"linebreak-style": [ | ||
"error", | ||
"unix" | ||
], | ||
"quotes": [ | ||
"error", | ||
"single" | ||
], | ||
"semi": [ | ||
"error", | ||
"always" | ||
] | ||
} | ||
}; |
This file contains 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 |
---|---|---|
|
@@ -3,4 +3,5 @@ dist/ | |
node_modules/ | ||
nbproject/private | ||
ga.js | ||
.vscode/ | ||
.vscode/ | ||
.idea/ |
This file contains 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 contains 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,9 @@ | ||
module.exports = { | ||
"presets": ["@babel/preset-env"], | ||
"plugins": ["@babel/plugin-transform-modules-umd", { | ||
}], | ||
"include" : [ | ||
"@babel/plugin-transform-classes" | ||
], | ||
"moduleId": "imsc" | ||
}; |
Oops, something went wrong.