Skip to content
This repository has been archived by the owner on Jul 9, 2021. It is now read-only.

Commit

Permalink
[added] the json loader to DevServer, interface declaration for `…
Browse files Browse the repository at this point in the history
…lodash/debounce` and `React.PropTypes.number`
  • Loading branch information
thealjey committed Jun 9, 2016
1 parent 4ba5626 commit e5d7dc4
Show file tree
Hide file tree
Showing 8 changed files with 24 additions and 4 deletions.
6 changes: 3 additions & 3 deletions docs/DevServer.html
Original file line number Diff line number Diff line change
Expand Up @@ -555,7 +555,7 @@ <h5>Parameters:</h5>
<ul class="dummy">
<li>
<a href="DevServer.js.html">DevServer.js</a>,
<a href="DevServer.js.html#sunlight-1-line-187">line 187</a>
<a href="DevServer.js.html#sunlight-1-line-190">line 190</a>
</li>
</ul>
</dd>
Expand Down Expand Up @@ -649,7 +649,7 @@ <h4 class="name" id="watchJS"><span class="type-signature"></span>watchJS()</h4>
<ul class="dummy">
<li>
<a href="DevServer.js.html">DevServer.js</a>,
<a href="DevServer.js.html#sunlight-1-line-167">line 167</a>
<a href="DevServer.js.html#sunlight-1-line-170">line 170</a>
</li>
</ul>
</dd>
Expand Down Expand Up @@ -793,7 +793,7 @@ <h5>Parameters:</h5>
<ul class="dummy">
<li>
<a href="DevServer.js.html">DevServer.js</a>,
<a href="DevServer.js.html#sunlight-1-line-151">line 151</a>
<a href="DevServer.js.html#sunlight-1-line-154">line 154</a>
</li>
</ul>
</dd>
Expand Down
3 changes: 3 additions & 0 deletions docs/DevServer.js.html
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,9 @@ <h1 class="page-title">Source: DevServer.js</h1>
test: /\.js$/,
exclude: /node_modules/,
loaders
}, {
test: /\.json$/,
loader: 'json'
}]
}
}), {
Expand Down
2 changes: 1 addition & 1 deletion docs/quicksearch.html

Large diffs are not rendered by default.

4 changes: 4 additions & 0 deletions interfaces/lodash.js
Original file line number Diff line number Diff line change
Expand Up @@ -133,3 +133,7 @@ declare module 'lodash/reduce' {
declare module 'lodash/sortedIndexBy' {
declare function exports(collection: Array<any>, value: any, iteratee: ?Iteratee): number;
}

declare module 'lodash/debounce' {
declare function exports(func: Function, wait: ?number): Function;
}
1 change: 1 addition & 0 deletions interfaces/react.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ type PropTypesObject = {
object: {isRequired: void},
bool: {isRequired: void},
array: {isRequired: void},
number: {isRequired: void},
func: {isRequired: void}
};

Expand Down
3 changes: 3 additions & 0 deletions lib/DevServer.js
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,9 @@ var DevServer = exports.DevServer = function () {
test: /\.js$/,
exclude: /node_modules/,
loaders: loaders
}, {
test: /\.json$/,
loader: 'json'
}]
}
}), {
Expand Down
3 changes: 3 additions & 0 deletions src/DevServer.js
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,9 @@ export class DevServer {
test: /\.js$/,
exclude: /node_modules/,
loaders
}, {
test: /\.json$/,
loader: 'json'
}]
}
}), {
Expand Down
6 changes: 6 additions & 0 deletions test/DevServer.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,9 @@ describe('DevServer', () => {
test: /\.js$/,
exclude: /node_modules/,
loaders: ['babel']
}, {
test: /\.json$/,
loader: 'json'
}]
}
});
Expand Down Expand Up @@ -179,6 +182,9 @@ describe('DevServer', () => {
test: /\.js$/,
exclude: /node_modules/,
loaders: ['react-hot', 'babel']
}, {
test: /\.json$/,
loader: 'json'
}]
}
});
Expand Down

0 comments on commit e5d7dc4

Please sign in to comment.