forked from justadudewhohacks/opencv4nodejs
-
Notifications
You must be signed in to change notification settings - Fork 51
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #133 from UrielCh/esm
## Version 7.0.0 - Updated code to ESM. - Introduced new exports model. - Fixed typing errors. - Added missing types. - Removed typing duplication in codebase. - Native code is now generated directly by the default node-gyp rebuild. - GitHub actions now test all available Windows, macOS, and Linux environments.
- Loading branch information
Showing
155 changed files
with
1,536 additions
and
4,557 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 |
---|---|---|
|
@@ -59,3 +59,5 @@ cjs/install/ | |
cjs/lib/ | ||
esm/install/ | ||
esm/lib/ | ||
u4-opencv4nodejs-*.tgz | ||
examples/yolo_out_py.avi |
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
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
#!/usr/bin/env node | ||
const compileLib = require("../install/compileLib.js"); | ||
const compileLib = require("../cjs/install/compileLib.js"); | ||
const {argv} = process; | ||
compileLib.compileLib(argv); |
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
#!/usr/bin/env node | ||
import * as compileLib from "../install/compileLib"; | ||
import { compileLib } from "../src/install/compileLib"; | ||
const {argv} = process; | ||
compileLib.compileLib(argv); | ||
compileLib(argv); |
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,3 @@ | ||
{ | ||
"type": "commonjs" | ||
} |
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,36 @@ | ||
// @ts-check | ||
import eslint from '@eslint/js'; | ||
import tseslint from 'typescript-eslint'; | ||
|
||
export default tseslint.config( | ||
eslint.configs.recommended, | ||
...tseslint.configs.recommended, | ||
{ | ||
ignores: [ | ||
"test/**/*.ts", | ||
"**/*.js", | ||
"types/**/*.d.ts", | ||
"src/lib/meta.ts", | ||
], | ||
} | ||
, | ||
{"rules": { | ||
"linebreak-style": 0, | ||
"comma-dangle": ["error", "always-multiline"], | ||
"no-plusplus": "off", | ||
"import/no-unresolved": 0, | ||
"import/extensions": 0, | ||
"import/no-extraneous-dependencies": 0, | ||
"no-async-promise-executor": 0, | ||
"radix": 1, | ||
"no-undef": 0, | ||
"no-case-declarations": 0, | ||
// unit tests only | ||
// "max-len" : 0, | ||
// "no-new" : 0, | ||
// "no-unused-expressions": 0, | ||
// "prefer-spread": 0, | ||
// "@typescript-eslint/ban-ts-comment": 0, | ||
// "@typescript-eslint/no-explicit-any": 0 | ||
}}, | ||
); |
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,3 @@ | ||
{ | ||
"type": "module" | ||
} |
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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
Oops, something went wrong.