praveenpuglia / vuetify-daterange-picker

The missing date range picker for Vuetify JS you have been looking for.
https://vuetify-daterange-picker.gitbook.io/docs
MIT License
197 stars 59 forks source link

refactor to use poi for demo and bili for publishing to npm #3

Closed vinaypuppal closed 6 years ago

vinaypuppal commented 6 years ago

Hi,

Currently this component is published to NPM as a direct .vue file, which is probably not a good idea. Can someone help me distribute this properly? I have no idea around that.

  1. I solved this by using https://egoist.moe/bili/
  2. Configured eslint
  3. Added MIT License
  4. Added vue, vuetify and moment to peerDependencies
  5. created demo folder which can be build using https://poi.js.org/#/

    How to publish to npm?

  6. yarn build will generate dist/ folder which can be published to npm which contains these files screen shot 2018-02-03 at 18 34 08
  7. yarn publish

How to deploy demo folder

  1. yarn build:demo will generate build/ folder which can be deployed to netlify or surge.sh
  2. I added https://www.npmjs.com/package/ghpages which can be used to deploy demo folder to gh-pages, just run yarn deploy it will build demo folder and push build/ folder to gh-pages branch of this repo.
praveenpuglia commented 6 years ago

@vinaypuppal super awesome! Thanks for the help. Really really happy.

One thing though, are you using prettier? If not, can you the run the code through prettier once?

vinaypuppal commented 6 years ago

Yes I am using prettier, and also I have https://github.com/vuejs/vetur configured in my editor

praveenpuglia commented 6 years ago

Something has screwed up with my vscode installation. Just wanted to test things out.. Need some time.

praveenpuglia commented 6 years ago

@vinaypuppal - Merged. Thanks for the awesome PR.

vinaypuppal commented 6 years ago

Awesome, let me know once you publish to NPM.

praveenpuglia commented 6 years ago

Published! :)

vinaypuppal commented 6 years ago

For changelogs or GH releases, you can use this tool https://github.com/zeit/release

praveenpuglia commented 6 years ago

Don't forget to ⭐️ the repo. It's your baby now! :) #shameless