0.2.3 • Published 2 years ago

sedoo-static-upload-plugin v0.2.3

Weekly downloads
3
License
MIT
Repository
github
Last release
2 years ago

sedooStaticUploadPlugin

Vite Plugin

Plugin is triggered after build. It takes all file generated by build and send it to a given url by a @POST Axios HTTP Request
Plugin accepts two parameters :

  • url (required) : URL of the WS you want to call
  • fileName (optional) : Name of the file you want to push. By default, name of the file build

In vite.config.js :

import UploadCDN from "sedoo-static-upload-plugin/vite-plugin-vue-upload-cdn";

export default ({ mode }) => {
  let fileName = "name of the file";
  const url = "https//my-web-service-url";
  const plugins = [
    UploadCDN(url, fileName)
  ];
};

NPM Deployement

CI trigger new tag and send new package to NPMJS. Be careful, it is not possible to send two tag with the same name to NPMJS.

  • Update package.jsonwith new number version
  • Push your code
  • Create a new tag git tag :version
  • Push your code : git push --tags
0.2.1

2 years ago

0.2.0

2 years ago

0.2.3

2 years ago

0.2.2

2 years ago

0.1.2

4 years ago

0.1.3

4 years ago

0.1.1

5 years ago

0.1.0

5 years ago