From 774e76577dd051db874b2ff4c307957af053fdd5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Manuel=20Rodri=CC=81guez?= Date: Mon, 1 Nov 2021 13:14:24 +0100 Subject: [PATCH] Remove dist folder before publish to npmjs --- .gitignore | 2 +- dist/docs.json | 230 ------------------------------------ dist/esm/definitions.d.ts | 48 -------- dist/esm/definitions.js | 2 - dist/esm/definitions.js.map | 1 - dist/esm/index.d.ts | 4 - dist/esm/index.js | 7 -- dist/esm/index.js.map | 1 - dist/esm/web.d.ts | 6 - dist/esm/web.js | 12 -- dist/esm/web.js.map | 1 - dist/plugin.cjs.js | 28 ----- dist/plugin.cjs.js.map | 1 - dist/plugin.js | 31 ----- dist/plugin.js.map | 1 - 15 files changed, 1 insertion(+), 374 deletions(-) delete mode 100644 dist/docs.json delete mode 100644 dist/esm/definitions.d.ts delete mode 100644 dist/esm/definitions.js delete mode 100644 dist/esm/definitions.js.map delete mode 100644 dist/esm/index.d.ts delete mode 100644 dist/esm/index.js delete mode 100644 dist/esm/index.js.map delete mode 100644 dist/esm/web.d.ts delete mode 100644 dist/esm/web.js delete mode 100644 dist/esm/web.js.map delete mode 100644 dist/plugin.cjs.js delete mode 100644 dist/plugin.cjs.js.map delete mode 100644 dist/plugin.js delete mode 100644 dist/plugin.js.map diff --git a/.gitignore b/.gitignore index 5559617..70ccbf7 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,5 @@ # node files -#dist # Add 'dist' folder to repo to allow install plugin from github +dist node_modules # iOS files diff --git a/dist/docs.json b/dist/docs.json deleted file mode 100644 index 26df0ef..0000000 --- a/dist/docs.json +++ /dev/null @@ -1,230 +0,0 @@ -{ - "api": { - "name": "VideoEditorPlugin", - "slug": "videoeditorplugin", - "docs": "", - "tags": [], - "methods": [ - { - "name": "edit", - "signature": "(options: EditOptions) => any", - "parameters": [ - { - "name": "options", - "docs": "", - "type": "EditOptions" - } - ], - "returns": "any", - "tags": [], - "docs": "", - "complexTypes": [ - "EditOptions", - "MediaFileResult" - ], - "slug": "edit" - }, - { - "name": "thumbnail", - "signature": "(options: ThumbnailOptions) => any", - "parameters": [ - { - "name": "options", - "docs": "", - "type": "ThumbnailOptions" - } - ], - "returns": "any", - "tags": [], - "docs": "", - "complexTypes": [ - "ThumbnailOptions", - "MediaFileResult" - ], - "slug": "thumbnail" - }, - { - "name": "addListener", - "signature": "(eventName: 'transcodeProgress', listenerFunc: (info: ProgressInfo) => void) => Promise & PluginListenerHandle", - "parameters": [ - { - "name": "eventName", - "docs": "", - "type": "\"transcodeProgress\"" - }, - { - "name": "listenerFunc", - "docs": "", - "type": "(info: ProgressInfo) => void" - } - ], - "returns": "any", - "tags": [], - "docs": "", - "complexTypes": [ - "ProgressInfo", - "PluginListenerHandle" - ], - "slug": "addlistener" - } - ], - "properties": [] - }, - "interfaces": [ - { - "name": "EditOptions", - "slug": "editoptions", - "docs": "", - "tags": [], - "methods": [], - "properties": [ - { - "name": "path", - "tags": [], - "docs": "", - "complexTypes": [], - "type": "string" - }, - { - "name": "trim", - "tags": [], - "docs": "", - "complexTypes": [], - "type": "{ startsAt?: number | undefined; endsAt?: number | undefined; } | undefined" - }, - { - "name": "transcode", - "tags": [], - "docs": "", - "complexTypes": [], - "type": "{ height?: number | undefined; width?: number | undefined; keepAspectRatio?: boolean | undefined; } | undefined" - } - ] - }, - { - "name": "MediaFileResult", - "slug": "mediafileresult", - "docs": "", - "tags": [], - "methods": [], - "properties": [ - { - "name": "file", - "tags": [], - "docs": "", - "complexTypes": [ - "MediaFile" - ], - "type": "MediaFile" - } - ] - }, - { - "name": "MediaFile", - "slug": "mediafile", - "docs": "", - "tags": [], - "methods": [], - "properties": [ - { - "name": "name", - "tags": [], - "docs": "The name of the file, without path information.", - "complexTypes": [], - "type": "string" - }, - { - "name": "path", - "tags": [], - "docs": "The full path of the file, including the name.", - "complexTypes": [], - "type": "string" - }, - { - "name": "type", - "tags": [], - "docs": "The file's mime type", - "complexTypes": [], - "type": "string" - }, - { - "name": "size", - "tags": [], - "docs": "The size of the file, in bytes.", - "complexTypes": [], - "type": "number" - } - ] - }, - { - "name": "ThumbnailOptions", - "slug": "thumbnailoptions", - "docs": "", - "tags": [], - "methods": [], - "properties": [ - { - "name": "path", - "tags": [], - "docs": "", - "complexTypes": [], - "type": "string" - }, - { - "name": "at", - "tags": [], - "docs": "", - "complexTypes": [], - "type": "number | undefined" - }, - { - "name": "width", - "tags": [], - "docs": "", - "complexTypes": [], - "type": "number | undefined" - }, - { - "name": "height", - "tags": [], - "docs": "", - "complexTypes": [], - "type": "number | undefined" - } - ] - }, - { - "name": "ProgressInfo", - "slug": "progressinfo", - "docs": "", - "tags": [], - "methods": [], - "properties": [ - { - "name": "progress", - "tags": [], - "docs": "", - "complexTypes": [], - "type": "number" - } - ] - }, - { - "name": "PluginListenerHandle", - "slug": "pluginlistenerhandle", - "docs": "", - "tags": [], - "methods": [], - "properties": [ - { - "name": "remove", - "tags": [], - "docs": "", - "complexTypes": [], - "type": "() => any" - } - ] - } - ], - "enums": [] -} \ No newline at end of file diff --git a/dist/esm/definitions.d.ts b/dist/esm/definitions.d.ts deleted file mode 100644 index 66019f6..0000000 --- a/dist/esm/definitions.d.ts +++ /dev/null @@ -1,48 +0,0 @@ -import type { PluginListenerHandle } from '@capacitor/core'; -export interface VideoEditorPlugin { - edit(options: EditOptions): Promise; - thumbnail(options: ThumbnailOptions): Promise; - addListener(eventName: 'transcodeProgress', listenerFunc: (info: ProgressInfo) => void): Promise & PluginListenerHandle; -} -export interface EditOptions { - path: string; - trim?: { - startsAt?: number; - endsAt?: number; - }; - transcode?: { - height?: number; - width?: number; - keepAspectRatio?: boolean; - }; -} -export interface ThumbnailOptions { - path: string; - at?: number; - width?: number; - height?: number; -} -export interface MediaFileResult { - file: MediaFile; -} -export interface MediaFile { - /** - * The name of the file, without path information. - */ - name: string; - /** - * The full path of the file, including the name. - */ - path: string; - /** - * The file's mime type - */ - type: string; - /** - * The size of the file, in bytes. - */ - size: number; -} -export interface ProgressInfo { - progress: number; -} diff --git a/dist/esm/definitions.js b/dist/esm/definitions.js deleted file mode 100644 index 497acb5..0000000 --- a/dist/esm/definitions.js +++ /dev/null @@ -1,2 +0,0 @@ -export {}; -//# sourceMappingURL=definitions.js.map \ No newline at end of file diff --git a/dist/esm/definitions.js.map b/dist/esm/definitions.js.map deleted file mode 100644 index a8a0176..0000000 --- a/dist/esm/definitions.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"definitions.js","sourceRoot":"","sources":["../../src/definitions.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/dist/esm/index.d.ts b/dist/esm/index.d.ts deleted file mode 100644 index 7716640..0000000 --- a/dist/esm/index.d.ts +++ /dev/null @@ -1,4 +0,0 @@ -import type { VideoEditorPlugin } from './definitions'; -declare const VideoEditor: VideoEditorPlugin; -export * from './definitions'; -export { VideoEditor }; diff --git a/dist/esm/index.js b/dist/esm/index.js deleted file mode 100644 index a9960fd..0000000 --- a/dist/esm/index.js +++ /dev/null @@ -1,7 +0,0 @@ -import { registerPlugin } from '@capacitor/core'; -const VideoEditor = registerPlugin('VideoEditor', { - web: () => import('./web').then(m => new m.VideoEditorWeb()), -}); -export * from './definitions'; -export { VideoEditor }; -//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/dist/esm/index.js.map b/dist/esm/index.js.map deleted file mode 100644 index fa93442..0000000 --- a/dist/esm/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AAIjD,MAAM,WAAW,GAAG,cAAc,CAAoB,aAAa,EAAE;IACnE,GAAG,EAAE,GAAG,EAAE,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,CAAC,cAAc,EAAE,CAAC;CAC7D,CAAC,CAAC;AAEH,cAAc,eAAe,CAAC;AAC9B,OAAO,EAAE,WAAW,EAAE,CAAC"} \ No newline at end of file diff --git a/dist/esm/web.d.ts b/dist/esm/web.d.ts deleted file mode 100644 index 7682eb2..0000000 --- a/dist/esm/web.d.ts +++ /dev/null @@ -1,6 +0,0 @@ -import { WebPlugin } from '@capacitor/core'; -import type { EditOptions, MediaFileResult, ThumbnailOptions, VideoEditorPlugin } from './definitions'; -export declare class VideoEditorWeb extends WebPlugin implements VideoEditorPlugin { - edit(options: EditOptions): Promise; - thumbnail(options: ThumbnailOptions): Promise; -} diff --git a/dist/esm/web.js b/dist/esm/web.js deleted file mode 100644 index 6ddcb84..0000000 --- a/dist/esm/web.js +++ /dev/null @@ -1,12 +0,0 @@ -import { WebPlugin } from '@capacitor/core'; -export class VideoEditorWeb extends WebPlugin { - edit(options) { - console.log('edit', options); - throw this.unimplemented('Not implemented on web.'); - } - thumbnail(options) { - console.log('thumbnail', options); - throw this.unimplemented('Not implemented on web.'); - } -} -//# sourceMappingURL=web.js.map \ No newline at end of file diff --git a/dist/esm/web.js.map b/dist/esm/web.js.map deleted file mode 100644 index 274f2b5..0000000 --- a/dist/esm/web.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"web.js","sourceRoot":"","sources":["../../src/web.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAS5C,MAAM,OAAO,cAAe,SAAQ,SAAS;IAC3C,IAAI,CAAC,OAAoB;QACvB,OAAO,CAAC,GAAG,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;QAE7B,MAAM,IAAI,CAAC,aAAa,CAAC,yBAAyB,CAAC,CAAC;IACtD,CAAC;IAED,SAAS,CAAC,OAAyB;QACjC,OAAO,CAAC,GAAG,CAAC,WAAW,EAAE,OAAO,CAAC,CAAC;QAElC,MAAM,IAAI,CAAC,aAAa,CAAC,yBAAyB,CAAC,CAAC;IACtD,CAAC;CACF"} \ No newline at end of file diff --git a/dist/plugin.cjs.js b/dist/plugin.cjs.js deleted file mode 100644 index 361042f..0000000 --- a/dist/plugin.cjs.js +++ /dev/null @@ -1,28 +0,0 @@ -'use strict'; - -Object.defineProperty(exports, '__esModule', { value: true }); - -var core = require('@capacitor/core'); - -const VideoEditor = core.registerPlugin('VideoEditor', { - web: () => Promise.resolve().then(function () { return web; }).then(m => new m.VideoEditorWeb()), -}); - -class VideoEditorWeb extends core.WebPlugin { - edit(options) { - console.log('edit', options); - throw this.unimplemented('Not implemented on web.'); - } - thumbnail(options) { - console.log('thumbnail', options); - throw this.unimplemented('Not implemented on web.'); - } -} - -var web = /*#__PURE__*/Object.freeze({ - __proto__: null, - VideoEditorWeb: VideoEditorWeb -}); - -exports.VideoEditor = VideoEditor; -//# sourceMappingURL=plugin.cjs.js.map diff --git a/dist/plugin.cjs.js.map b/dist/plugin.cjs.js.map deleted file mode 100644 index 40ad275..0000000 --- a/dist/plugin.cjs.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"plugin.cjs.js","sources":["esm/index.js","esm/web.js"],"sourcesContent":["import { registerPlugin } from '@capacitor/core';\nconst VideoEditor = registerPlugin('VideoEditor', {\n web: () => import('./web').then(m => new m.VideoEditorWeb()),\n});\nexport * from './definitions';\nexport { VideoEditor };\n//# sourceMappingURL=index.js.map","import { WebPlugin } from '@capacitor/core';\nexport class VideoEditorWeb extends WebPlugin {\n edit(options) {\n console.log('edit', options);\n throw this.unimplemented('Not implemented on web.');\n }\n thumbnail(options) {\n console.log('thumbnail', options);\n throw this.unimplemented('Not implemented on web.');\n }\n}\n//# sourceMappingURL=web.js.map"],"names":["registerPlugin","WebPlugin"],"mappings":";;;;;;AACK,MAAC,WAAW,GAAGA,mBAAc,CAAC,aAAa,EAAE;AAClD,IAAI,GAAG,EAAE,MAAM,mDAAe,CAAC,IAAI,CAAC,CAAC,IAAI,IAAI,CAAC,CAAC,cAAc,EAAE,CAAC;AAChE,CAAC;;ACFM,MAAM,cAAc,SAASC,cAAS,CAAC;AAC9C,IAAI,IAAI,CAAC,OAAO,EAAE;AAClB,QAAQ,OAAO,CAAC,GAAG,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;AACrC,QAAQ,MAAM,IAAI,CAAC,aAAa,CAAC,yBAAyB,CAAC,CAAC;AAC5D,KAAK;AACL,IAAI,SAAS,CAAC,OAAO,EAAE;AACvB,QAAQ,OAAO,CAAC,GAAG,CAAC,WAAW,EAAE,OAAO,CAAC,CAAC;AAC1C,QAAQ,MAAM,IAAI,CAAC,aAAa,CAAC,yBAAyB,CAAC,CAAC;AAC5D,KAAK;AACL;;;;;;;;;"} \ No newline at end of file diff --git a/dist/plugin.js b/dist/plugin.js deleted file mode 100644 index 79ba396..0000000 --- a/dist/plugin.js +++ /dev/null @@ -1,31 +0,0 @@ -var capacitorVideoEditor = (function (exports, core) { - 'use strict'; - - const VideoEditor = core.registerPlugin('VideoEditor', { - web: () => Promise.resolve().then(function () { return web; }).then(m => new m.VideoEditorWeb()), - }); - - class VideoEditorWeb extends core.WebPlugin { - edit(options) { - console.log('edit', options); - throw this.unimplemented('Not implemented on web.'); - } - thumbnail(options) { - console.log('thumbnail', options); - throw this.unimplemented('Not implemented on web.'); - } - } - - var web = /*#__PURE__*/Object.freeze({ - __proto__: null, - VideoEditorWeb: VideoEditorWeb - }); - - exports.VideoEditor = VideoEditor; - - Object.defineProperty(exports, '__esModule', { value: true }); - - return exports; - -}({}, capacitorExports)); -//# sourceMappingURL=plugin.js.map diff --git a/dist/plugin.js.map b/dist/plugin.js.map deleted file mode 100644 index 5b3d9cf..0000000 --- a/dist/plugin.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"plugin.js","sources":["esm/index.js","esm/web.js"],"sourcesContent":["import { registerPlugin } from '@capacitor/core';\nconst VideoEditor = registerPlugin('VideoEditor', {\n web: () => import('./web').then(m => new m.VideoEditorWeb()),\n});\nexport * from './definitions';\nexport { VideoEditor };\n//# sourceMappingURL=index.js.map","import { WebPlugin } from '@capacitor/core';\nexport class VideoEditorWeb extends WebPlugin {\n edit(options) {\n console.log('edit', options);\n throw this.unimplemented('Not implemented on web.');\n }\n thumbnail(options) {\n console.log('thumbnail', options);\n throw this.unimplemented('Not implemented on web.');\n }\n}\n//# sourceMappingURL=web.js.map"],"names":["registerPlugin","WebPlugin"],"mappings":";;;AACK,UAAC,WAAW,GAAGA,mBAAc,CAAC,aAAa,EAAE;IAClD,IAAI,GAAG,EAAE,MAAM,mDAAe,CAAC,IAAI,CAAC,CAAC,IAAI,IAAI,CAAC,CAAC,cAAc,EAAE,CAAC;IAChE,CAAC;;ICFM,MAAM,cAAc,SAASC,cAAS,CAAC;IAC9C,IAAI,IAAI,CAAC,OAAO,EAAE;IAClB,QAAQ,OAAO,CAAC,GAAG,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACrC,QAAQ,MAAM,IAAI,CAAC,aAAa,CAAC,yBAAyB,CAAC,CAAC;IAC5D,KAAK;IACL,IAAI,SAAS,CAAC,OAAO,EAAE;IACvB,QAAQ,OAAO,CAAC,GAAG,CAAC,WAAW,EAAE,OAAO,CAAC,CAAC;IAC1C,QAAQ,MAAM,IAAI,CAAC,aAAa,CAAC,yBAAyB,CAAC,CAAC;IAC5D,KAAK;IACL;;;;;;;;;;;;;;;;;"} \ No newline at end of file