gulp_assets 1.0.0.pre.3 → 1.0.0.pre.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +22 -1
- data/lib/gulp_assets/version.rb +1 -1
- data/template/webpack.hot.config.js +5 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f4c59c1028241f12c1c09258dcbee0d4473f5b00
|
4
|
+
data.tar.gz: bd7e751e6e367bc70643e3b91ff8b376154de71b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b2d5a875700067e8840a26bfb1d92447f3839e098954c1f65c30d94710681ffe178b0aa4611349fa75fd12f289ac7135a2b0c93a257ab81234f531e635fdd22a
|
7
|
+
data.tar.gz: 7b8791a85a1621cf811c3f008e5017354e2e50f2903e78a3834562db83ae5a80354776c85fe4ca9a1b84dd86edf75c9aa0e326b614596cf3ac4d34ae470c686b
|
data/README.md
CHANGED
@@ -13,7 +13,7 @@ workflow.
|
|
13
13
|
|
14
14
|
## Usage
|
15
15
|
|
16
|
-
1. Add `gem 'gulp_assets' to your Gemfile and run `bundle install`.
|
16
|
+
1. Add `gem 'gulp_assets'` to your Gemfile and run `bundle install`.
|
17
17
|
2. Run `rails generate gulp_assets` to generate all necessary files.
|
18
18
|
3. Develop your frontend code in the `frontend` directory
|
19
19
|
4. Reference files generated by gulp using the `gulp_asset_path` helper
|
@@ -95,3 +95,24 @@ used for example to change the `media` attribute for a stylesheet.
|
|
95
95
|
- `public/assets/javscripts/main.js` Output File
|
96
96
|
- `<script src="<%=gulp_asset_path('javascripts/main.js')%>"></script>`
|
97
97
|
- `<%= gulp_javascript "main" %>` or `<%= gulp_javascript %>` also generate correct links
|
98
|
+
|
99
|
+
## Development
|
100
|
+
|
101
|
+
To test while changing the JS files, run
|
102
|
+
|
103
|
+
```shell
|
104
|
+
./cli create_testapp
|
105
|
+
```
|
106
|
+
|
107
|
+
inside the root of the gem. This will generate a testapp directory that
|
108
|
+
contains a Rails app using the gem from source. All the gulp_assets
|
109
|
+
specific files are symlinked to the files and directories in the template
|
110
|
+
directory. If you want to use npm commands you have to run those inside
|
111
|
+
the template directory, otherwise npm will replace the symlink with a
|
112
|
+
new package.json.
|
113
|
+
|
114
|
+
The rails app has the following features:
|
115
|
+
|
116
|
+
- A layout requiring `main.js` and `main.css`.
|
117
|
+
- A default route rendering a static template in
|
118
|
+
`app/views/application/index.html.erb`
|
data/lib/gulp_assets/version.rb
CHANGED