diff --git a/plugin/postcat-export-postman/package.json b/plugin/postcat-export-postman/package.json new file mode 100644 index 000000000..30be1fa9c --- /dev/null +++ b/plugin/postcat-export-postman/package.json @@ -0,0 +1,37 @@ +{ + "name": "postcat-export-postman", + "title": "Push to EoLink", + "version": "1.0.0", + "description": "postcat extension for push api data to other program", + "main": "dist/index.js", + "logo": "https://s3.bmp.ovh/imgs/2022/05/18/d8d200e3dc050831.png", + "scripts": { + "build": "rollup -c rollup.config.js", + "build:watch": "rollup -w -c rollup.config.js" + }, + "dependencies": { "rollup": "^2.70.2" }, + "features": { + "syncAPI": { + "action": "exportPostmanData", + "label": "EoLink", + "description": "Push API data to eolink.", + "icon": "https://raw.githubusercontent.com/eolinker/postcat-foo/main/assets/logo.png", + "extestion": "" + } + }, + "contributes": { + "configuration": { + "type": "object", + "title": "Push", + "properties": { + "eolink.remoteServer.token": { + "type": "string", + "required": false, + "default": "XXXXXXXX", + "label": "Token", + "description": "" + } + } + } + } +} diff --git a/plugin/postcat-export-postman/pnpm-lock.yaml b/plugin/postcat-export-postman/pnpm-lock.yaml new file mode 100644 index 000000000..5a55d4f01 --- /dev/null +++ b/plugin/postcat-export-postman/pnpm-lock.yaml @@ -0,0 +1,34 @@ +lockfileVersion: '9.0' + +settings: + autoInstallPeers: true + excludeLinksFromLockfile: false + +importers: + + .: + dependencies: + rollup: + specifier: ^2.70.2 + version: 2.79.2 + +packages: + + fsevents@2.3.3: + resolution: {integrity: sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==} + engines: {node: ^8.16.0 || ^10.6.0 || >=11.0.0} + os: [darwin] + + rollup@2.79.2: + resolution: {integrity: sha512-fS6iqSPZDs3dr/y7Od6y5nha8dW1YnbgtsyotCVvoFGKbERG++CVRFv1meyGDE1SNItQA8BrnCw7ScdAhRJ3XQ==} + engines: {node: '>=10.0.0'} + hasBin: true + +snapshots: + + fsevents@2.3.3: + optional: true + + rollup@2.79.2: + optionalDependencies: + fsevents: 2.3.3 diff --git a/plugin/postcat-export-postman/rollup.config.js b/plugin/postcat-export-postman/rollup.config.js new file mode 100644 index 000000000..81f53b0ca --- /dev/null +++ b/plugin/postcat-export-postman/rollup.config.js @@ -0,0 +1,16 @@ +/** @type import('rollup').RollupOptions */ +const nodeCjs = { + input: './index.js', + output: [ + { + file: 'dist/index.js', + format: 'umd', + name: 'index', + sourcemap: 'inline', + }, + ], +}; + +const bundles = [nodeCjs]; + +export default bundles;