Skip to content

Commit 00d24f7

Browse files
committed
🕹 refresh deps and get ready for some more fun
1 parent ae5e104 commit 00d24f7

10 files changed

+2997
-679
lines changed

Diff for: .babelrc

+7-7
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
{
2-
"presets": [
2+
"presets": ["next/babel"],
3+
"plugins": [
4+
"transform-flow-strip-types",
35
[
4-
"next/babel",
6+
"styled-components",
57
{
6-
"styled-jsx": {
7-
"plugins": [
8-
"styled-jsx-plugin-sass"
9-
]
10-
}
8+
"ssr": true,
9+
"displayName": true,
10+
"preprocess": false
1111
}
1212
]
1313
]

Diff for: .eslintrc

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"parser": "babel-eslint"
3+
}

Diff for: .flowconfig

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
[ignore]
2+
.*/node_modules/@mapbox/*
3+
4+
[include]
5+
6+
[libs]
7+
8+
[options]

Diff for: cosmos.config.js

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
module.exports = {
2+
publicPath: 'static',
3+
publicUrl: '/static/',
4+
};

Diff for: flow-typed/next.js.flow

+66
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
// @flow
2+
3+
declare module 'next' {
4+
declare type NextApp = {
5+
prepare(): Promise<void>,
6+
getRequestHandler(): any,
7+
render(req: any, res: any, pathname: string, query: any): any,
8+
renderToHTML(req: any, res: any, pathname: string, query: string): string,
9+
renderError(err: Error, req: any, res: any, pathname: any, query: any): any,
10+
renderErrorToHTML(
11+
err: Error,
12+
req: any,
13+
res: any,
14+
pathname: string,
15+
query: any
16+
): string,
17+
};
18+
declare module.exports: (...opts: any) => NextApp;
19+
}
20+
21+
declare module 'next/head' {
22+
declare module.exports: Class<React$Component<any, any>>;
23+
}
24+
25+
declare module 'next/link' {
26+
declare module.exports: Class<
27+
React$Component<{ href: string, prefetch?: boolean }, any>
28+
>;
29+
}
30+
31+
declare module 'next/error' {
32+
declare module.exports: Class<React$Component<{ statusCode: number }, any>>;
33+
}
34+
35+
declare module 'next/router' {
36+
declare module.exports: {
37+
route: string,
38+
pathname: string,
39+
query: Object,
40+
onRouteChangeStart: ?(url: string) => void,
41+
onRouteChangeComplete: ?(url: string) => void,
42+
onRouteChangeError: ?(
43+
err: Error & { cancelled: boolean },
44+
url: string
45+
) => void,
46+
push(url: string, as: ?string): Promise<boolean>,
47+
replace(url: string, as: ?string): Promise<boolean>,
48+
};
49+
}
50+
51+
declare module 'next/document' {
52+
declare export var Head: Class<React$Component<any, any>>;
53+
declare export var Main: Class<React$Component<any, any>>;
54+
declare export var NextScript: Class<React$Component<any, any>>;
55+
declare export default Class<React$Component<any, any>> & {
56+
getInitialProps: (ctx: {
57+
pathname: string,
58+
query: any,
59+
req?: any,
60+
res?: any,
61+
jsonPageRes?: any,
62+
err?: any,
63+
}) => Promise<any>,
64+
renderPage(cb: Function): void,
65+
};
66+
}

0 commit comments

Comments
 (0)