proscenium 0.9.0-x86_64-darwin → 0.9.1-x86_64-darwin

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: 7275553369eb466cb49d27691c77ba994f2c207db06d3ea01b7462f8a2cdef42
4
- data.tar.gz: c1c90ebc442cae8ae0f514fd3470fbe338e3527cd6049540c5b218bc3c533c6f
3
+ metadata.gz: 5fac23eaa79ef18f9c4c9bf82d12ff14eca482e77aa8edacb4a56fe481b836eb
4
+ data.tar.gz: 5c2480032ed37c8b6c71873a18095422ca3a83a618d1388cb6e8f8cdff72f922
5
5
  SHA512:
6
- metadata.gz: e1c1a04bb140750dffdff38a87e53f30f24ba0f94c4ca8bad97b5cd762a735f26299fdb14ceb3bf82f372747169a09196834cce786d21a7338ba24a07335063c
7
- data.tar.gz: ca9476628bc14855c44a51eda50d04f981deb8c61578989be9a7c785380f1a652ce4bd7d607f56abe9e62279554320ea2d95ac40532b998ff4773d617fe03567
6
+ metadata.gz: 3f7da4b2ccee543397ccee7a7056a113cf25e5dce643d0f73d3a7905c102b9361e0675d237b0bde8ce9b4853bdf83b647cf5f717e4245f61315c5fd1f2d23346
7
+ data.tar.gz: dda1615fbbcd74a940a73f1b7fc586755ac6b7e659152e4ee017bbb0f3948db266ea444e622e878790b6601f9ef8f25acfbc578bbd5f1a61550dbb00cd415e4f
data/README.md CHANGED
@@ -20,6 +20,13 @@ configuration.
20
20
  - Source maps.
21
21
  - Phlex and ViewComponent integration.
22
22
 
23
+ ## Getting Started
24
+
25
+ Getting started obviously depends on whether you are adding Proscenium to an existing Rails app, or creating a new Rails app. So please choose the appropriate guide below:
26
+
27
+ - [Getting Started with a new Rails app](https://github.com/joelmoss/proscenium/blob/master/docs/guides/new_rails_app.md)
28
+ - Getting Started with an existing Rails app *[Coming soon]*
29
+
23
30
  ## Installation
24
31
 
25
32
  Add this line to your Rails application's Gemfile, and you're good to go:
@@ -46,6 +53,16 @@ Using the examples above...
46
53
  - `app/components/menu_component.jsx` => `https://yourapp.com/app/components/menu_component.jsx`
47
54
  - `config/properties.css` => `https://yourapp.com/config/properties.css`
48
55
 
56
+ ### Include Paths
57
+
58
+ By default, Proscenium will serve files ending with any of these extension: `js,mjs,ts,css,jsx,tsx`, and only from `app/assets`, `config`, `app/views`, `lib` and `node_modules` directories.
59
+
60
+ However, you can customise these paths with the `include_path` config option...
61
+
62
+ ```ruby
63
+ Rails.application.config.proscenium.include_paths << 'app/components'
64
+ ```
65
+
49
66
  ## Side Loading
50
67
 
51
68
  Proscenium has built in support for automatically side loading JS, TS and CSS with your views and
@@ -386,16 +403,6 @@ The cache is set with a `max-age` of 30 days. You can customise this with the `c
386
403
  Rails.application.config.proscenium.cache_max_age = 12.months.to_i
387
404
  ```
388
405
 
389
- ## Include Paths
390
-
391
- By default, Proscenium will serve files ending with any of these extension: `js,mjs,css,jsx`, and only from `config`, `app/views`, `lib` and `node_modules` directories.
392
-
393
- However, you can customise these paths with the `include_path` config option...
394
-
395
- ```ruby
396
- Rails.application.config.proscenium.include_paths << 'app/components'
397
- ```
398
-
399
406
  ## rjs is back!
400
407
 
401
408
  Proscenium brings back RJS! Any path ending in .rjs will be served from your Rails app. This allows you to import server rendered javascript.
Binary file
@@ -9,7 +9,7 @@ module Proscenium
9
9
  FILE_EXTENSIONS = ['js', 'mjs', 'ts', 'jsx', 'tsx', 'css', 'js.map', 'mjs.map', 'jsx.map',
10
10
  'ts.map', 'tsx.map', 'css.map'].freeze
11
11
 
12
- APPLICATION_INCLUDE_PATHS = ['config', 'app/views', 'lib', 'node_modules'].freeze
12
+ APPLICATION_INCLUDE_PATHS = ['config', 'app/assets', 'app/views', 'lib', 'node_modules'].freeze
13
13
 
14
14
  class << self
15
15
  def config
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Proscenium
4
- VERSION = '0.9.0'
4
+ VERSION = '0.9.1'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: proscenium
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.0
4
+ version: 0.9.1
5
5
  platform: x86_64-darwin
6
6
  authors:
7
7
  - Joel Moss
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-06-07 00:00:00.000000000 Z
11
+ date: 2023-06-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport