adrienpoly / stimulus-flatpickr

A modest, yet powerful wrapper of Flatpickr 📆 for Stimulus
MIT License
415 stars 30 forks source link

Adds importmap installation guide under install section #113

Closed thatosmk closed 1 year ago

thatosmk commented 1 year ago

Changes

This PR adds a guide on installing stimulus-flatpickr with import maps.

Example

./bin/importmap pin flatpickr stimulus-flatpickr@beta

Pinning "flatpickr" to https://ga.jspm.io/npm:flatpickr@4.6.13/dist/esm/index.js
Pinning "stimulus-flatpickr" to https://ga.jspm.io/npm:stimulus-flatpickr@1.4.0/dist/index.js
Pinning "stimulus" to https://ga.jspm.io/npm:stimulus@3.2.2/dist/stimulus.js

You can then use it in your application.js entrypoint like you would any other module.

adrienpoly commented 1 year ago

thanks