├── .babelrc ├── .editorconfig ├── .eslintignore ├── .eslintrc ├── .flowconfig ├── .gitignore ├── .npmignore ├── .travis.yml ├── API.md ├── README.md ├── __tests__ ├── bundle.test.js ├── cli.test.js ├── hmr.test.js ├── html.test.js └── server.test.js ├── bin └── quik.js ├── flow-typed └── npm │ ├── autoprefixer_vx.x.x.js │ ├── babel-cli_vx.x.x.js │ ├── babel-core_vx.x.x.js │ ├── babel-eslint_vx.x.x.js │ ├── babel-jest_vx.x.x.js │ ├── babel-loader_vx.x.x.js │ ├── babel-plugin-transform-flow-strip-types_vx.x.x.js │ ├── babel-plugin-transform-react-constant-elements_vx.x.x.js │ ├── babel-plugin-transform-react-inline-elements_vx.x.x.js │ ├── babel-plugin-transform-runtime_vx.x.x.js │ ├── babel-polyfill_vx.x.x.js │ ├── babel-preset-es2015_vx.x.x.js │ ├── babel-preset-react-hmre_vx.x.x.js │ ├── babel-preset-react_vx.x.x.js │ ├── babel-preset-stage-3_vx.x.x.js │ ├── babel-runtime_vx.x.x.js │ ├── chalk_vx.x.x.js │ ├── cheerio_vx.x.x.js │ ├── command-exists_vx.x.x.js │ ├── coveralls_vx.x.x.js │ ├── css-literal-loader_vx.x.x.js │ ├── css-loader_vx.x.x.js │ ├── cz-conventional-changelog_vx.x.x.js │ ├── del-cli_vx.x.x.js │ ├── del_vx.x.x.js │ ├── eslint-config-satya164_vx.x.x.js │ ├── eslint_vx.x.x.js │ ├── eventsource_vx.x.x.js │ ├── extract-text-webpack-plugin_vx.x.x.js │ ├── file-loader_vx.x.x.js │ ├── flow-bin_v0.x.x.js │ ├── glob-expand_vx.x.x.js │ ├── husky_vx.x.x.js │ ├── jest_vx.x.x.js │ ├── koa-compose_vx.x.x.js │ ├── koa-logger_vx.x.x.js │ ├── koa-static_vx.x.x.js │ ├── koa-webpack_vx.x.x.js │ ├── koa_v2.x.x.js │ ├── lodash_v4.x.x.js │ ├── memory-fs_vx.x.x.js │ ├── mkdirp_v0.5.x.js │ ├── ncp_vx.x.x.js │ ├── opn_vx.x.x.js │ ├── postcss-loader_vx.x.x.js │ ├── prettier_vx.x.x.js │ ├── resolve-url-loader_vx.x.x.js │ ├── semantic-release_vx.x.x.js │ ├── style-loader_vx.x.x.js │ ├── url-loader_vx.x.x.js │ ├── webpack_vx.x.x.js │ └── yargs_vx.x.x.js ├── middleware.js ├── package.json ├── src ├── babelrc.js ├── bundler.js ├── configure-bundler.js ├── configure-webpack.js ├── exists-file-async.js ├── format-error.js ├── format-html.js ├── html.js ├── index.js ├── init.js ├── quik-cli.js ├── quik-middleware-hmr.js ├── quik-middleware-js.js ├── quik-middleware-run.js ├── quik-middleware.js ├── read-file-async.js ├── run-compiler-async.js ├── server.js └── write-file-async.js ├── template ├── MyComponent.js ├── index.html ├── index.js ├── package.json ├── style.css └── style.css.map └── yarn.lock /.babelrc: -------------------------------------------------------------------------------- 1 | { 2 | "presets": [ 3 | "env", 4 | "stage-2" 5 | ], 6 | "plugins": [ 7 | "transform-flow-strip-types", 8 | "transform-runtime" 9 | ] 10 | } 11 | -------------------------------------------------------------------------------- /.editorconfig: -------------------------------------------------------------------------------- 1 | # EditorConfig helps developers define and maintain consistent 2 | # coding styles between different editors and IDEs 3 | # editorconfig.org 4 | 5 | root = true 6 | 7 | 8 | [*] 9 | 10 | # change these settings to your own preference 11 | indent_style = space 12 | indent_size = 2 13 | 14 | # we recommend you to keep these unchanged 15 | end_of_line = lf 16 | charset = utf-8 17 | trim_trailing_whitespace = true 18 | insert_final_newline = true 19 | 20 | [*.md] 21 | trim_trailing_whitespace = false 22 | -------------------------------------------------------------------------------- /.eslintignore: -------------------------------------------------------------------------------- 1 | /flow-typed/ 2 | /dist/ 3 | /template/ 4 | -------------------------------------------------------------------------------- /.eslintrc: -------------------------------------------------------------------------------- 1 | { 2 | "env": { 3 | "node": true 4 | }, 5 | 6 | "extends": "satya164", 7 | } 8 | -------------------------------------------------------------------------------- /.flowconfig: -------------------------------------------------------------------------------- 1 | [ignore] 2 | .*/node_modules/config-chain/test/broken.json 3 | .*/node_modules/npmconf/test/fixtures/package.json 4 | .*/node_modules/fbjs/lib/partitionObjectByKey.js.flow 5 | 6 | [include] 7 | 8 | [libs] 9 | 10 | [options] 11 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | *~ 2 | .DS_Store 3 | .sass-cache 4 | 5 | npm-debug.log 6 | 7 | node_modules/ 8 | dist/ 9 | .nyc_output/ 10 | -------------------------------------------------------------------------------- /.npmignore: -------------------------------------------------------------------------------- 1 | src/ 2 | test/ 3 | -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- 1 | sudo: false 2 | language: node_js 3 | cache: yarn 4 | notifications: 5 | email: false 6 | node_js: 7 | - 'stable' 8 | - '7' 9 | before_install: 10 | - curl -o- -L https://yarnpkg.com/install.sh | bash 11 | - export PATH=$HOME/.yarn/bin:$PATH 12 | before_script: 13 | - yarn run lint 14 | - yarn run flow 15 | after_success: 16 | - yarn run semantic-release 17 | branches: 18 | except: 19 | - /^v\d+\.\d+\.\d+$/ 20 | -------------------------------------------------------------------------------- /API.md: -------------------------------------------------------------------------------- 1 | ## API 2 | 3 | You can use various commands of `quik` programmatically through the node module, 4 | 5 | ```js 6 | const quik = require('quik'); 7 | ``` 8 | 9 | To start the `quik` server, 10 | 11 | ```js 12 | quik.server({ 13 | root: process.cwd(), 14 | watch: [ 'file1.js', 'file2.js' ] 15 | }).listen(8080); 16 | ``` 17 | 18 | To generate a bundle, 19 | 20 | ```js 21 | quik.bundle({ 22 | root: process.cwd(), 23 | entry: [ 'index.js' ], 24 | output: '[name].bundle.min.js', 25 | sourcemaps: true, 26 | production: true 27 | }); 28 | ``` 29 | 30 | To generate a sharable HTML file, 31 | 32 | ```js 33 | quik.html({ 34 | root: process.cwd(), 35 | entry: 'index.html', 36 | output: 'index.quik.html', 37 | sourcemaps: true, 38 | production: true 39 | }); 40 | ``` 41 | 42 | The middleware is at the heart of `quik` and is responsible for transpiling scripts on the fly as well as setting up HMR. You can use the middleware directly in any `koa` server, 43 | 44 | ```js 45 | const quik = require('quik/middleware'); 46 | 47 | app.use(quik({ 48 | root: process.cwd(), 49 | run: 'script.js' 50 | })); 51 | ``` 52 | 53 | This is useful if you want to add functionality on top of what `quik` already provides. For example, if you want to add support for your favourite CSS preprocessor, just write a middleware (or use an existing one) for it and use along with the `quik` middleware. For example, to use [`koa-sass`](https://github.com/kasperlewau/koa-sass) with `quik`, 54 | 55 | ```js 56 | const quik = require('quik/middleware'); 57 | const serve = require('koa-static'); 58 | const sass = require('koa-sass'); 59 | const koa = require('koa'); 60 | 61 | const app = koa(); 62 | 63 | app.use(quik({ 64 | root: process.cwd() 65 | })); 66 | 67 | app.use(sass({ 68 | src: process.cwd() + '/src/styles/', 69 | dest: process.cwd() + '/dist/styles/' 70 | })); 71 | 72 | app.use(serve(process.cwd(), { 73 | defer: true 74 | })); 75 | 76 | app.listen(9000); 77 | ``` 78 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | Quik 2 | ==== 3 | A quick way to prototype and build apps with React and Babel with zero-setup. 4 | 5 | [![semantic-release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg)](https://github.com/semantic-release/semantic-release) 6 | [![npm version](https://badge.fury.io/js/quik.svg)](https://www.npmjs.com/quik) 7 | [![build status](https://travis-ci.org/satya164/quik.svg?branch=master)](https://travis-ci.org/satya164/quik) 8 | [![coverage status](https://coveralls.io/repos/github/satya164/quik/badge.svg?branch=master)](https://coveralls.io/github/satya164/quik?branch=master) 9 | [![dependencies](https://david-dm.org/satya164/quik.svg)](https://david-dm.org/satya164/quik) 10 | [![license](https://img.shields.io/npm/l/quik.svg)](http://opensource.org/licenses/mit-license.php) 11 | 12 | Setting up the tooling required to work on a modern day web app is hard, and makes quick prototyping much more difficult than it should be. Quik is a quick way to prototype a React application without any kind of setup. It can also generate a production-ready JavaScript bundle to use in your app. No setup required. 13 | 14 | Quik runs a simple server that compiles JavaScript files with Babel on the fly, so you can include ES201x files in a script tag directly, 15 | 16 | ```html 17 | 18 | ``` 19 | 20 | __Tip:__ You can add `?transpile=false` to the script src to skip the transpilation. 21 | 22 | Quik also exposes a `koa` middleware which can be easily integrated with your server. 23 | 24 | ## Features 25 | 26 | * One-time installation, no additional setup required 27 | * Hot Module Replacement 28 | * Generates bundles for use in production 29 | * Generates single standalone HTML file for sharing 30 | * React, Redux, React Router and Radium are already included 31 | * Quick prototyping with an optional starter template 32 | 33 | ## Installation 34 | 35 | You need at least Node 7.0 to run `quik`. 36 | 37 | ```sh 38 | npm install --global quik 39 | ``` 40 | 41 | ## Usage 42 | 43 | Open the Terminal in any directory and run the following, 44 | 45 | ```sh 46 | quik 47 | ``` 48 | 49 | It'll start a simple server which will serve the files in the current directory. By default, it'll automatically watch the file `index.js` if present. 50 | 51 | If no `index.html` file is present, it'll generate and serve an HTML file with it's script tag pointing to `index.js` file. Alternatively, you can specify the name of the script to include, 52 | 53 | ```sh 54 | quik --run script.js 55 | ``` 56 | 57 | If you want to use a different port. For example, to run the server in the port `8008`, run, 58 | 59 | ```sh 60 | quik --port 8008 61 | ``` 62 | 63 | You can include any ES2015 file in a script tag in an HTML file and the script will be transpiled to ES5 on the fly. You can use JSX and Flow syntax as well as use ES2015 modules to import other scripts. It just works. 64 | 65 | NOTE: You'll need to install any dependencies you use in the project manually. 66 | 67 | ## Enabling Hot Module Replacement 68 | 69 | Hot Module Replacement for React Components is automatically enabled if you have a script named `index.js` in the directory, or if you specified a script to run with the `--run` option, for example, 70 | 71 | ```sh 72 | quik --run app.js 73 | ``` 74 | 75 | Alternatively, you can specify the filenames you want to watch for HMR, 76 | 77 | ```sh 78 | quik --watch file1.js file2.js 79 | ``` 80 | 81 | When using the `--run` option, the `index.html` file is always generated on the fly and served. If you want to use your own `index.html` file, just use `--watch`. 82 | 83 | You only need to specify the entry points, not all scripts. Most of the time it'll be just one script. Note that Hot Module Replacement won't work for any components in the entry points. 84 | 85 | ## Generating JavaScript Bundle 86 | 87 | The bundler provides an abstraction on top of webpack with sensible defaults for a React project. If you need additional customisation, use `webpack` directly for bundling. 88 | 89 | To generate a bundle wth `quik` for use in your web application, run the following in a Terminal, 90 | 91 | ```sh 92 | quik --bundle entry.js --output bundle.js --production 93 | ``` 94 | 95 | The `--production` option performs minification on the resulting bundle. You can omit it if you're not going to use the file in production. 96 | 97 | You can provide multiple entry points as arguments. In that case, you can use `[name]` to get the name of the entry point while specifying an output file, 98 | 99 | ```sh 100 | quik --bundle file1.js file2.js --output [name].bundle.js --common common.bundle.js 101 | ``` 102 | 103 | Sourcemap files are automatically generated when generating bundles. 104 | 105 | ## Generating a sharable single HTML file 106 | 107 | Sometimes you might want compile and inject bundles into an HTML file for easier sharing through dropbox, email etc. To do so, run the following in a Terminal, 108 | 109 | ```sh 110 | quik --html --output output.html --production 111 | ``` 112 | 113 | You can also specify an HTML file, which `quik` will parse for any local scripts. Then it will build them and inject into the HTML file. It'll also inline stylesheets as is, without any pre-processing. Just open the generated HTML file in any browser to preview. 114 | 115 | ```sh 116 | quik --html index.html --output output.html 117 | ``` 118 | ## Specify browser to open 119 | 120 | You can specify which browser to open when server starts. Refer [opn](https://npmjs.com/opn)'s documentation on browser names. 121 | 122 | For example, to use firefox as the browser, you'd do, 123 | 124 | ```sh 125 | quik --browser firefox 126 | ``` 127 | 128 | ## Sample project 129 | 130 | To get started with a sample project, run the following in a Terminal, 131 | 132 | ```sh 133 | quik --init AwesomeProject 134 | cd AwesomeProject && quik 135 | ``` 136 | 137 | Refer the [API documentation](API.md) for more to know how to customize and extend the server. 138 | 139 | ## How it works 140 | 141 | The `quik` middleware is just an abstraction on top of `webpack`. It includes a base `webpack` config and generates appropriate config files when needed. For example, when the `quik` server receives a request for a JavaScript file, it generates a `webpack` config on the fly, the file is then transpiled with `webpack`, and the server responds with the generated bundle instead of the original script. 142 | 143 | ## Motivation 144 | 145 | Tooling is the hardest part in JavaScript development, and it's time we do something about it. 146 | 147 | The following posts inspired me to work on `quik`, 148 | 149 | * [Challenge: Best JavaScript Setup for Quick Prototyping](http://blog.vjeux.com/2015/javascript/challenge-best-javascript-setup-for-quick-prototyping.html) by [**@vjeux**](https://github.com/vjeux) 150 | * [Javascript Fatigue](https://medium.com/@ericclemmons/javascript-fatigue-48d4011b6fc4) by [**@ericclemmons**](https://github.com/ericclemmons) 151 | 152 | One good thing about `quik` is that it is highly opinionated, which means we don't worry about becoming generic and can focus on making it better at what it does. It doesn't allow additional `babel` transforms, or loaders for `webpack` as of now. 153 | 154 | Inline styles are recommended for styling. When combined with a library like `radium`, they provide much more flexibility than CSS. 155 | 156 | The goal of `quik` is to improve the tooling around React and Babel projects. While it'll be easy enough to support additional customization, it defeats the whole purpose of being zero-setup. If you need additional configuration, it will be better to go with `webpack` directly. If you think something should be included by default, send a pull request or file a bug report. 157 | 158 | Even though `quik` itself doesn't provide additional customization, it's just a `koa` middleware at the core. That means it's composable with other koa middlewares and you can add additional functionality easily. 159 | 160 | ## Plans for improvements 161 | 162 | Below are some ideas on how to improve `quik`. It would be awesome to receive pull requests for these. 163 | 164 | * Automatically parse HTML files to enable hot reloading without having to specify files with `--watch` 165 | * Cache bundles instead of re-building on every request 166 | * Better error handling 167 | * Atom plugin to make it easier to use without CLI 168 | 169 | ## Similar tools 170 | 171 | Of course, `quik` is not the only tool trying to solve this problem. There are few other tools which are also doing a great job at it. 172 | 173 | * [react-heatpack](https://github.com/insin/react-heatpack) - a very minimal prototyping server for React with Hot Module Replacement 174 | * [nwb](https://github.com/insin/nwb) - similar, but has lot more options 175 | * [rwb](https://github.com/petehunt/rwb) - pretty similar to `quik`, has Hot Module Replacement and can also build bundles for production 176 | * [run-js](https://github.com/remixz/run-js) - works on top of [`browserify`](http://browserify.org/), zero-setup, has live-reload functionality 177 | -------------------------------------------------------------------------------- /__tests__/bundle.test.js: -------------------------------------------------------------------------------- 1 | import path from 'path'; 2 | import fs from 'fs'; 3 | import del from 'del'; 4 | import mkdirp from 'mkdirp'; 5 | import bundle from '../src/bundler'; 6 | import readFileAsync from '../src/read-file-async'; 7 | 8 | jasmine.DEFAULT_TIMEOUT_INTERVAL = 60000; 9 | 10 | const TESTDIR = '/tmp/quik-test-' + Date.now(); 11 | const WORKINGDIR = path.join(__dirname, '../template'); 12 | 13 | beforeAll(() => 14 | del(TESTDIR, { force: true }).then( 15 | () => 16 | new Promise((resolve, reject) => { 17 | mkdirp(TESTDIR, err => { 18 | if (err) { 19 | reject(err); 20 | } else { 21 | resolve(); 22 | } 23 | }); 24 | }) 25 | ) 26 | ); 27 | 28 | afterAll(() => del(TESTDIR, { force: true })); 29 | 30 | it('should bundle for development', async () => { 31 | await bundle({ 32 | root: WORKINGDIR, 33 | entry: ['index.js'], 34 | output: path.relative(WORKINGDIR, path.join(TESTDIR, '[name].bundle.js')), 35 | sourcemaps: true, 36 | quiet: true, 37 | }); 38 | 39 | const js = await readFileAsync(fs, path.join(TESTDIR, 'index.bundle.js')); 40 | 41 | expect(js).not.toMatch('import React from'); 42 | expect(js).toMatch('function _interopRequireDefault'); 43 | expect(js).toMatch('/******/ (function(modules) { // webpackBootstrap'); 44 | expect(js).toMatch('//# sourceMappingURL=index.bundle.js.map'); 45 | 46 | const map = await readFileAsync( 47 | fs, 48 | path.join(TESTDIR, 'index.bundle.js.map') 49 | ); 50 | 51 | expect(map).toMatch( 52 | '"webpack:///../node_modules/react/cjs/react.development.js"' 53 | ); 54 | }); 55 | 56 | it('should not generate sourcemaps for development', async done => { 57 | await bundle({ 58 | root: WORKINGDIR, 59 | entry: ['index.js'], 60 | output: path.relative(WORKINGDIR, path.join(TESTDIR, '[name].bundle.0.js')), 61 | quiet: true, 62 | }); 63 | 64 | try { 65 | await readFileAsync(fs, path.join(TESTDIR, 'index.bundle.0.js.map')); 66 | done.fail("sourcemap shouldn't exist"); 67 | } catch (e) { 68 | expect(e.code).toEqual('ENOENT'); 69 | done(); 70 | } 71 | }); 72 | 73 | it('should bundle for production', async () => { 74 | await bundle({ 75 | root: WORKINGDIR, 76 | entry: ['index.js'], 77 | output: path.relative( 78 | WORKINGDIR, 79 | path.join(TESTDIR, '[name].bundle.min.js') 80 | ), 81 | production: true, 82 | sourcemaps: true, 83 | quiet: true, 84 | }); 85 | 86 | const js = await readFileAsync(fs, path.join(TESTDIR, 'index.bundle.min.js')); 87 | 88 | expect(js).not.toMatch('import React from'); 89 | expect(js).toMatch('Minified exception occurred;'); 90 | expect(js).toMatch('!function(e){function t(r){if(n[r])return n[r].e'); 91 | expect(js).toMatch('//# sourceMappingURL=index.bundle.min.js.map'); 92 | 93 | const map = await readFileAsync( 94 | fs, 95 | path.join(TESTDIR, 'index.bundle.min.js.map') 96 | ); 97 | 98 | expect(map).toMatch( 99 | '"webpack:///../node_modules/react/cjs/react.production.min.js"' 100 | ); 101 | }); 102 | 103 | it('should not generate sourcemaps for production', async done => { 104 | await bundle({ 105 | root: WORKINGDIR, 106 | entry: ['index.js'], 107 | output: path.relative( 108 | WORKINGDIR, 109 | path.join(TESTDIR, '[name].bundle.0.min.js') 110 | ), 111 | production: true, 112 | quiet: true, 113 | }); 114 | 115 | try { 116 | await readFileAsync(fs, path.join(TESTDIR, 'index.bundle.0.min.js.map')); 117 | done.fail("sourcemap shouldn't exist"); 118 | } catch (e) { 119 | expect(e.code).toEqual('ENOENT'); 120 | done(); 121 | } 122 | }); 123 | -------------------------------------------------------------------------------- /__tests__/cli.test.js: -------------------------------------------------------------------------------- 1 | import path from 'path'; 2 | import child_process from 'child_process'; 3 | import fs from 'fs'; 4 | import del from 'del'; 5 | import mkdirp from 'mkdirp'; 6 | 7 | jasmine.DEFAULT_TIMEOUT_INTERVAL = 60000; 8 | 9 | const TESTDIR = '/tmp/quik-test-' + Date.now(); 10 | const PROJECT_NAME = 'AwesomeProject'; 11 | 12 | beforeAll(() => 13 | del(TESTDIR, { force: true }).then( 14 | () => 15 | new Promise((resolve, reject) => { 16 | mkdirp(TESTDIR, err => { 17 | if (err) { 18 | reject(err); 19 | } else { 20 | resolve(); 21 | } 22 | }); 23 | }) 24 | ) 25 | ); 26 | 27 | afterAll(() => del(TESTDIR, { force: true })); 28 | 29 | it('should print usage', done => { 30 | child_process.execFile( 31 | path.join(__dirname, '../bin/quik.js'), 32 | ['--help'], 33 | {}, 34 | (err, stdout) => { 35 | if (err) { 36 | done.fail(err); 37 | } else { 38 | expect(stdout.startsWith('Usage: bin/quik.js [...options]')).toBe(true); 39 | done(); 40 | } 41 | } 42 | ); 43 | }); 44 | 45 | it('should initialize project with template', done => { 46 | child_process.execFile( 47 | path.join(__dirname, '../bin/quik.js'), 48 | ['--init', PROJECT_NAME], 49 | { 50 | cwd: TESTDIR, 51 | }, 52 | err => { 53 | if (err) { 54 | done.fail(err); 55 | } else { 56 | fs.readdir(path.join(TESTDIR, PROJECT_NAME), (error, res) => { 57 | if (error) { 58 | done.fail(error); 59 | } else { 60 | expect(res).toContain('package.json'); 61 | expect(res).toContain('index.html'); 62 | expect(res).toContain('index.js'); 63 | expect(res).toContain('MyComponent.js'); 64 | done(); 65 | } 66 | }); 67 | } 68 | } 69 | ); 70 | }); 71 | -------------------------------------------------------------------------------- /__tests__/hmr.test.js: -------------------------------------------------------------------------------- 1 | import path from 'path'; 2 | import fs from 'fs'; 3 | import EventSource from 'eventsource'; 4 | import server from '../src/server'; 5 | 6 | jasmine.DEFAULT_TIMEOUT_INTERVAL = 60000; 7 | 8 | it('should rebuild on changes', done => { 9 | const SYNC = 'sync'; 10 | const BUILDING = 'building'; 11 | const BUILT = 'built'; 12 | const HEARTBEAT = '💓'; 13 | 14 | const s = server({ 15 | root: path.join(__dirname, '../template'), 16 | watch: ['./index.js'], 17 | }).listen(3005); 18 | 19 | const componentFile = path.join(__dirname, '../template', 'MyComponent.js'); 20 | 21 | function change(from, to) { 22 | fs.readFile(componentFile, 'utf-8', (err, res) => { 23 | if (err) { 24 | done.fail(err); 25 | } else { 26 | fs.writeFile( 27 | componentFile, 28 | res.toString().replace(from, to), 29 | 'utf-8', 30 | e => { 31 | if (e) { 32 | done.fail(e); 33 | } 34 | } 35 | ); 36 | } 37 | }); 38 | } 39 | 40 | expect.assertions(15); 41 | 42 | const hmr = new EventSource('http://localhost:3005/__webpack_hmr'); 43 | 44 | hmr.onopen = message => { 45 | expect(message.type).toEqual('open'); 46 | 47 | setTimeout(() => change('Hello world!', 'Hello world :D'), 1000); 48 | setTimeout(() => change('Hello world', 'Hola world'), 5000); 49 | setTimeout(() => change('Hola world :D', 'Hello world!'), 7000); 50 | }; 51 | 52 | let i = 0; 53 | let action = SYNC; 54 | 55 | hmr.onmessage = message => { 56 | const data = message.data; 57 | 58 | if (i === 7) { 59 | expect(data).toEqual(HEARTBEAT); 60 | 61 | hmr.close(); 62 | s.close(); 63 | done(); 64 | } 65 | 66 | if (data === HEARTBEAT) { 67 | return; 68 | } 69 | 70 | try { 71 | const parsed = JSON.parse(data); 72 | 73 | expect(parsed.action).toEqual(action); 74 | 75 | if (parsed.action === BUILT) { 76 | expect(parsed.errors).toEqual([]); 77 | expect(parsed.warnings).toEqual([]); 78 | } 79 | 80 | switch (parsed.action) { 81 | case SYNC: 82 | action = BUILDING; 83 | break; 84 | case BUILDING: 85 | action = BUILT; 86 | break; 87 | case BUILT: 88 | action = BUILDING; 89 | break; 90 | } 91 | 92 | i++; 93 | } catch (err) { 94 | done.fail(err); 95 | } 96 | }; 97 | }); 98 | -------------------------------------------------------------------------------- /__tests__/html.test.js: -------------------------------------------------------------------------------- 1 | import path from 'path'; 2 | import fs from 'fs'; 3 | import del from 'del'; 4 | import mkdirp from 'mkdirp'; 5 | import html from '../src/html'; 6 | import readFileAsync from '../src/read-file-async'; 7 | 8 | jasmine.DEFAULT_TIMEOUT_INTERVAL = 60000; 9 | 10 | const TESTDIR = '/tmp/quik-test-' + Date.now(); 11 | const WORKINGDIR = path.join(__dirname, '../template'); 12 | 13 | beforeAll(() => 14 | del(TESTDIR, { force: true }).then( 15 | () => 16 | new Promise((resolve, reject) => { 17 | mkdirp(TESTDIR, err => { 18 | if (err) { 19 | reject(err); 20 | } else { 21 | resolve(); 22 | } 23 | }); 24 | }) 25 | ) 26 | ); 27 | 28 | afterAll(() => del(TESTDIR, { force: true })); 29 | 30 | it('should build html without an entry file', async () => { 31 | await html({ 32 | root: WORKINGDIR, 33 | output: path.relative(WORKINGDIR, path.join(TESTDIR, 'output.magic.html')), 34 | sourcemaps: true, 35 | quiet: true, 36 | }); 37 | 38 | const data = await readFileAsync(fs, path.join(TESTDIR, 'output.magic.html')); 39 | 40 | expect(data.indexOf('Quik Playground') > -1).toBe(true); 41 | expect(data.indexOf('import React from') === -1).toBe(true); 42 | expect(data.indexOf('function _interopRequireDefault') > -1).toBe(true); 43 | expect( 44 | data.indexOf('/******/ (function(modules) { // webpackBootstrap') > -1 45 | ).toBe(true); 46 | expect( 47 | data.indexOf( 48 | '//# sourceMappingURL=data:application/json;charset=utf-8;base64' 49 | ) > -1 50 | ).toBe(true); 51 | }); 52 | 53 | it('should build html without an entry file when JavaScript file is specified', async () => { 54 | await html({ 55 | root: WORKINGDIR, 56 | output: path.relative( 57 | WORKINGDIR, 58 | path.join(TESTDIR, 'output.magic.1.html') 59 | ), 60 | js: 'MyComponent.js', 61 | sourcemaps: true, 62 | quiet: true, 63 | }); 64 | 65 | const data = await readFileAsync( 66 | fs, 67 | path.join(TESTDIR, 'output.magic.1.html') 68 | ); 69 | 70 | expect(data.indexOf('Quik Playground') > -1).toBe(true); 71 | expect(data.indexOf('import React from') === -1).toBe(true); 72 | expect(data.indexOf('function _interopRequireDefault') > -1).toBe(true); 73 | expect( 74 | data.indexOf( 75 | "_reactDom2.default.render(_react2.default.createElement(_MyComponent2.default, null), document.getElementById('root'))" 76 | ) === -1 77 | ).toBe(true); 78 | }); 79 | 80 | it('should build html for development', async () => { 81 | await html({ 82 | root: WORKINGDIR, 83 | entry: 'index.html', 84 | output: path.relative(WORKINGDIR, path.join(TESTDIR, 'output.html')), 85 | sourcemaps: true, 86 | quiet: true, 87 | }); 88 | 89 | const data = await readFileAsync(fs, path.join(TESTDIR, 'output.html')); 90 | 91 | expect(data.indexOf('') > -1).toBe(true); 92 | expect(data.indexOf('import React from') === -1).toBe(true); 93 | expect(data.indexOf('function _interopRequireDefault') > -1).toBe(true); 94 | expect( 95 | data.indexOf('/******/ (function(modules) { // webpackBootstrap') > -1 96 | ).toBe(true); 97 | expect( 98 | data.indexOf( 99 | '//# sourceMappingURL=data:application/json;charset=utf-8;base64' 100 | ) > -1 101 | ).toBe(true); 102 | }); 103 | 104 | it('should not add sourcemap for development', async () => { 105 | await html({ 106 | root: WORKINGDIR, 107 | entry: 'index.html', 108 | output: path.relative(WORKINGDIR, path.join(TESTDIR, 'output.0.html')), 109 | quiet: true, 110 | }); 111 | 112 | const data = await readFileAsync(fs, path.join(TESTDIR, 'output.0.html')); 113 | expect( 114 | data.indexOf( 115 | '//# sourceMappingURL=data:application/json;charset=utf-8;base64' 116 | ) === -1 117 | ).toBe(true); 118 | }); 119 | 120 | it('should build html for production', async () => { 121 | await html({ 122 | root: WORKINGDIR, 123 | entry: 'index.html', 124 | output: path.relative(WORKINGDIR, path.join(TESTDIR, 'output.min.html')), 125 | sourcemaps: true, 126 | production: true, 127 | quiet: true, 128 | }); 129 | 130 | const data = await readFileAsync(fs, path.join(TESTDIR, 'output.min.html')); 131 | 132 | expect(data.indexOf('') > -1).toBe(true); 133 | expect(data.indexOf('import React from') === -1).toBe(true); 134 | expect(data.indexOf('Minified exception occurred;') > -1).toBe(true); 135 | expect( 136 | data.indexOf('!function(e){function t(r){if(n[r])return n[r].e') > -1 137 | ).toBe(true); 138 | expect( 139 | data.indexOf( 140 | '//# sourceMappingURL=data:application/json;charset=utf-8;base64' 141 | ) > -1 142 | ).toBe(true); 143 | }); 144 | 145 | it('should not add sourcemap for production', async () => { 146 | await html({ 147 | root: WORKINGDIR, 148 | entry: 'index.html', 149 | output: path.relative(WORKINGDIR, path.join(TESTDIR, 'output.0.min.html')), 150 | production: true, 151 | quiet: true, 152 | }); 153 | 154 | const data = await readFileAsync(fs, path.join(TESTDIR, 'output.0.min.html')); 155 | 156 | expect( 157 | data.indexOf( 158 | '//# sourceMappingURL=data:application/json;charset=utf-8;base64' 159 | ) === -1 160 | ).toBe(true); 161 | }); 162 | -------------------------------------------------------------------------------- /__tests__/server.test.js: -------------------------------------------------------------------------------- 1 | import http from 'http'; 2 | import path from 'path'; 3 | import server from '../src/server'; 4 | 5 | jasmine.DEFAULT_TIMEOUT_INTERVAL = 60000; 6 | 7 | it('should start server', done => { 8 | const s = server({ 9 | root: path.join(__dirname, '../template'), 10 | }).listen(3000); 11 | 12 | http.get('http://localhost:3000/', res => { 13 | s.close(); 14 | expect(res.statusCode).toEqual(200); 15 | expect(res.headers['content-type'].toLowerCase()).toEqual( 16 | 'text/html; charset=utf-8' 17 | ); 18 | done(); 19 | }); 20 | }); 21 | 22 | it('should respond with transpiled script', done => { 23 | const s = server({ 24 | root: path.join(__dirname, '../template'), 25 | }).listen(3001); 26 | 27 | http.get('http://localhost:3001/index.js', res => { 28 | let data = ''; 29 | 30 | res.on('data', chunk => (data += chunk)); 31 | res.on('end', () => { 32 | s.close(); 33 | expect(data).not.toMatch('import React from'); 34 | expect(data).toMatch('function _interopRequireDefault'); 35 | expect(data).toMatch('/******/ (function(modules) { // webpackBootstrap'); 36 | expect(data).toMatch( 37 | '//# sourceMappingURL=data:application/json;charset=utf-8;base64' 38 | ); 39 | done(); 40 | }); 41 | 42 | expect(res.statusCode).toEqual(200); 43 | expect(res.headers['content-type']).toEqual( 44 | 'application/javascript; charset=utf-8' 45 | ); 46 | }); 47 | }); 48 | 49 | it('should respond with formatted error', done => { 50 | const s = server({ 51 | root: path.join(__dirname, '../template'), 52 | }).listen(3002); 53 | 54 | http.get('http://localhost:3002/none.js', res => { 55 | let data = ''; 56 | 57 | res.on('data', chunk => (data += chunk)); 58 | res.on('end', () => { 59 | s.close(); 60 | expect(data).toMatch('/* show error response on build fail */'); 61 | done(); 62 | }); 63 | }); 64 | }); 65 | -------------------------------------------------------------------------------- /bin/quik.js: -------------------------------------------------------------------------------- 1 | #! /usr/bin/env node 2 | 3 | require('../dist/quik-cli'); // eslint-disable-line import/no-commonjs 4 | -------------------------------------------------------------------------------- /flow-typed/npm/autoprefixer_vx.x.x.js: -------------------------------------------------------------------------------- 1 | // flow-typed signature: c59bd5205d41a913d6275c93eaad68d5 2 | // flow-typed version: <>/autoprefixer_v^7.1.4/flow_v0.55.0 3 | 4 | /** 5 | * This is an autogenerated libdef stub for: 6 | * 7 | * 'autoprefixer' 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 'autoprefixer' { 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 'autoprefixer/data/prefixes' { 26 | declare module.exports: any; 27 | } 28 | 29 | declare module 'autoprefixer/lib/at-rule' { 30 | declare module.exports: any; 31 | } 32 | 33 | declare module 'autoprefixer/lib/autoprefixer' { 34 | declare module.exports: any; 35 | } 36 | 37 | declare module 'autoprefixer/lib/brackets' { 38 | declare module.exports: any; 39 | } 40 | 41 | declare module 'autoprefixer/lib/browsers' { 42 | declare module.exports: any; 43 | } 44 | 45 | declare module 'autoprefixer/lib/declaration' { 46 | declare module.exports: any; 47 | } 48 | 49 | declare module 'autoprefixer/lib/hacks/align-content' { 50 | declare module.exports: any; 51 | } 52 | 53 | declare module 'autoprefixer/lib/hacks/align-items' { 54 | declare module.exports: any; 55 | } 56 | 57 | declare module 'autoprefixer/lib/hacks/align-self' { 58 | declare module.exports: any; 59 | } 60 | 61 | declare module 'autoprefixer/lib/hacks/appearance' { 62 | declare module.exports: any; 63 | } 64 | 65 | declare module 'autoprefixer/lib/hacks/background-size' { 66 | declare module.exports: any; 67 | } 68 | 69 | declare module 'autoprefixer/lib/hacks/block-logical' { 70 | declare module.exports: any; 71 | } 72 | 73 | declare module 'autoprefixer/lib/hacks/border-image' { 74 | declare module.exports: any; 75 | } 76 | 77 | declare module 'autoprefixer/lib/hacks/border-radius' { 78 | declare module.exports: any; 79 | } 80 | 81 | declare module 'autoprefixer/lib/hacks/break-props' { 82 | declare module.exports: any; 83 | } 84 | 85 | declare module 'autoprefixer/lib/hacks/cross-fade' { 86 | declare module.exports: any; 87 | } 88 | 89 | declare module 'autoprefixer/lib/hacks/display-flex' { 90 | declare module.exports: any; 91 | } 92 | 93 | declare module 'autoprefixer/lib/hacks/display-grid' { 94 | declare module.exports: any; 95 | } 96 | 97 | declare module 'autoprefixer/lib/hacks/filter-value' { 98 | declare module.exports: any; 99 | } 100 | 101 | declare module 'autoprefixer/lib/hacks/filter' { 102 | declare module.exports: any; 103 | } 104 | 105 | declare module 'autoprefixer/lib/hacks/flex-basis' { 106 | declare module.exports: any; 107 | } 108 | 109 | declare module 'autoprefixer/lib/hacks/flex-direction' { 110 | declare module.exports: any; 111 | } 112 | 113 | declare module 'autoprefixer/lib/hacks/flex-flow' { 114 | declare module.exports: any; 115 | } 116 | 117 | declare module 'autoprefixer/lib/hacks/flex-grow' { 118 | declare module.exports: any; 119 | } 120 | 121 | declare module 'autoprefixer/lib/hacks/flex-shrink' { 122 | declare module.exports: any; 123 | } 124 | 125 | declare module 'autoprefixer/lib/hacks/flex-spec' { 126 | declare module.exports: any; 127 | } 128 | 129 | declare module 'autoprefixer/lib/hacks/flex-values' { 130 | declare module.exports: any; 131 | } 132 | 133 | declare module 'autoprefixer/lib/hacks/flex-wrap' { 134 | declare module.exports: any; 135 | } 136 | 137 | declare module 'autoprefixer/lib/hacks/flex' { 138 | declare module.exports: any; 139 | } 140 | 141 | declare module 'autoprefixer/lib/hacks/fullscreen' { 142 | declare module.exports: any; 143 | } 144 | 145 | declare module 'autoprefixer/lib/hacks/gradient' { 146 | declare module.exports: any; 147 | } 148 | 149 | declare module 'autoprefixer/lib/hacks/grid-column-align' { 150 | declare module.exports: any; 151 | } 152 | 153 | declare module 'autoprefixer/lib/hacks/grid-end' { 154 | declare module.exports: any; 155 | } 156 | 157 | declare module 'autoprefixer/lib/hacks/grid-row-align' { 158 | declare module.exports: any; 159 | } 160 | 161 | declare module 'autoprefixer/lib/hacks/grid-start' { 162 | declare module.exports: any; 163 | } 164 | 165 | declare module 'autoprefixer/lib/hacks/grid-template' { 166 | declare module.exports: any; 167 | } 168 | 169 | declare module 'autoprefixer/lib/hacks/image-rendering' { 170 | declare module.exports: any; 171 | } 172 | 173 | declare module 'autoprefixer/lib/hacks/image-set' { 174 | declare module.exports: any; 175 | } 176 | 177 | declare module 'autoprefixer/lib/hacks/inline-logical' { 178 | declare module.exports: any; 179 | } 180 | 181 | declare module 'autoprefixer/lib/hacks/intrinsic' { 182 | declare module.exports: any; 183 | } 184 | 185 | declare module 'autoprefixer/lib/hacks/justify-content' { 186 | declare module.exports: any; 187 | } 188 | 189 | declare module 'autoprefixer/lib/hacks/mask-border' { 190 | declare module.exports: any; 191 | } 192 | 193 | declare module 'autoprefixer/lib/hacks/order' { 194 | declare module.exports: any; 195 | } 196 | 197 | declare module 'autoprefixer/lib/hacks/pixelated' { 198 | declare module.exports: any; 199 | } 200 | 201 | declare module 'autoprefixer/lib/hacks/placeholder' { 202 | declare module.exports: any; 203 | } 204 | 205 | declare module 'autoprefixer/lib/hacks/text-decoration' { 206 | declare module.exports: any; 207 | } 208 | 209 | declare module 'autoprefixer/lib/hacks/text-emphasis-position' { 210 | declare module.exports: any; 211 | } 212 | 213 | declare module 'autoprefixer/lib/hacks/transform-decl' { 214 | declare module.exports: any; 215 | } 216 | 217 | declare module 'autoprefixer/lib/hacks/writing-mode' { 218 | declare module.exports: any; 219 | } 220 | 221 | declare module 'autoprefixer/lib/info' { 222 | declare module.exports: any; 223 | } 224 | 225 | declare module 'autoprefixer/lib/old-selector' { 226 | declare module.exports: any; 227 | } 228 | 229 | declare module 'autoprefixer/lib/old-value' { 230 | declare module.exports: any; 231 | } 232 | 233 | declare module 'autoprefixer/lib/prefixer' { 234 | declare module.exports: any; 235 | } 236 | 237 | declare module 'autoprefixer/lib/prefixes' { 238 | declare module.exports: any; 239 | } 240 | 241 | declare module 'autoprefixer/lib/processor' { 242 | declare module.exports: any; 243 | } 244 | 245 | declare module 'autoprefixer/lib/resolution' { 246 | declare module.exports: any; 247 | } 248 | 249 | declare module 'autoprefixer/lib/selector' { 250 | declare module.exports: any; 251 | } 252 | 253 | declare module 'autoprefixer/lib/supports' { 254 | declare module.exports: any; 255 | } 256 | 257 | declare module 'autoprefixer/lib/transition' { 258 | declare module.exports: any; 259 | } 260 | 261 | declare module 'autoprefixer/lib/utils' { 262 | declare module.exports: any; 263 | } 264 | 265 | declare module 'autoprefixer/lib/value' { 266 | declare module.exports: any; 267 | } 268 | 269 | // Filename aliases 270 | declare module 'autoprefixer/data/prefixes.js' { 271 | declare module.exports: $Exports<'autoprefixer/data/prefixes'>; 272 | } 273 | declare module 'autoprefixer/lib/at-rule.js' { 274 | declare module.exports: $Exports<'autoprefixer/lib/at-rule'>; 275 | } 276 | declare module 'autoprefixer/lib/autoprefixer.js' { 277 | declare module.exports: $Exports<'autoprefixer/lib/autoprefixer'>; 278 | } 279 | declare module 'autoprefixer/lib/brackets.js' { 280 | declare module.exports: $Exports<'autoprefixer/lib/brackets'>; 281 | } 282 | declare module 'autoprefixer/lib/browsers.js' { 283 | declare module.exports: $Exports<'autoprefixer/lib/browsers'>; 284 | } 285 | declare module 'autoprefixer/lib/declaration.js' { 286 | declare module.exports: $Exports<'autoprefixer/lib/declaration'>; 287 | } 288 | declare module 'autoprefixer/lib/hacks/align-content.js' { 289 | declare module.exports: $Exports<'autoprefixer/lib/hacks/align-content'>; 290 | } 291 | declare module 'autoprefixer/lib/hacks/align-items.js' { 292 | declare module.exports: $Exports<'autoprefixer/lib/hacks/align-items'>; 293 | } 294 | declare module 'autoprefixer/lib/hacks/align-self.js' { 295 | declare module.exports: $Exports<'autoprefixer/lib/hacks/align-self'>; 296 | } 297 | declare module 'autoprefixer/lib/hacks/appearance.js' { 298 | declare module.exports: $Exports<'autoprefixer/lib/hacks/appearance'>; 299 | } 300 | declare module 'autoprefixer/lib/hacks/background-size.js' { 301 | declare module.exports: $Exports<'autoprefixer/lib/hacks/background-size'>; 302 | } 303 | declare module 'autoprefixer/lib/hacks/block-logical.js' { 304 | declare module.exports: $Exports<'autoprefixer/lib/hacks/block-logical'>; 305 | } 306 | declare module 'autoprefixer/lib/hacks/border-image.js' { 307 | declare module.exports: $Exports<'autoprefixer/lib/hacks/border-image'>; 308 | } 309 | declare module 'autoprefixer/lib/hacks/border-radius.js' { 310 | declare module.exports: $Exports<'autoprefixer/lib/hacks/border-radius'>; 311 | } 312 | declare module 'autoprefixer/lib/hacks/break-props.js' { 313 | declare module.exports: $Exports<'autoprefixer/lib/hacks/break-props'>; 314 | } 315 | declare module 'autoprefixer/lib/hacks/cross-fade.js' { 316 | declare module.exports: $Exports<'autoprefixer/lib/hacks/cross-fade'>; 317 | } 318 | declare module 'autoprefixer/lib/hacks/display-flex.js' { 319 | declare module.exports: $Exports<'autoprefixer/lib/hacks/display-flex'>; 320 | } 321 | declare module 'autoprefixer/lib/hacks/display-grid.js' { 322 | declare module.exports: $Exports<'autoprefixer/lib/hacks/display-grid'>; 323 | } 324 | declare module 'autoprefixer/lib/hacks/filter-value.js' { 325 | declare module.exports: $Exports<'autoprefixer/lib/hacks/filter-value'>; 326 | } 327 | declare module 'autoprefixer/lib/hacks/filter.js' { 328 | declare module.exports: $Exports<'autoprefixer/lib/hacks/filter'>; 329 | } 330 | declare module 'autoprefixer/lib/hacks/flex-basis.js' { 331 | declare module.exports: $Exports<'autoprefixer/lib/hacks/flex-basis'>; 332 | } 333 | declare module 'autoprefixer/lib/hacks/flex-direction.js' { 334 | declare module.exports: $Exports<'autoprefixer/lib/hacks/flex-direction'>; 335 | } 336 | declare module 'autoprefixer/lib/hacks/flex-flow.js' { 337 | declare module.exports: $Exports<'autoprefixer/lib/hacks/flex-flow'>; 338 | } 339 | declare module 'autoprefixer/lib/hacks/flex-grow.js' { 340 | declare module.exports: $Exports<'autoprefixer/lib/hacks/flex-grow'>; 341 | } 342 | declare module 'autoprefixer/lib/hacks/flex-shrink.js' { 343 | declare module.exports: $Exports<'autoprefixer/lib/hacks/flex-shrink'>; 344 | } 345 | declare module 'autoprefixer/lib/hacks/flex-spec.js' { 346 | declare module.exports: $Exports<'autoprefixer/lib/hacks/flex-spec'>; 347 | } 348 | declare module 'autoprefixer/lib/hacks/flex-values.js' { 349 | declare module.exports: $Exports<'autoprefixer/lib/hacks/flex-values'>; 350 | } 351 | declare module 'autoprefixer/lib/hacks/flex-wrap.js' { 352 | declare module.exports: $Exports<'autoprefixer/lib/hacks/flex-wrap'>; 353 | } 354 | declare module 'autoprefixer/lib/hacks/flex.js' { 355 | declare module.exports: $Exports<'autoprefixer/lib/hacks/flex'>; 356 | } 357 | declare module 'autoprefixer/lib/hacks/fullscreen.js' { 358 | declare module.exports: $Exports<'autoprefixer/lib/hacks/fullscreen'>; 359 | } 360 | declare module 'autoprefixer/lib/hacks/gradient.js' { 361 | declare module.exports: $Exports<'autoprefixer/lib/hacks/gradient'>; 362 | } 363 | declare module 'autoprefixer/lib/hacks/grid-column-align.js' { 364 | declare module.exports: $Exports<'autoprefixer/lib/hacks/grid-column-align'>; 365 | } 366 | declare module 'autoprefixer/lib/hacks/grid-end.js' { 367 | declare module.exports: $Exports<'autoprefixer/lib/hacks/grid-end'>; 368 | } 369 | declare module 'autoprefixer/lib/hacks/grid-row-align.js' { 370 | declare module.exports: $Exports<'autoprefixer/lib/hacks/grid-row-align'>; 371 | } 372 | declare module 'autoprefixer/lib/hacks/grid-start.js' { 373 | declare module.exports: $Exports<'autoprefixer/lib/hacks/grid-start'>; 374 | } 375 | declare module 'autoprefixer/lib/hacks/grid-template.js' { 376 | declare module.exports: $Exports<'autoprefixer/lib/hacks/grid-template'>; 377 | } 378 | declare module 'autoprefixer/lib/hacks/image-rendering.js' { 379 | declare module.exports: $Exports<'autoprefixer/lib/hacks/image-rendering'>; 380 | } 381 | declare module 'autoprefixer/lib/hacks/image-set.js' { 382 | declare module.exports: $Exports<'autoprefixer/lib/hacks/image-set'>; 383 | } 384 | declare module 'autoprefixer/lib/hacks/inline-logical.js' { 385 | declare module.exports: $Exports<'autoprefixer/lib/hacks/inline-logical'>; 386 | } 387 | declare module 'autoprefixer/lib/hacks/intrinsic.js' { 388 | declare module.exports: $Exports<'autoprefixer/lib/hacks/intrinsic'>; 389 | } 390 | declare module 'autoprefixer/lib/hacks/justify-content.js' { 391 | declare module.exports: $Exports<'autoprefixer/lib/hacks/justify-content'>; 392 | } 393 | declare module 'autoprefixer/lib/hacks/mask-border.js' { 394 | declare module.exports: $Exports<'autoprefixer/lib/hacks/mask-border'>; 395 | } 396 | declare module 'autoprefixer/lib/hacks/order.js' { 397 | declare module.exports: $Exports<'autoprefixer/lib/hacks/order'>; 398 | } 399 | declare module 'autoprefixer/lib/hacks/pixelated.js' { 400 | declare module.exports: $Exports<'autoprefixer/lib/hacks/pixelated'>; 401 | } 402 | declare module 'autoprefixer/lib/hacks/placeholder.js' { 403 | declare module.exports: $Exports<'autoprefixer/lib/hacks/placeholder'>; 404 | } 405 | declare module 'autoprefixer/lib/hacks/text-decoration.js' { 406 | declare module.exports: $Exports<'autoprefixer/lib/hacks/text-decoration'>; 407 | } 408 | declare module 'autoprefixer/lib/hacks/text-emphasis-position.js' { 409 | declare module.exports: $Exports<'autoprefixer/lib/hacks/text-emphasis-position'>; 410 | } 411 | declare module 'autoprefixer/lib/hacks/transform-decl.js' { 412 | declare module.exports: $Exports<'autoprefixer/lib/hacks/transform-decl'>; 413 | } 414 | declare module 'autoprefixer/lib/hacks/writing-mode.js' { 415 | declare module.exports: $Exports<'autoprefixer/lib/hacks/writing-mode'>; 416 | } 417 | declare module 'autoprefixer/lib/info.js' { 418 | declare module.exports: $Exports<'autoprefixer/lib/info'>; 419 | } 420 | declare module 'autoprefixer/lib/old-selector.js' { 421 | declare module.exports: $Exports<'autoprefixer/lib/old-selector'>; 422 | } 423 | declare module 'autoprefixer/lib/old-value.js' { 424 | declare module.exports: $Exports<'autoprefixer/lib/old-value'>; 425 | } 426 | declare module 'autoprefixer/lib/prefixer.js' { 427 | declare module.exports: $Exports<'autoprefixer/lib/prefixer'>; 428 | } 429 | declare module 'autoprefixer/lib/prefixes.js' { 430 | declare module.exports: $Exports<'autoprefixer/lib/prefixes'>; 431 | } 432 | declare module 'autoprefixer/lib/processor.js' { 433 | declare module.exports: $Exports<'autoprefixer/lib/processor'>; 434 | } 435 | declare module 'autoprefixer/lib/resolution.js' { 436 | declare module.exports: $Exports<'autoprefixer/lib/resolution'>; 437 | } 438 | declare module 'autoprefixer/lib/selector.js' { 439 | declare module.exports: $Exports<'autoprefixer/lib/selector'>; 440 | } 441 | declare module 'autoprefixer/lib/supports.js' { 442 | declare module.exports: $Exports<'autoprefixer/lib/supports'>; 443 | } 444 | declare module 'autoprefixer/lib/transition.js' { 445 | declare module.exports: $Exports<'autoprefixer/lib/transition'>; 446 | } 447 | declare module 'autoprefixer/lib/utils.js' { 448 | declare module.exports: $Exports<'autoprefixer/lib/utils'>; 449 | } 450 | declare module 'autoprefixer/lib/value.js' { 451 | declare module.exports: $Exports<'autoprefixer/lib/value'>; 452 | } 453 | -------------------------------------------------------------------------------- /flow-typed/npm/babel-cli_vx.x.x.js: -------------------------------------------------------------------------------- 1 | // flow-typed signature: 0b1433c9c4ad723e7948a8a9d4a096b9 2 | // flow-typed version: <>/babel-cli_v^6.26.0/flow_v0.55.0 3 | 4 | /** 5 | * This is an autogenerated libdef stub for: 6 | * 7 | * 'babel-cli' 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 'babel-cli' { 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 'babel-cli/bin/babel-doctor' { 26 | declare module.exports: any; 27 | } 28 | 29 | declare module 'babel-cli/bin/babel-external-helpers' { 30 | declare module.exports: any; 31 | } 32 | 33 | declare module 'babel-cli/bin/babel-node' { 34 | declare module.exports: any; 35 | } 36 | 37 | declare module 'babel-cli/bin/babel' { 38 | declare module.exports: any; 39 | } 40 | 41 | declare module 'babel-cli/lib/_babel-node' { 42 | declare module.exports: any; 43 | } 44 | 45 | declare module 'babel-cli/lib/babel-external-helpers' { 46 | declare module.exports: any; 47 | } 48 | 49 | declare module 'babel-cli/lib/babel-node' { 50 | declare module.exports: any; 51 | } 52 | 53 | declare module 'babel-cli/lib/babel/dir' { 54 | declare module.exports: any; 55 | } 56 | 57 | declare module 'babel-cli/lib/babel/file' { 58 | declare module.exports: any; 59 | } 60 | 61 | declare module 'babel-cli/lib/babel/index' { 62 | declare module.exports: any; 63 | } 64 | 65 | declare module 'babel-cli/lib/babel/util' { 66 | declare module.exports: any; 67 | } 68 | 69 | // Filename aliases 70 | declare module 'babel-cli/bin/babel-doctor.js' { 71 | declare module.exports: $Exports<'babel-cli/bin/babel-doctor'>; 72 | } 73 | declare module 'babel-cli/bin/babel-external-helpers.js' { 74 | declare module.exports: $Exports<'babel-cli/bin/babel-external-helpers'>; 75 | } 76 | declare module 'babel-cli/bin/babel-node.js' { 77 | declare module.exports: $Exports<'babel-cli/bin/babel-node'>; 78 | } 79 | declare module 'babel-cli/bin/babel.js' { 80 | declare module.exports: $Exports<'babel-cli/bin/babel'>; 81 | } 82 | declare module 'babel-cli/index' { 83 | declare module.exports: $Exports<'babel-cli'>; 84 | } 85 | declare module 'babel-cli/index.js' { 86 | declare module.exports: $Exports<'babel-cli'>; 87 | } 88 | declare module 'babel-cli/lib/_babel-node.js' { 89 | declare module.exports: $Exports<'babel-cli/lib/_babel-node'>; 90 | } 91 | declare module 'babel-cli/lib/babel-external-helpers.js' { 92 | declare module.exports: $Exports<'babel-cli/lib/babel-external-helpers'>; 93 | } 94 | declare module 'babel-cli/lib/babel-node.js' { 95 | declare module.exports: $Exports<'babel-cli/lib/babel-node'>; 96 | } 97 | declare module 'babel-cli/lib/babel/dir.js' { 98 | declare module.exports: $Exports<'babel-cli/lib/babel/dir'>; 99 | } 100 | declare module 'babel-cli/lib/babel/file.js' { 101 | declare module.exports: $Exports<'babel-cli/lib/babel/file'>; 102 | } 103 | declare module 'babel-cli/lib/babel/index.js' { 104 | declare module.exports: $Exports<'babel-cli/lib/babel/index'>; 105 | } 106 | declare module 'babel-cli/lib/babel/util.js' { 107 | declare module.exports: $Exports<'babel-cli/lib/babel/util'>; 108 | } 109 | -------------------------------------------------------------------------------- /flow-typed/npm/babel-core_vx.x.x.js: -------------------------------------------------------------------------------- 1 | // flow-typed signature: be442188d119c847416dd025f69bb123 2 | // flow-typed version: <>/babel-core_v^6.26.0/flow_v0.55.0 3 | 4 | /** 5 | * This is an autogenerated libdef stub for: 6 | * 7 | * 'babel-core' 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 'babel-core' { 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 'babel-core/lib/api/browser' { 26 | declare module.exports: any; 27 | } 28 | 29 | declare module 'babel-core/lib/api/node' { 30 | declare module.exports: any; 31 | } 32 | 33 | declare module 'babel-core/lib/helpers/get-possible-plugin-names' { 34 | declare module.exports: any; 35 | } 36 | 37 | declare module 'babel-core/lib/helpers/get-possible-preset-names' { 38 | declare module.exports: any; 39 | } 40 | 41 | declare module 'babel-core/lib/helpers/merge' { 42 | declare module.exports: any; 43 | } 44 | 45 | declare module 'babel-core/lib/helpers/normalize-ast' { 46 | declare module.exports: any; 47 | } 48 | 49 | declare module 'babel-core/lib/helpers/resolve-from-possible-names' { 50 | declare module.exports: any; 51 | } 52 | 53 | declare module 'babel-core/lib/helpers/resolve-plugin' { 54 | declare module.exports: any; 55 | } 56 | 57 | declare module 'babel-core/lib/helpers/resolve-preset' { 58 | declare module.exports: any; 59 | } 60 | 61 | declare module 'babel-core/lib/helpers/resolve' { 62 | declare module.exports: any; 63 | } 64 | 65 | declare module 'babel-core/lib/store' { 66 | declare module.exports: any; 67 | } 68 | 69 | declare module 'babel-core/lib/tools/build-external-helpers' { 70 | declare module.exports: any; 71 | } 72 | 73 | declare module 'babel-core/lib/transformation/file/index' { 74 | declare module.exports: any; 75 | } 76 | 77 | declare module 'babel-core/lib/transformation/file/logger' { 78 | declare module.exports: any; 79 | } 80 | 81 | declare module 'babel-core/lib/transformation/file/metadata' { 82 | declare module.exports: any; 83 | } 84 | 85 | declare module 'babel-core/lib/transformation/file/options/build-config-chain' { 86 | declare module.exports: any; 87 | } 88 | 89 | declare module 'babel-core/lib/transformation/file/options/config' { 90 | declare module.exports: any; 91 | } 92 | 93 | declare module 'babel-core/lib/transformation/file/options/index' { 94 | declare module.exports: any; 95 | } 96 | 97 | declare module 'babel-core/lib/transformation/file/options/option-manager' { 98 | declare module.exports: any; 99 | } 100 | 101 | declare module 'babel-core/lib/transformation/file/options/parsers' { 102 | declare module.exports: any; 103 | } 104 | 105 | declare module 'babel-core/lib/transformation/file/options/removed' { 106 | declare module.exports: any; 107 | } 108 | 109 | declare module 'babel-core/lib/transformation/internal-plugins/block-hoist' { 110 | declare module.exports: any; 111 | } 112 | 113 | declare module 'babel-core/lib/transformation/internal-plugins/shadow-functions' { 114 | declare module.exports: any; 115 | } 116 | 117 | declare module 'babel-core/lib/transformation/pipeline' { 118 | declare module.exports: any; 119 | } 120 | 121 | declare module 'babel-core/lib/transformation/plugin-pass' { 122 | declare module.exports: any; 123 | } 124 | 125 | declare module 'babel-core/lib/transformation/plugin' { 126 | declare module.exports: any; 127 | } 128 | 129 | declare module 'babel-core/lib/util' { 130 | declare module.exports: any; 131 | } 132 | 133 | declare module 'babel-core/register' { 134 | declare module.exports: any; 135 | } 136 | 137 | // Filename aliases 138 | declare module 'babel-core/index' { 139 | declare module.exports: $Exports<'babel-core'>; 140 | } 141 | declare module 'babel-core/index.js' { 142 | declare module.exports: $Exports<'babel-core'>; 143 | } 144 | declare module 'babel-core/lib/api/browser.js' { 145 | declare module.exports: $Exports<'babel-core/lib/api/browser'>; 146 | } 147 | declare module 'babel-core/lib/api/node.js' { 148 | declare module.exports: $Exports<'babel-core/lib/api/node'>; 149 | } 150 | declare module 'babel-core/lib/helpers/get-possible-plugin-names.js' { 151 | declare module.exports: $Exports<'babel-core/lib/helpers/get-possible-plugin-names'>; 152 | } 153 | declare module 'babel-core/lib/helpers/get-possible-preset-names.js' { 154 | declare module.exports: $Exports<'babel-core/lib/helpers/get-possible-preset-names'>; 155 | } 156 | declare module 'babel-core/lib/helpers/merge.js' { 157 | declare module.exports: $Exports<'babel-core/lib/helpers/merge'>; 158 | } 159 | declare module 'babel-core/lib/helpers/normalize-ast.js' { 160 | declare module.exports: $Exports<'babel-core/lib/helpers/normalize-ast'>; 161 | } 162 | declare module 'babel-core/lib/helpers/resolve-from-possible-names.js' { 163 | declare module.exports: $Exports<'babel-core/lib/helpers/resolve-from-possible-names'>; 164 | } 165 | declare module 'babel-core/lib/helpers/resolve-plugin.js' { 166 | declare module.exports: $Exports<'babel-core/lib/helpers/resolve-plugin'>; 167 | } 168 | declare module 'babel-core/lib/helpers/resolve-preset.js' { 169 | declare module.exports: $Exports<'babel-core/lib/helpers/resolve-preset'>; 170 | } 171 | declare module 'babel-core/lib/helpers/resolve.js' { 172 | declare module.exports: $Exports<'babel-core/lib/helpers/resolve'>; 173 | } 174 | declare module 'babel-core/lib/store.js' { 175 | declare module.exports: $Exports<'babel-core/lib/store'>; 176 | } 177 | declare module 'babel-core/lib/tools/build-external-helpers.js' { 178 | declare module.exports: $Exports<'babel-core/lib/tools/build-external-helpers'>; 179 | } 180 | declare module 'babel-core/lib/transformation/file/index.js' { 181 | declare module.exports: $Exports<'babel-core/lib/transformation/file/index'>; 182 | } 183 | declare module 'babel-core/lib/transformation/file/logger.js' { 184 | declare module.exports: $Exports<'babel-core/lib/transformation/file/logger'>; 185 | } 186 | declare module 'babel-core/lib/transformation/file/metadata.js' { 187 | declare module.exports: $Exports<'babel-core/lib/transformation/file/metadata'>; 188 | } 189 | declare module 'babel-core/lib/transformation/file/options/build-config-chain.js' { 190 | declare module.exports: $Exports<'babel-core/lib/transformation/file/options/build-config-chain'>; 191 | } 192 | declare module 'babel-core/lib/transformation/file/options/config.js' { 193 | declare module.exports: $Exports<'babel-core/lib/transformation/file/options/config'>; 194 | } 195 | declare module 'babel-core/lib/transformation/file/options/index.js' { 196 | declare module.exports: $Exports<'babel-core/lib/transformation/file/options/index'>; 197 | } 198 | declare module 'babel-core/lib/transformation/file/options/option-manager.js' { 199 | declare module.exports: $Exports<'babel-core/lib/transformation/file/options/option-manager'>; 200 | } 201 | declare module 'babel-core/lib/transformation/file/options/parsers.js' { 202 | declare module.exports: $Exports<'babel-core/lib/transformation/file/options/parsers'>; 203 | } 204 | declare module 'babel-core/lib/transformation/file/options/removed.js' { 205 | declare module.exports: $Exports<'babel-core/lib/transformation/file/options/removed'>; 206 | } 207 | declare module 'babel-core/lib/transformation/internal-plugins/block-hoist.js' { 208 | declare module.exports: $Exports<'babel-core/lib/transformation/internal-plugins/block-hoist'>; 209 | } 210 | declare module 'babel-core/lib/transformation/internal-plugins/shadow-functions.js' { 211 | declare module.exports: $Exports<'babel-core/lib/transformation/internal-plugins/shadow-functions'>; 212 | } 213 | declare module 'babel-core/lib/transformation/pipeline.js' { 214 | declare module.exports: $Exports<'babel-core/lib/transformation/pipeline'>; 215 | } 216 | declare module 'babel-core/lib/transformation/plugin-pass.js' { 217 | declare module.exports: $Exports<'babel-core/lib/transformation/plugin-pass'>; 218 | } 219 | declare module 'babel-core/lib/transformation/plugin.js' { 220 | declare module.exports: $Exports<'babel-core/lib/transformation/plugin'>; 221 | } 222 | declare module 'babel-core/lib/util.js' { 223 | declare module.exports: $Exports<'babel-core/lib/util'>; 224 | } 225 | declare module 'babel-core/register.js' { 226 | declare module.exports: $Exports<'babel-core/register'>; 227 | } 228 | -------------------------------------------------------------------------------- /flow-typed/npm/babel-eslint_vx.x.x.js: -------------------------------------------------------------------------------- 1 | // flow-typed signature: 3a5e3539c4a16a87e5afff9a3d7290eb 2 | // flow-typed version: <>/babel-eslint_v^8.0.1/flow_v0.55.0 3 | 4 | /** 5 | * This is an autogenerated libdef stub for: 6 | * 7 | * 'babel-eslint' 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 'babel-eslint' { 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 'babel-eslint/babylon-to-espree/attachComments' { 26 | declare module.exports: any; 27 | } 28 | 29 | declare module 'babel-eslint/babylon-to-espree/convertComments' { 30 | declare module.exports: any; 31 | } 32 | 33 | declare module 'babel-eslint/babylon-to-espree/convertTemplateType' { 34 | declare module.exports: any; 35 | } 36 | 37 | declare module 'babel-eslint/babylon-to-espree/index' { 38 | declare module.exports: any; 39 | } 40 | 41 | declare module 'babel-eslint/babylon-to-espree/toAST' { 42 | declare module.exports: any; 43 | } 44 | 45 | declare module 'babel-eslint/babylon-to-espree/toToken' { 46 | declare module.exports: any; 47 | } 48 | 49 | declare module 'babel-eslint/babylon-to-espree/toTokens' { 50 | declare module.exports: any; 51 | } 52 | 53 | // Filename aliases 54 | declare module 'babel-eslint/babylon-to-espree/attachComments.js' { 55 | declare module.exports: $Exports<'babel-eslint/babylon-to-espree/attachComments'>; 56 | } 57 | declare module 'babel-eslint/babylon-to-espree/convertComments.js' { 58 | declare module.exports: $Exports<'babel-eslint/babylon-to-espree/convertComments'>; 59 | } 60 | declare module 'babel-eslint/babylon-to-espree/convertTemplateType.js' { 61 | declare module.exports: $Exports<'babel-eslint/babylon-to-espree/convertTemplateType'>; 62 | } 63 | declare module 'babel-eslint/babylon-to-espree/index.js' { 64 | declare module.exports: $Exports<'babel-eslint/babylon-to-espree/index'>; 65 | } 66 | declare module 'babel-eslint/babylon-to-espree/toAST.js' { 67 | declare module.exports: $Exports<'babel-eslint/babylon-to-espree/toAST'>; 68 | } 69 | declare module 'babel-eslint/babylon-to-espree/toToken.js' { 70 | declare module.exports: $Exports<'babel-eslint/babylon-to-espree/toToken'>; 71 | } 72 | declare module 'babel-eslint/babylon-to-espree/toTokens.js' { 73 | declare module.exports: $Exports<'babel-eslint/babylon-to-espree/toTokens'>; 74 | } 75 | declare module 'babel-eslint/index' { 76 | declare module.exports: $Exports<'babel-eslint'>; 77 | } 78 | declare module 'babel-eslint/index.js' { 79 | declare module.exports: $Exports<'babel-eslint'>; 80 | } 81 | -------------------------------------------------------------------------------- /flow-typed/npm/babel-jest_vx.x.x.js: -------------------------------------------------------------------------------- 1 | // flow-typed signature: 2ebac487acf8e4e5684322be8f1865f7 2 | // flow-typed version: <>/babel-jest_v^21.2.0/flow_v0.55.0 3 | 4 | /** 5 | * This is an autogenerated libdef stub for: 6 | * 7 | * 'babel-jest' 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 'babel-jest' { 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 'babel-jest/build/index' { 26 | declare module.exports: any; 27 | } 28 | 29 | // Filename aliases 30 | declare module 'babel-jest/build/index.js' { 31 | declare module.exports: $Exports<'babel-jest/build/index'>; 32 | } 33 | -------------------------------------------------------------------------------- /flow-typed/npm/babel-loader_vx.x.x.js: -------------------------------------------------------------------------------- 1 | // flow-typed signature: 4206738fa1342398741edf5f8ddeb8c9 2 | // flow-typed version: <>/babel-loader_v^7.1.2/flow_v0.55.0 3 | 4 | /** 5 | * This is an autogenerated libdef stub for: 6 | * 7 | * 'babel-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 'babel-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 'babel-loader/lib/fs-cache' { 26 | declare module.exports: any; 27 | } 28 | 29 | declare module 'babel-loader/lib/index' { 30 | declare module.exports: any; 31 | } 32 | 33 | declare module 'babel-loader/lib/resolve-rc' { 34 | declare module.exports: any; 35 | } 36 | 37 | declare module 'babel-loader/lib/utils/exists' { 38 | declare module.exports: any; 39 | } 40 | 41 | declare module 'babel-loader/lib/utils/read' { 42 | declare module.exports: any; 43 | } 44 | 45 | declare module 'babel-loader/lib/utils/relative' { 46 | declare module.exports: any; 47 | } 48 | 49 | // Filename aliases 50 | declare module 'babel-loader/lib/fs-cache.js' { 51 | declare module.exports: $Exports<'babel-loader/lib/fs-cache'>; 52 | } 53 | declare module 'babel-loader/lib/index.js' { 54 | declare module.exports: $Exports<'babel-loader/lib/index'>; 55 | } 56 | declare module 'babel-loader/lib/resolve-rc.js' { 57 | declare module.exports: $Exports<'babel-loader/lib/resolve-rc'>; 58 | } 59 | declare module 'babel-loader/lib/utils/exists.js' { 60 | declare module.exports: $Exports<'babel-loader/lib/utils/exists'>; 61 | } 62 | declare module 'babel-loader/lib/utils/read.js' { 63 | declare module.exports: $Exports<'babel-loader/lib/utils/read'>; 64 | } 65 | declare module 'babel-loader/lib/utils/relative.js' { 66 | declare module.exports: $Exports<'babel-loader/lib/utils/relative'>; 67 | } 68 | -------------------------------------------------------------------------------- /flow-typed/npm/babel-plugin-transform-flow-strip-types_vx.x.x.js: -------------------------------------------------------------------------------- 1 | // flow-typed signature: f5bc03436b1df48ac0553281d98fd24d 2 | // flow-typed version: <>/babel-plugin-transform-flow-strip-types_v^6.22.0/flow_v0.55.0 3 | 4 | /** 5 | * This is an autogenerated libdef stub for: 6 | * 7 | * 'babel-plugin-transform-flow-strip-types' 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 'babel-plugin-transform-flow-strip-types' { 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 'babel-plugin-transform-flow-strip-types/lib/index' { 26 | declare module.exports: any; 27 | } 28 | 29 | // Filename aliases 30 | declare module 'babel-plugin-transform-flow-strip-types/lib/index.js' { 31 | declare module.exports: $Exports<'babel-plugin-transform-flow-strip-types/lib/index'>; 32 | } 33 | -------------------------------------------------------------------------------- /flow-typed/npm/babel-plugin-transform-react-constant-elements_vx.x.x.js: -------------------------------------------------------------------------------- 1 | // flow-typed signature: c37ebd25a08f511db56ca913ccf98c88 2 | // flow-typed version: <>/babel-plugin-transform-react-constant-elements_v^6.23.0/flow_v0.55.0 3 | 4 | /** 5 | * This is an autogenerated libdef stub for: 6 | * 7 | * 'babel-plugin-transform-react-constant-elements' 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 'babel-plugin-transform-react-constant-elements' { 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 'babel-plugin-transform-react-constant-elements/lib/index' { 26 | declare module.exports: any; 27 | } 28 | 29 | // Filename aliases 30 | declare module 'babel-plugin-transform-react-constant-elements/lib/index.js' { 31 | declare module.exports: $Exports<'babel-plugin-transform-react-constant-elements/lib/index'>; 32 | } 33 | -------------------------------------------------------------------------------- /flow-typed/npm/babel-plugin-transform-react-inline-elements_vx.x.x.js: -------------------------------------------------------------------------------- 1 | // flow-typed signature: 0396b9e00d72befc91f60a3e815da110 2 | // flow-typed version: <>/babel-plugin-transform-react-inline-elements_v^6.22.0/flow_v0.55.0 3 | 4 | /** 5 | * This is an autogenerated libdef stub for: 6 | * 7 | * 'babel-plugin-transform-react-inline-elements' 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 'babel-plugin-transform-react-inline-elements' { 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 'babel-plugin-transform-react-inline-elements/lib/index' { 26 | declare module.exports: any; 27 | } 28 | 29 | // Filename aliases 30 | declare module 'babel-plugin-transform-react-inline-elements/lib/index.js' { 31 | declare module.exports: $Exports<'babel-plugin-transform-react-inline-elements/lib/index'>; 32 | } 33 | -------------------------------------------------------------------------------- /flow-typed/npm/babel-plugin-transform-runtime_vx.x.x.js: -------------------------------------------------------------------------------- 1 | // flow-typed signature: 6d3cee82ddca0e5522f92f2f6a77eb50 2 | // flow-typed version: <>/babel-plugin-transform-runtime_v^6.23.0/flow_v0.55.0 3 | 4 | /** 5 | * This is an autogenerated libdef stub for: 6 | * 7 | * 'babel-plugin-transform-runtime' 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 'babel-plugin-transform-runtime' { 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 'babel-plugin-transform-runtime/lib/definitions' { 26 | declare module.exports: any; 27 | } 28 | 29 | declare module 'babel-plugin-transform-runtime/lib/index' { 30 | declare module.exports: any; 31 | } 32 | 33 | // Filename aliases 34 | declare module 'babel-plugin-transform-runtime/lib/definitions.js' { 35 | declare module.exports: $Exports<'babel-plugin-transform-runtime/lib/definitions'>; 36 | } 37 | declare module 'babel-plugin-transform-runtime/lib/index.js' { 38 | declare module.exports: $Exports<'babel-plugin-transform-runtime/lib/index'>; 39 | } 40 | -------------------------------------------------------------------------------- /flow-typed/npm/babel-polyfill_vx.x.x.js: -------------------------------------------------------------------------------- 1 | // flow-typed signature: 3c3384b0284c1d461d772799ff65f778 2 | // flow-typed version: <>/babel-polyfill_v^6.26.0/flow_v0.55.0 3 | 4 | /** 5 | * This is an autogenerated libdef stub for: 6 | * 7 | * 'babel-polyfill' 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 'babel-polyfill' { 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 'babel-polyfill/browser' { 26 | declare module.exports: any; 27 | } 28 | 29 | declare module 'babel-polyfill/dist/polyfill' { 30 | declare module.exports: any; 31 | } 32 | 33 | declare module 'babel-polyfill/dist/polyfill.min' { 34 | declare module.exports: any; 35 | } 36 | 37 | declare module 'babel-polyfill/lib/index' { 38 | declare module.exports: any; 39 | } 40 | 41 | declare module 'babel-polyfill/scripts/postpublish' { 42 | declare module.exports: any; 43 | } 44 | 45 | declare module 'babel-polyfill/scripts/prepublish' { 46 | declare module.exports: any; 47 | } 48 | 49 | // Filename aliases 50 | declare module 'babel-polyfill/browser.js' { 51 | declare module.exports: $Exports<'babel-polyfill/browser'>; 52 | } 53 | declare module 'babel-polyfill/dist/polyfill.js' { 54 | declare module.exports: $Exports<'babel-polyfill/dist/polyfill'>; 55 | } 56 | declare module 'babel-polyfill/dist/polyfill.min.js' { 57 | declare module.exports: $Exports<'babel-polyfill/dist/polyfill.min'>; 58 | } 59 | declare module 'babel-polyfill/lib/index.js' { 60 | declare module.exports: $Exports<'babel-polyfill/lib/index'>; 61 | } 62 | declare module 'babel-polyfill/scripts/postpublish.js' { 63 | declare module.exports: $Exports<'babel-polyfill/scripts/postpublish'>; 64 | } 65 | declare module 'babel-polyfill/scripts/prepublish.js' { 66 | declare module.exports: $Exports<'babel-polyfill/scripts/prepublish'>; 67 | } 68 | -------------------------------------------------------------------------------- /flow-typed/npm/babel-preset-es2015_vx.x.x.js: -------------------------------------------------------------------------------- 1 | // flow-typed signature: f30c57d4bdb815a4ffb732cc6105414b 2 | // flow-typed version: <>/babel-preset-es2015_v^6.24.1/flow_v0.55.0 3 | 4 | /** 5 | * This is an autogenerated libdef stub for: 6 | * 7 | * 'babel-preset-es2015' 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 'babel-preset-es2015' { 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 'babel-preset-es2015/lib/index' { 26 | declare module.exports: any; 27 | } 28 | 29 | // Filename aliases 30 | declare module 'babel-preset-es2015/lib/index.js' { 31 | declare module.exports: $Exports<'babel-preset-es2015/lib/index'>; 32 | } 33 | -------------------------------------------------------------------------------- /flow-typed/npm/babel-preset-react-hmre_vx.x.x.js: -------------------------------------------------------------------------------- 1 | // flow-typed signature: 6153239aea28833010bc5503a1ce556a 2 | // flow-typed version: <>/babel-preset-react-hmre_v^1.1.1/flow_v0.55.0 3 | 4 | /** 5 | * This is an autogenerated libdef stub for: 6 | * 7 | * 'babel-preset-react-hmre' 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 'babel-preset-react-hmre' { 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 'babel-preset-react-hmre/test/Test' { 26 | declare module.exports: any; 27 | } 28 | 29 | // Filename aliases 30 | declare module 'babel-preset-react-hmre/index' { 31 | declare module.exports: $Exports<'babel-preset-react-hmre'>; 32 | } 33 | declare module 'babel-preset-react-hmre/index.js' { 34 | declare module.exports: $Exports<'babel-preset-react-hmre'>; 35 | } 36 | declare module 'babel-preset-react-hmre/test/Test.js' { 37 | declare module.exports: $Exports<'babel-preset-react-hmre/test/Test'>; 38 | } 39 | -------------------------------------------------------------------------------- /flow-typed/npm/babel-preset-react_vx.x.x.js: -------------------------------------------------------------------------------- 1 | // flow-typed signature: f71383ddec556db0dab5f719c4c0bb7d 2 | // flow-typed version: <>/babel-preset-react_v^6.24.1/flow_v0.55.0 3 | 4 | /** 5 | * This is an autogenerated libdef stub for: 6 | * 7 | * 'babel-preset-react' 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 'babel-preset-react' { 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 'babel-preset-react/lib/index' { 26 | declare module.exports: any; 27 | } 28 | 29 | // Filename aliases 30 | declare module 'babel-preset-react/lib/index.js' { 31 | declare module.exports: $Exports<'babel-preset-react/lib/index'>; 32 | } 33 | -------------------------------------------------------------------------------- /flow-typed/npm/babel-preset-stage-3_vx.x.x.js: -------------------------------------------------------------------------------- 1 | // flow-typed signature: 13a134fe2b581f7c6406f868aed8c57c 2 | // flow-typed version: <>/babel-preset-stage-3_v^6.24.1/flow_v0.55.0 3 | 4 | /** 5 | * This is an autogenerated libdef stub for: 6 | * 7 | * 'babel-preset-stage-3' 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 'babel-preset-stage-3' { 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 'babel-preset-stage-3/lib/index' { 26 | declare module.exports: any; 27 | } 28 | 29 | // Filename aliases 30 | declare module 'babel-preset-stage-3/lib/index.js' { 31 | declare module.exports: $Exports<'babel-preset-stage-3/lib/index'>; 32 | } 33 | -------------------------------------------------------------------------------- /flow-typed/npm/chalk_vx.x.x.js: -------------------------------------------------------------------------------- 1 | // flow-typed signature: b9678caded15fc7d87823867acec40cd 2 | // flow-typed version: <>/chalk_v^2.1.0/flow_v0.55.0 3 | 4 | /** 5 | * This is an autogenerated libdef stub for: 6 | * 7 | * 'chalk' 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 'chalk' { 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 'chalk/templates' { 26 | declare module.exports: any; 27 | } 28 | 29 | // Filename aliases 30 | declare module 'chalk/index' { 31 | declare module.exports: $Exports<'chalk'>; 32 | } 33 | declare module 'chalk/index.js' { 34 | declare module.exports: $Exports<'chalk'>; 35 | } 36 | declare module 'chalk/templates.js' { 37 | declare module.exports: $Exports<'chalk/templates'>; 38 | } 39 | -------------------------------------------------------------------------------- /flow-typed/npm/cheerio_vx.x.x.js: -------------------------------------------------------------------------------- 1 | // flow-typed signature: 124d4ba443aa315f17cf2acfbae51402 2 | // flow-typed version: <>/cheerio_v^1.0.0-rc.2/flow_v0.55.0 3 | 4 | /** 5 | * This is an autogenerated libdef stub for: 6 | * 7 | * 'cheerio' 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 'cheerio' { 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 'cheerio/lib/api/attributes' { 26 | declare module.exports: any; 27 | } 28 | 29 | declare module 'cheerio/lib/api/css' { 30 | declare module.exports: any; 31 | } 32 | 33 | declare module 'cheerio/lib/api/forms' { 34 | declare module.exports: any; 35 | } 36 | 37 | declare module 'cheerio/lib/api/manipulation' { 38 | declare module.exports: any; 39 | } 40 | 41 | declare module 'cheerio/lib/api/traversing' { 42 | declare module.exports: any; 43 | } 44 | 45 | declare module 'cheerio/lib/cheerio' { 46 | declare module.exports: any; 47 | } 48 | 49 | declare module 'cheerio/lib/options' { 50 | declare module.exports: any; 51 | } 52 | 53 | declare module 'cheerio/lib/parse' { 54 | declare module.exports: any; 55 | } 56 | 57 | declare module 'cheerio/lib/static' { 58 | declare module.exports: any; 59 | } 60 | 61 | declare module 'cheerio/lib/utils' { 62 | declare module.exports: any; 63 | } 64 | 65 | // Filename aliases 66 | declare module 'cheerio/index' { 67 | declare module.exports: $Exports<'cheerio'>; 68 | } 69 | declare module 'cheerio/index.js' { 70 | declare module.exports: $Exports<'cheerio'>; 71 | } 72 | declare module 'cheerio/lib/api/attributes.js' { 73 | declare module.exports: $Exports<'cheerio/lib/api/attributes'>; 74 | } 75 | declare module 'cheerio/lib/api/css.js' { 76 | declare module.exports: $Exports<'cheerio/lib/api/css'>; 77 | } 78 | declare module 'cheerio/lib/api/forms.js' { 79 | declare module.exports: $Exports<'cheerio/lib/api/forms'>; 80 | } 81 | declare module 'cheerio/lib/api/manipulation.js' { 82 | declare module.exports: $Exports<'cheerio/lib/api/manipulation'>; 83 | } 84 | declare module 'cheerio/lib/api/traversing.js' { 85 | declare module.exports: $Exports<'cheerio/lib/api/traversing'>; 86 | } 87 | declare module 'cheerio/lib/cheerio.js' { 88 | declare module.exports: $Exports<'cheerio/lib/cheerio'>; 89 | } 90 | declare module 'cheerio/lib/options.js' { 91 | declare module.exports: $Exports<'cheerio/lib/options'>; 92 | } 93 | declare module 'cheerio/lib/parse.js' { 94 | declare module.exports: $Exports<'cheerio/lib/parse'>; 95 | } 96 | declare module 'cheerio/lib/static.js' { 97 | declare module.exports: $Exports<'cheerio/lib/static'>; 98 | } 99 | declare module 'cheerio/lib/utils.js' { 100 | declare module.exports: $Exports<'cheerio/lib/utils'>; 101 | } 102 | -------------------------------------------------------------------------------- /flow-typed/npm/command-exists_vx.x.x.js: -------------------------------------------------------------------------------- 1 | // flow-typed signature: 613b414c11a7780eb4cae83917bf8ddc 2 | // flow-typed version: <>/command-exists_v^1.2.2/flow_v0.55.0 3 | 4 | /** 5 | * This is an autogenerated libdef stub for: 6 | * 7 | * 'command-exists' 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 'command-exists' { 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 'command-exists/lib/command-exists' { 26 | declare module.exports: any; 27 | } 28 | 29 | declare module 'command-exists/test/executable-script' { 30 | declare module.exports: any; 31 | } 32 | 33 | declare module 'command-exists/test/non-executable-script' { 34 | declare module.exports: any; 35 | } 36 | 37 | declare module 'command-exists/test/test' { 38 | declare module.exports: any; 39 | } 40 | 41 | // Filename aliases 42 | declare module 'command-exists/index' { 43 | declare module.exports: $Exports<'command-exists'>; 44 | } 45 | declare module 'command-exists/index.js' { 46 | declare module.exports: $Exports<'command-exists'>; 47 | } 48 | declare module 'command-exists/lib/command-exists.js' { 49 | declare module.exports: $Exports<'command-exists/lib/command-exists'>; 50 | } 51 | declare module 'command-exists/test/executable-script.js' { 52 | declare module.exports: $Exports<'command-exists/test/executable-script'>; 53 | } 54 | declare module 'command-exists/test/non-executable-script.js' { 55 | declare module.exports: $Exports<'command-exists/test/non-executable-script'>; 56 | } 57 | declare module 'command-exists/test/test.js' { 58 | declare module.exports: $Exports<'command-exists/test/test'>; 59 | } 60 | -------------------------------------------------------------------------------- /flow-typed/npm/coveralls_vx.x.x.js: -------------------------------------------------------------------------------- 1 | // flow-typed signature: 278277ce8d252d3145c2e1cdab1f9d52 2 | // flow-typed version: <>/coveralls_v^2.13.2/flow_v0.55.0 3 | 4 | /** 5 | * This is an autogenerated libdef stub for: 6 | * 7 | * 'coveralls' 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 'coveralls' { 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 'coveralls/bin/coveralls' { 26 | declare module.exports: any; 27 | } 28 | 29 | declare module 'coveralls/fixtures/lib/index' { 30 | declare module.exports: any; 31 | } 32 | 33 | declare module 'coveralls/lib/convertLcovToCoveralls' { 34 | declare module.exports: any; 35 | } 36 | 37 | declare module 'coveralls/lib/detectLocalGit' { 38 | declare module.exports: any; 39 | } 40 | 41 | declare module 'coveralls/lib/fetchGitData' { 42 | declare module.exports: any; 43 | } 44 | 45 | declare module 'coveralls/lib/getOptions' { 46 | declare module.exports: any; 47 | } 48 | 49 | declare module 'coveralls/lib/handleInput' { 50 | declare module.exports: any; 51 | } 52 | 53 | declare module 'coveralls/lib/logger' { 54 | declare module.exports: any; 55 | } 56 | 57 | declare module 'coveralls/lib/sendToCoveralls' { 58 | declare module.exports: any; 59 | } 60 | 61 | declare module 'coveralls/test/convertLcovToCoveralls' { 62 | declare module.exports: any; 63 | } 64 | 65 | declare module 'coveralls/test/detectLocalGit' { 66 | declare module.exports: any; 67 | } 68 | 69 | declare module 'coveralls/test/fetchGitData' { 70 | declare module.exports: any; 71 | } 72 | 73 | declare module 'coveralls/test/getOptions' { 74 | declare module.exports: any; 75 | } 76 | 77 | declare module 'coveralls/test/handleInput' { 78 | declare module.exports: any; 79 | } 80 | 81 | declare module 'coveralls/test/logger' { 82 | declare module.exports: any; 83 | } 84 | 85 | declare module 'coveralls/test/sendToCoveralls' { 86 | declare module.exports: any; 87 | } 88 | 89 | // Filename aliases 90 | declare module 'coveralls/bin/coveralls.js' { 91 | declare module.exports: $Exports<'coveralls/bin/coveralls'>; 92 | } 93 | declare module 'coveralls/fixtures/lib/index.js' { 94 | declare module.exports: $Exports<'coveralls/fixtures/lib/index'>; 95 | } 96 | declare module 'coveralls/index' { 97 | declare module.exports: $Exports<'coveralls'>; 98 | } 99 | declare module 'coveralls/index.js' { 100 | declare module.exports: $Exports<'coveralls'>; 101 | } 102 | declare module 'coveralls/lib/convertLcovToCoveralls.js' { 103 | declare module.exports: $Exports<'coveralls/lib/convertLcovToCoveralls'>; 104 | } 105 | declare module 'coveralls/lib/detectLocalGit.js' { 106 | declare module.exports: $Exports<'coveralls/lib/detectLocalGit'>; 107 | } 108 | declare module 'coveralls/lib/fetchGitData.js' { 109 | declare module.exports: $Exports<'coveralls/lib/fetchGitData'>; 110 | } 111 | declare module 'coveralls/lib/getOptions.js' { 112 | declare module.exports: $Exports<'coveralls/lib/getOptions'>; 113 | } 114 | declare module 'coveralls/lib/handleInput.js' { 115 | declare module.exports: $Exports<'coveralls/lib/handleInput'>; 116 | } 117 | declare module 'coveralls/lib/logger.js' { 118 | declare module.exports: $Exports<'coveralls/lib/logger'>; 119 | } 120 | declare module 'coveralls/lib/sendToCoveralls.js' { 121 | declare module.exports: $Exports<'coveralls/lib/sendToCoveralls'>; 122 | } 123 | declare module 'coveralls/test/convertLcovToCoveralls.js' { 124 | declare module.exports: $Exports<'coveralls/test/convertLcovToCoveralls'>; 125 | } 126 | declare module 'coveralls/test/detectLocalGit.js' { 127 | declare module.exports: $Exports<'coveralls/test/detectLocalGit'>; 128 | } 129 | declare module 'coveralls/test/fetchGitData.js' { 130 | declare module.exports: $Exports<'coveralls/test/fetchGitData'>; 131 | } 132 | declare module 'coveralls/test/getOptions.js' { 133 | declare module.exports: $Exports<'coveralls/test/getOptions'>; 134 | } 135 | declare module 'coveralls/test/handleInput.js' { 136 | declare module.exports: $Exports<'coveralls/test/handleInput'>; 137 | } 138 | declare module 'coveralls/test/logger.js' { 139 | declare module.exports: $Exports<'coveralls/test/logger'>; 140 | } 141 | declare module 'coveralls/test/sendToCoveralls.js' { 142 | declare module.exports: $Exports<'coveralls/test/sendToCoveralls'>; 143 | } 144 | -------------------------------------------------------------------------------- /flow-typed/npm/css-literal-loader_vx.x.x.js: -------------------------------------------------------------------------------- 1 | // flow-typed signature: aa390cef09868a449b69502eef38348f 2 | // flow-typed version: <>/css-literal-loader_v^0.2.0/flow_v0.55.0 3 | 4 | /** 5 | * This is an autogenerated libdef stub for: 6 | * 7 | * 'css-literal-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 'css-literal-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 'css-literal-loader/lib/loader' { 26 | declare module.exports: any; 27 | } 28 | 29 | declare module 'css-literal-loader/lib/plugin' { 30 | declare module.exports: any; 31 | } 32 | 33 | declare module 'css-literal-loader/lib/proxyFileSystem' { 34 | declare module.exports: any; 35 | } 36 | 37 | declare module 'css-literal-loader/lib/traverse' { 38 | declare module.exports: any; 39 | } 40 | 41 | declare module 'css-literal-loader/lib/VirtualModulePlugin' { 42 | declare module.exports: any; 43 | } 44 | 45 | declare module 'css-literal-loader/lib/visitor' { 46 | declare module.exports: any; 47 | } 48 | 49 | // Filename aliases 50 | declare module 'css-literal-loader/lib/loader.js' { 51 | declare module.exports: $Exports<'css-literal-loader/lib/loader'>; 52 | } 53 | declare module 'css-literal-loader/lib/plugin.js' { 54 | declare module.exports: $Exports<'css-literal-loader/lib/plugin'>; 55 | } 56 | declare module 'css-literal-loader/lib/proxyFileSystem.js' { 57 | declare module.exports: $Exports<'css-literal-loader/lib/proxyFileSystem'>; 58 | } 59 | declare module 'css-literal-loader/lib/traverse.js' { 60 | declare module.exports: $Exports<'css-literal-loader/lib/traverse'>; 61 | } 62 | declare module 'css-literal-loader/lib/VirtualModulePlugin.js' { 63 | declare module.exports: $Exports<'css-literal-loader/lib/VirtualModulePlugin'>; 64 | } 65 | declare module 'css-literal-loader/lib/visitor.js' { 66 | declare module.exports: $Exports<'css-literal-loader/lib/visitor'>; 67 | } 68 | -------------------------------------------------------------------------------- /flow-typed/npm/css-loader_vx.x.x.js: -------------------------------------------------------------------------------- 1 | // flow-typed signature: 70f6479cb09440220351ed8a11019123 2 | // flow-typed version: <>/css-loader_v^0.28.7/flow_v0.55.0 3 | 4 | /** 5 | * This is an autogenerated libdef stub for: 6 | * 7 | * 'css-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 'css-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 'css-loader/lib/compile-exports' { 26 | declare module.exports: any; 27 | } 28 | 29 | declare module 'css-loader/lib/createResolver' { 30 | declare module.exports: any; 31 | } 32 | 33 | declare module 'css-loader/lib/css-base' { 34 | declare module.exports: any; 35 | } 36 | 37 | declare module 'css-loader/lib/getImportPrefix' { 38 | declare module.exports: any; 39 | } 40 | 41 | declare module 'css-loader/lib/getLocalIdent' { 42 | declare module.exports: any; 43 | } 44 | 45 | declare module 'css-loader/lib/loader' { 46 | declare module.exports: any; 47 | } 48 | 49 | declare module 'css-loader/lib/localsLoader' { 50 | declare module.exports: any; 51 | } 52 | 53 | declare module 'css-loader/lib/processCss' { 54 | declare module.exports: any; 55 | } 56 | 57 | declare module 'css-loader/locals' { 58 | declare module.exports: any; 59 | } 60 | 61 | // Filename aliases 62 | declare module 'css-loader/index' { 63 | declare module.exports: $Exports<'css-loader'>; 64 | } 65 | declare module 'css-loader/index.js' { 66 | declare module.exports: $Exports<'css-loader'>; 67 | } 68 | declare module 'css-loader/lib/compile-exports.js' { 69 | declare module.exports: $Exports<'css-loader/lib/compile-exports'>; 70 | } 71 | declare module 'css-loader/lib/createResolver.js' { 72 | declare module.exports: $Exports<'css-loader/lib/createResolver'>; 73 | } 74 | declare module 'css-loader/lib/css-base.js' { 75 | declare module.exports: $Exports<'css-loader/lib/css-base'>; 76 | } 77 | declare module 'css-loader/lib/getImportPrefix.js' { 78 | declare module.exports: $Exports<'css-loader/lib/getImportPrefix'>; 79 | } 80 | declare module 'css-loader/lib/getLocalIdent.js' { 81 | declare module.exports: $Exports<'css-loader/lib/getLocalIdent'>; 82 | } 83 | declare module 'css-loader/lib/loader.js' { 84 | declare module.exports: $Exports<'css-loader/lib/loader'>; 85 | } 86 | declare module 'css-loader/lib/localsLoader.js' { 87 | declare module.exports: $Exports<'css-loader/lib/localsLoader'>; 88 | } 89 | declare module 'css-loader/lib/processCss.js' { 90 | declare module.exports: $Exports<'css-loader/lib/processCss'>; 91 | } 92 | declare module 'css-loader/locals.js' { 93 | declare module.exports: $Exports<'css-loader/locals'>; 94 | } 95 | -------------------------------------------------------------------------------- /flow-typed/npm/cz-conventional-changelog_vx.x.x.js: -------------------------------------------------------------------------------- 1 | // flow-typed signature: f6bdc3a769b7e227ae57ab4ede39f3ac 2 | // flow-typed version: <>/cz-conventional-changelog_v^2.0.0/flow_v0.55.0 3 | 4 | /** 5 | * This is an autogenerated libdef stub for: 6 | * 7 | * 'cz-conventional-changelog' 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 'cz-conventional-changelog' { 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 'cz-conventional-changelog/engine' { 26 | declare module.exports: any; 27 | } 28 | 29 | // Filename aliases 30 | declare module 'cz-conventional-changelog/engine.js' { 31 | declare module.exports: $Exports<'cz-conventional-changelog/engine'>; 32 | } 33 | declare module 'cz-conventional-changelog/index' { 34 | declare module.exports: $Exports<'cz-conventional-changelog'>; 35 | } 36 | declare module 'cz-conventional-changelog/index.js' { 37 | declare module.exports: $Exports<'cz-conventional-changelog'>; 38 | } 39 | -------------------------------------------------------------------------------- /flow-typed/npm/del-cli_vx.x.x.js: -------------------------------------------------------------------------------- 1 | // flow-typed signature: 64740a0de1b497cb13b88c471dd3b9d2 2 | // flow-typed version: <>/del-cli_v^1.1.0/flow_v0.55.0 3 | 4 | /** 5 | * This is an autogenerated libdef stub for: 6 | * 7 | * 'del-cli' 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 'del-cli' { 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 'del-cli/cli' { 26 | declare module.exports: any; 27 | } 28 | 29 | // Filename aliases 30 | declare module 'del-cli/cli.js' { 31 | declare module.exports: $Exports<'del-cli/cli'>; 32 | } 33 | -------------------------------------------------------------------------------- /flow-typed/npm/del_vx.x.x.js: -------------------------------------------------------------------------------- 1 | // flow-typed signature: 18c0f6579a0217e1f4ee2d341cda94ac 2 | // flow-typed version: <>/del_v^3.0.0/flow_v0.55.0 3 | 4 | /** 5 | * This is an autogenerated libdef stub for: 6 | * 7 | * 'del' 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 'del' { 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 | 26 | 27 | // Filename aliases 28 | declare module 'del/index' { 29 | declare module.exports: $Exports<'del'>; 30 | } 31 | declare module 'del/index.js' { 32 | declare module.exports: $Exports<'del'>; 33 | } 34 | -------------------------------------------------------------------------------- /flow-typed/npm/eslint-config-satya164_vx.x.x.js: -------------------------------------------------------------------------------- 1 | // flow-typed signature: 10759e4f5d7baf0edb20e5498908d420 2 | // flow-typed version: <>/eslint-config-satya164_v^1.0.1/flow_v0.55.0 3 | 4 | /** 5 | * This is an autogenerated libdef stub for: 6 | * 7 | * 'eslint-config-satya164' 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-config-satya164' { 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 | 26 | 27 | // Filename aliases 28 | declare module 'eslint-config-satya164/index' { 29 | declare module.exports: $Exports<'eslint-config-satya164'>; 30 | } 31 | declare module 'eslint-config-satya164/index.js' { 32 | declare module.exports: $Exports<'eslint-config-satya164'>; 33 | } 34 | -------------------------------------------------------------------------------- /flow-typed/npm/eventsource_vx.x.x.js: -------------------------------------------------------------------------------- 1 | // flow-typed signature: 880975ac525acb773150a74cb38de94e 2 | // flow-typed version: <>/eventsource_v^1.0.5/flow_v0.55.0 3 | 4 | /** 5 | * This is an autogenerated libdef stub for: 6 | * 7 | * 'eventsource' 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 'eventsource' { 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 'eventsource/coverage/lcov-report/prettify' { 26 | declare module.exports: any; 27 | } 28 | 29 | declare module 'eventsource/coverage/lcov-report/sorter' { 30 | declare module.exports: any; 31 | } 32 | 33 | declare module 'eventsource/coverage/prettify' { 34 | declare module.exports: any; 35 | } 36 | 37 | declare module 'eventsource/coverage/sorter' { 38 | declare module.exports: any; 39 | } 40 | 41 | declare module 'eventsource/example/eventsource-polyfill' { 42 | declare module.exports: any; 43 | } 44 | 45 | declare module 'eventsource/example/sse-client' { 46 | declare module.exports: any; 47 | } 48 | 49 | declare module 'eventsource/example/sse-server' { 50 | declare module.exports: any; 51 | } 52 | 53 | declare module 'eventsource/lib/eventsource-polyfill' { 54 | declare module.exports: any; 55 | } 56 | 57 | declare module 'eventsource/lib/eventsource' { 58 | declare module.exports: any; 59 | } 60 | 61 | // Filename aliases 62 | declare module 'eventsource/coverage/lcov-report/prettify.js' { 63 | declare module.exports: $Exports<'eventsource/coverage/lcov-report/prettify'>; 64 | } 65 | declare module 'eventsource/coverage/lcov-report/sorter.js' { 66 | declare module.exports: $Exports<'eventsource/coverage/lcov-report/sorter'>; 67 | } 68 | declare module 'eventsource/coverage/prettify.js' { 69 | declare module.exports: $Exports<'eventsource/coverage/prettify'>; 70 | } 71 | declare module 'eventsource/coverage/sorter.js' { 72 | declare module.exports: $Exports<'eventsource/coverage/sorter'>; 73 | } 74 | declare module 'eventsource/example/eventsource-polyfill.js' { 75 | declare module.exports: $Exports<'eventsource/example/eventsource-polyfill'>; 76 | } 77 | declare module 'eventsource/example/sse-client.js' { 78 | declare module.exports: $Exports<'eventsource/example/sse-client'>; 79 | } 80 | declare module 'eventsource/example/sse-server.js' { 81 | declare module.exports: $Exports<'eventsource/example/sse-server'>; 82 | } 83 | declare module 'eventsource/lib/eventsource-polyfill.js' { 84 | declare module.exports: $Exports<'eventsource/lib/eventsource-polyfill'>; 85 | } 86 | declare module 'eventsource/lib/eventsource.js' { 87 | declare module.exports: $Exports<'eventsource/lib/eventsource'>; 88 | } 89 | -------------------------------------------------------------------------------- /flow-typed/npm/extract-text-webpack-plugin_vx.x.x.js: -------------------------------------------------------------------------------- 1 | // flow-typed signature: 866cfcd88b04440ae1bc357c33e6d9d1 2 | // flow-typed version: <>/extract-text-webpack-plugin_v^3.0.0/flow_v0.55.0 3 | 4 | /** 5 | * This is an autogenerated libdef stub for: 6 | * 7 | * 'extract-text-webpack-plugin' 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 'extract-text-webpack-plugin' { 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 'extract-text-webpack-plugin/dist/cjs' { 26 | declare module.exports: any; 27 | } 28 | 29 | declare module 'extract-text-webpack-plugin/dist/index' { 30 | declare module.exports: any; 31 | } 32 | 33 | declare module 'extract-text-webpack-plugin/dist/lib/ExtractedModule' { 34 | declare module.exports: any; 35 | } 36 | 37 | declare module 'extract-text-webpack-plugin/dist/lib/ExtractTextPluginCompilation' { 38 | declare module.exports: any; 39 | } 40 | 41 | declare module 'extract-text-webpack-plugin/dist/lib/helpers' { 42 | declare module.exports: any; 43 | } 44 | 45 | declare module 'extract-text-webpack-plugin/dist/lib/OrderUndefinedError' { 46 | declare module.exports: any; 47 | } 48 | 49 | declare module 'extract-text-webpack-plugin/dist/loader' { 50 | declare module.exports: any; 51 | } 52 | 53 | // Filename aliases 54 | declare module 'extract-text-webpack-plugin/dist/cjs.js' { 55 | declare module.exports: $Exports<'extract-text-webpack-plugin/dist/cjs'>; 56 | } 57 | declare module 'extract-text-webpack-plugin/dist/index.js' { 58 | declare module.exports: $Exports<'extract-text-webpack-plugin/dist/index'>; 59 | } 60 | declare module 'extract-text-webpack-plugin/dist/lib/ExtractedModule.js' { 61 | declare module.exports: $Exports<'extract-text-webpack-plugin/dist/lib/ExtractedModule'>; 62 | } 63 | declare module 'extract-text-webpack-plugin/dist/lib/ExtractTextPluginCompilation.js' { 64 | declare module.exports: $Exports<'extract-text-webpack-plugin/dist/lib/ExtractTextPluginCompilation'>; 65 | } 66 | declare module 'extract-text-webpack-plugin/dist/lib/helpers.js' { 67 | declare module.exports: $Exports<'extract-text-webpack-plugin/dist/lib/helpers'>; 68 | } 69 | declare module 'extract-text-webpack-plugin/dist/lib/OrderUndefinedError.js' { 70 | declare module.exports: $Exports<'extract-text-webpack-plugin/dist/lib/OrderUndefinedError'>; 71 | } 72 | declare module 'extract-text-webpack-plugin/dist/loader.js' { 73 | declare module.exports: $Exports<'extract-text-webpack-plugin/dist/loader'>; 74 | } 75 | -------------------------------------------------------------------------------- /flow-typed/npm/file-loader_vx.x.x.js: -------------------------------------------------------------------------------- 1 | // flow-typed signature: b5b0d628ad6e2af6897fc160e762c1c6 2 | // flow-typed version: <>/file-loader_v^0.11.2/flow_v0.55.0 3 | 4 | /** 5 | * This is an autogenerated libdef stub for: 6 | * 7 | * 'file-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 'file-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 | 26 | 27 | // Filename aliases 28 | declare module 'file-loader/index' { 29 | declare module.exports: $Exports<'file-loader'>; 30 | } 31 | declare module 'file-loader/index.js' { 32 | declare module.exports: $Exports<'file-loader'>; 33 | } 34 | -------------------------------------------------------------------------------- /flow-typed/npm/flow-bin_v0.x.x.js: -------------------------------------------------------------------------------- 1 | // flow-typed signature: 6a5610678d4b01e13bbfbbc62bdaf583 2 | // flow-typed version: 3817bc6980/flow-bin_v0.x.x/flow_>=v0.25.x 3 | 4 | declare module "flow-bin" { 5 | declare module.exports: string; 6 | } 7 | -------------------------------------------------------------------------------- /flow-typed/npm/glob-expand_vx.x.x.js: -------------------------------------------------------------------------------- 1 | // flow-typed signature: b776f9a7bd3899372ba465811cd185f1 2 | // flow-typed version: <>/glob-expand_v^0.2.1/flow_v0.55.0 3 | 4 | /** 5 | * This is an autogenerated libdef stub for: 6 | * 7 | * 'glob-expand' 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 'glob-expand' { 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 'glob-expand/build/code/expand' { 26 | declare module.exports: any; 27 | } 28 | 29 | // Filename aliases 30 | declare module 'glob-expand/build/code/expand.js' { 31 | declare module.exports: $Exports<'glob-expand/build/code/expand'>; 32 | } 33 | -------------------------------------------------------------------------------- /flow-typed/npm/husky_vx.x.x.js: -------------------------------------------------------------------------------- 1 | // flow-typed signature: 7351db469ad76e4b1646ff35705f7dd8 2 | // flow-typed version: <>/husky_v^0.14.3/flow_v0.55.0 3 | 4 | /** 5 | * This is an autogenerated libdef stub for: 6 | * 7 | * 'husky' 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 'husky' { 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 'husky/__tests__/index' { 26 | declare module.exports: any; 27 | } 28 | 29 | declare module 'husky/bin/install' { 30 | declare module.exports: any; 31 | } 32 | 33 | declare module 'husky/bin/uninstall' { 34 | declare module.exports: any; 35 | } 36 | 37 | declare module 'husky/src/install' { 38 | declare module.exports: any; 39 | } 40 | 41 | declare module 'husky/src/uninstall' { 42 | declare module.exports: any; 43 | } 44 | 45 | declare module 'husky/src/utils/find-hooks-dir' { 46 | declare module.exports: any; 47 | } 48 | 49 | declare module 'husky/src/utils/find-parent' { 50 | declare module.exports: any; 51 | } 52 | 53 | declare module 'husky/src/utils/get-hook-script' { 54 | declare module.exports: any; 55 | } 56 | 57 | declare module 'husky/src/utils/is-husky' { 58 | declare module.exports: any; 59 | } 60 | 61 | // Filename aliases 62 | declare module 'husky/__tests__/index.js' { 63 | declare module.exports: $Exports<'husky/__tests__/index'>; 64 | } 65 | declare module 'husky/bin/install.js' { 66 | declare module.exports: $Exports<'husky/bin/install'>; 67 | } 68 | declare module 'husky/bin/uninstall.js' { 69 | declare module.exports: $Exports<'husky/bin/uninstall'>; 70 | } 71 | declare module 'husky/src/install.js' { 72 | declare module.exports: $Exports<'husky/src/install'>; 73 | } 74 | declare module 'husky/src/uninstall.js' { 75 | declare module.exports: $Exports<'husky/src/uninstall'>; 76 | } 77 | declare module 'husky/src/utils/find-hooks-dir.js' { 78 | declare module.exports: $Exports<'husky/src/utils/find-hooks-dir'>; 79 | } 80 | declare module 'husky/src/utils/find-parent.js' { 81 | declare module.exports: $Exports<'husky/src/utils/find-parent'>; 82 | } 83 | declare module 'husky/src/utils/get-hook-script.js' { 84 | declare module.exports: $Exports<'husky/src/utils/get-hook-script'>; 85 | } 86 | declare module 'husky/src/utils/is-husky.js' { 87 | declare module.exports: $Exports<'husky/src/utils/is-husky'>; 88 | } 89 | -------------------------------------------------------------------------------- /flow-typed/npm/jest_vx.x.x.js: -------------------------------------------------------------------------------- 1 | // flow-typed signature: ab7df29d187dac8548cf21d043c36ebe 2 | // flow-typed version: <>/jest_v^21.2.1/flow_v0.55.0 3 | 4 | /** 5 | * This is an autogenerated libdef stub for: 6 | * 7 | * 'jest' 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 'jest' { 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 'jest/bin/jest' { 26 | declare module.exports: any; 27 | } 28 | 29 | declare module 'jest/build/jest' { 30 | declare module.exports: any; 31 | } 32 | 33 | // Filename aliases 34 | declare module 'jest/bin/jest.js' { 35 | declare module.exports: $Exports<'jest/bin/jest'>; 36 | } 37 | declare module 'jest/build/jest.js' { 38 | declare module.exports: $Exports<'jest/build/jest'>; 39 | } 40 | -------------------------------------------------------------------------------- /flow-typed/npm/koa-compose_vx.x.x.js: -------------------------------------------------------------------------------- 1 | // flow-typed signature: d0de14ae8ce7feaad463b70784af15af 2 | // flow-typed version: <>/koa-compose_v^4.0.0/flow_v0.55.0 3 | 4 | /** 5 | * This is an autogenerated libdef stub for: 6 | * 7 | * 'koa-compose' 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 'koa-compose' { 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 | 26 | 27 | // Filename aliases 28 | declare module 'koa-compose/index' { 29 | declare module.exports: $Exports<'koa-compose'>; 30 | } 31 | declare module 'koa-compose/index.js' { 32 | declare module.exports: $Exports<'koa-compose'>; 33 | } 34 | -------------------------------------------------------------------------------- /flow-typed/npm/koa-logger_vx.x.x.js: -------------------------------------------------------------------------------- 1 | // flow-typed signature: 3cc21e08d75e53fb5a121b471654f72c 2 | // flow-typed version: <>/koa-logger_v^3.1.0/flow_v0.55.0 3 | 4 | /** 5 | * This is an autogenerated libdef stub for: 6 | * 7 | * 'koa-logger' 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 'koa-logger' { 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 | 26 | 27 | // Filename aliases 28 | declare module 'koa-logger/index' { 29 | declare module.exports: $Exports<'koa-logger'>; 30 | } 31 | declare module 'koa-logger/index.js' { 32 | declare module.exports: $Exports<'koa-logger'>; 33 | } 34 | -------------------------------------------------------------------------------- /flow-typed/npm/koa-static_vx.x.x.js: -------------------------------------------------------------------------------- 1 | // flow-typed signature: 3a929f0b7280d92f52b3052f26583dd9 2 | // flow-typed version: <>/koa-static_v^4.0.1/flow_v0.55.0 3 | 4 | /** 5 | * This is an autogenerated libdef stub for: 6 | * 7 | * 'koa-static' 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 'koa-static' { 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 | 26 | 27 | // Filename aliases 28 | declare module 'koa-static/index' { 29 | declare module.exports: $Exports<'koa-static'>; 30 | } 31 | declare module 'koa-static/index.js' { 32 | declare module.exports: $Exports<'koa-static'>; 33 | } 34 | -------------------------------------------------------------------------------- /flow-typed/npm/koa-webpack_vx.x.x.js: -------------------------------------------------------------------------------- 1 | // flow-typed signature: 3c185ff8ea54a0303a6f26988bf673ad 2 | // flow-typed version: <>/koa-webpack_v^1.0.0/flow_v0.55.0 3 | 4 | /** 5 | * This is an autogenerated libdef stub for: 6 | * 7 | * 'koa-webpack' 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 'koa-webpack' { 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 'koa-webpack/dist/index' { 26 | declare module.exports: any; 27 | } 28 | 29 | declare module 'koa-webpack/test/fixtures/input' { 30 | declare module.exports: any; 31 | } 32 | 33 | declare module 'koa-webpack/test/index' { 34 | declare module.exports: any; 35 | } 36 | 37 | // Filename aliases 38 | declare module 'koa-webpack/dist/index.js' { 39 | declare module.exports: $Exports<'koa-webpack/dist/index'>; 40 | } 41 | declare module 'koa-webpack/index' { 42 | declare module.exports: $Exports<'koa-webpack'>; 43 | } 44 | declare module 'koa-webpack/index.js' { 45 | declare module.exports: $Exports<'koa-webpack'>; 46 | } 47 | declare module 'koa-webpack/test/fixtures/input.js' { 48 | declare module.exports: $Exports<'koa-webpack/test/fixtures/input'>; 49 | } 50 | declare module 'koa-webpack/test/index.js' { 51 | declare module.exports: $Exports<'koa-webpack/test/index'>; 52 | } 53 | -------------------------------------------------------------------------------- /flow-typed/npm/koa_v2.x.x.js: -------------------------------------------------------------------------------- 1 | // flow-typed signature: 1a33220ead1c6b6e3205a55b2a2ec3a0 2 | // flow-typed version: 18b7d8b101/koa_v2.x.x/flow_>=v0.47.x 3 | 4 | /* 5 | * Type def from from source code of koa. 6 | * this: https://github.com/koajs/koa/commit/08eb1a20c3975230aa1fe1c693b0cd1ac7a0752b 7 | * previous: https://github.com/koajs/koa/commit/fabf5864c6a5dca0782b867a263b1b0825a05bf9 8 | * 9 | * Changelog 10 | * breaking: remove unused app.name 11 | * breaking: ctx.throw([status], [msg], [properties]) (caused by http-errors (#957) ) 12 | **/ 13 | declare module 'koa' { 14 | // Currently, import type doesnt work well ? 15 | // so copy `Server` from flow/lib/node.js#L820 16 | declare class Server extends net$Server { 17 | listen(port?: number, hostname?: string, backlog?: number, callback?: Function): Server, 18 | listen(path: string, callback?: Function): Server, 19 | listen(handle: Object, callback?: Function): Server, 20 | close(callback?: Function): Server, 21 | maxHeadersCount: number, 22 | setTimeout(msecs: number, callback: Function): Server, 23 | timeout: number, 24 | } 25 | declare type ServerType = Server; 26 | 27 | declare type JSON = | string | number | boolean | null | JSONObject | JSONArray; 28 | declare type JSONObject = { [key: string]: JSON }; 29 | declare type JSONArray = Array; 30 | 31 | declare type SimpleHeader = { 32 | 'set-cookie'?: Array, 33 | [key: string]: string, 34 | }; 35 | 36 | declare type RequestJSON = { 37 | 'method': string, 38 | 'url': string, 39 | 'header': SimpleHeader, 40 | }; 41 | declare type RequestInspect = void|RequestJSON; 42 | declare type Request = { 43 | app: Application, 44 | req: http$IncomingMessage, 45 | res: http$ServerResponse, 46 | ctx: Context, 47 | response: Response, 48 | 49 | fresh: boolean, 50 | header: SimpleHeader, 51 | headers: SimpleHeader, // alias as header 52 | host: string, 53 | hostname: string, 54 | href: string, 55 | idempotent: boolean, 56 | ip: string, 57 | ips: string[], 58 | method: string, 59 | origin: string, 60 | originalUrl: string, 61 | path: string, 62 | protocol: string, 63 | query: {[key: string]: string}, // always string 64 | querystring: string, 65 | search: string, 66 | secure: boolean, // Shorthand for ctx.protocol == "https" to check if a request was issued via TLS. 67 | socket: net$Socket, 68 | stale: boolean, 69 | subdomains: string[], 70 | type: string, 71 | url: string, 72 | 73 | charset: string|void, 74 | length: number|void, 75 | 76 | // Those functions comes from https://github.com/jshttp/accepts/blob/master/index.js 77 | // request.js$L445 78 | // https://github.com/jshttp/accepts/blob/master/test/type.js 79 | accepts: ((args: string[]) => string|false)& 80 | // ToDo: There is an issue https://github.com/facebook/flow/issues/3009 81 | // if you meet some error here, temporarily add an additional annotation 82 | // like: `request.accepts((['json', 'text']:Array))` to fix it. 83 | ((arg: string, ...args: string[]) => string|false) & 84 | ( () => string[] ) , // return the old value. 85 | 86 | // https://github.com/jshttp/accepts/blob/master/index.js#L153 87 | // https://github.com/jshttp/accepts/blob/master/test/charset.js 88 | acceptsCharsets: ( (args: string[]) => buffer$Encoding|false)& 89 | // ToDo: https://github.com/facebook/flow/issues/3009 90 | // if you meet some error here, see L70. 91 | ( (arg: string, ...args: string[]) => buffer$Encoding|false ) & 92 | ( () => string[] ), 93 | 94 | // https://github.com/jshttp/accepts/blob/master/index.js#L119 95 | // https://github.com/jshttp/accepts/blob/master/test/encoding.js 96 | acceptsEncodings: ( (args: string[]) => string|false)& 97 | // ToDo: https://github.com/facebook/flow/issues/3009 98 | // if you meet some error here, see L70. 99 | ( (arg: string, ...args: string[]) => string|false ) & 100 | ( () => string[] ), 101 | 102 | // https://github.com/jshttp/accepts/blob/master/index.js#L185 103 | // https://github.com/jshttp/accepts/blob/master/test/language.js 104 | acceptsLanguages: ( (args: string[]) => string|false) & 105 | // ToDo: https://github.com/facebook/flow/issues/3009 106 | // if you meet some error here, see L70. 107 | ( (arg: string, ...args: string[]) => string|false ) & 108 | ( () => string[] ), 109 | 110 | get: (field: string) => string, 111 | 112 | /* https://github.com/jshttp/type-is/blob/master/test/test.js 113 | * Check if the incoming request contains the "Content-Type" 114 | * header field, and it contains any of the give mime `type`s. 115 | * If there is no request body, `null` is returned. 116 | * If there is no content type, `false` is returned. 117 | * Otherwise, it returns the first `type` that matches. 118 | */ 119 | is: ( (args: string[]) => null|false|string)& 120 | ( (arg: string, ...args: string[]) => null|false|string ) & 121 | ( () => string ), // should return the mime type 122 | 123 | toJSON: () => RequestJSON, 124 | inspect: () => RequestInspect, 125 | 126 | [key: string]: mixed, // props added by middlewares. 127 | }; 128 | 129 | declare type ResponseJSON = { 130 | 'status': mixed, 131 | 'message': mixed, 132 | 'header': mixed, 133 | }; 134 | declare type ResponseInspect = { 135 | 'status': mixed, 136 | 'message': mixed, 137 | 'header': mixed, 138 | 'body': mixed, 139 | }; 140 | declare type Response = { 141 | app: Application, 142 | req: http$IncomingMessage, 143 | res: http$ServerResponse, 144 | ctx: Context, 145 | request: Request, 146 | 147 | // docs/api/response.md#L113. 148 | body: string|Buffer|stream$Stream|Object|Array|null, // JSON contains null 149 | etag: string, 150 | header: SimpleHeader, 151 | headers: SimpleHeader, // alias as header 152 | headerSent: boolean, 153 | // can be set with string|Date, but get with Date. 154 | // set lastModified(v: string|Date), // 0.36 doesn't support this. 155 | lastModified: Date, 156 | message: string, 157 | socket: net$Socket, 158 | status: number, 159 | type: string, 160 | writable: boolean, 161 | 162 | // charset: string, // doesn't find in response.js 163 | length: number|void, 164 | 165 | append: (field: string, val: string | string[]) => void, 166 | attachment: (filename?: string) => void, 167 | get: (field: string) => string, 168 | // https://github.com/jshttp/type-is/blob/master/test/test.js 169 | // https://github.com/koajs/koa/blob/v2.x/lib/response.js#L382 170 | is: ( (arg: string[]) => false|string) & 171 | ( (arg: string, ...args: string[]) => false|string ) & 172 | ( () => string ), // should return the mime type 173 | redirect: (url: string, alt?: string) => void, 174 | remove: (field: string) => void, 175 | // https://github.com/koajs/koa/blob/v2.x/lib/response.js#L418 176 | set: ((field: string, val: string | string[]) => void)& 177 | ((field: {[key: string]: string | string[]}) => void), 178 | 179 | vary: (field: string) => void, 180 | 181 | // https://github.com/koajs/koa/blob/v2.x/lib/response.js#L519 182 | toJSON(): ResponseJSON, 183 | inspect(): ResponseInspect, 184 | 185 | [key: string]: mixed, // props added by middlewares. 186 | } 187 | 188 | declare type ContextJSON = { 189 | request: RequestJSON, 190 | response: ResponseJSON, 191 | app: ApplicationJSON, 192 | originalUrl: string, 193 | req: '', 194 | res: '', 195 | socket: '', 196 | }; 197 | // https://github.com/pillarjs/cookies 198 | declare type CookiesSetOptions = { 199 | maxAge: number, // milliseconds from Date.now() for expiry 200 | expires: Date, //cookie's expiration date (expires at the end of session by default). 201 | path: string, // the path of the cookie (/ by default). 202 | domain: string, // domain of the cookie (no default). 203 | secure: boolean, // false by default for HTTP, true by default for HTTPS 204 | httpOnly: boolean, // a boolean indicating whether the cookie is only to be sent over HTTP(S), 205 | // and not made available to client JavaScript (true by default). 206 | signed: boolean, // whether the cookie is to be signed (false by default) 207 | overwrite: boolean, // whether to overwrite previously set cookies of the same name (false by default). 208 | }; 209 | declare type Cookies = { 210 | get: (name: string, options?: {signed: boolean}) => string|void, 211 | set: ((name: string, value: string, options?: CookiesSetOptions) => Context)& 212 | // delete cookie (an outbound header with an expired date is used.) 213 | ( (name: string) => Context), 214 | }; 215 | // The default props of context come from two files 216 | // `application.createContext` & `context.js` 217 | declare type Context = { 218 | accept: $PropertyType, 219 | app: Application, 220 | cookies: Cookies, 221 | name?: string, // ? 222 | originalUrl: string, 223 | req: http$IncomingMessage, 224 | request: Request, 225 | res: http$ServerResponse, 226 | respond?: boolean, // should not be used, allow bypassing koa application.js#L193 227 | response: Response, 228 | state: Object, 229 | 230 | // context.js#L55 231 | assert: (test: mixed, status: number, message?: string, opts?: mixed) => void, 232 | // context.js#L107 233 | // if (!(err instanceof Error)) err = new Error(`non-error thrown: ${err}`); 234 | onerror: (err?: mixed) => void, 235 | // context.md#L88 236 | throw: ( status: number, msg?: string, opts?: Object) => void, 237 | toJSON(): ContextJSON, 238 | inspect(): ContextJSON, 239 | 240 | // ToDo: add const for some props, 241 | // while the `const props` feature of Flow is landing in future 242 | // cherry pick from response 243 | attachment: $PropertyType, 244 | redirect: $PropertyType, 245 | remove: $PropertyType, 246 | vary: $PropertyType, 247 | set: $PropertyType, 248 | append: $PropertyType, 249 | flushHeaders: $PropertyType, 250 | status: $PropertyType, 251 | message: $PropertyType, 252 | body: $PropertyType, 253 | length: $PropertyType, 254 | type: $PropertyType, 255 | lastModified: $PropertyType, 256 | etag: $PropertyType, 257 | headerSent: $PropertyType, 258 | writable: $PropertyType, 259 | 260 | // cherry pick from request 261 | acceptsLanguages: $PropertyType, 262 | acceptsEncodings: $PropertyType, 263 | acceptsCharsets: $PropertyType, 264 | accepts: $PropertyType, 265 | get: $PropertyType, 266 | is: $PropertyType, 267 | querystring: $PropertyType, 268 | idempotent: $PropertyType, 269 | socket: $PropertyType, 270 | search: $PropertyType, 271 | method: $PropertyType, 272 | query: $PropertyType, 273 | path: $PropertyType, 274 | url: $PropertyType, 275 | origin: $PropertyType, 276 | href: $PropertyType, 277 | subdomains: $PropertyType, 278 | protocol: $PropertyType, 279 | host: $PropertyType, 280 | hostname: $PropertyType, 281 | header: $PropertyType, 282 | headers: $PropertyType, 283 | secure: $PropertyType, 284 | stale: $PropertyType, 285 | fresh: $PropertyType, 286 | ips: $PropertyType, 287 | ip: $PropertyType, 288 | 289 | [key: string]: any, // props added by middlewares. 290 | } 291 | 292 | declare type Middleware = 293 | (ctx: Context, next: () => Promise) => Promise|void; 294 | declare type ApplicationJSON = { 295 | 'subdomainOffset': mixed, 296 | 'proxy': mixed, 297 | 'env': string, 298 | }; 299 | declare class Application extends events$EventEmitter { 300 | context: Context, 301 | // request handler for node's native http server. 302 | callback: () => (req: http$IncomingMessage, res: http$ServerResponse) => void, 303 | env: string, 304 | keys?: Array|Object, // https://github.com/crypto-utils/keygrip 305 | middleware: Array, 306 | proxy: boolean, // when true proxy header fields will be trusted 307 | request: Request, 308 | response: Response, 309 | server: Server, 310 | subdomainOffset: number, 311 | 312 | listen: $PropertyType, 313 | toJSON(): ApplicationJSON, 314 | inspect(): ApplicationJSON, 315 | use(fn: Middleware): this, 316 | } 317 | 318 | declare module.exports: Class; 319 | } 320 | -------------------------------------------------------------------------------- /flow-typed/npm/lodash_v4.x.x.js: -------------------------------------------------------------------------------- 1 | // flow-typed signature: 83935520f5ff73d31271b162a330d97e 2 | // flow-typed version: 3b064385b7/lodash_v4.x.x/flow_>=v0.47.x 3 | 4 | declare module "lodash" { 5 | declare type TemplateSettings = { 6 | escape?: RegExp, 7 | evaluate?: RegExp, 8 | imports?: Object, 9 | interpolate?: RegExp, 10 | variable?: string 11 | }; 12 | 13 | declare type TruncateOptions = { 14 | length?: number, 15 | omission?: string, 16 | separator?: RegExp | string 17 | }; 18 | 19 | declare type DebounceOptions = { 20 | leading?: boolean, 21 | maxWait?: number, 22 | trailing?: boolean 23 | }; 24 | 25 | declare type ThrottleOptions = { 26 | leading?: boolean, 27 | trailing?: boolean 28 | }; 29 | 30 | declare type NestedArray = Array>; 31 | 32 | declare type matchesIterateeShorthand = Object; 33 | declare type matchesPropertyIterateeShorthand = [string, any]; 34 | declare type propertyIterateeShorthand = string; 35 | 36 | declare type OPredicate = 37 | | ((value: A, key: string, object: O) => any) 38 | | matchesIterateeShorthand 39 | | matchesPropertyIterateeShorthand 40 | | propertyIterateeShorthand; 41 | 42 | declare type OIterateeWithResult = 43 | | Object 44 | | string 45 | | ((value: V, key: string, object: O) => R); 46 | declare type OIteratee = OIterateeWithResult; 47 | declare type OFlatMapIteratee = OIterateeWithResult>; 48 | 49 | declare type Predicate = 50 | | ((value: T, index: number, array: Array) => any) 51 | | matchesIterateeShorthand 52 | | matchesPropertyIterateeShorthand 53 | | propertyIterateeShorthand; 54 | 55 | declare type _ValueOnlyIteratee = (value: T) => mixed; 56 | declare type ValueOnlyIteratee = _ValueOnlyIteratee | string; 57 | declare type _Iteratee = ( 58 | item: T, 59 | index: number, 60 | array: ?Array 61 | ) => mixed; 62 | declare type Iteratee = _Iteratee | Object | string; 63 | declare type FlatMapIteratee = 64 | | ((item: T, index: number, array: ?Array) => Array) 65 | | Object 66 | | string; 67 | declare type Comparator = (item: T, item2: T) => boolean; 68 | 69 | declare type MapIterator = 70 | | ((item: T, index: number, array: Array) => U) 71 | | propertyIterateeShorthand; 72 | 73 | declare type OMapIterator = 74 | | ((item: T, key: string, object: O) => U) 75 | | propertyIterateeShorthand; 76 | 77 | declare class Lodash { 78 | // Array 79 | chunk(array: ?Array, size?: number): Array>, 80 | compact(array: Array): Array, 81 | concat(base: Array, ...elements: Array): Array, 82 | difference(array: ?Array, values?: Array): Array, 83 | differenceBy( 84 | array: ?Array, 85 | values: Array, 86 | iteratee: ValueOnlyIteratee 87 | ): T[], 88 | differenceWith(array: T[], values: T[], comparator?: Comparator): T[], 89 | drop(array: ?Array, n?: number): Array, 90 | dropRight(array: ?Array, n?: number): Array, 91 | dropRightWhile(array: ?Array, predicate?: Predicate): Array, 92 | dropWhile(array: ?Array, predicate?: Predicate): Array, 93 | fill( 94 | array: ?Array, 95 | value: U, 96 | start?: number, 97 | end?: number 98 | ): Array, 99 | findIndex( 100 | array: ?Array, 101 | predicate?: Predicate, 102 | fromIndex?: number 103 | ): number, 104 | findLastIndex( 105 | array: ?Array, 106 | predicate?: Predicate, 107 | fromIndex?: number 108 | ): number, 109 | // alias of _.head 110 | first(array: ?Array): T, 111 | flatten(array: Array | X>): Array, 112 | flattenDeep(array: any[]): Array, 113 | flattenDepth(array: any[], depth?: number): any[], 114 | fromPairs(pairs: Array): Object, 115 | head(array: ?Array): T, 116 | indexOf(array: ?Array, value: T, fromIndex?: number): number, 117 | initial(array: ?Array): Array, 118 | intersection(...arrays: Array>): Array, 119 | //Workaround until (...parameter: T, parameter2: U) works 120 | intersectionBy(a1: Array, iteratee?: ValueOnlyIteratee): Array, 121 | intersectionBy( 122 | a1: Array, 123 | a2: Array, 124 | iteratee?: ValueOnlyIteratee 125 | ): Array, 126 | intersectionBy( 127 | a1: Array, 128 | a2: Array, 129 | a3: Array, 130 | iteratee?: ValueOnlyIteratee 131 | ): Array, 132 | intersectionBy( 133 | a1: Array, 134 | a2: Array, 135 | a3: Array, 136 | a4: Array, 137 | iteratee?: ValueOnlyIteratee 138 | ): Array, 139 | //Workaround until (...parameter: T, parameter2: U) works 140 | intersectionWith(a1: Array, comparator: Comparator): Array, 141 | intersectionWith( 142 | a1: Array, 143 | a2: Array, 144 | comparator: Comparator 145 | ): Array, 146 | intersectionWith( 147 | a1: Array, 148 | a2: Array, 149 | a3: Array, 150 | comparator: Comparator 151 | ): Array, 152 | intersectionWith( 153 | a1: Array, 154 | a2: Array, 155 | a3: Array, 156 | a4: Array, 157 | comparator: Comparator 158 | ): Array, 159 | join(array: ?Array, separator?: string): string, 160 | last(array: ?Array): T, 161 | lastIndexOf(array: ?Array, value: T, fromIndex?: number): number, 162 | nth(array: T[], n?: number): T, 163 | pull(array: ?Array, ...values?: Array): Array, 164 | pullAll(array: ?Array, values: Array): Array, 165 | pullAllBy( 166 | array: ?Array, 167 | values: Array, 168 | iteratee?: ValueOnlyIteratee 169 | ): Array, 170 | pullAllWith(array?: T[], values: T[], comparator?: Function): T[], 171 | pullAt(array: ?Array, ...indexed?: Array): Array, 172 | pullAt(array: ?Array, indexed?: Array): Array, 173 | remove(array: ?Array, predicate?: Predicate): Array, 174 | reverse(array: ?Array): Array, 175 | slice(array: ?Array, start?: number, end?: number): Array, 176 | sortedIndex(array: ?Array, value: T): number, 177 | sortedIndexBy( 178 | array: ?Array, 179 | value: T, 180 | iteratee?: ValueOnlyIteratee 181 | ): number, 182 | sortedIndexOf(array: ?Array, value: T): number, 183 | sortedLastIndex(array: ?Array, value: T): number, 184 | sortedLastIndexBy( 185 | array: ?Array, 186 | value: T, 187 | iteratee?: ValueOnlyIteratee 188 | ): number, 189 | sortedLastIndexOf(array: ?Array, value: T): number, 190 | sortedUniq(array: ?Array): Array, 191 | sortedUniqBy(array: ?Array, iteratee?: (value: T) => mixed): Array, 192 | tail(array: ?Array): Array, 193 | take(array: ?Array, n?: number): Array, 194 | takeRight(array: ?Array, n?: number): Array, 195 | takeRightWhile(array: ?Array, predicate?: Predicate): Array, 196 | takeWhile(array: ?Array, predicate?: Predicate): Array, 197 | union(...arrays?: Array>): Array, 198 | //Workaround until (...parameter: T, parameter2: U) works 199 | unionBy(a1: Array, iteratee?: ValueOnlyIteratee): Array, 200 | unionBy( 201 | a1: Array, 202 | a2: Array, 203 | iteratee?: ValueOnlyIteratee 204 | ): Array, 205 | unionBy( 206 | a1: Array, 207 | a2: Array, 208 | a3: Array, 209 | iteratee?: ValueOnlyIteratee 210 | ): Array, 211 | unionBy( 212 | a1: Array, 213 | a2: Array, 214 | a3: Array, 215 | a4: Array, 216 | iteratee?: ValueOnlyIteratee 217 | ): Array, 218 | //Workaround until (...parameter: T, parameter2: U) works 219 | unionWith(a1: Array, comparator?: Comparator): Array, 220 | unionWith( 221 | a1: Array, 222 | a2: Array, 223 | comparator?: Comparator 224 | ): Array, 225 | unionWith( 226 | a1: Array, 227 | a2: Array, 228 | a3: Array, 229 | comparator?: Comparator 230 | ): Array, 231 | unionWith( 232 | a1: Array, 233 | a2: Array, 234 | a3: Array, 235 | a4: Array, 236 | comparator?: Comparator 237 | ): Array, 238 | uniq(array: ?Array): Array, 239 | uniqBy(array: ?Array, iteratee?: ValueOnlyIteratee): Array, 240 | uniqWith(array: ?Array, comparator?: Comparator): Array, 241 | unzip(array: ?Array): Array, 242 | unzipWith(array: ?Array, iteratee?: Iteratee): Array, 243 | without(array: ?Array, ...values?: Array): Array, 244 | xor(...array: Array>): Array, 245 | //Workaround until (...parameter: T, parameter2: U) works 246 | xorBy(a1: Array, iteratee?: ValueOnlyIteratee): Array, 247 | xorBy( 248 | a1: Array, 249 | a2: Array, 250 | iteratee?: ValueOnlyIteratee 251 | ): Array, 252 | xorBy( 253 | a1: Array, 254 | a2: Array, 255 | a3: Array, 256 | iteratee?: ValueOnlyIteratee 257 | ): Array, 258 | xorBy( 259 | a1: Array, 260 | a2: Array, 261 | a3: Array, 262 | a4: Array, 263 | iteratee?: ValueOnlyIteratee 264 | ): Array, 265 | //Workaround until (...parameter: T, parameter2: U) works 266 | xorWith(a1: Array, comparator?: Comparator): Array, 267 | xorWith( 268 | a1: Array, 269 | a2: Array, 270 | comparator?: Comparator 271 | ): Array, 272 | xorWith( 273 | a1: Array, 274 | a2: Array, 275 | a3: Array, 276 | comparator?: Comparator 277 | ): Array, 278 | xorWith( 279 | a1: Array, 280 | a2: Array, 281 | a3: Array, 282 | a4: Array, 283 | comparator?: Comparator 284 | ): Array, 285 | zip(a1: A[], a2: B[]): Array<[A, B]>, 286 | zip(a1: A[], a2: B[], a3: C[]): Array<[A, B, C]>, 287 | zip(a1: A[], a2: B[], a3: C[], a4: D[]): Array<[A, B, C, D]>, 288 | zip( 289 | a1: A[], 290 | a2: B[], 291 | a3: C[], 292 | a4: D[], 293 | a5: E[] 294 | ): Array<[A, B, C, D, E]>, 295 | 296 | zipObject(props?: Array, values?: Array): Object, 297 | zipObjectDeep(props?: any[], values?: any): Object, 298 | //Workaround until (...parameter: T, parameter2: U) works 299 | zipWith(a1: NestedArray, iteratee?: Iteratee): Array, 300 | zipWith( 301 | a1: NestedArray, 302 | a2: NestedArray, 303 | iteratee?: Iteratee 304 | ): Array, 305 | zipWith( 306 | a1: NestedArray, 307 | a2: NestedArray, 308 | a3: NestedArray, 309 | iteratee?: Iteratee 310 | ): Array, 311 | zipWith( 312 | a1: NestedArray, 313 | a2: NestedArray, 314 | a3: NestedArray, 315 | a4: NestedArray, 316 | iteratee?: Iteratee 317 | ): Array, 318 | 319 | // Collection 320 | countBy(array: ?Array, iteratee?: ValueOnlyIteratee): Object, 321 | countBy(object: T, iteratee?: ValueOnlyIteratee): Object, 322 | // alias of _.forEach 323 | each(array: ?Array, iteratee?: Iteratee): Array, 324 | each(object: T, iteratee?: OIteratee): T, 325 | // alias of _.forEachRight 326 | eachRight(array: ?Array, iteratee?: Iteratee): Array, 327 | eachRight(object: T, iteratee?: OIteratee): T, 328 | every(array: ?Array, iteratee?: Iteratee): boolean, 329 | every(object: T, iteratee?: OIteratee): boolean, 330 | filter(array: ?Array, predicate?: Predicate): Array, 331 | filter( 332 | object: T, 333 | predicate?: OPredicate 334 | ): Array, 335 | find( 336 | array: ?Array, 337 | predicate?: Predicate, 338 | fromIndex?: number 339 | ): T | void, 340 | find( 341 | object: T, 342 | predicate?: OPredicate, 343 | fromIndex?: number 344 | ): V, 345 | findLast( 346 | array: ?Array, 347 | predicate?: Predicate, 348 | fromIndex?: number 349 | ): T | void, 350 | findLast( 351 | object: T, 352 | predicate?: OPredicate 353 | ): V, 354 | flatMap(array: ?Array, iteratee?: FlatMapIteratee): Array, 355 | flatMap( 356 | object: T, 357 | iteratee?: OFlatMapIteratee 358 | ): Array, 359 | flatMapDeep( 360 | array: ?Array, 361 | iteratee?: FlatMapIteratee 362 | ): Array, 363 | flatMapDeep( 364 | object: T, 365 | iteratee?: OFlatMapIteratee 366 | ): Array, 367 | flatMapDepth( 368 | array: ?Array, 369 | iteratee?: FlatMapIteratee, 370 | depth?: number 371 | ): Array, 372 | flatMapDepth( 373 | object: T, 374 | iteratee?: OFlatMapIteratee, 375 | depth?: number 376 | ): Array, 377 | forEach(array: ?Array, iteratee?: Iteratee): Array, 378 | forEach(object: T, iteratee?: OIteratee): T, 379 | forEachRight(array: ?Array, iteratee?: Iteratee): Array, 380 | forEachRight(object: T, iteratee?: OIteratee): T, 381 | groupBy( 382 | array: ?Array, 383 | iteratee?: ValueOnlyIteratee 384 | ): { [key: V]: Array }, 385 | groupBy( 386 | object: T, 387 | iteratee?: ValueOnlyIteratee 388 | ): { [key: V]: Array }, 389 | includes(array: ?Array, value: T, fromIndex?: number): boolean, 390 | includes(object: T, value: any, fromIndex?: number): boolean, 391 | includes(str: string, value: string, fromIndex?: number): boolean, 392 | invokeMap( 393 | array: ?Array, 394 | path: ((value: T) => Array | string) | Array | string, 395 | ...args?: Array 396 | ): Array, 397 | invokeMap( 398 | object: T, 399 | path: ((value: any) => Array | string) | Array | string, 400 | ...args?: Array 401 | ): Array, 402 | keyBy( 403 | array: ?Array, 404 | iteratee?: ValueOnlyIteratee 405 | ): { [key: V]: ?T }, 406 | keyBy( 407 | object: T, 408 | iteratee?: ValueOnlyIteratee 409 | ): { [key: V]: ?A }, 410 | map(array: ?Array, iteratee?: MapIterator): Array, 411 | map( 412 | object: ?T, 413 | iteratee?: OMapIterator 414 | ): Array, 415 | map( 416 | str: ?string, 417 | iteratee?: (char: string, index: number, str: string) => any 418 | ): string, 419 | orderBy( 420 | array: ?Array, 421 | iteratees?: Array> | string, 422 | orders?: Array<"asc" | "desc"> | string 423 | ): Array, 424 | orderBy( 425 | object: T, 426 | iteratees?: Array> | string, 427 | orders?: Array<"asc" | "desc"> | string 428 | ): Array, 429 | partition(array: ?Array, predicate?: Predicate): NestedArray, 430 | partition( 431 | object: T, 432 | predicate?: OPredicate 433 | ): NestedArray, 434 | reduce( 435 | array: ?Array, 436 | iteratee?: ( 437 | accumulator: U, 438 | value: T, 439 | index: number, 440 | array: ?Array 441 | ) => U, 442 | accumulator?: U 443 | ): U, 444 | reduce( 445 | object: T, 446 | iteratee?: (accumulator: U, value: any, key: string, object: T) => U, 447 | accumulator?: U 448 | ): U, 449 | reduceRight( 450 | array: ?Array, 451 | iteratee?: ( 452 | accumulator: U, 453 | value: T, 454 | index: number, 455 | array: ?Array 456 | ) => U, 457 | accumulator?: U 458 | ): U, 459 | reduceRight( 460 | object: T, 461 | iteratee?: (accumulator: U, value: any, key: string, object: T) => U, 462 | accumulator?: U 463 | ): U, 464 | reject(array: ?Array, predicate?: Predicate): Array, 465 | reject( 466 | object: T, 467 | predicate?: OPredicate 468 | ): Array, 469 | sample(array: ?Array): T, 470 | sample(object: T): V, 471 | sampleSize(array: ?Array, n?: number): Array, 472 | sampleSize(object: T, n?: number): Array, 473 | shuffle(array: ?Array): Array, 474 | shuffle(object: T): Array, 475 | size(collection: Array | Object): number, 476 | some(array: ?Array, predicate?: Predicate): boolean, 477 | some( 478 | object?: ?T, 479 | predicate?: OPredicate 480 | ): boolean, 481 | sortBy(array: ?Array, ...iteratees?: Array>): Array, 482 | sortBy(array: ?Array, iteratees?: Array>): Array, 483 | sortBy( 484 | object: T, 485 | ...iteratees?: Array> 486 | ): Array, 487 | sortBy(object: T, iteratees?: Array>): Array, 488 | 489 | // Date 490 | now(): number, 491 | 492 | // Function 493 | after(n: number, fn: Function): Function, 494 | ary(func: Function, n?: number): Function, 495 | before(n: number, fn: Function): Function, 496 | bind(func: Function, thisArg: any, ...partials: Array): Function, 497 | bindKey(obj: Object, key: string, ...partials: Array): Function, 498 | curry(func: Function, arity?: number): Function, 499 | curryRight(func: Function, arity?: number): Function, 500 | debounce( 501 | func: Function, 502 | wait?: number, 503 | options?: DebounceOptions 504 | ): Function, 505 | defer(func: Function, ...args?: Array): number, 506 | delay(func: Function, wait: number, ...args?: Array): number, 507 | flip(func: Function): Function, 508 | memoize(func: Function, resolver?: Function): Function, 509 | negate(predicate: Function): Function, 510 | once(func: Function): Function, 511 | overArgs(func: Function, ...transforms: Array): Function, 512 | overArgs(func: Function, transforms: Array): Function, 513 | partial(func: Function, ...partials: any[]): Function, 514 | partialRight(func: Function, ...partials: Array): Function, 515 | partialRight(func: Function, partials: Array): Function, 516 | rearg(func: Function, ...indexes: Array): Function, 517 | rearg(func: Function, indexes: Array): Function, 518 | rest(func: Function, start?: number): Function, 519 | spread(func: Function): Function, 520 | throttle( 521 | func: Function, 522 | wait?: number, 523 | options?: ThrottleOptions 524 | ): Function, 525 | unary(func: Function): Function, 526 | wrap(value: any, wrapper: Function): Function, 527 | 528 | // Lang 529 | castArray(value: *): any[], 530 | clone(value: T): T, 531 | cloneDeep(value: T): T, 532 | cloneDeepWith( 533 | value: T, 534 | customizer?: ?(value: T, key: number | string, object: T, stack: any) => U 535 | ): U, 536 | cloneWith( 537 | value: T, 538 | customizer?: ?(value: T, key: number | string, object: T, stack: any) => U 539 | ): U, 540 | conformsTo( 541 | source: T, 542 | predicates: T & { [key: string]: (x: any) => boolean } 543 | ): boolean, 544 | eq(value: any, other: any): boolean, 545 | gt(value: any, other: any): boolean, 546 | gte(value: any, other: any): boolean, 547 | isArguments(value: any): boolean, 548 | isArray(value: any): boolean, 549 | isArrayBuffer(value: any): boolean, 550 | isArrayLike(value: any): boolean, 551 | isArrayLikeObject(value: any): boolean, 552 | isBoolean(value: any): boolean, 553 | isBuffer(value: any): boolean, 554 | isDate(value: any): boolean, 555 | isElement(value: any): boolean, 556 | isEmpty(value: any): boolean, 557 | isEqual(value: any, other: any): boolean, 558 | isEqualWith( 559 | value: T, 560 | other: U, 561 | customizer?: ( 562 | objValue: any, 563 | otherValue: any, 564 | key: number | string, 565 | object: T, 566 | other: U, 567 | stack: any 568 | ) => boolean | void 569 | ): boolean, 570 | isError(value: any): boolean, 571 | isFinite(value: any): boolean, 572 | isFunction(value: Function): true, 573 | isFunction(value: number | string | void | null | Object): false, 574 | isInteger(value: any): boolean, 575 | isLength(value: any): boolean, 576 | isMap(value: any): boolean, 577 | isMatch(object?: ?Object, source: Object): boolean, 578 | isMatchWith( 579 | object: T, 580 | source: U, 581 | customizer?: ( 582 | objValue: any, 583 | srcValue: any, 584 | key: number | string, 585 | object: T, 586 | source: U 587 | ) => boolean | void 588 | ): boolean, 589 | isNaN(value: any): boolean, 590 | isNative(value: any): boolean, 591 | isNil(value: any): boolean, 592 | isNull(value: any): boolean, 593 | isNumber(value: any): boolean, 594 | isObject(value: any): boolean, 595 | isObjectLike(value: any): boolean, 596 | isPlainObject(value: any): boolean, 597 | isRegExp(value: any): boolean, 598 | isSafeInteger(value: any): boolean, 599 | isSet(value: any): boolean, 600 | isString(value: string): true, 601 | isString( 602 | value: number | boolean | Function | void | null | Object | Array 603 | ): false, 604 | isSymbol(value: any): boolean, 605 | isTypedArray(value: any): boolean, 606 | isUndefined(value: any): boolean, 607 | isWeakMap(value: any): boolean, 608 | isWeakSet(value: any): boolean, 609 | lt(value: any, other: any): boolean, 610 | lte(value: any, other: any): boolean, 611 | toArray(value: any): Array, 612 | toFinite(value: any): number, 613 | toInteger(value: any): number, 614 | toLength(value: any): number, 615 | toNumber(value: any): number, 616 | toPlainObject(value: any): Object, 617 | toSafeInteger(value: any): number, 618 | toString(value: any): string, 619 | 620 | // Math 621 | add(augend: number, addend: number): number, 622 | ceil(number: number, precision?: number): number, 623 | divide(dividend: number, divisor: number): number, 624 | floor(number: number, precision?: number): number, 625 | max(array: ?Array): T, 626 | maxBy(array: ?Array, iteratee?: Iteratee): T, 627 | mean(array: Array<*>): number, 628 | meanBy(array: Array, iteratee?: Iteratee): number, 629 | min(array: ?Array): T, 630 | minBy(array: ?Array, iteratee?: Iteratee): T, 631 | multiply(multiplier: number, multiplicand: number): number, 632 | round(number: number, precision?: number): number, 633 | subtract(minuend: number, subtrahend: number): number, 634 | sum(array: Array<*>): number, 635 | sumBy(array: Array, iteratee?: Iteratee): number, 636 | 637 | // number 638 | clamp(number: number, lower?: number, upper: number): number, 639 | inRange(number: number, start?: number, end: number): boolean, 640 | random(lower?: number, upper?: number, floating?: boolean): number, 641 | 642 | // Object 643 | assign(object?: ?Object, ...sources?: Array): Object, 644 | assignIn(a: A, b: B): A & B, 645 | assignIn(a: A, b: B, c: C): A & B & C, 646 | assignIn(a: A, b: B, c: C, d: D): A & B & C & D, 647 | assignIn(a: A, b: B, c: C, d: D, e: E): A & B & C & D & E, 648 | assignInWith( 649 | object: T, 650 | s1: A, 651 | customizer?: ( 652 | objValue: any, 653 | srcValue: any, 654 | key: string, 655 | object: T, 656 | source: A 657 | ) => any | void 658 | ): Object, 659 | assignInWith( 660 | object: T, 661 | s1: A, 662 | s2: B, 663 | customizer?: ( 664 | objValue: any, 665 | srcValue: any, 666 | key: string, 667 | object: T, 668 | source: A | B 669 | ) => any | void 670 | ): Object, 671 | assignInWith( 672 | object: T, 673 | s1: A, 674 | s2: B, 675 | s3: C, 676 | customizer?: ( 677 | objValue: any, 678 | srcValue: any, 679 | key: string, 680 | object: T, 681 | source: A | B | C 682 | ) => any | void 683 | ): Object, 684 | assignInWith( 685 | object: T, 686 | s1: A, 687 | s2: B, 688 | s3: C, 689 | s4: D, 690 | customizer?: ( 691 | objValue: any, 692 | srcValue: any, 693 | key: string, 694 | object: T, 695 | source: A | B | C | D 696 | ) => any | void 697 | ): Object, 698 | assignWith( 699 | object: T, 700 | s1: A, 701 | customizer?: ( 702 | objValue: any, 703 | srcValue: any, 704 | key: string, 705 | object: T, 706 | source: A 707 | ) => any | void 708 | ): Object, 709 | assignWith( 710 | object: T, 711 | s1: A, 712 | s2: B, 713 | customizer?: ( 714 | objValue: any, 715 | srcValue: any, 716 | key: string, 717 | object: T, 718 | source: A | B 719 | ) => any | void 720 | ): Object, 721 | assignWith( 722 | object: T, 723 | s1: A, 724 | s2: B, 725 | s3: C, 726 | customizer?: ( 727 | objValue: any, 728 | srcValue: any, 729 | key: string, 730 | object: T, 731 | source: A | B | C 732 | ) => any | void 733 | ): Object, 734 | assignWith( 735 | object: T, 736 | s1: A, 737 | s2: B, 738 | s3: C, 739 | s4: D, 740 | customizer?: ( 741 | objValue: any, 742 | srcValue: any, 743 | key: string, 744 | object: T, 745 | source: A | B | C | D 746 | ) => any | void 747 | ): Object, 748 | at(object?: ?Object, ...paths: Array): Array, 749 | at(object?: ?Object, paths: Array): Array, 750 | create(prototype: T, properties?: Object): $Supertype, 751 | defaults(object?: ?Object, ...sources?: Array): Object, 752 | defaultsDeep(object?: ?Object, ...sources?: Array): Object, 753 | // alias for _.toPairs 754 | entries(object?: ?Object): NestedArray, 755 | // alias for _.toPairsIn 756 | entriesIn(object?: ?Object): NestedArray, 757 | // alias for _.assignIn 758 | extend(a: A, b: B): A & B, 759 | extend(a: A, b: B, c: C): A & B & C, 760 | extend(a: A, b: B, c: C, d: D): A & B & C & D, 761 | extend(a: A, b: B, c: C, d: D, e: E): A & B & C & D & E, 762 | // alias for _.assignInWith 763 | extendWith( 764 | object: T, 765 | s1: A, 766 | customizer?: ( 767 | objValue: any, 768 | srcValue: any, 769 | key: string, 770 | object: T, 771 | source: A 772 | ) => any | void 773 | ): Object, 774 | extendWith( 775 | object: T, 776 | s1: A, 777 | s2: B, 778 | customizer?: ( 779 | objValue: any, 780 | srcValue: any, 781 | key: string, 782 | object: T, 783 | source: A | B 784 | ) => any | void 785 | ): Object, 786 | extendWith( 787 | object: T, 788 | s1: A, 789 | s2: B, 790 | s3: C, 791 | customizer?: ( 792 | objValue: any, 793 | srcValue: any, 794 | key: string, 795 | object: T, 796 | source: A | B | C 797 | ) => any | void 798 | ): Object, 799 | extendWith( 800 | object: T, 801 | s1: A, 802 | s2: B, 803 | s3: C, 804 | s4: D, 805 | customizer?: ( 806 | objValue: any, 807 | srcValue: any, 808 | key: string, 809 | object: T, 810 | source: A | B | C | D 811 | ) => any | void 812 | ): Object, 813 | findKey( 814 | object?: ?T, 815 | predicate?: OPredicate 816 | ): string | void, 817 | findLastKey( 818 | object?: ?T, 819 | predicate?: OPredicate 820 | ): string | void, 821 | forIn(object?: ?Object, iteratee?: OIteratee<*>): Object, 822 | forInRight(object?: ?Object, iteratee?: OIteratee<*>): Object, 823 | forOwn(object?: ?Object, iteratee?: OIteratee<*>): Object, 824 | forOwnRight(object?: ?Object, iteratee?: OIteratee<*>): Object, 825 | functions(object?: ?Object): Array, 826 | functionsIn(object?: ?Object): Array, 827 | get( 828 | object?: ?Object | ?Array, 829 | path?: ?Array | string, 830 | defaultValue?: any 831 | ): any, 832 | has(object?: ?Object, path?: ?Array | string): boolean, 833 | hasIn(object?: ?Object, path?: ?Array | string): boolean, 834 | invert(object?: ?Object, multiVal?: boolean): Object, 835 | invertBy(object: ?Object, iteratee?: Function): Object, 836 | invoke( 837 | object?: ?Object, 838 | path?: ?Array | string, 839 | ...args?: Array 840 | ): any, 841 | keys(object?: ?Object): Array, 842 | keysIn(object?: ?Object): Array, 843 | mapKeys(object?: ?Object, iteratee?: OIteratee<*>): Object, 844 | mapValues(object?: ?Object, iteratee?: OIteratee<*>): Object, 845 | merge(object?: ?Object, ...sources?: Array): Object, 846 | mergeWith( 847 | object: T, 848 | customizer?: ( 849 | objValue: any, 850 | srcValue: any, 851 | key: string, 852 | object: T, 853 | source: A 854 | ) => any | void 855 | ): Object, 856 | mergeWith( 857 | object: T, 858 | s1: A, 859 | s2: B, 860 | customizer?: ( 861 | objValue: any, 862 | srcValue: any, 863 | key: string, 864 | object: T, 865 | source: A | B 866 | ) => any | void 867 | ): Object, 868 | mergeWith( 869 | object: T, 870 | s1: A, 871 | s2: B, 872 | s3: C, 873 | customizer?: ( 874 | objValue: any, 875 | srcValue: any, 876 | key: string, 877 | object: T, 878 | source: A | B | C 879 | ) => any | void 880 | ): Object, 881 | mergeWith( 882 | object: T, 883 | s1: A, 884 | s2: B, 885 | s3: C, 886 | s4: D, 887 | customizer?: ( 888 | objValue: any, 889 | srcValue: any, 890 | key: string, 891 | object: T, 892 | source: A | B | C | D 893 | ) => any | void 894 | ): Object, 895 | omit(object?: ?Object, ...props: Array): Object, 896 | omit(object?: ?Object, props: Array): Object, 897 | omitBy( 898 | object?: ?T, 899 | predicate?: OPredicate 900 | ): Object, 901 | pick(object?: ?Object, ...props: Array): Object, 902 | pick(object?: ?Object, props: Array): Object, 903 | pickBy( 904 | object?: ?T, 905 | predicate?: OPredicate 906 | ): Object, 907 | result( 908 | object?: ?Object, 909 | path?: ?Array | string, 910 | defaultValue?: any 911 | ): any, 912 | set(object?: ?Object, path?: ?Array | string, value: any): Object, 913 | setWith( 914 | object: T, 915 | path?: ?Array | string, 916 | value: any, 917 | customizer?: (nsValue: any, key: string, nsObject: T) => any 918 | ): Object, 919 | toPairs(object?: ?Object | Array<*>): NestedArray, 920 | toPairsIn(object?: ?Object): NestedArray, 921 | transform( 922 | collection: Object | Array, 923 | iteratee?: OIteratee<*>, 924 | accumulator?: any 925 | ): any, 926 | unset(object?: ?Object, path?: ?Array | string): boolean, 927 | update(object: Object, path: string[] | string, updater: Function): Object, 928 | updateWith( 929 | object: Object, 930 | path: string[] | string, 931 | updater: Function, 932 | customizer?: Function 933 | ): Object, 934 | values(object?: ?Object): Array, 935 | valuesIn(object?: ?Object): Array, 936 | 937 | // Seq 938 | // harder to read, but this is _() 939 | (value: any): any, 940 | chain(value: T): any, 941 | tap(value: T, interceptor: (value: T) => any): T, 942 | thru(value: T1, interceptor: (value: T1) => T2): T2, 943 | // TODO: _.prototype.* 944 | 945 | // String 946 | camelCase(string?: ?string): string, 947 | capitalize(string?: string): string, 948 | deburr(string?: string): string, 949 | endsWith(string?: string, target?: string, position?: number): boolean, 950 | escape(string?: string): string, 951 | escapeRegExp(string?: string): string, 952 | kebabCase(string?: string): string, 953 | lowerCase(string?: string): string, 954 | lowerFirst(string?: string): string, 955 | pad(string?: string, length?: number, chars?: string): string, 956 | padEnd(string?: string, length?: number, chars?: string): string, 957 | padStart(string?: string, length?: number, chars?: string): string, 958 | parseInt(string: string, radix?: number): number, 959 | repeat(string?: string, n?: number): string, 960 | replace( 961 | string?: string, 962 | pattern: RegExp | string, 963 | replacement: ((string: string) => string) | string 964 | ): string, 965 | snakeCase(string?: string): string, 966 | split( 967 | string?: string, 968 | separator: RegExp | string, 969 | limit?: number 970 | ): Array, 971 | startCase(string?: string): string, 972 | startsWith(string?: string, target?: string, position?: number): boolean, 973 | template(string?: string, options?: TemplateSettings): Function, 974 | toLower(string?: string): string, 975 | toUpper(string?: string): string, 976 | trim(string?: string, chars?: string): string, 977 | trimEnd(string?: string, chars?: string): string, 978 | trimStart(string?: string, chars?: string): string, 979 | truncate(string?: string, options?: TruncateOptions): string, 980 | unescape(string?: string): string, 981 | upperCase(string?: string): string, 982 | upperFirst(string?: string): string, 983 | words(string?: string, pattern?: RegExp | string): Array, 984 | 985 | // Util 986 | attempt(func: Function, ...args: Array): any, 987 | bindAll(object?: ?Object, methodNames: Array): Object, 988 | bindAll(object?: ?Object, ...methodNames: Array): Object, 989 | cond(pairs: NestedArray): Function, 990 | conforms(source: Object): Function, 991 | constant(value: T): () => T, 992 | defaultTo( 993 | value: T1, 994 | defaultValue: T2 995 | ): T1, 996 | // NaN is a number instead of its own type, otherwise it would behave like null/void 997 | defaultTo(value: T1, defaultValue: T2): T1 | T2, 998 | defaultTo(value: T1, defaultValue: T2): T2, 999 | flow(...funcs?: Array): Function, 1000 | flow(funcs?: Array): Function, 1001 | flowRight(...funcs?: Array): Function, 1002 | flowRight(funcs?: Array): Function, 1003 | identity(value: T): T, 1004 | iteratee(func?: any): Function, 1005 | matches(source: Object): Function, 1006 | matchesProperty(path?: ?Array | string, srcValue: any): Function, 1007 | method(path?: ?Array | string, ...args?: Array): Function, 1008 | methodOf(object?: ?Object, ...args?: Array): Function, 1009 | mixin( 1010 | object?: T, 1011 | source: Object, 1012 | options?: { chain: boolean } 1013 | ): T, 1014 | noConflict(): Lodash, 1015 | noop(...args: Array): void, 1016 | nthArg(n?: number): Function, 1017 | over(...iteratees: Array): Function, 1018 | over(iteratees: Array): Function, 1019 | overEvery(...predicates: Array): Function, 1020 | overEvery(predicates: Array): Function, 1021 | overSome(...predicates: Array): Function, 1022 | overSome(predicates: Array): Function, 1023 | property(path?: ?Array | string): Function, 1024 | propertyOf(object?: ?Object): Function, 1025 | range(start: number, end: number, step?: number): Array, 1026 | range(end: number, step?: number): Array, 1027 | rangeRight(start: number, end: number, step?: number): Array, 1028 | rangeRight(end: number, step?: number): Array, 1029 | runInContext(context?: Object): Function, 1030 | 1031 | stubArray(): Array<*>, 1032 | stubFalse(): false, 1033 | stubObject(): {}, 1034 | stubString(): "", 1035 | stubTrue(): true, 1036 | times(n: number, ...rest: Array): Array, 1037 | times(n: number, iteratee: (i: number) => T): Array, 1038 | toPath(value: any): Array, 1039 | uniqueId(prefix?: string): string, 1040 | 1041 | // Properties 1042 | VERSION: string, 1043 | templateSettings: TemplateSettings 1044 | } 1045 | 1046 | declare var exports: Lodash; 1047 | } 1048 | -------------------------------------------------------------------------------- /flow-typed/npm/memory-fs_vx.x.x.js: -------------------------------------------------------------------------------- 1 | // flow-typed signature: 00d549c181e412a9ecc42c845c7ff5d7 2 | // flow-typed version: <>/memory-fs_v^0.4.1/flow_v0.55.0 3 | 4 | /** 5 | * This is an autogenerated libdef stub for: 6 | * 7 | * 'memory-fs' 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 'memory-fs' { 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 'memory-fs/lib/join' { 26 | declare module.exports: any; 27 | } 28 | 29 | declare module 'memory-fs/lib/MemoryFileSystem' { 30 | declare module.exports: any; 31 | } 32 | 33 | declare module 'memory-fs/lib/normalize' { 34 | declare module.exports: any; 35 | } 36 | 37 | // Filename aliases 38 | declare module 'memory-fs/lib/join.js' { 39 | declare module.exports: $Exports<'memory-fs/lib/join'>; 40 | } 41 | declare module 'memory-fs/lib/MemoryFileSystem.js' { 42 | declare module.exports: $Exports<'memory-fs/lib/MemoryFileSystem'>; 43 | } 44 | declare module 'memory-fs/lib/normalize.js' { 45 | declare module.exports: $Exports<'memory-fs/lib/normalize'>; 46 | } 47 | -------------------------------------------------------------------------------- /flow-typed/npm/mkdirp_v0.5.x.js: -------------------------------------------------------------------------------- 1 | // flow-typed signature: 82aa0feffc2bbd64dce3bec492f5d601 2 | // flow-typed version: 3315d89a00/mkdirp_v0.5.x/flow_>=v0.25.0 3 | 4 | declare module 'mkdirp' { 5 | declare type Options = number | { mode?: number; fs?: mixed }; 6 | 7 | declare type Callback = (err: ?Error, path: ?string) => void; 8 | 9 | declare module.exports: { 10 | (path: string, options?: Options | Callback, callback?: Callback): void; 11 | sync(path: string, options?: Options): void; 12 | }; 13 | } 14 | -------------------------------------------------------------------------------- /flow-typed/npm/ncp_vx.x.x.js: -------------------------------------------------------------------------------- 1 | // flow-typed signature: 6d456608bc033a35db6a6c7ab695d459 2 | // flow-typed version: <>/ncp_v^2.0.0/flow_v0.55.0 3 | 4 | /** 5 | * This is an autogenerated libdef stub for: 6 | * 7 | * 'ncp' 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 'ncp' { 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 'ncp/lib/ncp' { 26 | declare module.exports: any; 27 | } 28 | 29 | declare module 'ncp/test/ncp' { 30 | declare module.exports: any; 31 | } 32 | 33 | // Filename aliases 34 | declare module 'ncp/lib/ncp.js' { 35 | declare module.exports: $Exports<'ncp/lib/ncp'>; 36 | } 37 | declare module 'ncp/test/ncp.js' { 38 | declare module.exports: $Exports<'ncp/test/ncp'>; 39 | } 40 | -------------------------------------------------------------------------------- /flow-typed/npm/opn_vx.x.x.js: -------------------------------------------------------------------------------- 1 | // flow-typed signature: c3741464c510ddd991c0cfdff0233018 2 | // flow-typed version: <>/opn_v^5.1.0/flow_v0.55.0 3 | 4 | /** 5 | * This is an autogenerated libdef stub for: 6 | * 7 | * 'opn' 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 'opn' { 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 | 26 | 27 | // Filename aliases 28 | declare module 'opn/index' { 29 | declare module.exports: $Exports<'opn'>; 30 | } 31 | declare module 'opn/index.js' { 32 | declare module.exports: $Exports<'opn'>; 33 | } 34 | -------------------------------------------------------------------------------- /flow-typed/npm/postcss-loader_vx.x.x.js: -------------------------------------------------------------------------------- 1 | // flow-typed signature: 637e3e90f676f91afe0cb3d3fee7b0be 2 | // flow-typed version: <>/postcss-loader_v^2.0.6/flow_v0.55.0 3 | 4 | /** 5 | * This is an autogenerated libdef stub for: 6 | * 7 | * 'postcss-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 'postcss-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 'postcss-loader/lib/Error' { 26 | declare module.exports: any; 27 | } 28 | 29 | declare module 'postcss-loader/lib/index' { 30 | declare module.exports: any; 31 | } 32 | 33 | declare module 'postcss-loader/lib/options' { 34 | declare module.exports: any; 35 | } 36 | 37 | // Filename aliases 38 | declare module 'postcss-loader/lib/Error.js' { 39 | declare module.exports: $Exports<'postcss-loader/lib/Error'>; 40 | } 41 | declare module 'postcss-loader/lib/index.js' { 42 | declare module.exports: $Exports<'postcss-loader/lib/index'>; 43 | } 44 | declare module 'postcss-loader/lib/options.js' { 45 | declare module.exports: $Exports<'postcss-loader/lib/options'>; 46 | } 47 | -------------------------------------------------------------------------------- /flow-typed/npm/prettier_vx.x.x.js: -------------------------------------------------------------------------------- 1 | // flow-typed signature: 10092d6d39b082fec25418aabeb71396 2 | // flow-typed version: <>/prettier_v^1.7.2/flow_v0.55.0 3 | 4 | /** 5 | * This is an autogenerated libdef stub for: 6 | * 7 | * 'prettier' 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 'prettier' { 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 'prettier/bin/prettier' { 26 | declare module.exports: any; 27 | } 28 | 29 | declare module 'prettier/parser-babylon' { 30 | declare module.exports: any; 31 | } 32 | 33 | declare module 'prettier/parser-flow' { 34 | declare module.exports: any; 35 | } 36 | 37 | declare module 'prettier/parser-graphql' { 38 | declare module.exports: any; 39 | } 40 | 41 | declare module 'prettier/parser-parse5' { 42 | declare module.exports: any; 43 | } 44 | 45 | declare module 'prettier/parser-postcss' { 46 | declare module.exports: any; 47 | } 48 | 49 | declare module 'prettier/parser-typescript' { 50 | declare module.exports: any; 51 | } 52 | 53 | // Filename aliases 54 | declare module 'prettier/bin/prettier.js' { 55 | declare module.exports: $Exports<'prettier/bin/prettier'>; 56 | } 57 | declare module 'prettier/index' { 58 | declare module.exports: $Exports<'prettier'>; 59 | } 60 | declare module 'prettier/index.js' { 61 | declare module.exports: $Exports<'prettier'>; 62 | } 63 | declare module 'prettier/parser-babylon.js' { 64 | declare module.exports: $Exports<'prettier/parser-babylon'>; 65 | } 66 | declare module 'prettier/parser-flow.js' { 67 | declare module.exports: $Exports<'prettier/parser-flow'>; 68 | } 69 | declare module 'prettier/parser-graphql.js' { 70 | declare module.exports: $Exports<'prettier/parser-graphql'>; 71 | } 72 | declare module 'prettier/parser-parse5.js' { 73 | declare module.exports: $Exports<'prettier/parser-parse5'>; 74 | } 75 | declare module 'prettier/parser-postcss.js' { 76 | declare module.exports: $Exports<'prettier/parser-postcss'>; 77 | } 78 | declare module 'prettier/parser-typescript.js' { 79 | declare module.exports: $Exports<'prettier/parser-typescript'>; 80 | } 81 | -------------------------------------------------------------------------------- /flow-typed/npm/resolve-url-loader_vx.x.x.js: -------------------------------------------------------------------------------- 1 | // flow-typed signature: 62257aed0bff23f992168d1248228e47 2 | // flow-typed version: <>/resolve-url-loader_v^2.1.0/flow_v0.55.0 3 | 4 | /** 5 | * This is an autogenerated libdef stub for: 6 | * 7 | * 'resolve-url-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 'resolve-url-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 'resolve-url-loader/lib/find-file' { 26 | declare module.exports: any; 27 | } 28 | 29 | declare module 'resolve-url-loader/lib/sources-absolute-to-relative' { 30 | declare module.exports: any; 31 | } 32 | 33 | // Filename aliases 34 | declare module 'resolve-url-loader/index' { 35 | declare module.exports: $Exports<'resolve-url-loader'>; 36 | } 37 | declare module 'resolve-url-loader/index.js' { 38 | declare module.exports: $Exports<'resolve-url-loader'>; 39 | } 40 | declare module 'resolve-url-loader/lib/find-file.js' { 41 | declare module.exports: $Exports<'resolve-url-loader/lib/find-file'>; 42 | } 43 | declare module 'resolve-url-loader/lib/sources-absolute-to-relative.js' { 44 | declare module.exports: $Exports<'resolve-url-loader/lib/sources-absolute-to-relative'>; 45 | } 46 | -------------------------------------------------------------------------------- /flow-typed/npm/semantic-release_vx.x.x.js: -------------------------------------------------------------------------------- 1 | // flow-typed signature: 8e24d03c95f8bf0ea5975f9e3be59fb8 2 | // flow-typed version: <>/semantic-release_v^8.0.3/flow_v0.55.0 3 | 4 | /** 5 | * This is an autogenerated libdef stub for: 6 | * 7 | * 'semantic-release' 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 'semantic-release' { 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 'semantic-release/bin/semantic-release' { 26 | declare module.exports: any; 27 | } 28 | 29 | declare module 'semantic-release/src/index' { 30 | declare module.exports: any; 31 | } 32 | 33 | declare module 'semantic-release/src/lib/commits' { 34 | declare module.exports: any; 35 | } 36 | 37 | declare module 'semantic-release/src/lib/get-registry' { 38 | declare module.exports: any; 39 | } 40 | 41 | declare module 'semantic-release/src/lib/plugin-noop' { 42 | declare module.exports: any; 43 | } 44 | 45 | declare module 'semantic-release/src/lib/plugins' { 46 | declare module.exports: any; 47 | } 48 | 49 | declare module 'semantic-release/src/lib/type' { 50 | declare module.exports: any; 51 | } 52 | 53 | declare module 'semantic-release/src/lib/verify' { 54 | declare module.exports: any; 55 | } 56 | 57 | declare module 'semantic-release/src/post' { 58 | declare module.exports: any; 59 | } 60 | 61 | declare module 'semantic-release/src/pre' { 62 | declare module.exports: any; 63 | } 64 | 65 | // Filename aliases 66 | declare module 'semantic-release/bin/semantic-release.js' { 67 | declare module.exports: $Exports<'semantic-release/bin/semantic-release'>; 68 | } 69 | declare module 'semantic-release/src/index.js' { 70 | declare module.exports: $Exports<'semantic-release/src/index'>; 71 | } 72 | declare module 'semantic-release/src/lib/commits.js' { 73 | declare module.exports: $Exports<'semantic-release/src/lib/commits'>; 74 | } 75 | declare module 'semantic-release/src/lib/get-registry.js' { 76 | declare module.exports: $Exports<'semantic-release/src/lib/get-registry'>; 77 | } 78 | declare module 'semantic-release/src/lib/plugin-noop.js' { 79 | declare module.exports: $Exports<'semantic-release/src/lib/plugin-noop'>; 80 | } 81 | declare module 'semantic-release/src/lib/plugins.js' { 82 | declare module.exports: $Exports<'semantic-release/src/lib/plugins'>; 83 | } 84 | declare module 'semantic-release/src/lib/type.js' { 85 | declare module.exports: $Exports<'semantic-release/src/lib/type'>; 86 | } 87 | declare module 'semantic-release/src/lib/verify.js' { 88 | declare module.exports: $Exports<'semantic-release/src/lib/verify'>; 89 | } 90 | declare module 'semantic-release/src/post.js' { 91 | declare module.exports: $Exports<'semantic-release/src/post'>; 92 | } 93 | declare module 'semantic-release/src/pre.js' { 94 | declare module.exports: $Exports<'semantic-release/src/pre'>; 95 | } 96 | -------------------------------------------------------------------------------- /flow-typed/npm/style-loader_vx.x.x.js: -------------------------------------------------------------------------------- 1 | // flow-typed signature: 6aaa14ac7f581c6f4836e1d9205e9619 2 | // flow-typed version: <>/style-loader_v^0.18.2/flow_v0.55.0 3 | 4 | /** 5 | * This is an autogenerated libdef stub for: 6 | * 7 | * 'style-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 'style-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 'style-loader/lib/addStyles' { 26 | declare module.exports: any; 27 | } 28 | 29 | declare module 'style-loader/lib/addStyleUrl' { 30 | declare module.exports: any; 31 | } 32 | 33 | declare module 'style-loader/lib/urls' { 34 | declare module.exports: any; 35 | } 36 | 37 | declare module 'style-loader/url' { 38 | declare module.exports: any; 39 | } 40 | 41 | declare module 'style-loader/useable' { 42 | declare module.exports: any; 43 | } 44 | 45 | // Filename aliases 46 | declare module 'style-loader/index' { 47 | declare module.exports: $Exports<'style-loader'>; 48 | } 49 | declare module 'style-loader/index.js' { 50 | declare module.exports: $Exports<'style-loader'>; 51 | } 52 | declare module 'style-loader/lib/addStyles.js' { 53 | declare module.exports: $Exports<'style-loader/lib/addStyles'>; 54 | } 55 | declare module 'style-loader/lib/addStyleUrl.js' { 56 | declare module.exports: $Exports<'style-loader/lib/addStyleUrl'>; 57 | } 58 | declare module 'style-loader/lib/urls.js' { 59 | declare module.exports: $Exports<'style-loader/lib/urls'>; 60 | } 61 | declare module 'style-loader/url.js' { 62 | declare module.exports: $Exports<'style-loader/url'>; 63 | } 64 | declare module 'style-loader/useable.js' { 65 | declare module.exports: $Exports<'style-loader/useable'>; 66 | } 67 | -------------------------------------------------------------------------------- /flow-typed/npm/url-loader_vx.x.x.js: -------------------------------------------------------------------------------- 1 | // flow-typed signature: dc304fe78d386b53d1181b366bce8e46 2 | // flow-typed version: <>/url-loader_v^0.5.9/flow_v0.55.0 3 | 4 | /** 5 | * This is an autogenerated libdef stub for: 6 | * 7 | * 'url-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 'url-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 | 26 | 27 | // Filename aliases 28 | declare module 'url-loader/index' { 29 | declare module.exports: $Exports<'url-loader'>; 30 | } 31 | declare module 'url-loader/index.js' { 32 | declare module.exports: $Exports<'url-loader'>; 33 | } 34 | -------------------------------------------------------------------------------- /flow-typed/npm/yargs_vx.x.x.js: -------------------------------------------------------------------------------- 1 | // flow-typed signature: 45595e36ec3d5ce934e4b10bd8529580 2 | // flow-typed version: <>/yargs_v^9.0.1/flow_v0.55.0 3 | 4 | /** 5 | * This is an autogenerated libdef stub for: 6 | * 7 | * 'yargs' 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 'yargs' { 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 'yargs/lib/apply-extends' { 26 | declare module.exports: any; 27 | } 28 | 29 | declare module 'yargs/lib/argsert' { 30 | declare module.exports: any; 31 | } 32 | 33 | declare module 'yargs/lib/command' { 34 | declare module.exports: any; 35 | } 36 | 37 | declare module 'yargs/lib/completion' { 38 | declare module.exports: any; 39 | } 40 | 41 | declare module 'yargs/lib/levenshtein' { 42 | declare module.exports: any; 43 | } 44 | 45 | declare module 'yargs/lib/obj-filter' { 46 | declare module.exports: any; 47 | } 48 | 49 | declare module 'yargs/lib/usage' { 50 | declare module.exports: any; 51 | } 52 | 53 | declare module 'yargs/lib/validation' { 54 | declare module.exports: any; 55 | } 56 | 57 | declare module 'yargs/lib/yerror' { 58 | declare module.exports: any; 59 | } 60 | 61 | declare module 'yargs/yargs' { 62 | declare module.exports: any; 63 | } 64 | 65 | // Filename aliases 66 | declare module 'yargs/index' { 67 | declare module.exports: $Exports<'yargs'>; 68 | } 69 | declare module 'yargs/index.js' { 70 | declare module.exports: $Exports<'yargs'>; 71 | } 72 | declare module 'yargs/lib/apply-extends.js' { 73 | declare module.exports: $Exports<'yargs/lib/apply-extends'>; 74 | } 75 | declare module 'yargs/lib/argsert.js' { 76 | declare module.exports: $Exports<'yargs/lib/argsert'>; 77 | } 78 | declare module 'yargs/lib/command.js' { 79 | declare module.exports: $Exports<'yargs/lib/command'>; 80 | } 81 | declare module 'yargs/lib/completion.js' { 82 | declare module.exports: $Exports<'yargs/lib/completion'>; 83 | } 84 | declare module 'yargs/lib/levenshtein.js' { 85 | declare module.exports: $Exports<'yargs/lib/levenshtein'>; 86 | } 87 | declare module 'yargs/lib/obj-filter.js' { 88 | declare module.exports: $Exports<'yargs/lib/obj-filter'>; 89 | } 90 | declare module 'yargs/lib/usage.js' { 91 | declare module.exports: $Exports<'yargs/lib/usage'>; 92 | } 93 | declare module 'yargs/lib/validation.js' { 94 | declare module.exports: $Exports<'yargs/lib/validation'>; 95 | } 96 | declare module 'yargs/lib/yerror.js' { 97 | declare module.exports: $Exports<'yargs/lib/yerror'>; 98 | } 99 | declare module 'yargs/yargs.js' { 100 | declare module.exports: $Exports<'yargs/yargs'>; 101 | } 102 | -------------------------------------------------------------------------------- /middleware.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | module.exports = require('./dist/quik-middleware'); // eslint-disable-line import/no-commonjs 4 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "quik", 3 | "version": "0.0.0-development", 4 | "description": "A quick way to prototype apps with React and Babel with zero-setup.", 5 | "keywords": [ 6 | "react", 7 | "babel", 8 | "webpack", 9 | "build", 10 | "bundle", 11 | "package", 12 | "prototype", 13 | "quik" 14 | ], 15 | "main": "dist/index.js", 16 | "scripts": { 17 | "build": "babel -sd dist/ src/", 18 | "clean": "del dist/", 19 | "flow": "flow", 20 | "lint": "eslint .", 21 | "test": "jest", 22 | "coverage": "cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js", 23 | "semantic-release": "semantic-release pre && npm publish && semantic-release post", 24 | "prebuild": "yarn run clean", 25 | "prepare": "yarn run build", 26 | "precommit": "yarn run lint && yarn run flow" 27 | }, 28 | "bin": { 29 | "quik": "bin/quik.js" 30 | }, 31 | "repository": { 32 | "type": "git", 33 | "url": "https://github.com/satya164/quik.git" 34 | }, 35 | "author": "Satyajit Sahoo (https://github.com/satya164/)", 36 | "license": "MIT", 37 | "dependencies": { 38 | "autoprefixer": "^7.1.6", 39 | "babel-core": "^6.26.0", 40 | "babel-loader": "^7.1.2", 41 | "babel-plugin-transform-react-constant-elements": "^6.23.0", 42 | "babel-plugin-transform-react-inline-elements": "^6.22.0", 43 | "babel-plugin-transform-runtime": "^6.23.0", 44 | "babel-preset-env": "^1.6.1", 45 | "babel-preset-react": "^6.24.1", 46 | "babel-preset-react-hmre": "^1.1.1", 47 | "babel-preset-stage-2": "^6.24.1", 48 | "babel-runtime": "^6.26.0", 49 | "chalk": "^2.3.0", 50 | "cheerio": "^1.0.0-rc.2", 51 | "command-exists": "^1.2.2", 52 | "css-loader": "^0.28.7", 53 | "extract-text-webpack-plugin": "^3.0.1", 54 | "file-loader": "^1.1.5", 55 | "glob-expand": "^0.2.1", 56 | "koa": "^2.3.0", 57 | "koa-compose": "^4.0.0", 58 | "koa-logger": "^3.1.0", 59 | "koa-static": "^4.0.1", 60 | "koa-webpack": "^1.0.0", 61 | "lodash": "^4.17.4", 62 | "memory-fs": "^0.4.1", 63 | "ncp": "^2.0.0", 64 | "opn": "^5.1.0", 65 | "postcss-loader": "^2.0.8", 66 | "resolve-url-loader": "^2.1.1", 67 | "style-loader": "^0.19.0", 68 | "url-loader": "^0.6.2", 69 | "webpack": "^3.8.1", 70 | "yargs": "^10.0.3" 71 | }, 72 | "devDependencies": { 73 | "babel-cli": "^6.26.0", 74 | "babel-eslint": "^8.0.1", 75 | "babel-jest": "^21.2.0", 76 | "babel-plugin-transform-flow-strip-types": "^6.22.0", 77 | "coveralls": "^3.0.0", 78 | "cz-conventional-changelog": "^2.0.0", 79 | "del": "^3.0.0", 80 | "del-cli": "^1.1.0", 81 | "eslint": "^4.9.0", 82 | "eslint-config-satya164": "^1.0.1", 83 | "eventsource": "^1.0.5", 84 | "flow-bin": "^0.57.3", 85 | "husky": "^0.14.3", 86 | "jest": "^21.2.1", 87 | "mkdirp": "^0.5.1", 88 | "prettier": "^1.7.4", 89 | "react": "^16.0.0", 90 | "react-dom": "^16.0.0", 91 | "semantic-release": "^8.2.0" 92 | }, 93 | "jest": { 94 | "testRegex": "/__tests__/.*\\.(test|spec)\\.js$", 95 | "testEnvironment": "node" 96 | }, 97 | "config": { 98 | "commitizen": { 99 | "path": "./node_modules/cz-conventional-changelog" 100 | } 101 | } 102 | } 103 | -------------------------------------------------------------------------------- /src/babelrc.js: -------------------------------------------------------------------------------- 1 | /* @flow */ 2 | 3 | const babelrc = { 4 | presets: [ 5 | [ 6 | require.resolve('babel-preset-env'), 7 | { 8 | modules: false, 9 | targets: { 10 | browsers: ['last 2 versions', 'safari >= 7'], 11 | }, 12 | }, 13 | ], 14 | require.resolve('babel-preset-react'), 15 | require.resolve('babel-preset-stage-2'), 16 | ], 17 | env: { 18 | production: { 19 | plugins: [ 20 | require.resolve('babel-plugin-transform-react-constant-elements'), 21 | require.resolve('babel-plugin-transform-react-inline-elements'), 22 | ], 23 | }, 24 | }, 25 | }; 26 | 27 | export default babelrc; 28 | -------------------------------------------------------------------------------- /src/bundler.js: -------------------------------------------------------------------------------- 1 | /* @flow */ 2 | 3 | import bundler from './configure-bundler'; 4 | import runCompilerAsync from './run-compiler-async'; 5 | 6 | export default async function(options: *) { 7 | const compiler = await bundler({ 8 | ...options, 9 | devtool: options.sourcemaps ? 'source-map' : null, 10 | }); 11 | const status = await runCompilerAsync(compiler); 12 | 13 | if (options.quiet !== false) { 14 | console.log(status.toString('errors-only')); 15 | } 16 | 17 | const result = status.toJson(); 18 | 19 | if (result.errors.length) { 20 | throw result.errors; 21 | } 22 | 23 | return result; 24 | } 25 | -------------------------------------------------------------------------------- /src/configure-bundler.js: -------------------------------------------------------------------------------- 1 | /* @flow */ 2 | 3 | import fs from 'fs'; 4 | import path from 'path'; 5 | import webpack from 'webpack'; 6 | import configure from './configure-webpack'; 7 | import existsFileAsync from './exists-file-async'; 8 | 9 | export default async function(options: *) { 10 | const WORKINGDIR = options.root; 11 | const OUTPUTFILE = options.output || '[name].bundle.js'; 12 | 13 | if (!options.entry.length) { 14 | throw new Error('No entry file specified!'); 15 | } 16 | 17 | const files = await Promise.all( 18 | options.entry.map(f => existsFileAsync(fs, path.join(WORKINGDIR, f))) 19 | ); 20 | 21 | const entry = {}; 22 | 23 | for (const f of files) { 24 | entry[path.basename(f, '.js')] = f; 25 | } 26 | 27 | return webpack( 28 | configure({ 29 | context: WORKINGDIR, 30 | devtool: options.devtool ? options.devtool : false, 31 | production: options.production, 32 | output: { 33 | path: WORKINGDIR, 34 | filename: OUTPUTFILE, 35 | sourceMapFilename: '[file].map', 36 | }, 37 | plugins: options.common 38 | ? [ 39 | new webpack.optimize.CommonsChunkPlugin({ 40 | name: 'common', 41 | filename: options.common, 42 | }), 43 | ] 44 | : null, 45 | entry, 46 | }) 47 | ); 48 | } 49 | -------------------------------------------------------------------------------- /src/configure-webpack.js: -------------------------------------------------------------------------------- 1 | /* @flow */ 2 | 3 | import path from 'path'; 4 | import webpack from 'webpack'; 5 | import ExtractTextPlugin from 'extract-text-webpack-plugin'; 6 | import babelrc from './babelrc'; 7 | 8 | type Options = { 9 | context: string, 10 | plugins?: ?Array<*>, 11 | entry: { [key: string]: string }, 12 | output: { 13 | path: string, 14 | filename: string, 15 | sourceMapFilename?: string, 16 | }, 17 | devtool: string | false, 18 | production: boolean, 19 | }; 20 | 21 | const CURRENTDIR = path.join(__dirname, '..'); 22 | 23 | const BABEL_LOADER = { 24 | loader: 'babel-loader', 25 | options: babelrc, 26 | }; 27 | const URL_LOADER = { 28 | loader: 'url-loader', 29 | options: { 30 | limit: 25000, 31 | }, 32 | }; 33 | const RESOLVE_URL = 'resolve-url-loader'; 34 | const STYLE_LOADER = 'style-loader'; 35 | const CSS_LOADER = { 36 | loader: 'css-loader', 37 | options: { 38 | sourceMap: true, 39 | }, 40 | }; 41 | const POSTCSS_LOADER = { 42 | loader: 'postcss-loader', 43 | options: { 44 | ident: 'postcss-options', 45 | plugins: () => [require('autoprefixer')], 46 | sourceMap: true, 47 | }, 48 | }; 49 | 50 | export default (options: Options) => ({ 51 | context: options.context, 52 | entry: options.entry, 53 | output: options.output, 54 | devtool: options.devtool, 55 | 56 | plugins: [ 57 | new webpack.NoEmitOnErrorsPlugin(), 58 | new webpack.DefinePlugin({ 59 | 'process.env': { 60 | NODE_ENV: options.production ? '"production"' : '"developement"', 61 | }, 62 | }), 63 | new webpack.LoaderOptionsPlugin({ 64 | minimize: !!options.production, 65 | debug: !options.production, 66 | }), 67 | ] 68 | .concat( 69 | options.production 70 | ? [ 71 | new webpack.optimize.UglifyJsPlugin({ 72 | compress: { warnings: false }, 73 | sourceMap: !!options.devtool, 74 | }), 75 | new ExtractTextPlugin({ 76 | filename: 'style.css', 77 | }), 78 | ] 79 | : [new webpack.NamedModulesPlugin()] 80 | ) 81 | .concat(options.plugins || []), 82 | 83 | module: { 84 | rules: [ 85 | { 86 | test: /\.js$/, 87 | exclude: /node_modules/, 88 | use: BABEL_LOADER, 89 | }, 90 | { 91 | test: /\.(gif|jpg|png|webp|svg)$/, 92 | use: URL_LOADER, 93 | }, 94 | { 95 | test: /\.css$/, 96 | use: options.production 97 | ? ExtractTextPlugin.extract({ 98 | fallback: 'style-loader', 99 | use: [CSS_LOADER, RESOLVE_URL, POSTCSS_LOADER], 100 | }) 101 | : [STYLE_LOADER, CSS_LOADER, RESOLVE_URL, POSTCSS_LOADER], 102 | }, 103 | ], 104 | }, 105 | 106 | resolveLoader: { 107 | modules: [ 108 | path.join(CURRENTDIR, 'node_modules'), 109 | path.join(options.context, 'node_modules'), 110 | ], 111 | }, 112 | 113 | resolve: { 114 | modules: [ 115 | path.join(CURRENTDIR, 'node_modules'), 116 | path.join(options.context, 'node_modules'), 117 | ], 118 | }, 119 | 120 | devServer: { 121 | stats: { 122 | colors: true, 123 | chunks: false, 124 | }, 125 | }, 126 | }); 127 | -------------------------------------------------------------------------------- /src/exists-file-async.js: -------------------------------------------------------------------------------- 1 | /* @flow */ 2 | 3 | export default function(fs: *, file: string): Promise { 4 | return new Promise((resolve, reject) => { 5 | fs.access(file, fs.R_OK, error => { 6 | if (error) { 7 | reject(error); 8 | } else { 9 | resolve(file); 10 | } 11 | }); 12 | }); 13 | } 14 | -------------------------------------------------------------------------------- /src/format-error.js: -------------------------------------------------------------------------------- 1 | /* @flow */ 2 | 3 | export default function(error: Error) { 4 | return ` 5 | /* show error response on build fail */ 6 | document.body.onload = function() { 7 | document.body.style.background = 'rgb(255, 221, 221)'; 8 | document.body.style.color = 'rgb(0, 0, 0)'; 9 | document.body.style.padding = '10px'; 10 | document.body.style.whiteSpace = 'pre'; 11 | document.body.style.fontFamily = 'monospace'; 12 | 13 | document.body.textContent = '${error 14 | .toString() 15 | .replace(/\\/g, '\\\\') 16 | .replace(/'/g, "\\'") 17 | .replace(/\n/g, '\\n')}'; 18 | } 19 | `; 20 | } 21 | -------------------------------------------------------------------------------- /src/format-html.js: -------------------------------------------------------------------------------- 1 | /* @flow */ 2 | 3 | export default function(script: string) { 4 | return ` 5 | 6 | 7 | 8 | 9 | 10 | 11 | Quik Playground 12 | 13 | 14 |
15 | 16 | 17 | 18 | 19 | `; 20 | } 21 | -------------------------------------------------------------------------------- /src/html.js: -------------------------------------------------------------------------------- 1 | /* @flow */ 2 | 3 | import path from 'path'; 4 | import fs from 'fs'; 5 | import cheerio from 'cheerio'; 6 | import MemoryFS from 'memory-fs'; 7 | import readFileAsync from './read-file-async'; 8 | import writeFileAsync from './write-file-async'; 9 | import bundler from './configure-bundler'; 10 | import runCompilerAsync from './run-compiler-async'; 11 | import formatHTML from './format-html'; 12 | 13 | export default async function(options: *) { 14 | const isRemote = uri => /^((https?:)?\/\/)/.test(uri); 15 | const ignoreTranspile = uri => /(\?|\?.+&)transpile=false/.test(uri); 16 | const ignoreInline = uri => /(\?|\?.+&)inline=false/.test(uri); 17 | 18 | const compile = async compiler => { 19 | const memoryFs = new MemoryFS(); 20 | 21 | compiler.outputFileSystem = memoryFs; 22 | 23 | const status = await runCompilerAsync(compiler); 24 | 25 | if (options.quiet !== false) { 26 | console.log(status.toString('errors-only')); 27 | } 28 | 29 | const result = status.toJson(); 30 | 31 | if (result.errors.length) { 32 | throw result.errors; 33 | } 34 | 35 | return await readFileAsync(memoryFs, path.join(options.root, 'output.js')); 36 | }; 37 | 38 | let result; 39 | 40 | if (options.entry) { 41 | result = await readFileAsync(fs, path.join(options.root, options.entry)); 42 | } else { 43 | result = formatHTML(options.js || 'index.js'); 44 | } 45 | 46 | const $ = cheerio.load(result); 47 | 48 | await Promise.all( 49 | $('script') 50 | .map(async (i, el) => { 51 | const src = $(el).attr('src'); 52 | 53 | if (isRemote(src) || ignoreInline(src)) { 54 | return null; 55 | } 56 | 57 | let content; 58 | 59 | if (ignoreTranspile(src)) { 60 | content = await readFileAsync( 61 | fs, 62 | path.join(options.root, src.split('?')[0]) 63 | ); 64 | } else { 65 | const parent = options.entry 66 | ? path.dirname(path.join(options.root, options.entry)) 67 | : options.root; 68 | const compiler = await bundler({ 69 | devtool: options.sourcemaps ? 'inline-source-map' : false, 70 | root: options.root, 71 | entry: ['./' + path.relative(options.root, path.join(parent, src))], 72 | output: 'output.js', 73 | production: options.production, 74 | }); 75 | content = await compile(compiler); 76 | } 77 | 78 | $(el).attr('src', null); 79 | $(el).text(content); 80 | 81 | return src; 82 | }) 83 | .get() 84 | ); 85 | 86 | await Promise.all( 87 | $('link[rel=stylesheet]') 88 | .map(async (i, el) => { 89 | const src = $(el).attr('href'); 90 | 91 | if (isRemote(src) || ignoreInline(src)) { 92 | return null; 93 | } 94 | 95 | const content = await readFileAsync( 96 | fs, 97 | path.join(options.root, src.split('?')[0]) 98 | ); 99 | const $style = $('