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 +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: 71a12abb51c6bceb8d9967c2c4421273cd1bc80b2d775aa67e72602dfae82cf3
|
4
|
+
data.tar.gz: 2ce2a87ee29c7c74cb5a50e1e1281ef450a811a8e2b088b99a58c7c2476c733b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
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: 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-
|
11
|
+
date: 2023-06-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|