frontrunner 0.1.0 → 0.1.1

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: 9ea87ed4e2b6ec196503d17a654df0f1dd7245b3
4
- data.tar.gz: 304a3c9eb2c55cc4cbbd08809607fdfbd8c2aebd
3
+ metadata.gz: 8d0079d2ea6ccb6c6eb7974fdad29e5221375c96
4
+ data.tar.gz: e5abcdf1524d0e0c5c97d9ad9873b46d27061bc2
5
5
  SHA512:
6
- metadata.gz: 76d1d50882926e9f11e1d2029d8c0ffd1c588de1e1f331d78d8dbcf9bb69f83c18dba3ee4f6b8717b31dee28b12cef83d3a5b62371a773fb3e046c9414612d95
7
- data.tar.gz: 42c914ffd62905639e9cd247c28c7da3233c7add2aa2272ced94464928604d691135fdf14dc2836b7ab34ccf1f62074444a2fb70b20469150d31f0db346f01fc
6
+ metadata.gz: a8d69720e0cc4bf8d9da0f89919942147fb5806332d92d214969de51f8d977d82faad807a5cdbc917d2550c973986ba3266ecac3cad7f9eb783ce1c54e56f10d
7
+ data.tar.gz: 4fc5235a57992fa8a980d5db2a09f1f0831cb428a651c80d3f7edf27aaf3e5da75eced3effcb1afd725123f8f3299ec08dc672d6484766be300f0fab9d4e08ab
@@ -1,3 +1,7 @@
1
+ ## 0.1.1
2
+
3
+ - Do not include `react-hot-loader` by default
4
+
1
5
  ## 0.1.0
2
6
 
3
7
  - First release
data/README.md CHANGED
@@ -156,7 +156,15 @@ Run:
156
156
  npm install react react-dom -S
157
157
  ```
158
158
 
159
- [React Hot Loader](http://gaearon.github.io/react-hot-loader/) and support for `jsx` are already included. See [Hot Module Replacement](#hot-module-replacement) for how to activate.
159
+ Support for `jsx` is already included.
160
+
161
+ Add the [React Hot Loader](http://gaearon.github.io/react-hot-loader/) with:
162
+
163
+ ```sh
164
+ npm install react-hot-loader -D
165
+ ```
166
+
167
+ See [Hot Module Replacement](#hot-module-replacement) for how to activate.
160
168
 
161
169
  ## Entry Points
162
170
 
@@ -200,6 +208,7 @@ npm run assets:precompile
200
208
  On Heroku, you’ll need to use multiple buildpacks.
201
209
 
202
210
  ```sh
211
+ heroku buildpacks:clear
203
212
  heroku buildpacks:add heroku/nodejs
204
213
  heroku buildpacks:add heroku/ruby
205
214
  ```
@@ -1,3 +1,3 @@
1
1
  module Frontrunner
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
@@ -17,7 +17,6 @@
17
17
  "css-loader": "^0.23.1",
18
18
  "file-loader": "^0.8.5",
19
19
  "node-sass": "^3.7.0",
20
- "react-hot-loader": "^1.3.0",
21
20
  "sass-loader": "^3.2.0",
22
21
  "style-loader": "^0.13.1",
23
22
  "url-loader": "^0.5.7",
@@ -1,4 +1,5 @@
1
1
  var path = require("path");
2
+ var fs = require("fs");
2
3
  var webpack = require("webpack");
3
4
  var AssetsPlugin = require("assets-webpack-plugin");
4
5
  var CompressionPlugin = require("compression-webpack-plugin");
@@ -18,8 +19,8 @@ var config = {
18
19
  loaders: [
19
20
  {test: /\.css$/, loader: "style-loader!css-loader"},
20
21
  {test: /\.scss$/, loader: "style-loader!css-loader!sass-loader"},
21
- {test: /\.jsx?$|\.tag$/, exclude: /node_modules/, loader: "react-hot!babel-loader?cacheDirectory&presets[]=es2015&presets[]=react&plugins[]=react-require"},
22
- {test: /\.coffee$/, loader: "coffee-loader"},
22
+ {test: /\.jsx?$/, loader: "babel-loader?cacheDirectory&presets[]=es2015&presets[]=react&plugins[]=react-require", exclude: /node_modules/},
23
+ {test: /\.coffee$/, loader: "coffee-loader", exclude: /node_modules/},
23
24
  {test: /\.woff2?$|\.ttf$|\.eot$|\.svg$/, loader: "file"}
24
25
  ]
25
26
  },
@@ -46,6 +47,10 @@ var config = {
46
47
  }
47
48
  };
48
49
 
50
+ if (fs.existsSync(path.join(__dirname, "node_modules", "react-hot-loader"))) {
51
+ config.module.loaders.unshift({test: /\.jsx?$/, loader: "react-hot", exclude: /node_modules/});
52
+ }
53
+
49
54
  if (development) {
50
55
  config.devtool = "#eval-cheap-module-inline-source-map";
51
56
  } else {
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: frontrunner
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrew Kane