frontrunner 0.1.0 → 0.1.1
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
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8d0079d2ea6ccb6c6eb7974fdad29e5221375c96
|
4
|
+
data.tar.gz: e5abcdf1524d0e0c5c97d9ad9873b46d27061bc2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a8d69720e0cc4bf8d9da0f89919942147fb5806332d92d214969de51f8d977d82faad807a5cdbc917d2550c973986ba3266ecac3cad7f9eb783ce1c54e56f10d
|
7
|
+
data.tar.gz: 4fc5235a57992fa8a980d5db2a09f1f0831cb428a651c80d3f7edf27aaf3e5da75eced3effcb1afd725123f8f3299ec08dc672d6484766be300f0fab9d4e08ab
|
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
@@ -156,7 +156,15 @@ Run:
|
|
156
156
|
npm install react react-dom -S
|
157
157
|
```
|
158
158
|
|
159
|
-
|
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
|
```
|
data/lib/frontrunner/version.rb
CHANGED
@@ -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
|
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 {
|