-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathpackage.json
207 lines (207 loc) · 7.27 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
{
"name": "@mmomtchev/ffmpeg",
"version": "1.0.1",
"description": "Full native ffmpeg bindings for Node.js with Streams support",
"main": "lib/index.js",
"types": "lib/index.d.ts",
"scripts": {
"install": "npx xpm run npm-install",
"postinstall": "node scripts/motd",
"build": "npx xpm install && npx xpm run prepare && npx xpm run build",
"test": "npx mocha",
"lint": "bash -c \"clang-format -i src/binding/*.{cc,h}\" && eslint --fix src/lib/*.[jt]s test/*.[jt]s",
"clean": "npx xpm run clean && tsc --build --clean",
"prepare": "npx rollup -c rollup.config.js",
"preversion": "npm run lint && npm run test",
"postversion": "git push && git push --tags && node ./scripts/publish-packages.js",
"postpublish": "gh workflow run test-npm.yml -F version=$npm_package_version"
},
"repository": {
"type": "git",
"url": "git+https://github.com/mmomtchev/ffmpeg.git"
},
"keywords": [
"node.js",
"ffmpeg",
"video",
"encoding",
"codec"
],
"binary": {
"module_name": "ffmpeg",
"module_path": "./lib/binding/{platform}-{arch}",
"remote_path": "v{version}",
"host": "https://github.com/mmomtchev/ffmpeg/releases/download/",
"package_name": "{platform}-{arch}.tar.gz",
"hosting": {
"provider": "github",
"repo": "mmomtchev/ffmpeg"
}
},
"author": "Momtchil Momtchev <[email protected]>",
"license": "ISC",
"bugs": {
"url": "https://github.com/mmomtchev/ffmpeg/issues"
},
"exports": {
".": "./lib/index.js",
"./stream": "./stream.js"
},
"homepage": "https://github.com/mmomtchev/ffmpeg#readme",
"dependencies": {
"nobind17": "^1.2.0",
"node-addon-api": "^8.0.0"
},
"devDependencies": {
"@eslint/eslintrc": "^3.2.0",
"@eslint/js": "^9.18.0",
"@octokit/core": "^6.0.0",
"@rollup/plugin-typescript": "^12.1.0",
"@types/chai": "^4.3.11",
"@types/mocha": "^10.0.6",
"@types/node": "^22.0.0",
"@typescript-eslint/eslint-plugin": "^8.0.0",
"c8": "^10.0.0",
"chai": "^4.3.10",
"eslint-plugin-mocha": "^10.2.0",
"globals": "^15.14.0",
"magickwand.js": "^2.0.0",
"mocha": "^11.0.1",
"readable-stream-clone": "^1.0.0",
"rollup": "^4.9.4",
"rollup-plugin-dts": "^6.1.0",
"ts-node": "^10.9.1",
"tsconfig-paths": "^4.2.0",
"typescript": "^5.3.3"
},
"engines": {
"node": ">=18"
},
"xpack": {
"minimumXpmRequired": "0.19.1",
"properties": {
"module_name": "example",
"buildFolderRelativePath": "{{ 'build' | to_filename | downcase }}",
"installFolderPath": "{{ '/' | path_join: properties.cwd | path_join: 'lib' | path_join: 'binding' }}",
"toolchain": "system",
"platformId": "{{ os.platform | concat: '-' | concat: os.arch }}",
"commandConanBuildEnv": {
"win32": "{{ properties.buildFolderRelativePath }}\\conanbuild.bat && ",
"linux": ". {{ properties.buildFolderRelativePath }}/conanbuild.sh && ",
"darwin": ". {{ properties.buildFolderRelativePath }}/conanbuild.sh && "
},
"commandShowEnv": {
"win32": "set",
"linux": "env",
"darwin": "env"
},
"commandInit": {
"win32": "IF NOT EXIST build ( mkdir build )",
"linux": "mkdir -p build",
"darwin": "mkdir -p build"
},
"commandWipe": {
"win32": "rd /q /s",
"linux": "rm -rf",
"darwin": "rm -rf"
},
"cwd": "{{ path.sep | path_relative: '.' }}",
"argsConan": "--build=missing --settings=build_type={{ properties.buildType | capitalize }} -pr=./hadron/{{ properties.toolchain }}-{{ os.platform }}.profile",
"commandConanDependencies": "conan install . {{ properties.argsConan }} -of {{ properties.buildFolderRelativePath }} --settings compiler.cppstd=17 ",
"commandConanLock": "conan lock create . {{ properties.argsConan }}",
"commandPrepare": "{{ properties.commandConanBuildEnv[os.platform] }} meson setup --backend ninja --buildtype {{ properties.buildType }} {{ properties.buildFolderRelativePath }} . -Dprefix={{ properties.installFolderPath }} --native-file hadron{{ path.sep }}conan.ini --native-file hadron{{ path.sep }}{{ properties.toolchain }}-{{ os.platform }}.ini --native-file {{ properties.buildFolderRelativePath }}/conan_meson_native.ini",
"commandConfigure": "meson configure {{ properties.buildFolderRelativePath }}",
"commandBuild": "{{ properties.commandConanBuildEnv[os.platform] }} meson compile -C {{ properties.buildFolderRelativePath }} -v",
"commandInstall": "meson install -C {{ properties.buildFolderRelativePath }}",
"commandClean": "{{properties.commandWipe[os.platform]}} {{ properties.buildFolderRelativePath }}",
"verbose": "{% if env.npm_config_loglevel %}--verbose{% endif %}",
"scriptInstall": "npx prebuild-install -d {{ properties.verbose }} || ( npx xpm install && xpm run prepare --config native && xpm run build --config native )"
},
"actions": {
"npm-install": [
"{% if env.npm_config_loglevel %}{{ properties.commandShowEnv[os.platform] }}{% endif %}",
"{% unless env.npm_config_skip_node_ffmpeg_binary %}{{ properties.scriptInstall }}{% endunless %}"
],
"prepare": "npx xpm run prepare --config Release",
"configure": "{{ properties.commandConfigure }}",
"build": "npx xpm run build --config Release",
"clean": "{{ properties.commandClean }}",
"lock": "{{ properties.commandConanLock }}",
"python": "python",
"meson": "meson",
"conan": "conan"
},
"buildConfigurations": {
"Release": {
"properties": {
"buildType": "release"
},
"actions": {
"prepare": [
"{{ properties.commandConanDependencies }}",
"{{ properties.commandPrepare }}"
],
"build": [
"{{ properties.commandBuild }}",
"{{ properties.commandInstall }}"
]
}
},
"Debug": {
"inherit": [
"Release"
],
"properties": {
"buildType": "debug"
}
},
"xpack": {
"properties": {
"buildType": "release",
"toolchain": "clang"
},
"actions": {
"prepare": [
"{{ properties.commandConanDependencies }}",
"{{ properties.commandPrepare }}"
],
"build": [
"{{ properties.commandBuild }}",
"{{ properties.commandInstall }}"
]
},
"devDependencies": {
"@xpack-dev-tools/clang": "17.0.6-1.1",
"@xpack-dev-tools/windows-build-tools": "4.4.1-2.1"
}
}
},
"devDependencies": {
"@mmomtchev/meson-xpack": {
"specifier": "1.5.1-2",
"local": "link",
"platforms": "all"
},
"@mmomtchev/python-xpack": {
"specifier": "3.10.14-5",
"local": "link",
"platforms": "all"
},
"@mmomtchev/conan-xpack": {
"specifier": "2.7.0-1",
"local": "link",
"platforms": "all"
},
"@xpack-dev-tools/cmake": {
"specifier": "3.27.9-1.2",
"local": "link",
"platforms": "all"
},
"@xpack-dev-tools/ninja-build": {
"specifier": "1.11.1-3.1",
"local": "link",
"platforms": "all"
}
}
}
}