Support vendoring npm module code

This commit is contained in:
Râu Cao
2023-03-07 18:30:09 +08:00
parent 8eb5f093a4
commit b03c6e9513
4 changed files with 14 additions and 0 deletions

View File

@@ -78,6 +78,13 @@ The setup task will first delete any existing entries in the directory tree
Note that all 389ds data is stored in `tmp/389ds`. So if you want to start over
with a fresh installation, delete both that directory as well as the container.
### Adding npm modules to use with Stimulus controllers
The following command downloads the specified npm module to `vendor/javascript`
and adds an entry for it to `config/importmap.rb`.
bin/importmap pin bech32 --download
### Solargraph
[Solargraph](https://solargraph.org/) is a Ruby language server, which you may
@@ -98,6 +105,7 @@ command:
* [Tailwind CSS](https://tailwindcss.com/)
* [Sass](https://sass-lang.com/documentation)
* [Stimulus](https://stimulus.hotwired.dev/handbook/)
### Testing