Adopt lerna and typescript
This commit is contained in:
0
apps/node-ts/index.ts
Normal file
0
apps/node-ts/index.ts
Normal file
6
apps/node-ts/load-core-mt.ts
Normal file
6
apps/node-ts/load-core-mt.ts
Normal file
@@ -0,0 +1,6 @@
|
||||
import createFFmpegCore from "@ffmpeg/core-mt";
|
||||
|
||||
void (async () => {
|
||||
const core = await createFFmpegCore();
|
||||
console.log(core);
|
||||
})();
|
||||
6
apps/node-ts/load-core.ts
Normal file
6
apps/node-ts/load-core.ts
Normal file
@@ -0,0 +1,6 @@
|
||||
import createFFmpegCore from "@ffmpeg/core";
|
||||
|
||||
void (async () => {
|
||||
const core = await createFFmpegCore();
|
||||
console.log(core);
|
||||
})();
|
||||
21
apps/node-ts/package.json
Normal file
21
apps/node-ts/package.json
Normal file
@@ -0,0 +1,21 @@
|
||||
{
|
||||
"name": "node-ts",
|
||||
"version": "0.0.1",
|
||||
"description": "node example",
|
||||
"main": "index.ts",
|
||||
"scripts": {
|
||||
"lint": "eslint .",
|
||||
"test": "echo \"Error: no test specified\" && exit 1"
|
||||
},
|
||||
"author": "Jerome Wu <jeromewus@gmail.com>",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"@ffmpeg/core": "^0.11.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@typescript-eslint/eslint-plugin": "^5.37.0",
|
||||
"@typescript-eslint/parser": "^5.37.0",
|
||||
"eslint": "^8.23.1",
|
||||
"typescript": "^4.8.3"
|
||||
}
|
||||
}
|
||||
3
apps/node-ts/tsconfig.json
Normal file
3
apps/node-ts/tsconfig.json
Normal file
@@ -0,0 +1,3 @@
|
||||
{
|
||||
"extends": "../../tsconfig.json"
|
||||
}
|
||||
Reference in New Issue
Block a user