gulp_assets 1.0.0.pre.3 → 1.0.0.pre.4

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
  SHA1:
3
- metadata.gz: 061e300fbdebef77e37701894d5470892fc334bc
4
- data.tar.gz: 6389b09ddb63e55d3e43d9c20095f30b751d3fe9
3
+ metadata.gz: f4c59c1028241f12c1c09258dcbee0d4473f5b00
4
+ data.tar.gz: bd7e751e6e367bc70643e3b91ff8b376154de71b
5
5
  SHA512:
6
- metadata.gz: 3e3c003ee0f23448bf4d2abcd0c87bbb6d00f3561842e52536f9186d5520b757f40c1e1b1aa182146799c1fa1d3e7fa75c0626b74db073f7414adb84777c79b7
7
- data.tar.gz: 71a24285c33a246a6c398ee10ac7ab3c337cdbe8e52840740787741e534d4d262983d174957577e9c5132ede20ff79d752f86f82f520f8e04151856890d9f32b
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`
@@ -1,3 +1,3 @@
1
1
  module GulpAssets
2
- VERSION = "1.0.0.pre.3"
2
+ VERSION = "1.0.0.pre.4"
3
3
  end
@@ -22,7 +22,11 @@ hot.devServer = {
22
22
  contentBase: './public',
23
23
  publicPath: '/assets/javascripts',
24
24
  hot: true,
25
- colors: true
25
+ colors: true,
26
+ headers: {
27
+ 'Access-Control-Allow-Origin': '*'
28
+ }
26
29
  };
27
30
 
31
+
28
32
  module.exports = hot;
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gulp_assets
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0.pre.3
4
+ version: 1.0.0.pre.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jan Varwig