proscenium 0.9.0-arm64-darwin → 0.9.1-arm64-darwin
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +17 -10
- data/lib/proscenium/ext/proscenium +0 -0
- data/lib/proscenium/railtie.rb +1 -1
- data/lib/proscenium/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 15424d2f9be8b21e02ff041ffd66b1d3941ed266473fd543026b267d740263af
|
4
|
+
data.tar.gz: 17a8a97411258ea8d097bddac3591145d5b9ae14dc4281cdf67080437a8e218f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 792b961dcfbe60717023bbfa437e1694112731d3e82548801464ef78dc1b916f77a2bac4332e4e8e1f2629827166088d3f233df09509cc929711f85dd4db64d3
|
7
|
+
data.tar.gz: 7bdf1387811bf3ade70697d043581c29742d9ffdfdcc3a37a2a0d71a285ff1f28cad9a59f92ef60e0a407c1a77033f228a8018cdd6928a68a7115f09998f6818
|
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
|
data/lib/proscenium/railtie.rb
CHANGED
@@ -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
|
data/lib/proscenium/version.rb
CHANGED
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.
|
4
|
+
version: 0.9.1
|
5
5
|
platform: arm64-darwin
|
6
6
|
authors:
|
7
7
|
- Joel Moss
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-06-
|
11
|
+
date: 2023-06-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|