proscenium 0.9.0-x86_64-linux → 0.9.1-x86_64-linux

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: e89c958a1a78e610ea61941c833eead456c32f9030c1f880afe5270633158fdb
4
- data.tar.gz: 6f80d724798b69aa1e9cf8bb92cecd60ec84b99e314f40c36ba44bb7a0b74c8d
3
+ metadata.gz: 71a12abb51c6bceb8d9967c2c4421273cd1bc80b2d775aa67e72602dfae82cf3
4
+ data.tar.gz: 2ce2a87ee29c7c74cb5a50e1e1281ef450a811a8e2b088b99a58c7c2476c733b
5
5
  SHA512:
6
- metadata.gz: 4241bcc1c617d80496be4f10e373fd15e6cf75227c5fbb0a9f974568276a0c5b490c8cd99efab7818208b595209eb6e068f03942e05073d4e314a7a267d9f70b
7
- data.tar.gz: bf1e4c6cd00298f4210ac1a6228dd15a0f022c2b33b8b2a01b14753ef7cc0f35c5989e0d7e9e755728492e71699203d958fdef6400b44a2a7750fbe0d306aa7d
6
+ metadata.gz: fcdeaf64d5ae076567bf4b0bc48f8c2ec5aace968fdeae919a1761a3a6017bbbb80790b9ad2d638b282517190f01077d4f53f05ce69830860f4dd47755a8f74a
7
+ data.tar.gz: 89da9f60cb2db25668fc3ca980de9e7cf3f98d45755070ccbac8d03e88a83d7e058f0a2888159b9aa5d3b14536954212921eb8d64e368cf897db12895dd4fc2c
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-linux
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