Remove redundant files
This commit is contained in:
parent
e17812a999
commit
71284356fe
2
Makefile
2
Makefile
@ -10,12 +10,10 @@ PROD_MT_CFLAGS := $(PROD_CFLAGS) $(MT_FLAGS)
|
|||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm -rf ./packages/core$(PKG_SUFFIX)/dist
|
rm -rf ./packages/core$(PKG_SUFFIX)/dist
|
||||||
rm -rf ./packages/core$(PKG_SUFFIX)/types
|
|
||||||
|
|
||||||
.PHONY: build
|
.PHONY: build
|
||||||
build:
|
build:
|
||||||
make clean PKG_SUFFIX="$(PKG_SUFFIX)"
|
make clean PKG_SUFFIX="$(PKG_SUFFIX)"
|
||||||
cp -r src/types/ffmpeg-core packages/core$(PKG_SUFFIX)/types
|
|
||||||
EXTRA_CFLAGS="$(EXTRA_CFLAGS)" \
|
EXTRA_CFLAGS="$(EXTRA_CFLAGS)" \
|
||||||
EXTRA_LDFLAGS="$(EXTRA_LDFLAGS)" \
|
EXTRA_LDFLAGS="$(EXTRA_LDFLAGS)" \
|
||||||
FFMPEG_ST="$(FFMPEG_ST)" \
|
FFMPEG_ST="$(FFMPEG_ST)" \
|
||||||
|
@ -3,20 +3,14 @@
|
|||||||
"version": "0.11.5",
|
"version": "0.11.5",
|
||||||
"description": "FFmpeg WebAssembly version",
|
"description": "FFmpeg WebAssembly version",
|
||||||
"main": "./dist/umd/ffmpeg-core.js",
|
"main": "./dist/umd/ffmpeg-core.js",
|
||||||
"types": "./types/ffmpeg-core.d.ts",
|
|
||||||
"exports": {
|
"exports": {
|
||||||
".": {
|
".": {
|
||||||
"types": "./types/ffmpeg-core.d.ts",
|
|
||||||
"import": "./dist/esm/ffmpeg-core.js",
|
"import": "./dist/esm/ffmpeg-core.js",
|
||||||
"require": "./dist/umd/ffmpeg-core.js"
|
"require": "./dist/umd/ffmpeg-core.js"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"scripts": {
|
|
||||||
"lint": "eslint types"
|
|
||||||
},
|
|
||||||
"files": [
|
"files": [
|
||||||
"dist",
|
"dist"
|
||||||
"types/ffmpeg-core.d.ts"
|
|
||||||
],
|
],
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
@ -40,11 +34,5 @@
|
|||||||
"homepage": "https://github.com/ffmpegwasm/ffmpeg.wasm#readme",
|
"homepage": "https://github.com/ffmpegwasm/ffmpeg.wasm#readme",
|
||||||
"publishConfig": {
|
"publishConfig": {
|
||||||
"access": "public"
|
"access": "public"
|
||||||
},
|
|
||||||
"devDependencies": {
|
|
||||||
"@typescript-eslint/eslint-plugin": "^5.37.0",
|
|
||||||
"@typescript-eslint/parser": "^5.37.0",
|
|
||||||
"eslint": "^8.23.1",
|
|
||||||
"typescript": "^4.8.3"
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -3,20 +3,14 @@
|
|||||||
"version": "0.11.5",
|
"version": "0.11.5",
|
||||||
"description": "FFmpeg WebAssembly version",
|
"description": "FFmpeg WebAssembly version",
|
||||||
"main": "./dist/umd/ffmpeg-core.js",
|
"main": "./dist/umd/ffmpeg-core.js",
|
||||||
"types": "./types/ffmpeg-core.d.ts",
|
|
||||||
"exports": {
|
"exports": {
|
||||||
".": {
|
".": {
|
||||||
"types": "./types/ffmpeg-core.d.ts",
|
|
||||||
"import": "./dist/esm/ffmpeg-core.js",
|
"import": "./dist/esm/ffmpeg-core.js",
|
||||||
"require": "./dist/umd/ffmpeg-core.js"
|
"require": "./dist/umd/ffmpeg-core.js"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"scripts": {
|
|
||||||
"lint": "eslint types"
|
|
||||||
},
|
|
||||||
"files": [
|
"files": [
|
||||||
"dist",
|
"dist"
|
||||||
"types/ffmpeg-core.d.ts"
|
|
||||||
],
|
],
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
@ -40,11 +34,5 @@
|
|||||||
"homepage": "https://github.com/ffmpegwasm/ffmpeg.wasm#readme",
|
"homepage": "https://github.com/ffmpegwasm/ffmpeg.wasm#readme",
|
||||||
"publishConfig": {
|
"publishConfig": {
|
||||||
"access": "public"
|
"access": "public"
|
||||||
},
|
|
||||||
"devDependencies": {
|
|
||||||
"@typescript-eslint/eslint-plugin": "^5.37.0",
|
|
||||||
"@typescript-eslint/parser": "^5.37.0",
|
|
||||||
"eslint": "^8.23.1",
|
|
||||||
"typescript": "^4.8.3"
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
2
packages/ffmpeg-mt/.gitignore
vendored
2
packages/ffmpeg-mt/.gitignore
vendored
@ -1,2 +0,0 @@
|
|||||||
dist/
|
|
||||||
types/
|
|
@ -1,50 +0,0 @@
|
|||||||
{
|
|
||||||
"name": "@ffmpeg/ffmpeg-mt",
|
|
||||||
"version": "0.11.5",
|
|
||||||
"description": "FFmpeg WebAssembly version w/ multi-thread",
|
|
||||||
"main": "./dist/umd/ffmpeg.js",
|
|
||||||
"types": "./types/ffmpeg.d.ts",
|
|
||||||
"exports": {
|
|
||||||
".": {
|
|
||||||
"types": "./types/ffmpeg.d.ts",
|
|
||||||
"import": "./dist/esm/ffmpeg.js",
|
|
||||||
"require": "./dist/umd/ffmpeg.js"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"scripts": {
|
|
||||||
"lint": "eslint types"
|
|
||||||
},
|
|
||||||
"files": [
|
|
||||||
"dist",
|
|
||||||
"types/ffmpeg.d.ts"
|
|
||||||
],
|
|
||||||
"repository": {
|
|
||||||
"type": "git",
|
|
||||||
"url": "git+https://github.com/ffmpegwasm/ffmpeg.wasm.git"
|
|
||||||
},
|
|
||||||
"keywords": [
|
|
||||||
"ffmpeg",
|
|
||||||
"WebAssembly",
|
|
||||||
"video",
|
|
||||||
"audio",
|
|
||||||
"transcode"
|
|
||||||
],
|
|
||||||
"author": "Jerome Wu <jeromewus@gmail.com>",
|
|
||||||
"license": "MIT",
|
|
||||||
"bugs": {
|
|
||||||
"url": "https://github.com/ffmpegwasm/ffmpeg.wasm/issues"
|
|
||||||
},
|
|
||||||
"engines": {
|
|
||||||
"node": ">=16.6.0"
|
|
||||||
},
|
|
||||||
"homepage": "https://github.com/ffmpegwasm/ffmpeg.wasm#readme",
|
|
||||||
"publishConfig": {
|
|
||||||
"access": "public"
|
|
||||||
},
|
|
||||||
"devDependencies": {
|
|
||||||
"@typescript-eslint/eslint-plugin": "^5.37.0",
|
|
||||||
"@typescript-eslint/parser": "^5.37.0",
|
|
||||||
"eslint": "^8.23.1",
|
|
||||||
"typescript": "^4.8.3"
|
|
||||||
}
|
|
||||||
}
|
|
2
packages/ffprobe-mt/.gitignore
vendored
2
packages/ffprobe-mt/.gitignore
vendored
@ -1,2 +0,0 @@
|
|||||||
dist/
|
|
||||||
types/
|
|
@ -1,13 +0,0 @@
|
|||||||
module.exports = {
|
|
||||||
extends: [
|
|
||||||
"eslint:recommended",
|
|
||||||
"plugin:@typescript-eslint/recommended",
|
|
||||||
"plugin:@typescript-eslint/recommended-requiring-type-checking",
|
|
||||||
],
|
|
||||||
parser: "@typescript-eslint/parser",
|
|
||||||
parserOptions: {
|
|
||||||
tsconfigRootDir: __dirname,
|
|
||||||
project: ["../../../tsconfig.json"],
|
|
||||||
},
|
|
||||||
plugins: ["@typescript-eslint"],
|
|
||||||
};
|
|
35
src/types/ffmpeg-core/ffmpeg-core.d.ts
vendored
35
src/types/ffmpeg-core/ffmpeg-core.d.ts
vendored
@ -1,35 +0,0 @@
|
|||||||
type Pointer = number;
|
|
||||||
type StringPointer = Pointer;
|
|
||||||
type StringArrayPointer = Pointer;
|
|
||||||
|
|
||||||
export interface FS {
|
|
||||||
mkdir: (fileName: string) => void;
|
|
||||||
readFile: (fileName: string) => Uint8Array;
|
|
||||||
readdir: (pathName: string) => string[];
|
|
||||||
unlink: (fileName: string) => void;
|
|
||||||
writeFile: (fileName: string, binaryData: Uint8Array | string) => void;
|
|
||||||
}
|
|
||||||
|
|
||||||
export interface Log {
|
|
||||||
type: string;
|
|
||||||
message: string;
|
|
||||||
}
|
|
||||||
|
|
||||||
export interface FFmpegModule {
|
|
||||||
DEFAULT_ARGS: string[];
|
|
||||||
FS: FS;
|
|
||||||
NULL: Pointer;
|
|
||||||
SIZE_I32: number;
|
|
||||||
|
|
||||||
ret: number;
|
|
||||||
timeout: number;
|
|
||||||
|
|
||||||
exec: (...args: string[]) => number;
|
|
||||||
reset: () => void;
|
|
||||||
setLogger: (logger: (log: Log) => void) => void;
|
|
||||||
setTimeout: (timeout: number) => void;
|
|
||||||
setProgress: (handler: (progress: number) => void) => void;
|
|
||||||
}
|
|
||||||
|
|
||||||
declare function createFFmpeg(): Promise<FFmpegModule>;
|
|
||||||
export default createFFmpeg;
|
|
Loading…
Reference in New Issue
Block a user