importmap-rails 0.4.0 → 0.4.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8e3127a8154739158fd8b7feea069b5ae6e8d353d36ba16fa446095f26b70ae0
4
- data.tar.gz: c6d7e65df38a98e5c31b5195ee298651c6550cb97e3c438ebf46c8a5290a17b6
3
+ metadata.gz: 3e7f034e1cb0febd2ab7dfd1b1422fd2b717368ea4e64e86a49ac2d92ba0db7c
4
+ data.tar.gz: 20a6b4114ccf1ee891f2ad255e70f50f8135421d6f1f1eeb68b6f73cd44d165a
5
5
  SHA512:
6
- metadata.gz: 2e186a8e9785fc7da247ddf1c459d005977a8ce21fb2403aa3e3b63c2b938b9ffa682df1742292633dd9afcae0f7a7f68582af2cafc642afd04195564fd5c2a1
7
- data.tar.gz: fc85e86b9d747e9e84e8e009bcca8e4746f6477f25d6355b705958fb917818872005127c5ad9ac8e9f9f7594d1ac06b68013038ab351cd072d45c0d4dc76b7ce
6
+ metadata.gz: 3eb40a5e05dd1541dcc53f69bb4610469a847f3a1a69591af02e002fb435627ef1b7173685a94db22936c6c50c5f5d2abcc3ea97508d3a06462ac80eb4354292
7
+ data.tar.gz: abe96793497d1ebedf3d0fc4a6ca4c8abe69f4e087a5df835a86dbc95c5c9ac13246aefa06ca92bdcd97d4647aa83cdccc4b9f69b27304c96bec074456236c11
data/README.md CHANGED
@@ -33,7 +33,7 @@ It makes sense to use logical names that match the package names used by NPM, su
33
33
 
34
34
  Importmap for Rails is designed to be used with JavaScript CDNs for your node package dependencies. The CDNs provide pre-compiled distribution versions ready to use, and offer a fast, efficient way of serving them.
35
35
 
36
- You can use the bin/importmap command that's added as part of the install to pin additional packages to your importmap. This command uses an API from JSPM.org to resolve your package dependencies most efficiently, and then add the pins to your config/importmap.rb file. It can resolve these dependencies from JSPM itself, but also from other CDNs, like unpkg.com, jsdelivr.com, skypack.dev, etc.
36
+ You can use the `./bin/importmap` command that's added as part of the install to pin additional packages to your import map. This command uses an API from [JSPM.org](https://jspm.org) to resolve your package dependencies most efficiently, and then add the pins to your `config/importmap.rb` file. It can resolve these dependencies from JSPM itself, but also from other CDNs, like [unpkg.com](https://unpkg.com), [jsdelivr.com](https://www.jsdelivr.com), [skypack.dev](https://www.skypack.dev), etc.
37
37
 
38
38
  It works like so:
39
39
 
@@ -67,6 +67,8 @@ import React from "react"
67
67
  import ReactDOM from "react-dom"
68
68
  ```
69
69
 
70
+ Run `./bin/importmap` to see more options.
71
+
70
72
 
71
73
  ## Preloading pinned modules
72
74
 
@@ -23,7 +23,7 @@ class Importmap::Pinner
23
23
  response = self.class.post("/generate", body: {
24
24
  "install" => Array(packages),
25
25
  "flattenScope" => true,
26
- "env" => [ "browser", env ],
26
+ "env" => [ "browser", "module", env ],
27
27
  "provider" => provider.to_s
28
28
  }.to_json)
29
29
 
@@ -1,3 +1,3 @@
1
1
  module Importmap
2
- VERSION = "0.4.0"
2
+ VERSION = "0.4.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: importmap-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Heinemeier Hansson