proscenium 0.9.0-aarch64-linux → 0.9.1-aarch64-linux
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: 6c27aded2315943ff0541119bdb54e7c63df7d010ea9b08254ca9f125c61fe0e
|
4
|
+
data.tar.gz: 50138ddc893e12b2f37a4d426c2cebe8e291eb1914e99b468b80b212d5ae86d0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c5f7ce89b76598f2b0c053fa19304d143ecc462c758bcb94cb0874e2425db8ac92e6386ae886928db901b1fe110bd1251a882f3051499e9af552c5731a3aff9b
|
7
|
+
data.tar.gz: 235609303eed6fe09a8afdcf5e0acdb971002e63028807412913b691447f0dcd21f7e5a724fc03fec0ceedf60597fa0795383a212e538fd0533efebbe346ea6c
|
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: aarch64-linux
|
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
|