>,
116 | }
117 | }
118 |
119 | declare type FunctionComponent = (props: P) => ?React$Element;
120 | declare type ClassComponent = Class>;
121 | declare export function withRouter(Component: ClassComponent | FunctionComponent): ClassComponent, S>;
122 |
123 | declare type MatchPathOptions = {
124 | exact?: boolean,
125 | strict?: boolean,
126 | }
127 | declare export function matchPath(pathname: string, path: string, options?: MatchPathOptions): null | Match
128 | }
129 |
--------------------------------------------------------------------------------
/flow-typed/npm/enzyme_v2.3.x.js:
--------------------------------------------------------------------------------
1 | // flow-typed signature: a1fceaefab821f37dbb2f68fae2a79eb
2 | // flow-typed version: d7a8d069fa/enzyme_v2.3.x/flow_>=v0.28.x <=v0.52.x
3 |
4 | declare module "enzyme" {
5 | declare type PredicateFunction = (
6 | wrapper: T,
7 | index: number
8 | ) => boolean;
9 | declare type NodeOrNodes = React$Element | Array>;
10 | declare type EnzymeSelector = string | ReactClass | Object;
11 |
12 | // CheerioWrapper is a type alias for an actual cheerio instance
13 | // TODO: Reference correct type from cheerio's type declarations
14 | declare type CheerioWrapper = any;
15 |
16 | declare class Wrapper {
17 | find(selector: EnzymeSelector): this,
18 | findWhere(predicate: PredicateFunction): this,
19 | filter(selector: EnzymeSelector): this,
20 | filterWhere(predicate: PredicateFunction): this,
21 | contains(nodeOrNodes: NodeOrNodes): boolean,
22 | containsMatchingElement(node: React$Element): boolean,
23 | containsAllMatchingElements(nodes: NodeOrNodes): boolean,
24 | containsAnyMatchingElements(nodes: NodeOrNodes): boolean,
25 | dive(option?: { context?: Object }): this,
26 | exists(): boolean,
27 | matchesElement(node: React$Element): boolean,
28 | hasClass(className: string): boolean,
29 | is(selector: EnzymeSelector): boolean,
30 | isEmpty(): boolean,
31 | not(selector: EnzymeSelector): this,
32 | children(selector?: EnzymeSelector): this,
33 | childAt(index: number): this,
34 | parents(selector?: EnzymeSelector): this,
35 | parent(): this,
36 | closest(selector: EnzymeSelector): this,
37 | render(): CheerioWrapper,
38 | unmount(): this,
39 | text(): string,
40 | html(): string,
41 | get(index: number): React$Element,
42 | getNode(): React$Element,
43 | getNodes(): Array>,
44 | getDOMNode(): HTMLElement | HTMLInputElement,
45 | at(index: number): this,
46 | first(): this,
47 | last(): this,
48 | state(key?: string): any,
49 | context(key?: string): any,
50 | props(): Object,
51 | prop(key: string): any,
52 | key(): string,
53 | simulate(event: string, ...args: Array): this,
54 | setState(state: {}, callback?: Function): this,
55 | setProps(props: {}): this,
56 | setContext(context: Object): this,
57 | instance(): React$Component<*, *, *>,
58 | update(): this,
59 | debug(): string,
60 | type(): string | Function | null,
61 | name(): string,
62 | forEach(fn: (node: this, index: number) => mixed): this,
63 | map(fn: (node: this, index: number) => T): Array,
64 | reduce(
65 | fn: (value: T, node: this, index: number) => T,
66 | initialValue?: T
67 | ): Array,
68 | reduceRight(
69 | fn: (value: T, node: this, index: number) => T,
70 | initialValue?: T
71 | ): Array,
72 | some(selector: EnzymeSelector): boolean,
73 | someWhere(predicate: PredicateFunction): boolean,
74 | every(selector: EnzymeSelector): boolean,
75 | everyWhere(predicate: PredicateFunction): boolean,
76 | length: number
77 | }
78 |
79 | declare export class ReactWrapper extends Wrapper {
80 | constructor(nodes: NodeOrNodes, root: any, options?: ?Object): ReactWrapper,
81 | mount(): this,
82 | ref(refName: string): this,
83 | detach(): void
84 | }
85 |
86 | declare export class ShallowWrapper extends Wrapper {
87 | equals(node: React$Element): boolean,
88 | shallow(options?: { context?: Object }): ShallowWrapper
89 | }
90 |
91 | declare export function shallow(
92 | node: React$Element,
93 | options?: { context?: Object }
94 | ): ShallowWrapper;
95 | declare export function mount(
96 | node: React$Element,
97 | options?: {
98 | context?: Object,
99 | attachTo?: HTMLElement,
100 | childContextTypes?: Object
101 | }
102 | ): ReactWrapper;
103 | declare export function render(
104 | node: React$Element,
105 | options?: { context?: Object }
106 | ): CheerioWrapper;
107 | }
108 |
--------------------------------------------------------------------------------
/flow-typed/npm/react-hot-loader_vx.x.x.js:
--------------------------------------------------------------------------------
1 | // flow-typed signature: 092ed3b24edab092c3c46f0f8b3e855b
2 | // flow-typed version: <>/react-hot-loader_v3.0.0-beta.6/flow_v0.48.0
3 |
4 | /**
5 | * This is an autogenerated libdef stub for:
6 | *
7 | * 'react-hot-loader'
8 | *
9 | * Fill this stub out by replacing all the `any` types.
10 | *
11 | * Once filled out, we encourage you to share your work with the
12 | * community by sending a pull request to:
13 | * https://github.com/flowtype/flow-typed
14 | */
15 |
16 | declare module 'react-hot-loader' {
17 | declare module.exports: any;
18 | }
19 |
20 | /**
21 | * We include stubs for each file inside this npm package in case you need to
22 | * require those files directly. Feel free to delete any files that aren't
23 | * needed.
24 | */
25 | declare module 'react-hot-loader/babel' {
26 | declare module.exports: any;
27 | }
28 |
29 | declare module 'react-hot-loader/lib/AppContainer.dev' {
30 | declare module.exports: any;
31 | }
32 |
33 | declare module 'react-hot-loader/lib/AppContainer' {
34 | declare module.exports: any;
35 | }
36 |
37 | declare module 'react-hot-loader/lib/AppContainer.prod' {
38 | declare module.exports: any;
39 | }
40 |
41 | declare module 'react-hot-loader/lib/babel/index' {
42 | declare module.exports: any;
43 | }
44 |
45 | declare module 'react-hot-loader/lib/index' {
46 | declare module.exports: any;
47 | }
48 |
49 | declare module 'react-hot-loader/lib/patch.dev' {
50 | declare module.exports: any;
51 | }
52 |
53 | declare module 'react-hot-loader/lib/patch' {
54 | declare module.exports: any;
55 | }
56 |
57 | declare module 'react-hot-loader/lib/patch.prod' {
58 | declare module.exports: any;
59 | }
60 |
61 | declare module 'react-hot-loader/lib/webpack/index' {
62 | declare module.exports: any;
63 | }
64 |
65 | declare module 'react-hot-loader/lib/webpack/makeIdentitySourceMap' {
66 | declare module.exports: any;
67 | }
68 |
69 | declare module 'react-hot-loader/lib/webpack/tagCommonJSExports' {
70 | declare module.exports: any;
71 | }
72 |
73 | declare module 'react-hot-loader/patch' {
74 | declare module.exports: any;
75 | }
76 |
77 | declare module 'react-hot-loader/webpack' {
78 | declare module.exports: any;
79 | }
80 |
81 | // Filename aliases
82 | declare module 'react-hot-loader/babel.js' {
83 | declare module.exports: $Exports<'react-hot-loader/babel'>;
84 | }
85 | declare module 'react-hot-loader/index' {
86 | declare module.exports: $Exports<'react-hot-loader'>;
87 | }
88 | declare module 'react-hot-loader/index.js' {
89 | declare module.exports: $Exports<'react-hot-loader'>;
90 | }
91 | declare module 'react-hot-loader/lib/AppContainer.dev.js' {
92 | declare module.exports: $Exports<'react-hot-loader/lib/AppContainer.dev'>;
93 | }
94 | declare module 'react-hot-loader/lib/AppContainer.js' {
95 | declare module.exports: $Exports<'react-hot-loader/lib/AppContainer'>;
96 | }
97 | declare module 'react-hot-loader/lib/AppContainer.prod.js' {
98 | declare module.exports: $Exports<'react-hot-loader/lib/AppContainer.prod'>;
99 | }
100 | declare module 'react-hot-loader/lib/babel/index.js' {
101 | declare module.exports: $Exports<'react-hot-loader/lib/babel/index'>;
102 | }
103 | declare module 'react-hot-loader/lib/index.js' {
104 | declare module.exports: $Exports<'react-hot-loader/lib/index'>;
105 | }
106 | declare module 'react-hot-loader/lib/patch.dev.js' {
107 | declare module.exports: $Exports<'react-hot-loader/lib/patch.dev'>;
108 | }
109 | declare module 'react-hot-loader/lib/patch.js' {
110 | declare module.exports: $Exports<'react-hot-loader/lib/patch'>;
111 | }
112 | declare module 'react-hot-loader/lib/patch.prod.js' {
113 | declare module.exports: $Exports<'react-hot-loader/lib/patch.prod'>;
114 | }
115 | declare module 'react-hot-loader/lib/webpack/index.js' {
116 | declare module.exports: $Exports<'react-hot-loader/lib/webpack/index'>;
117 | }
118 | declare module 'react-hot-loader/lib/webpack/makeIdentitySourceMap.js' {
119 | declare module.exports: $Exports<'react-hot-loader/lib/webpack/makeIdentitySourceMap'>;
120 | }
121 | declare module 'react-hot-loader/lib/webpack/tagCommonJSExports.js' {
122 | declare module.exports: $Exports<'react-hot-loader/lib/webpack/tagCommonJSExports'>;
123 | }
124 | declare module 'react-hot-loader/patch.js' {
125 | declare module.exports: $Exports<'react-hot-loader/patch'>;
126 | }
127 | declare module 'react-hot-loader/webpack.js' {
128 | declare module.exports: $Exports<'react-hot-loader/webpack'>;
129 | }
130 |
--------------------------------------------------------------------------------
/flow-typed/npm/history_vx.x.x.js:
--------------------------------------------------------------------------------
1 | // flow-typed signature: b4a0f5a8a4e97db6861c300c77185fc1
2 | // flow-typed version: <>/history_v^4.6.3/flow_v0.48.0
3 |
4 | /**
5 | * This is an autogenerated libdef stub for:
6 | *
7 | * 'history'
8 | *
9 | * Fill this stub out by replacing all the `any` types.
10 | *
11 | * Once filled out, we encourage you to share your work with the
12 | * community by sending a pull request to:
13 | * https://github.com/flowtype/flow-typed
14 | */
15 |
16 | declare module 'history' {
17 | declare module.exports: any;
18 | }
19 |
20 | /**
21 | * We include stubs for each file inside this npm package in case you need to
22 | * require those files directly. Feel free to delete any files that aren't
23 | * needed.
24 | */
25 | declare module 'history/createBrowserHistory' {
26 | declare module.exports: any;
27 | }
28 |
29 | declare module 'history/createHashHistory' {
30 | declare module.exports: any;
31 | }
32 |
33 | declare module 'history/createMemoryHistory' {
34 | declare module.exports: any;
35 | }
36 |
37 | declare module 'history/createTransitionManager' {
38 | declare module.exports: any;
39 | }
40 |
41 | declare module 'history/DOMUtils' {
42 | declare module.exports: any;
43 | }
44 |
45 | declare module 'history/es/createBrowserHistory' {
46 | declare module.exports: any;
47 | }
48 |
49 | declare module 'history/es/createHashHistory' {
50 | declare module.exports: any;
51 | }
52 |
53 | declare module 'history/es/createMemoryHistory' {
54 | declare module.exports: any;
55 | }
56 |
57 | declare module 'history/es/createTransitionManager' {
58 | declare module.exports: any;
59 | }
60 |
61 | declare module 'history/es/DOMUtils' {
62 | declare module.exports: any;
63 | }
64 |
65 | declare module 'history/es/index' {
66 | declare module.exports: any;
67 | }
68 |
69 | declare module 'history/es/LocationUtils' {
70 | declare module.exports: any;
71 | }
72 |
73 | declare module 'history/es/PathUtils' {
74 | declare module.exports: any;
75 | }
76 |
77 | declare module 'history/LocationUtils' {
78 | declare module.exports: any;
79 | }
80 |
81 | declare module 'history/PathUtils' {
82 | declare module.exports: any;
83 | }
84 |
85 | declare module 'history/umd/history' {
86 | declare module.exports: any;
87 | }
88 |
89 | declare module 'history/umd/history.min' {
90 | declare module.exports: any;
91 | }
92 |
93 | // Filename aliases
94 | declare module 'history/createBrowserHistory.js' {
95 | declare module.exports: $Exports<'history/createBrowserHistory'>;
96 | }
97 | declare module 'history/createHashHistory.js' {
98 | declare module.exports: $Exports<'history/createHashHistory'>;
99 | }
100 | declare module 'history/createMemoryHistory.js' {
101 | declare module.exports: $Exports<'history/createMemoryHistory'>;
102 | }
103 | declare module 'history/createTransitionManager.js' {
104 | declare module.exports: $Exports<'history/createTransitionManager'>;
105 | }
106 | declare module 'history/DOMUtils.js' {
107 | declare module.exports: $Exports<'history/DOMUtils'>;
108 | }
109 | declare module 'history/es/createBrowserHistory.js' {
110 | declare module.exports: $Exports<'history/es/createBrowserHistory'>;
111 | }
112 | declare module 'history/es/createHashHistory.js' {
113 | declare module.exports: $Exports<'history/es/createHashHistory'>;
114 | }
115 | declare module 'history/es/createMemoryHistory.js' {
116 | declare module.exports: $Exports<'history/es/createMemoryHistory'>;
117 | }
118 | declare module 'history/es/createTransitionManager.js' {
119 | declare module.exports: $Exports<'history/es/createTransitionManager'>;
120 | }
121 | declare module 'history/es/DOMUtils.js' {
122 | declare module.exports: $Exports<'history/es/DOMUtils'>;
123 | }
124 | declare module 'history/es/index.js' {
125 | declare module.exports: $Exports<'history/es/index'>;
126 | }
127 | declare module 'history/es/LocationUtils.js' {
128 | declare module.exports: $Exports<'history/es/LocationUtils'>;
129 | }
130 | declare module 'history/es/PathUtils.js' {
131 | declare module.exports: $Exports<'history/es/PathUtils'>;
132 | }
133 | declare module 'history/index' {
134 | declare module.exports: $Exports<'history'>;
135 | }
136 | declare module 'history/index.js' {
137 | declare module.exports: $Exports<'history'>;
138 | }
139 | declare module 'history/LocationUtils.js' {
140 | declare module.exports: $Exports<'history/LocationUtils'>;
141 | }
142 | declare module 'history/PathUtils.js' {
143 | declare module.exports: $Exports<'history/PathUtils'>;
144 | }
145 | declare module 'history/umd/history.js' {
146 | declare module.exports: $Exports<'history/umd/history'>;
147 | }
148 | declare module 'history/umd/history.min.js' {
149 | declare module.exports: $Exports<'history/umd/history.min'>;
150 | }
151 |
--------------------------------------------------------------------------------
/flow-typed/npm/identity-obj-proxy_vx.x.x.js:
--------------------------------------------------------------------------------
1 | // flow-typed signature: e9750a7c7f5e10f5fe011dc5eb43c65d
2 | // flow-typed version: <>/identity-obj-proxy_v^3.0.0/flow_v0.48.0
3 |
4 | /**
5 | * This is an autogenerated libdef stub for:
6 | *
7 | * 'identity-obj-proxy'
8 | *
9 | * Fill this stub out by replacing all the `any` types.
10 | *
11 | * Once filled out, we encourage you to share your work with the
12 | * community by sending a pull request to:
13 | * https://github.com/flowtype/flow-typed
14 | */
15 |
16 | declare module 'identity-obj-proxy' {
17 | declare module.exports: any;
18 | }
19 |
20 | /**
21 | * We include stubs for each file inside this npm package in case you need to
22 | * require those files directly. Feel free to delete any files that aren't
23 | * needed.
24 | */
25 | declare module 'identity-obj-proxy/src/__tests__/import-es6-export-test' {
26 | declare module.exports: any;
27 | }
28 |
29 | declare module 'identity-obj-proxy/src/__tests__/import-es6-import-export-test' {
30 | declare module.exports: any;
31 | }
32 |
33 | declare module 'identity-obj-proxy/src/__tests__/import-es6-import-test' {
34 | declare module.exports: any;
35 | }
36 |
37 | declare module 'identity-obj-proxy/src/__tests__/import-vanilla-test' {
38 | declare module.exports: any;
39 | }
40 |
41 | declare module 'identity-obj-proxy/src/__tests__/index-test' {
42 | declare module.exports: any;
43 | }
44 |
45 | declare module 'identity-obj-proxy/src/__tests__/require-es6-export-test' {
46 | declare module.exports: any;
47 | }
48 |
49 | declare module 'identity-obj-proxy/src/__tests__/require-es6-import-export-test' {
50 | declare module.exports: any;
51 | }
52 |
53 | declare module 'identity-obj-proxy/src/__tests__/require-es6-import-test' {
54 | declare module.exports: any;
55 | }
56 |
57 | declare module 'identity-obj-proxy/src/__tests__/require-vanilla-test' {
58 | declare module.exports: any;
59 | }
60 |
61 | declare module 'identity-obj-proxy/src/index' {
62 | declare module.exports: any;
63 | }
64 |
65 | declare module 'identity-obj-proxy/src/test-redirections/idObjES6Export' {
66 | declare module.exports: any;
67 | }
68 |
69 | declare module 'identity-obj-proxy/src/test-redirections/idObjES6Import' {
70 | declare module.exports: any;
71 | }
72 |
73 | declare module 'identity-obj-proxy/src/test-redirections/idObjES6ImportExport' {
74 | declare module.exports: any;
75 | }
76 |
77 | // Filename aliases
78 | declare module 'identity-obj-proxy/src/__tests__/import-es6-export-test.js' {
79 | declare module.exports: $Exports<'identity-obj-proxy/src/__tests__/import-es6-export-test'>;
80 | }
81 | declare module 'identity-obj-proxy/src/__tests__/import-es6-import-export-test.js' {
82 | declare module.exports: $Exports<'identity-obj-proxy/src/__tests__/import-es6-import-export-test'>;
83 | }
84 | declare module 'identity-obj-proxy/src/__tests__/import-es6-import-test.js' {
85 | declare module.exports: $Exports<'identity-obj-proxy/src/__tests__/import-es6-import-test'>;
86 | }
87 | declare module 'identity-obj-proxy/src/__tests__/import-vanilla-test.js' {
88 | declare module.exports: $Exports<'identity-obj-proxy/src/__tests__/import-vanilla-test'>;
89 | }
90 | declare module 'identity-obj-proxy/src/__tests__/index-test.js' {
91 | declare module.exports: $Exports<'identity-obj-proxy/src/__tests__/index-test'>;
92 | }
93 | declare module 'identity-obj-proxy/src/__tests__/require-es6-export-test.js' {
94 | declare module.exports: $Exports<'identity-obj-proxy/src/__tests__/require-es6-export-test'>;
95 | }
96 | declare module 'identity-obj-proxy/src/__tests__/require-es6-import-export-test.js' {
97 | declare module.exports: $Exports<'identity-obj-proxy/src/__tests__/require-es6-import-export-test'>;
98 | }
99 | declare module 'identity-obj-proxy/src/__tests__/require-es6-import-test.js' {
100 | declare module.exports: $Exports<'identity-obj-proxy/src/__tests__/require-es6-import-test'>;
101 | }
102 | declare module 'identity-obj-proxy/src/__tests__/require-vanilla-test.js' {
103 | declare module.exports: $Exports<'identity-obj-proxy/src/__tests__/require-vanilla-test'>;
104 | }
105 | declare module 'identity-obj-proxy/src/index.js' {
106 | declare module.exports: $Exports<'identity-obj-proxy/src/index'>;
107 | }
108 | declare module 'identity-obj-proxy/src/test-redirections/idObjES6Export.js' {
109 | declare module.exports: $Exports<'identity-obj-proxy/src/test-redirections/idObjES6Export'>;
110 | }
111 | declare module 'identity-obj-proxy/src/test-redirections/idObjES6Import.js' {
112 | declare module.exports: $Exports<'identity-obj-proxy/src/test-redirections/idObjES6Import'>;
113 | }
114 | declare module 'identity-obj-proxy/src/test-redirections/idObjES6ImportExport.js' {
115 | declare module.exports: $Exports<'identity-obj-proxy/src/test-redirections/idObjES6ImportExport'>;
116 | }
117 |
--------------------------------------------------------------------------------
/webpack.config.renderer.prod.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Build config for electron renderer process
3 | */
4 |
5 | import path from 'path';
6 | import webpack from 'webpack';
7 | import ExtractTextPlugin from 'extract-text-webpack-plugin';
8 | import { BundleAnalyzerPlugin } from 'webpack-bundle-analyzer';
9 | import merge from 'webpack-merge';
10 | import BabiliPlugin from 'babili-webpack-plugin';
11 | import baseConfig from './webpack.config.base';
12 | import CheckNodeEnv from './internals/scripts/CheckNodeEnv';
13 |
14 | CheckNodeEnv('production');
15 |
16 | export default merge.smart(baseConfig, {
17 | devtool: 'source-map',
18 |
19 | target: 'electron-renderer',
20 |
21 | entry: './app/index',
22 |
23 | output: {
24 | path: path.join(__dirname, 'app/dist'),
25 | publicPath: '../dist/',
26 | filename: 'renderer.prod.js'
27 | },
28 |
29 | module: {
30 | rules: [
31 | // Extract all .global.css to style.css as is
32 | {
33 | test: /\.global\.css$/,
34 | use: ExtractTextPlugin.extract({
35 | use: 'css-loader',
36 | fallback: 'style-loader',
37 | })
38 | },
39 | // Pipe other styles through css modules and append to style.css
40 | {
41 | test: /^((?!\.global).)*\.css$/,
42 | use: ExtractTextPlugin.extract({
43 | use: {
44 | loader: 'css-loader',
45 | options: {
46 | modules: true,
47 | importLoaders: 1,
48 | localIdentName: '[name]__[local]__[hash:base64:5]',
49 | }
50 | }
51 | }),
52 | },
53 | // Add SASS support - compile all .global.scss files and pipe it to style.css
54 | {
55 | test: /\.global\.scss$/,
56 | use: ExtractTextPlugin.extract({
57 | use: [
58 | {
59 | loader: 'css-loader'
60 | },
61 | {
62 | loader: 'sass-loader'
63 | }
64 | ],
65 | fallback: 'style-loader',
66 | })
67 | },
68 | // Add SASS support - compile all other .scss files and pipe it to style.css
69 | {
70 | test: /^((?!\.global).)*\.scss$/,
71 | use: ExtractTextPlugin.extract({
72 | use: [{
73 | loader: 'css-loader',
74 | options: {
75 | modules: true,
76 | importLoaders: 1,
77 | localIdentName: '[name]__[local]__[hash:base64:5]',
78 | }
79 | },
80 | {
81 | loader: 'sass-loader'
82 | }]
83 | }),
84 | },
85 | // WOFF Font
86 | {
87 | test: /\.woff(\?v=\d+\.\d+\.\d+)?$/,
88 | use: {
89 | loader: 'url-loader',
90 | options: {
91 | limit: 10000,
92 | mimetype: 'application/font-woff',
93 | }
94 | },
95 | },
96 | // WOFF2 Font
97 | {
98 | test: /\.woff2(\?v=\d+\.\d+\.\d+)?$/,
99 | use: {
100 | loader: 'url-loader',
101 | options: {
102 | limit: 10000,
103 | mimetype: 'application/font-woff',
104 | }
105 | }
106 | },
107 | // TTF Font
108 | {
109 | test: /\.ttf(\?v=\d+\.\d+\.\d+)?$/,
110 | use: {
111 | loader: 'url-loader',
112 | options: {
113 | limit: 10000,
114 | mimetype: 'application/octet-stream'
115 | }
116 | }
117 | },
118 | // EOT Font
119 | {
120 | test: /\.eot(\?v=\d+\.\d+\.\d+)?$/,
121 | use: 'file-loader',
122 | },
123 | // SVG Font
124 | {
125 | test: /\.svg(\?v=\d+\.\d+\.\d+)?$/,
126 | use: {
127 | loader: 'url-loader',
128 | options: {
129 | limit: 10000,
130 | mimetype: 'image/svg+xml',
131 | }
132 | }
133 | },
134 | // Common Image Formats
135 | {
136 | test: /\.(?:ico|gif|png|jpg|jpeg|webp)$/,
137 | use: 'url-loader',
138 | }
139 | ]
140 | },
141 |
142 | plugins: [
143 | /**
144 | * Create global constants which can be configured at compile time.
145 | *
146 | * Useful for allowing different behaviour between development builds and
147 | * release builds
148 | *
149 | * NODE_ENV should be production so that modules do not perform certain
150 | * development checks
151 | */
152 | new webpack.DefinePlugin({
153 | 'process.env.NODE_ENV': JSON.stringify(process.env.NODE_ENV || 'production')
154 | }),
155 |
156 | /**
157 | * Babli is an ES6+ aware minifier based on the Babel toolchain (beta)
158 | */
159 | new BabiliPlugin(),
160 |
161 | new ExtractTextPlugin('style.css'),
162 |
163 | new BundleAnalyzerPlugin({
164 | analyzerMode: process.env.OPEN_ANALYZER === 'true' ? 'server' : 'disabled',
165 | openAnalyzer: process.env.OPEN_ANALYZER === 'true'
166 | }),
167 | ],
168 | });
169 |
--------------------------------------------------------------------------------
/flow-typed/npm/webpack-bundle-analyzer_vx.x.x.js:
--------------------------------------------------------------------------------
1 | // flow-typed signature: c530cc679d7527df7ed9abde675eea41
2 | // flow-typed version: <>/webpack-bundle-analyzer_v^2.8.2/flow_v0.48.0
3 |
4 | /**
5 | * This is an autogenerated libdef stub for:
6 | *
7 | * 'webpack-bundle-analyzer'
8 | *
9 | * Fill this stub out by replacing all the `any` types.
10 | *
11 | * Once filled out, we encourage you to share your work with the
12 | * community by sending a pull request to:
13 | * https://github.com/flowtype/flow-typed
14 | */
15 |
16 | declare module 'webpack-bundle-analyzer' {
17 | declare module.exports: any;
18 | }
19 |
20 | /**
21 | * We include stubs for each file inside this npm package in case you need to
22 | * require those files directly. Feel free to delete any files that aren't
23 | * needed.
24 | */
25 | declare module 'webpack-bundle-analyzer/lib/analyzer' {
26 | declare module.exports: any;
27 | }
28 |
29 | declare module 'webpack-bundle-analyzer/lib/bin/analyzer' {
30 | declare module.exports: any;
31 | }
32 |
33 | declare module 'webpack-bundle-analyzer/lib/BundleAnalyzerPlugin' {
34 | declare module.exports: any;
35 | }
36 |
37 | declare module 'webpack-bundle-analyzer/lib/index' {
38 | declare module.exports: any;
39 | }
40 |
41 | declare module 'webpack-bundle-analyzer/lib/Logger' {
42 | declare module.exports: any;
43 | }
44 |
45 | declare module 'webpack-bundle-analyzer/lib/parseUtils' {
46 | declare module.exports: any;
47 | }
48 |
49 | declare module 'webpack-bundle-analyzer/lib/tree' {
50 | declare module.exports: any;
51 | }
52 |
53 | declare module 'webpack-bundle-analyzer/lib/viewer' {
54 | declare module.exports: any;
55 | }
56 |
57 | declare module 'webpack-bundle-analyzer/public/viewer' {
58 | declare module.exports: any;
59 | }
60 |
61 | declare module 'webpack-bundle-analyzer/src/analyzer' {
62 | declare module.exports: any;
63 | }
64 |
65 | declare module 'webpack-bundle-analyzer/src/bin/analyzer' {
66 | declare module.exports: any;
67 | }
68 |
69 | declare module 'webpack-bundle-analyzer/src/BundleAnalyzerPlugin' {
70 | declare module.exports: any;
71 | }
72 |
73 | declare module 'webpack-bundle-analyzer/src/index' {
74 | declare module.exports: any;
75 | }
76 |
77 | declare module 'webpack-bundle-analyzer/src/Logger' {
78 | declare module.exports: any;
79 | }
80 |
81 | declare module 'webpack-bundle-analyzer/src/parseUtils' {
82 | declare module.exports: any;
83 | }
84 |
85 | declare module 'webpack-bundle-analyzer/src/tree' {
86 | declare module.exports: any;
87 | }
88 |
89 | declare module 'webpack-bundle-analyzer/src/viewer' {
90 | declare module.exports: any;
91 | }
92 |
93 | // Filename aliases
94 | declare module 'webpack-bundle-analyzer/lib/analyzer.js' {
95 | declare module.exports: $Exports<'webpack-bundle-analyzer/lib/analyzer'>;
96 | }
97 | declare module 'webpack-bundle-analyzer/lib/bin/analyzer.js' {
98 | declare module.exports: $Exports<'webpack-bundle-analyzer/lib/bin/analyzer'>;
99 | }
100 | declare module 'webpack-bundle-analyzer/lib/BundleAnalyzerPlugin.js' {
101 | declare module.exports: $Exports<'webpack-bundle-analyzer/lib/BundleAnalyzerPlugin'>;
102 | }
103 | declare module 'webpack-bundle-analyzer/lib/index.js' {
104 | declare module.exports: $Exports<'webpack-bundle-analyzer/lib/index'>;
105 | }
106 | declare module 'webpack-bundle-analyzer/lib/Logger.js' {
107 | declare module.exports: $Exports<'webpack-bundle-analyzer/lib/Logger'>;
108 | }
109 | declare module 'webpack-bundle-analyzer/lib/parseUtils.js' {
110 | declare module.exports: $Exports<'webpack-bundle-analyzer/lib/parseUtils'>;
111 | }
112 | declare module 'webpack-bundle-analyzer/lib/tree.js' {
113 | declare module.exports: $Exports<'webpack-bundle-analyzer/lib/tree'>;
114 | }
115 | declare module 'webpack-bundle-analyzer/lib/viewer.js' {
116 | declare module.exports: $Exports<'webpack-bundle-analyzer/lib/viewer'>;
117 | }
118 | declare module 'webpack-bundle-analyzer/public/viewer.js' {
119 | declare module.exports: $Exports<'webpack-bundle-analyzer/public/viewer'>;
120 | }
121 | declare module 'webpack-bundle-analyzer/src/analyzer.js' {
122 | declare module.exports: $Exports<'webpack-bundle-analyzer/src/analyzer'>;
123 | }
124 | declare module 'webpack-bundle-analyzer/src/bin/analyzer.js' {
125 | declare module.exports: $Exports<'webpack-bundle-analyzer/src/bin/analyzer'>;
126 | }
127 | declare module 'webpack-bundle-analyzer/src/BundleAnalyzerPlugin.js' {
128 | declare module.exports: $Exports<'webpack-bundle-analyzer/src/BundleAnalyzerPlugin'>;
129 | }
130 | declare module 'webpack-bundle-analyzer/src/index.js' {
131 | declare module.exports: $Exports<'webpack-bundle-analyzer/src/index'>;
132 | }
133 | declare module 'webpack-bundle-analyzer/src/Logger.js' {
134 | declare module.exports: $Exports<'webpack-bundle-analyzer/src/Logger'>;
135 | }
136 | declare module 'webpack-bundle-analyzer/src/parseUtils.js' {
137 | declare module.exports: $Exports<'webpack-bundle-analyzer/src/parseUtils'>;
138 | }
139 | declare module 'webpack-bundle-analyzer/src/tree.js' {
140 | declare module.exports: $Exports<'webpack-bundle-analyzer/src/tree'>;
141 | }
142 | declare module 'webpack-bundle-analyzer/src/viewer.js' {
143 | declare module.exports: $Exports<'webpack-bundle-analyzer/src/viewer'>;
144 | }
145 |
--------------------------------------------------------------------------------
/flow-typed/npm/react-router-dom_v4.x.x.js:
--------------------------------------------------------------------------------
1 | // flow-typed signature: a52ef25660e2172052618e087e7f31b7
2 | // flow-typed version: 37d8964a70/react-router-dom_v4.x.x/flow_>=v0.38.x <=v0.52.x
3 |
4 | declare module 'react-router-dom' {
5 | declare export class BrowserRouter extends React$Component {
6 | props: {
7 | basename?: string,
8 | forceRefresh?: boolean,
9 | getUserConfirmation?: GetUserConfirmation,
10 | keyLength?: number,
11 | children?: React$Element<*>,
12 | }
13 | }
14 |
15 | declare export class HashRouter extends React$Component {
16 | props: {
17 | basename?: string,
18 | getUserConfirmation?: GetUserConfirmation,
19 | hashType?: 'slash' | 'noslash' | 'hashbang',
20 | children?: React$Element<*>,
21 | }
22 | }
23 |
24 | declare export class Link extends React$Component {
25 | props: {
26 | to: string | LocationShape,
27 | replace?: boolean,
28 | children?: React$Element<*>,
29 | }
30 | }
31 |
32 | declare export class NavLink extends React$Component {
33 | props: {
34 | to: string | LocationShape,
35 | activeClassName?: string,
36 | className?: string,
37 | activeStyle?: Object,
38 | style?: Object,
39 | isActive?: (match: Match, location: Location) => boolean,
40 | children?: React$Element<*>,
41 | exact?: bool,
42 | strict?: bool,
43 | }
44 | }
45 |
46 | // NOTE: Below are duplicated from react-router. If updating these, please
47 | // update the react-router and react-router-native types as well.
48 | declare export type Location = {
49 | pathname: string,
50 | search: string,
51 | hash: string,
52 | state?: any,
53 | key?: string,
54 | }
55 |
56 | declare export type LocationShape = {
57 | pathname?: string,
58 | search?: string,
59 | hash?: string,
60 | state?: any,
61 | }
62 |
63 | declare export type HistoryAction = 'PUSH' | 'REPLACE' | 'POP'
64 |
65 | declare export type RouterHistory = {
66 | length: number,
67 | location: Location,
68 | action: HistoryAction,
69 | listen(callback: (location: Location, action: HistoryAction) => void): () => void,
70 | push(path: string | LocationShape, state?: any): void,
71 | replace(path: string | LocationShape, state?: any): void,
72 | go(n: number): void,
73 | goBack(): void,
74 | goForward(): void,
75 | canGo?: (n: number) => bool,
76 | block(callback: (location: Location, action: HistoryAction) => boolean): void,
77 | // createMemoryHistory
78 | index?: number,
79 | entries?: Array,
80 | }
81 |
82 | declare export type Match = {
83 | params: { [key: string]: ?string },
84 | isExact: boolean,
85 | path: string,
86 | url: string,
87 | }
88 |
89 | declare export type ContextRouter = {
90 | history: RouterHistory,
91 | location: Location,
92 | match: Match,
93 | }
94 |
95 | declare export type GetUserConfirmation =
96 | (message: string, callback: (confirmed: boolean) => void) => void
97 |
98 | declare type StaticRouterContext = {
99 | url?: string,
100 | }
101 |
102 | declare export class StaticRouter extends React$Component {
103 | props: {
104 | basename?: string,
105 | location?: string | Location,
106 | context: StaticRouterContext,
107 | children?: React$Element<*>,
108 | }
109 | }
110 |
111 | declare export class MemoryRouter extends React$Component {
112 | props: {
113 | initialEntries?: Array,
114 | initialIndex?: number,
115 | getUserConfirmation?: GetUserConfirmation,
116 | keyLength?: number,
117 | children?: React$Element<*>,
118 | }
119 | }
120 |
121 | declare export class Router extends React$Component {
122 | props: {
123 | history: RouterHistory,
124 | children?: React$Element<*>,
125 | }
126 | }
127 |
128 | declare export class Prompt extends React$Component {
129 | props: {
130 | message: string | (location: Location) => string | true,
131 | when?: boolean,
132 | }
133 | }
134 |
135 | declare export class Redirect extends React$Component {
136 | props: {
137 | to: string | LocationShape,
138 | push?: boolean,
139 | }
140 | }
141 |
142 | declare export class Route extends React$Component {
143 | props: {
144 | component?: ReactClass<*>,
145 | render?: (router: ContextRouter) => React$Element<*>,
146 | children?: (router: ContextRouter) => React$Element<*>,
147 | path?: string,
148 | exact?: bool,
149 | strict?: bool,
150 | }
151 | }
152 |
153 | declare export class Switch extends React$Component {
154 | props: {
155 | children?: Array>,
156 | }
157 | }
158 |
159 | declare type FunctionComponent = (props: P) => ?React$Element;
160 | declare type ClassComponent = Class>;
161 | declare export function withRouter(Component: ClassComponent | FunctionComponent): ClassComponent, S>;
162 |
163 | declare type MatchPathOptions = {
164 | path: ?string,
165 | exact?: boolean,
166 | strict?: boolean,
167 | sensitive?: boolean
168 | };
169 |
170 | declare export function matchPath(pathname: string, options?: MatchPathOptions | string): null | Match
171 | }
172 |
--------------------------------------------------------------------------------
/flow-typed/npm/stylefmt_vx.x.x.js:
--------------------------------------------------------------------------------
1 | // flow-typed signature: 7ebd438f591cb1436bc9d2658cdd18ba
2 | // flow-typed version: <>/stylefmt_v^6.0.0/flow_v0.48.0
3 |
4 | /**
5 | * This is an autogenerated libdef stub for:
6 | *
7 | * 'stylefmt'
8 | *
9 | * Fill this stub out by replacing all the `any` types.
10 | *
11 | * Once filled out, we encourage you to share your work with the
12 | * community by sending a pull request to:
13 | * https://github.com/flowtype/flow-typed
14 | */
15 |
16 | declare module 'stylefmt' {
17 | declare module.exports: any;
18 | }
19 |
20 | /**
21 | * We include stubs for each file inside this npm package in case you need to
22 | * require those files directly. Feel free to delete any files that aren't
23 | * needed.
24 | */
25 | declare module 'stylefmt/bin/cli' {
26 | declare module.exports: any;
27 | }
28 |
29 | declare module 'stylefmt/lib/formatAtRuleParams' {
30 | declare module.exports: any;
31 | }
32 |
33 | declare module 'stylefmt/lib/formatAtRules' {
34 | declare module.exports: any;
35 | }
36 |
37 | declare module 'stylefmt/lib/formatColors' {
38 | declare module.exports: any;
39 | }
40 |
41 | declare module 'stylefmt/lib/formatComments' {
42 | declare module.exports: any;
43 | }
44 |
45 | declare module 'stylefmt/lib/formatDecls' {
46 | declare module.exports: any;
47 | }
48 |
49 | declare module 'stylefmt/lib/formatOrder' {
50 | declare module.exports: any;
51 | }
52 |
53 | declare module 'stylefmt/lib/formatRules' {
54 | declare module.exports: any;
55 | }
56 |
57 | declare module 'stylefmt/lib/formatSassVariables' {
58 | declare module.exports: any;
59 | }
60 |
61 | declare module 'stylefmt/lib/formatSelectors' {
62 | declare module.exports: any;
63 | }
64 |
65 | declare module 'stylefmt/lib/formatShorthand' {
66 | declare module.exports: any;
67 | }
68 |
69 | declare module 'stylefmt/lib/formatTransforms' {
70 | declare module.exports: any;
71 | }
72 |
73 | declare module 'stylefmt/lib/formatValues' {
74 | declare module.exports: any;
75 | }
76 |
77 | declare module 'stylefmt/lib/formatZeros' {
78 | declare module.exports: any;
79 | }
80 |
81 | declare module 'stylefmt/lib/getIndent' {
82 | declare module.exports: any;
83 | }
84 |
85 | declare module 'stylefmt/lib/hasBlock' {
86 | declare module.exports: any;
87 | }
88 |
89 | declare module 'stylefmt/lib/hasDecls' {
90 | declare module.exports: any;
91 | }
92 |
93 | declare module 'stylefmt/lib/hasRules' {
94 | declare module.exports: any;
95 | }
96 |
97 | declare module 'stylefmt/lib/params' {
98 | declare module.exports: any;
99 | }
100 |
101 | declare module 'stylefmt/lib/util' {
102 | declare module.exports: any;
103 | }
104 |
105 | // Filename aliases
106 | declare module 'stylefmt/bin/cli.js' {
107 | declare module.exports: $Exports<'stylefmt/bin/cli'>;
108 | }
109 | declare module 'stylefmt/index' {
110 | declare module.exports: $Exports<'stylefmt'>;
111 | }
112 | declare module 'stylefmt/index.js' {
113 | declare module.exports: $Exports<'stylefmt'>;
114 | }
115 | declare module 'stylefmt/lib/formatAtRuleParams.js' {
116 | declare module.exports: $Exports<'stylefmt/lib/formatAtRuleParams'>;
117 | }
118 | declare module 'stylefmt/lib/formatAtRules.js' {
119 | declare module.exports: $Exports<'stylefmt/lib/formatAtRules'>;
120 | }
121 | declare module 'stylefmt/lib/formatColors.js' {
122 | declare module.exports: $Exports<'stylefmt/lib/formatColors'>;
123 | }
124 | declare module 'stylefmt/lib/formatComments.js' {
125 | declare module.exports: $Exports<'stylefmt/lib/formatComments'>;
126 | }
127 | declare module 'stylefmt/lib/formatDecls.js' {
128 | declare module.exports: $Exports<'stylefmt/lib/formatDecls'>;
129 | }
130 | declare module 'stylefmt/lib/formatOrder.js' {
131 | declare module.exports: $Exports<'stylefmt/lib/formatOrder'>;
132 | }
133 | declare module 'stylefmt/lib/formatRules.js' {
134 | declare module.exports: $Exports<'stylefmt/lib/formatRules'>;
135 | }
136 | declare module 'stylefmt/lib/formatSassVariables.js' {
137 | declare module.exports: $Exports<'stylefmt/lib/formatSassVariables'>;
138 | }
139 | declare module 'stylefmt/lib/formatSelectors.js' {
140 | declare module.exports: $Exports<'stylefmt/lib/formatSelectors'>;
141 | }
142 | declare module 'stylefmt/lib/formatShorthand.js' {
143 | declare module.exports: $Exports<'stylefmt/lib/formatShorthand'>;
144 | }
145 | declare module 'stylefmt/lib/formatTransforms.js' {
146 | declare module.exports: $Exports<'stylefmt/lib/formatTransforms'>;
147 | }
148 | declare module 'stylefmt/lib/formatValues.js' {
149 | declare module.exports: $Exports<'stylefmt/lib/formatValues'>;
150 | }
151 | declare module 'stylefmt/lib/formatZeros.js' {
152 | declare module.exports: $Exports<'stylefmt/lib/formatZeros'>;
153 | }
154 | declare module 'stylefmt/lib/getIndent.js' {
155 | declare module.exports: $Exports<'stylefmt/lib/getIndent'>;
156 | }
157 | declare module 'stylefmt/lib/hasBlock.js' {
158 | declare module.exports: $Exports<'stylefmt/lib/hasBlock'>;
159 | }
160 | declare module 'stylefmt/lib/hasDecls.js' {
161 | declare module.exports: $Exports<'stylefmt/lib/hasDecls'>;
162 | }
163 | declare module 'stylefmt/lib/hasRules.js' {
164 | declare module.exports: $Exports<'stylefmt/lib/hasRules'>;
165 | }
166 | declare module 'stylefmt/lib/params.js' {
167 | declare module.exports: $Exports<'stylefmt/lib/params'>;
168 | }
169 | declare module 'stylefmt/lib/util.js' {
170 | declare module.exports: $Exports<'stylefmt/lib/util'>;
171 | }
172 |
--------------------------------------------------------------------------------
/flow-typed/npm/webpack-dev-server_vx.x.x.js:
--------------------------------------------------------------------------------
1 | // flow-typed signature: 07b9070e4fc600e6603605ab088cdacb
2 | // flow-typed version: <>/webpack-dev-server_v^2.5.0/flow_v0.48.0
3 |
4 | /**
5 | * This is an autogenerated libdef stub for:
6 | *
7 | * 'webpack-dev-server'
8 | *
9 | * Fill this stub out by replacing all the `any` types.
10 | *
11 | * Once filled out, we encourage you to share your work with the
12 | * community by sending a pull request to:
13 | * https://github.com/flowtype/flow-typed
14 | */
15 |
16 | declare module 'webpack-dev-server' {
17 | declare module.exports: any;
18 | }
19 |
20 | /**
21 | * We include stubs for each file inside this npm package in case you need to
22 | * require those files directly. Feel free to delete any files that aren't
23 | * needed.
24 | */
25 | declare module 'webpack-dev-server/bin/webpack-dev-server' {
26 | declare module.exports: any;
27 | }
28 |
29 | declare module 'webpack-dev-server/client/index.bundle' {
30 | declare module.exports: any;
31 | }
32 |
33 | declare module 'webpack-dev-server/client/index' {
34 | declare module.exports: any;
35 | }
36 |
37 | declare module 'webpack-dev-server/client/live.bundle' {
38 | declare module.exports: any;
39 | }
40 |
41 | declare module 'webpack-dev-server/client/live' {
42 | declare module.exports: any;
43 | }
44 |
45 | declare module 'webpack-dev-server/client/overlay' {
46 | declare module.exports: any;
47 | }
48 |
49 | declare module 'webpack-dev-server/client/socket' {
50 | declare module.exports: any;
51 | }
52 |
53 | declare module 'webpack-dev-server/client/sockjs.bundle' {
54 | declare module.exports: any;
55 | }
56 |
57 | declare module 'webpack-dev-server/client/sockjs' {
58 | declare module.exports: any;
59 | }
60 |
61 | declare module 'webpack-dev-server/client/web_modules/jquery/index' {
62 | declare module.exports: any;
63 | }
64 |
65 | declare module 'webpack-dev-server/client/web_modules/jquery/jquery-1.8.1' {
66 | declare module.exports: any;
67 | }
68 |
69 | declare module 'webpack-dev-server/client/webpack.config' {
70 | declare module.exports: any;
71 | }
72 |
73 | declare module 'webpack-dev-server/client/webpack.sockjs.config' {
74 | declare module.exports: any;
75 | }
76 |
77 | declare module 'webpack-dev-server/lib/OptionsValidationError' {
78 | declare module.exports: any;
79 | }
80 |
81 | declare module 'webpack-dev-server/lib/polyfills' {
82 | declare module.exports: any;
83 | }
84 |
85 | declare module 'webpack-dev-server/lib/Server' {
86 | declare module.exports: any;
87 | }
88 |
89 | declare module 'webpack-dev-server/lib/util/addDevServerEntrypoints' {
90 | declare module.exports: any;
91 | }
92 |
93 | declare module 'webpack-dev-server/lib/util/createDomain' {
94 | declare module.exports: any;
95 | }
96 |
97 | // Filename aliases
98 | declare module 'webpack-dev-server/bin/webpack-dev-server.js' {
99 | declare module.exports: $Exports<'webpack-dev-server/bin/webpack-dev-server'>;
100 | }
101 | declare module 'webpack-dev-server/client/index.bundle.js' {
102 | declare module.exports: $Exports<'webpack-dev-server/client/index.bundle'>;
103 | }
104 | declare module 'webpack-dev-server/client/index.js' {
105 | declare module.exports: $Exports<'webpack-dev-server/client/index'>;
106 | }
107 | declare module 'webpack-dev-server/client/live.bundle.js' {
108 | declare module.exports: $Exports<'webpack-dev-server/client/live.bundle'>;
109 | }
110 | declare module 'webpack-dev-server/client/live.js' {
111 | declare module.exports: $Exports<'webpack-dev-server/client/live'>;
112 | }
113 | declare module 'webpack-dev-server/client/overlay.js' {
114 | declare module.exports: $Exports<'webpack-dev-server/client/overlay'>;
115 | }
116 | declare module 'webpack-dev-server/client/socket.js' {
117 | declare module.exports: $Exports<'webpack-dev-server/client/socket'>;
118 | }
119 | declare module 'webpack-dev-server/client/sockjs.bundle.js' {
120 | declare module.exports: $Exports<'webpack-dev-server/client/sockjs.bundle'>;
121 | }
122 | declare module 'webpack-dev-server/client/sockjs.js' {
123 | declare module.exports: $Exports<'webpack-dev-server/client/sockjs'>;
124 | }
125 | declare module 'webpack-dev-server/client/web_modules/jquery/index.js' {
126 | declare module.exports: $Exports<'webpack-dev-server/client/web_modules/jquery/index'>;
127 | }
128 | declare module 'webpack-dev-server/client/web_modules/jquery/jquery-1.8.1.js' {
129 | declare module.exports: $Exports<'webpack-dev-server/client/web_modules/jquery/jquery-1.8.1'>;
130 | }
131 | declare module 'webpack-dev-server/client/webpack.config.js' {
132 | declare module.exports: $Exports<'webpack-dev-server/client/webpack.config'>;
133 | }
134 | declare module 'webpack-dev-server/client/webpack.sockjs.config.js' {
135 | declare module.exports: $Exports<'webpack-dev-server/client/webpack.sockjs.config'>;
136 | }
137 | declare module 'webpack-dev-server/lib/OptionsValidationError.js' {
138 | declare module.exports: $Exports<'webpack-dev-server/lib/OptionsValidationError'>;
139 | }
140 | declare module 'webpack-dev-server/lib/polyfills.js' {
141 | declare module.exports: $Exports<'webpack-dev-server/lib/polyfills'>;
142 | }
143 | declare module 'webpack-dev-server/lib/Server.js' {
144 | declare module.exports: $Exports<'webpack-dev-server/lib/Server'>;
145 | }
146 | declare module 'webpack-dev-server/lib/util/addDevServerEntrypoints.js' {
147 | declare module.exports: $Exports<'webpack-dev-server/lib/util/addDevServerEntrypoints'>;
148 | }
149 | declare module 'webpack-dev-server/lib/util/createDomain.js' {
150 | declare module.exports: $Exports<'webpack-dev-server/lib/util/createDomain'>;
151 | }
152 |
--------------------------------------------------------------------------------
/webpack.config.renderer.dev.dll.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Builds the DLL for development electron renderer process
3 | */
4 |
5 | import webpack from 'webpack';
6 | import path from 'path';
7 | import merge from 'webpack-merge';
8 | import baseConfig from './webpack.config.base';
9 | import { dependencies } from './package.json';
10 | import CheckNodeEnv from './internals/scripts/CheckNodeEnv';
11 |
12 | CheckNodeEnv('development');
13 |
14 | const dist = path.resolve(process.cwd(), 'dll');
15 |
16 | export default merge.smart(baseConfig, {
17 | context: process.cwd(),
18 |
19 | devtool: 'eval',
20 |
21 | target: 'electron-renderer',
22 |
23 | externals: ['fsevents', 'crypto-browserify'],
24 |
25 | /**
26 | * @HACK: Copy and pasted from renderer dev config. Consider merging these
27 | * rules into the base config. May cause breaking changes.
28 | */
29 | module: {
30 | rules: [
31 | {
32 | test: /\.global\.css$/,
33 | use: [
34 | {
35 | loader: 'style-loader'
36 | },
37 | {
38 | loader: 'css-loader',
39 | options: {
40 | sourceMap: true,
41 | },
42 | }
43 | ]
44 | },
45 | {
46 | test: /^((?!\.global).)*\.css$/,
47 | use: [
48 | {
49 | loader: 'style-loader'
50 | },
51 | {
52 | loader: 'css-loader',
53 | options: {
54 | modules: true,
55 | sourceMap: true,
56 | importLoaders: 1,
57 | localIdentName: '[name]__[local]__[hash:base64:5]',
58 | }
59 | },
60 | ]
61 | },
62 | // Add SASS support - compile all .global.scss files and pipe it to style.css
63 | {
64 | test: /\.global\.scss$/,
65 | use: [
66 | {
67 | loader: 'style-loader'
68 | },
69 | {
70 | loader: 'css-loader',
71 | options: {
72 | sourceMap: true,
73 | },
74 | },
75 | {
76 | loader: 'sass-loader'
77 | }
78 | ]
79 | },
80 | // Add SASS support - compile all other .scss files and pipe it to style.css
81 | {
82 | test: /^((?!\.global).)*\.scss$/,
83 | use: [
84 | {
85 | loader: 'style-loader'
86 | },
87 | {
88 | loader: 'css-loader',
89 | options: {
90 | modules: true,
91 | sourceMap: true,
92 | importLoaders: 1,
93 | localIdentName: '[name]__[local]__[hash:base64:5]',
94 | }
95 | },
96 | {
97 | loader: 'sass-loader'
98 | }
99 | ]
100 | },
101 | // WOFF Font
102 | {
103 | test: /\.woff(\?v=\d+\.\d+\.\d+)?$/,
104 | use: {
105 | loader: 'url-loader',
106 | options: {
107 | limit: 10000,
108 | mimetype: 'application/font-woff',
109 | }
110 | },
111 | },
112 | // WOFF2 Font
113 | {
114 | test: /\.woff2(\?v=\d+\.\d+\.\d+)?$/,
115 | use: {
116 | loader: 'url-loader',
117 | options: {
118 | limit: 10000,
119 | mimetype: 'application/font-woff',
120 | }
121 | }
122 | },
123 | // TTF Font
124 | {
125 | test: /\.ttf(\?v=\d+\.\d+\.\d+)?$/,
126 | use: {
127 | loader: 'url-loader',
128 | options: {
129 | limit: 10000,
130 | mimetype: 'application/octet-stream'
131 | }
132 | }
133 | },
134 | // EOT Font
135 | {
136 | test: /\.eot(\?v=\d+\.\d+\.\d+)?$/,
137 | use: 'file-loader',
138 | },
139 | // SVG Font
140 | {
141 | test: /\.svg(\?v=\d+\.\d+\.\d+)?$/,
142 | use: {
143 | loader: 'url-loader',
144 | options: {
145 | limit: 10000,
146 | mimetype: 'image/svg+xml',
147 | }
148 | }
149 | },
150 | // Common Image Formats
151 | {
152 | test: /\.(?:ico|gif|png|jpg|jpeg|webp)$/,
153 | use: 'url-loader',
154 | }
155 | ]
156 | },
157 |
158 | resolve: {
159 | modules: [
160 | 'app',
161 | ],
162 | },
163 |
164 | entry: {
165 | renderer: (
166 | Object
167 | .keys(dependencies || {})
168 | .filter(dependency => dependency !== 'font-awesome')
169 | )
170 | },
171 |
172 | output: {
173 | library: 'renderer',
174 | path: dist,
175 | filename: '[name].dev.dll.js',
176 | libraryTarget: 'var'
177 | },
178 |
179 | plugins: [
180 | new webpack.DllPlugin({
181 | path: path.join(dist, '[name].json'),
182 | name: '[name]',
183 | }),
184 |
185 | /**
186 | * Create global constants which can be configured at compile time.
187 | *
188 | * Useful for allowing different behaviour between development builds and
189 | * release builds
190 | *
191 | * NODE_ENV should be production so that modules do not perform certain
192 | * development checks
193 | */
194 | new webpack.DefinePlugin({
195 | 'process.env.NODE_ENV': JSON.stringify(process.env.NODE_ENV || 'development')
196 | }),
197 |
198 | new webpack.LoaderOptionsPlugin({
199 | debug: true,
200 | options: {
201 | context: path.resolve(process.cwd(), 'app'),
202 | output: {
203 | path: path.resolve(process.cwd(), 'dll'),
204 | },
205 | },
206 | })
207 | ],
208 | });
209 |
--------------------------------------------------------------------------------
/flow-typed/npm/eslint-plugin-promise_vx.x.x.js:
--------------------------------------------------------------------------------
1 | // flow-typed signature: b6cdee81f2887f8c013f91d182f2b249
2 | // flow-typed version: <>/eslint-plugin-promise_v^3.5.0/flow_v0.48.0
3 |
4 | /**
5 | * This is an autogenerated libdef stub for:
6 | *
7 | * 'eslint-plugin-promise'
8 | *
9 | * Fill this stub out by replacing all the `any` types.
10 | *
11 | * Once filled out, we encourage you to share your work with the
12 | * community by sending a pull request to:
13 | * https://github.com/flowtype/flow-typed
14 | */
15 |
16 | declare module 'eslint-plugin-promise' {
17 | declare module.exports: any;
18 | }
19 |
20 | /**
21 | * We include stubs for each file inside this npm package in case you need to
22 | * require those files directly. Feel free to delete any files that aren't
23 | * needed.
24 | */
25 | declare module 'eslint-plugin-promise/rules/always-return' {
26 | declare module.exports: any;
27 | }
28 |
29 | declare module 'eslint-plugin-promise/rules/avoid-new' {
30 | declare module.exports: any;
31 | }
32 |
33 | declare module 'eslint-plugin-promise/rules/catch-or-return' {
34 | declare module.exports: any;
35 | }
36 |
37 | declare module 'eslint-plugin-promise/rules/lib/has-promise-callback' {
38 | declare module.exports: any;
39 | }
40 |
41 | declare module 'eslint-plugin-promise/rules/lib/is-callback' {
42 | declare module.exports: any;
43 | }
44 |
45 | declare module 'eslint-plugin-promise/rules/lib/is-inside-callback' {
46 | declare module.exports: any;
47 | }
48 |
49 | declare module 'eslint-plugin-promise/rules/lib/is-inside-promise' {
50 | declare module.exports: any;
51 | }
52 |
53 | declare module 'eslint-plugin-promise/rules/lib/is-named-callback' {
54 | declare module.exports: any;
55 | }
56 |
57 | declare module 'eslint-plugin-promise/rules/lib/is-promise' {
58 | declare module.exports: any;
59 | }
60 |
61 | declare module 'eslint-plugin-promise/rules/no-callback-in-promise' {
62 | declare module.exports: any;
63 | }
64 |
65 | declare module 'eslint-plugin-promise/rules/no-native' {
66 | declare module.exports: any;
67 | }
68 |
69 | declare module 'eslint-plugin-promise/rules/no-nesting' {
70 | declare module.exports: any;
71 | }
72 |
73 | declare module 'eslint-plugin-promise/rules/no-promise-in-callback' {
74 | declare module.exports: any;
75 | }
76 |
77 | declare module 'eslint-plugin-promise/rules/no-return-wrap' {
78 | declare module.exports: any;
79 | }
80 |
81 | declare module 'eslint-plugin-promise/rules/param-names' {
82 | declare module.exports: any;
83 | }
84 |
85 | declare module 'eslint-plugin-promise/rules/prefer-await-to-callbacks' {
86 | declare module.exports: any;
87 | }
88 |
89 | declare module 'eslint-plugin-promise/rules/prefer-await-to-then' {
90 | declare module.exports: any;
91 | }
92 |
93 | // Filename aliases
94 | declare module 'eslint-plugin-promise/index' {
95 | declare module.exports: $Exports<'eslint-plugin-promise'>;
96 | }
97 | declare module 'eslint-plugin-promise/index.js' {
98 | declare module.exports: $Exports<'eslint-plugin-promise'>;
99 | }
100 | declare module 'eslint-plugin-promise/rules/always-return.js' {
101 | declare module.exports: $Exports<'eslint-plugin-promise/rules/always-return'>;
102 | }
103 | declare module 'eslint-plugin-promise/rules/avoid-new.js' {
104 | declare module.exports: $Exports<'eslint-plugin-promise/rules/avoid-new'>;
105 | }
106 | declare module 'eslint-plugin-promise/rules/catch-or-return.js' {
107 | declare module.exports: $Exports<'eslint-plugin-promise/rules/catch-or-return'>;
108 | }
109 | declare module 'eslint-plugin-promise/rules/lib/has-promise-callback.js' {
110 | declare module.exports: $Exports<'eslint-plugin-promise/rules/lib/has-promise-callback'>;
111 | }
112 | declare module 'eslint-plugin-promise/rules/lib/is-callback.js' {
113 | declare module.exports: $Exports<'eslint-plugin-promise/rules/lib/is-callback'>;
114 | }
115 | declare module 'eslint-plugin-promise/rules/lib/is-inside-callback.js' {
116 | declare module.exports: $Exports<'eslint-plugin-promise/rules/lib/is-inside-callback'>;
117 | }
118 | declare module 'eslint-plugin-promise/rules/lib/is-inside-promise.js' {
119 | declare module.exports: $Exports<'eslint-plugin-promise/rules/lib/is-inside-promise'>;
120 | }
121 | declare module 'eslint-plugin-promise/rules/lib/is-named-callback.js' {
122 | declare module.exports: $Exports<'eslint-plugin-promise/rules/lib/is-named-callback'>;
123 | }
124 | declare module 'eslint-plugin-promise/rules/lib/is-promise.js' {
125 | declare module.exports: $Exports<'eslint-plugin-promise/rules/lib/is-promise'>;
126 | }
127 | declare module 'eslint-plugin-promise/rules/no-callback-in-promise.js' {
128 | declare module.exports: $Exports<'eslint-plugin-promise/rules/no-callback-in-promise'>;
129 | }
130 | declare module 'eslint-plugin-promise/rules/no-native.js' {
131 | declare module.exports: $Exports<'eslint-plugin-promise/rules/no-native'>;
132 | }
133 | declare module 'eslint-plugin-promise/rules/no-nesting.js' {
134 | declare module.exports: $Exports<'eslint-plugin-promise/rules/no-nesting'>;
135 | }
136 | declare module 'eslint-plugin-promise/rules/no-promise-in-callback.js' {
137 | declare module.exports: $Exports<'eslint-plugin-promise/rules/no-promise-in-callback'>;
138 | }
139 | declare module 'eslint-plugin-promise/rules/no-return-wrap.js' {
140 | declare module.exports: $Exports<'eslint-plugin-promise/rules/no-return-wrap'>;
141 | }
142 | declare module 'eslint-plugin-promise/rules/param-names.js' {
143 | declare module.exports: $Exports<'eslint-plugin-promise/rules/param-names'>;
144 | }
145 | declare module 'eslint-plugin-promise/rules/prefer-await-to-callbacks.js' {
146 | declare module.exports: $Exports<'eslint-plugin-promise/rules/prefer-await-to-callbacks'>;
147 | }
148 | declare module 'eslint-plugin-promise/rules/prefer-await-to-then.js' {
149 | declare module.exports: $Exports<'eslint-plugin-promise/rules/prefer-await-to-then'>;
150 | }
151 |
--------------------------------------------------------------------------------