├── template ├── Procfile ├── .prettierrc ├── frontend │ ├── src │ │ ├── react-app-env.d.ts │ │ ├── setupTests.ts │ │ ├── index.css │ │ ├── index.tsx │ │ ├── App.css │ │ ├── session.ts │ │ ├── logo.svg │ │ ├── App.test.tsx │ │ ├── App.tsx │ │ └── serviceWorker.ts │ ├── public │ │ ├── favicon.ico │ │ ├── manifest.json │ │ └── index.html │ ├── tsconfig.json │ └── package.json ├── types │ ├── index.d.ts │ └── package.json ├── .travis.yml ├── backend │ ├── server │ │ ├── config.ts │ │ ├── items │ │ │ ├── item.model.ts │ │ │ ├── items.controller.ts │ │ │ └── items.test.ts │ │ ├── server.ts │ │ ├── app.ts │ │ └── users │ │ │ ├── user.model.ts │ │ │ ├── users.controller.ts │ │ │ └── users.test.ts │ ├── .env.example │ ├── types.d.ts │ ├── tsconfig.json │ ├── webpack.config.js │ ├── scripts │ │ └── populateDatabase.ts │ └── package.json ├── .gitignore ├── tslint.json ├── package.json ├── README.md └── yarn.lock ├── .travis.yml ├── src ├── __tests__ │ └── create-mern-ts-app.test.js └── create-mern-ts-app.js ├── .eslintrc.json ├── .gitignore ├── e2e.js ├── package.json ├── LICENSE └── README.md /template/Procfile: -------------------------------------------------------------------------------- 1 | web: yarn serve 2 | -------------------------------------------------------------------------------- /template/.prettierrc: -------------------------------------------------------------------------------- 1 | { 2 | "printWidth": 140, 3 | "trailingComma": "es5" 4 | } 5 | -------------------------------------------------------------------------------- /template/frontend/src/react-app-env.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- 1 | language: node_js 2 | node_js: 3 | - 10 4 | - 8 5 | script: 6 | - yarn test 7 | - yarn e2e 8 | -------------------------------------------------------------------------------- /src/__tests__/create-mern-ts-app.test.js: -------------------------------------------------------------------------------- 1 | test('test for truthy', () => { 2 | expect(true).toBeTruthy(); 3 | }); 4 | -------------------------------------------------------------------------------- /template/frontend/public/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Fabianopb/create-mern-ts-app/HEAD/template/frontend/public/favicon.ico -------------------------------------------------------------------------------- /template/types/index.d.ts: -------------------------------------------------------------------------------- 1 | 2 | declare module App { 3 | 4 | interface Item { 5 | name: string; 6 | value: number; 7 | } 8 | 9 | } 10 | -------------------------------------------------------------------------------- /template/frontend/src/setupTests.ts: -------------------------------------------------------------------------------- 1 | import { configure } from "enzyme"; 2 | import Adapter from "enzyme-adapter-react-16"; 3 | import "jest-localstorage-mock"; 4 | 5 | configure({ adapter: new Adapter() }); 6 | -------------------------------------------------------------------------------- /template/.travis.yml: -------------------------------------------------------------------------------- 1 | language: node_js 2 | node_js: 3 | - 10 4 | - 8 5 | services: 6 | - mongodb 7 | env: 8 | - AUTH_SHARED_SECRET=auth-shared-secret 9 | script: 10 | - yarn lint 11 | - yarn test 12 | -------------------------------------------------------------------------------- /template/types/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "@types/app-shared-types", 3 | "version": "1.0.0", 4 | "description": "Shared types between backend and frontend", 5 | "main": "index.d.ts", 6 | "typeScriptVersion": "3" 7 | } 8 | -------------------------------------------------------------------------------- /template/backend/server/config.ts: -------------------------------------------------------------------------------- 1 | import * as jwt from "express-jwt"; 2 | 3 | // A-ha! So this is where the AUTH_SHARED_SECRET from .env is used! 4 | export const authorize = jwt({ 5 | secret: process.env.AUTH_SHARED_SECRET 6 | }); 7 | -------------------------------------------------------------------------------- /.eslintrc.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "standard", 3 | "rules": { 4 | "semi": ["error", "always"], 5 | "space-before-function-paren": ["error", "never"] 6 | }, 7 | "env": { 8 | "jest": true 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /template/backend/.env.example: -------------------------------------------------------------------------------- 1 | # Example of environment variables file 2 | # You need a .env file that will be gitignored 3 | 4 | # These are the environment variables needed for this application. 5 | # Change the values according to your environment: 6 | 7 | AUTH_SHARED_SECRET=auth-shared-secret 8 | -------------------------------------------------------------------------------- /template/.gitignore: -------------------------------------------------------------------------------- 1 | # dependencies 2 | node_modules 3 | 4 | # misc 5 | .DS_Store 6 | .env 7 | .env.local 8 | .env.development.local 9 | .env.test.local 10 | .env.production.local 11 | 12 | # testing 13 | coverage 14 | 15 | # production 16 | build 17 | 18 | npm-debug.log* 19 | yarn-debug.log* 20 | yarn-error.log* 21 | -------------------------------------------------------------------------------- /template/backend/types.d.ts: -------------------------------------------------------------------------------- 1 | import { SchemaTypeOpts } from "mongoose"; 2 | 3 | type SchemaPropType = T extends string 4 | ? StringConstructor 5 | : T extends number 6 | ? NumberConstructor 7 | : T extends boolean 8 | ? BooleanConstructor 9 | : any; 10 | 11 | export type SchemaDef = { [K in keyof T]: SchemaTypeOpts> }; 12 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # dependencies 2 | node_modules 3 | 4 | # misc 5 | .DS_Store 6 | .env 7 | .env.local 8 | .env.development.local 9 | .env.test.local 10 | .env.production.local 11 | 12 | # testing 13 | coverage 14 | 15 | # dev 16 | sample-app 17 | 18 | # production 19 | build 20 | 21 | npm-debug.log* 22 | yarn-debug.log* 23 | yarn-error.log* 24 | 25 | # Webstorm IDE files 26 | .idea 27 | -------------------------------------------------------------------------------- /template/tslint.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": ["tslint:recommended", "tslint-react", "tslint-config-prettier"], 3 | "rules": { 4 | "ordered-imports": false, 5 | "interface-name": false, 6 | "object-literal-sort-keys": false, 7 | "max-line-length": [true, 140], 8 | "no-console": false, 9 | "arrow-parens": false, 10 | "jsx-no-lambda": false 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /template/frontend/public/manifest.json: -------------------------------------------------------------------------------- 1 | { 2 | "short_name": "React App", 3 | "name": "Create React App Sample", 4 | "icons": [ 5 | { 6 | "src": "favicon.ico", 7 | "sizes": "64x64 32x32 24x24 16x16", 8 | "type": "image/x-icon" 9 | } 10 | ], 11 | "start_url": ".", 12 | "display": "standalone", 13 | "theme_color": "#000000", 14 | "background_color": "#ffffff" 15 | } 16 | -------------------------------------------------------------------------------- /template/frontend/src/index.css: -------------------------------------------------------------------------------- 1 | body { 2 | margin: 0; 3 | padding: 0; 4 | font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 5 | 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', 6 | sans-serif; 7 | -webkit-font-smoothing: antialiased; 8 | -moz-osx-font-smoothing: grayscale; 9 | } 10 | 11 | code { 12 | font-family: source-code-pro, Menlo, Monaco, Consolas, 'Courier New', 13 | monospace; 14 | } 15 | -------------------------------------------------------------------------------- /template/backend/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "module": "commonjs", 4 | "noImplicitAny": true, 5 | "target": "es6", 6 | "outDir": "build", 7 | "rootDir": "./", 8 | "sourceMap": true, 9 | "baseUrl": ".", 10 | "moduleResolution": "node", 11 | "removeComments": true, 12 | "typeRoots": [ "node_modules/@types" ], 13 | "paths": { 14 | "*": [ 15 | "node_modules/@types/*", 16 | "./server/types/*" 17 | ] 18 | } 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /template/frontend/src/index.tsx: -------------------------------------------------------------------------------- 1 | import React from "react"; 2 | import ReactDOM from "react-dom"; 3 | import App from "./App"; 4 | import "./index.css"; 5 | import * as serviceWorker from "./serviceWorker"; 6 | 7 | ReactDOM.render(, document.getElementById("root")); 8 | 9 | // If you want your app to work offline and load faster, you can change 10 | // unregister() to register() below. Note this comes with some pitfalls. 11 | // Learn more about service workers: http://bit.ly/CRA-PWA 12 | serviceWorker.unregister(); 13 | -------------------------------------------------------------------------------- /e2e.js: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env node 2 | const chalk = require('chalk'); 3 | const cp = require('child_process'); 4 | 5 | (() => { 6 | console.log(chalk.cyan('creating sample from template...')); 7 | cp.execSync('yarn create-sample', { stdio: 'inherit' }); 8 | console.log(chalk.cyan('linting and testing...')); 9 | cp.execSync('yarn lint', { cwd: 'sample-app', stdio: 'inherit' }); 10 | cp.execSync('yarn test', { cwd: 'sample-app', stdio: 'inherit' }); 11 | console.log(chalk.cyan('cleaning sample...')); 12 | cp.execSync('yarn clean', { stdio: 'inherit' }); 13 | })(); 14 | -------------------------------------------------------------------------------- /template/backend/server/items/item.model.ts: -------------------------------------------------------------------------------- 1 | import { Document, model, Schema } from "mongoose"; 2 | import { SchemaDef } from "../../types"; 3 | 4 | // Declare model interface 5 | interface ItemDoc extends App.Item, Document {} 6 | 7 | const itemSchemaDef: SchemaDef = { 8 | name: { 9 | type: String, 10 | required: true 11 | }, 12 | value: { 13 | type: Number, 14 | required: true 15 | } 16 | }; 17 | 18 | // Define model schema 19 | const itemSchema = new Schema(itemSchemaDef); 20 | 21 | export default model("Item", itemSchema); 22 | -------------------------------------------------------------------------------- /template/backend/server/server.ts: -------------------------------------------------------------------------------- 1 | import * as mongoose from "mongoose"; 2 | import populateDatabase from "../scripts/populateDatabase"; 3 | import app from "./app"; 4 | 5 | const url = process.env.MONGODB_URI || "mongodb://localhost:27017/test_database"; 6 | const port = process.env.PORT || 9000; 7 | 8 | (async () => { 9 | // Connect to the database 10 | await mongoose.connect(url, { useNewUrlParser: true }); 11 | // Populate database with sample data if it's empty 12 | await populateDatabase(); 13 | // Start express App 14 | app.listen(port); 15 | console.log(`App listening on port ${port}...`); 16 | })(); 17 | -------------------------------------------------------------------------------- /template/frontend/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "target": "es5", 4 | "lib": [ 5 | "dom", 6 | "dom.iterable", 7 | "esnext" 8 | ], 9 | "allowJs": true, 10 | "skipLibCheck": true, 11 | "esModuleInterop": true, 12 | "allowSyntheticDefaultImports": true, 13 | "strict": true, 14 | "forceConsistentCasingInFileNames": true, 15 | "module": "esnext", 16 | "moduleResolution": "node", 17 | "resolveJsonModule": true, 18 | "isolatedModules": true, 19 | "noEmit": true, 20 | "jsx": "preserve" 21 | }, 22 | "include": [ 23 | "src" 24 | ] 25 | } 26 | -------------------------------------------------------------------------------- /template/backend/server/items/items.controller.ts: -------------------------------------------------------------------------------- 1 | import * as bodyParser from "body-parser"; 2 | import * as express from "express"; 3 | import { authorize } from "../config"; 4 | import Item from "./item.model"; 5 | 6 | const router = express.Router(); 7 | 8 | router.route("/").get(authorize, async (_, response) => { 9 | const items = await Item.find(); 10 | return response.status(200).json(items); 11 | }); 12 | 13 | router.route("/").post(authorize, bodyParser.json(), async (request, response) => { 14 | try { 15 | const item = new Item(request.body); 16 | await item.save(); 17 | return response.status(200).json("Item saved!"); 18 | } catch (error) { 19 | return response.status(400).send(error); 20 | } 21 | }); 22 | 23 | export default router; 24 | -------------------------------------------------------------------------------- /template/frontend/src/App.css: -------------------------------------------------------------------------------- 1 | .App { 2 | text-align: center; 3 | } 4 | 5 | .App-logo { 6 | animation: App-logo-spin infinite 20s linear; 7 | height: 80px; 8 | } 9 | 10 | .App-header { 11 | background-color: #222; 12 | height: 150px; 13 | padding: 20px; 14 | color: white; 15 | } 16 | 17 | .App-title { 18 | font-size: 1.5em; 19 | } 20 | 21 | .App-private { 22 | margin: 8px; 23 | display: flex; 24 | flex-direction: column; 25 | align-items: center; 26 | } 27 | 28 | .App-login { 29 | margin: 8px; 30 | display: flex; 31 | flex-direction: column; 32 | align-items: center; 33 | } 34 | 35 | input, button { 36 | margin: 8px; 37 | width: 300px; 38 | } 39 | 40 | .App-error { 41 | margin-top: 8px; 42 | color: darkred; 43 | } 44 | 45 | @keyframes App-logo-spin { 46 | from { transform: rotate(0deg); } 47 | to { transform: rotate(360deg); } 48 | } 49 | -------------------------------------------------------------------------------- /template/backend/webpack.config.js: -------------------------------------------------------------------------------- 1 | const fs = require("fs"); 2 | const path = require("path"); 3 | const NodemonPlugin = require("nodemon-webpack-plugin"); 4 | 5 | const nodeModules = {}; 6 | fs.readdirSync("node_modules") 7 | .filter(function(x) { 8 | return [".bin"].indexOf(x) === -1; 9 | }) 10 | .forEach(function(mod) { 11 | nodeModules[mod] = "commonjs " + mod; 12 | }); 13 | 14 | module.exports = { 15 | entry: "./server/server.ts", 16 | output: { 17 | path: path.join(__dirname, "/build"), 18 | filename: "server.js", 19 | }, 20 | resolve: { 21 | extensions: [".webpack.js", ".web.js", ".ts", ".tsx", ".js"], 22 | }, 23 | module: { 24 | loaders: [ 25 | { 26 | test: /\.tsx?$/, 27 | loader: "ts-loader", 28 | }, 29 | ], 30 | }, 31 | target: "node", 32 | externals: nodeModules, 33 | plugins: [new NodemonPlugin()], 34 | }; 35 | -------------------------------------------------------------------------------- /template/frontend/src/session.ts: -------------------------------------------------------------------------------- 1 | // Set the session in the local storage 2 | export const setSession = (token: string, expiry: string): void => { 3 | localStorage.setItem("token", token); 4 | localStorage.setItem("expiry", expiry); 5 | }; 6 | 7 | // Clear the session from the local storage 8 | export const clearSession = (): void => { 9 | localStorage.removeItem("token"); 10 | localStorage.removeItem("expiry"); 11 | }; 12 | 13 | // Checks if the session is valid (locally) according to the expiration time 14 | export const isSessionValid = (): boolean => { 15 | const expiry = localStorage.getItem("expiry"); 16 | if (expiry) { 17 | return +new Date(expiry) > +new Date(); 18 | } 19 | return false; 20 | }; 21 | 22 | // Creates the authorization header using the bearer token 23 | export const getAuthHeaders = () => ({ 24 | Authorization: `Bearer ${localStorage.getItem("token")}`, 25 | }); 26 | -------------------------------------------------------------------------------- /template/backend/server/app.ts: -------------------------------------------------------------------------------- 1 | import * as dotenv from "dotenv"; 2 | import * as express from "express"; 3 | import * as path from "path"; 4 | 5 | // Put dotenv in use before importing controllers 6 | dotenv.config(); 7 | 8 | // Import controllers 9 | import itemsController from "./items/items.controller"; 10 | import usersController from "./users/users.controller"; 11 | 12 | // Create the express application 13 | const app = express(); 14 | 15 | // Assign controllers to routes 16 | app.use("/api/items", itemsController); 17 | app.use("/api/users", usersController); 18 | 19 | // Declare the path to frontend's static assets 20 | app.use(express.static(path.resolve("..", "frontend", "build"))); 21 | 22 | // Intercept requests to return the frontend's static entry point 23 | app.get("*", (_, response) => { 24 | response.sendFile(path.resolve("..", "frontend", "build", "index.html")); 25 | }); 26 | 27 | export default app; 28 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "create-mern-ts-app", 3 | "bin": "./src/create-mern-ts-app.js", 4 | "version": "1.3.7", 5 | "license": "MIT", 6 | "engines": { 7 | "node": "8.* || >= 10.*", 8 | "yarn": ">=1.*" 9 | }, 10 | "jest": { 11 | "testMatch": [ 12 | "/src/__tests__/*" 13 | ] 14 | }, 15 | "dependencies": { 16 | "chalk": "^2.4.1", 17 | "fs-extra": "^7.0.0" 18 | }, 19 | "devDependencies": { 20 | "eslint": "^5.16.0", 21 | "eslint-config-standard": "^12.0.0", 22 | "eslint-plugin-import": "^2.14.0", 23 | "eslint-plugin-node": "^7.0.1", 24 | "eslint-plugin-promise": "^4.0.1", 25 | "eslint-plugin-standard": "^4.0.0", 26 | "jest": "24.7.1", 27 | "rimraf": "^2.6.3" 28 | }, 29 | "scripts": { 30 | "create-sample": "rimraf sample-app && node src/create-mern-ts-app.js sample-app", 31 | "test": "jest", 32 | "e2e": "node e2e.js", 33 | "clean": "rimraf sample-app" 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2018 Fabiano Brito 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Project deprecated 2 | 3 | This project will be **no longer maintained** and is now replaced for a much stronger and leaner generator for Fullstack applications in React. Please check: 4 | 5 | * [create-fullstack-react-app](https://github.com/Fabianopb/create-fullstack-react-app) 6 | 7 | _______ 8 | 9 | # create-mern-ts-app 10 | 11 | ![](https://img.shields.io/npm/v/create-mern-ts-app.svg) ![](https://img.shields.io/travis/com/Fabianopb/create-mern-ts-app.svg) ![](https://img.shields.io/npm/dt/create-mern-ts-app.svg) ![](https://img.shields.io/github/license/Fabianopb/create-mern-ts-app.svg) 12 | 13 | Create a Mongo-Express-React-Node Application written in TypeScript out of the box. 14 | 15 | Generate your app 16 | ``` 17 | $ npx create-mern-ts-app my-app 18 | 19 | $ cd my-app 20 | ``` 21 | 22 | Run your mongo instance locally, as for example 23 | ``` 24 | $ sudo mongod --dbpath /data/my-app/ --port 27017 25 | ``` 26 | 27 | Launch both backend and frontend simply running 28 | ``` 29 | $ yarn start 30 | ``` 31 | 32 | ## CI/CD 33 | 34 | The application is ready to be tested with Travis and deployed to Heroku. Read more at [Fullstack Express-React App With TypeScript](https://medium.com/@fabianopb/fullstack-express-react-app-with-typescript-5a103e19821e) 35 | 36 | ## License 37 | 38 | MIT 39 | -------------------------------------------------------------------------------- /template/backend/scripts/populateDatabase.ts: -------------------------------------------------------------------------------- 1 | import chalk from "chalk"; 2 | import Item from "../server/items/item.model"; 3 | import User from "../server/users/user.model"; 4 | 5 | const populateDatabase = async () => { 6 | try { 7 | const users = await User.find({}); 8 | const items = await Item.find({}); 9 | if (users.length === 0 && items.length === 0) { 10 | console.log(chalk.yellow("No users or items in the database, creating sample data...")); 11 | const user = new User(); 12 | user.email = "testuser@email.com"; 13 | user.setPassword("my-password"); 14 | await user.save(); 15 | console.log(chalk.green("Sample user successfuly created!")); 16 | const newItems = [ 17 | { name: "Paper clip", value: 0.1 }, 18 | { name: "Colorful pen", value: 1.2 }, 19 | { name: "Notebook", value: 2.5 }, 20 | { name: "Soft eraser", value: 0.5 }, 21 | { name: "Table lamp", value: 5.1 } 22 | ]; 23 | await Item.insertMany(newItems); 24 | console.log(chalk.green(`${newItems.length} item(s) successfuly created!`)); 25 | } else { 26 | console.log(chalk.yellow("Database already initiated, skipping populating script")); 27 | } 28 | } catch (error) { 29 | console.log(chalk.red(error)); 30 | } 31 | }; 32 | 33 | export default populateDatabase; 34 | -------------------------------------------------------------------------------- /template/frontend/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "react-frontend", 3 | "version": "0.1.0", 4 | "private": true, 5 | "proxy": "http://localhost:9000", 6 | "engines": { 7 | "node": "8.* || >= 10.*", 8 | "yarn": ">=1.*" 9 | }, 10 | "jest": { 11 | "collectCoverageFrom": [ 12 | "src/**/*.{ts,tsx}", 13 | "!src/**/*.d.ts", 14 | "!src/index.tsx", 15 | "!src/serviceWorker.ts", 16 | "!src/setupTests.ts" 17 | ] 18 | }, 19 | "eslintConfig": { 20 | "extends": "react-app" 21 | }, 22 | "browserslist": [ 23 | ">0.2%", 24 | "not dead", 25 | "not ie <= 11", 26 | "not op_mini all" 27 | ], 28 | "dependencies": { 29 | "axios": "^0.19.0", 30 | "react": "^16.8.6", 31 | "react-dom": "^16.8.6", 32 | "react-scripts": "^3.0.1" 33 | }, 34 | "devDependencies": { 35 | "@types/app-shared-types": "link:../types", 36 | "@types/enzyme": "^3.1.17", 37 | "@types/enzyme-adapter-react-16": "^1.0.4", 38 | "@types/jest": "^24.0.11", 39 | "@types/node": "^11.13.8", 40 | "@types/react": "^16.8.14", 41 | "@types/react-dom": "^16.8.4", 42 | "axios-mock-adapter": "^1.16.0", 43 | "enzyme": "^3.8.0", 44 | "enzyme-adapter-react-16": "^1.9.1", 45 | "jest-localstorage-mock": "^2.4.0", 46 | "tslint": "^5.16.0", 47 | "typescript": "^3.4.5" 48 | }, 49 | "scripts": { 50 | "start": "react-scripts start", 51 | "build": "react-scripts build", 52 | "postinstall": "yarn build", 53 | "lint": "tslint -c ../tslint.json -p ./tsconfig.json", 54 | "test": "react-scripts test --coverage --watchAll=false", 55 | "test:watch": "react-scripts test --coverage --watchAll" 56 | } 57 | } 58 | -------------------------------------------------------------------------------- /template/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "create-mern-ts-app", 3 | "version": "1.0.0", 4 | "private": true, 5 | "engines": { 6 | "node": "8.* || >= 10.*", 7 | "yarn": ">=1" 8 | }, 9 | "devDependencies": { 10 | "concurrently": "^4.0.1", 11 | "husky": "^2.3.0", 12 | "lint-staged": "^8.1.7", 13 | "prettier": "^1.17.1", 14 | "tslint": "^5.16.0", 15 | "tslint-config-prettier": "^1.18.0", 16 | "tslint-react": "^4.0.0", 17 | "typescript": "^3.4.5" 18 | }, 19 | "husky": { 20 | "hooks": { 21 | "pre-commit": "lint-staged" 22 | } 23 | }, 24 | "lint-staged": { 25 | "*.{tsx,ts,js,scss}": [ 26 | "prettier --write", 27 | "git add" 28 | ] 29 | }, 30 | "scripts": { 31 | "install": "yarn install:backend && yarn install:frontend", 32 | "install:backend": "cd backend && yarn install", 33 | "install:frontend": "cd frontend && yarn install", 34 | "build": "yarn build:backend && yarn build:frontend", 35 | "build:backend": "cd backend && yarn build", 36 | "build:frontend": "cd frontend && yarn build", 37 | "start": "concurrently \"yarn start:backend\" \"yarn start:frontend\"", 38 | "start:db": "sudo mongod --dbpath /data/test/ --port 27017", 39 | "start:backend": "cd backend && yarn start", 40 | "start:frontend": "cd frontend && yarn start", 41 | "lint": "yarn lint:backend && yarn lint:frontend", 42 | "lint:backend": "cd backend && yarn lint", 43 | "lint:frontend": "cd frontend && yarn lint", 44 | "test": "yarn test:backend && yarn test:frontend", 45 | "test:backend": "cd backend && yarn test", 46 | "test:frontend": "cd frontend && yarn test", 47 | "serve": "cd backend && node build/server.js" 48 | } 49 | } 50 | -------------------------------------------------------------------------------- /template/frontend/public/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 10 | 11 | 15 | 16 | 25 | React App 26 | 27 | 28 | 29 |
30 | 40 | 41 | 42 | -------------------------------------------------------------------------------- /src/create-mern-ts-app.js: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env node 2 | const chalk = require('chalk'); 3 | const cp = require('child_process'); 4 | const fs = require('fs-extra'); 5 | const path = require('path'); 6 | const crypto = require('crypto'); 7 | 8 | function useYarn() { 9 | try { 10 | cp.execSync('yarnpkg --version', { stdio: 'ignore' }); 11 | console.log(chalk.cyan('Yarn found! You\'re good to go!')); 12 | } catch (e) { 13 | console.log(chalk.red('Yarn not found. Please go to https://yarnpkg.com/ install yarn and try again.')); 14 | process.exit(1); 15 | } 16 | } 17 | 18 | function checkProjectName() { 19 | const projectName = process.argv[2]; 20 | if (!projectName) { 21 | console.log(chalk.red('Project name has to be specified. Try for example:')); 22 | console.log(` ${chalk.cyan('create-mern-ts-app')} ${chalk.yellow('my-app')}\n`); 23 | process.exit(1); 24 | } 25 | return projectName; 26 | } 27 | 28 | function createProjectTemplate(projectName) { 29 | const srcRoot = path.join(__dirname, '../template/'); 30 | const destRoot = path.resolve(projectName); 31 | console.log(chalk.cyan('Project will be created at:')); 32 | console.log(chalk.cyan(destRoot + '\n')); 33 | fs.mkdirsSync(destRoot); 34 | fs.copySync(srcRoot, destRoot); 35 | } 36 | 37 | function generateEnvFile(projectName) { 38 | const destRoot = path.resolve(projectName); 39 | const envContents = fs.readFileSync(path.join(destRoot, 'backend', '.env.example'), 'utf8') 40 | .replace(/auth-shared-secret/g, crypto.randomBytes(24).toString('hex')); 41 | fs.writeFileSync(path.join(destRoot, 'backend', '.env'), `# This is an auto-generated file, change at your own will and risk.\n\n${envContents}`); 42 | } 43 | 44 | try { 45 | useYarn(); 46 | const projectName = checkProjectName(); 47 | createProjectTemplate(projectName); 48 | generateEnvFile(projectName); 49 | cp.spawn('yarn', ['install'], { cwd: projectName, stdio: 'inherit' }); 50 | } catch (e) { 51 | console.log(chalk.red(e)); 52 | process.exit(1); 53 | } 54 | -------------------------------------------------------------------------------- /template/backend/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "express-backend", 3 | "version": "0.1.0", 4 | "main": "./build/server.js", 5 | "engines": { 6 | "node": "8.* || >= 10.*", 7 | "yarn": ">=1.*" 8 | }, 9 | "jest": { 10 | "moduleFileExtensions": [ 11 | "ts", 12 | "js" 13 | ], 14 | "transform": { 15 | "^.+\\.(ts|tsx)$": "./node_modules/ts-jest/preprocessor.js" 16 | }, 17 | "testMatch": [ 18 | "/**/*.test.ts" 19 | ], 20 | "collectCoverageFrom": [ 21 | "**/*.ts", 22 | "!**/*.d.ts", 23 | "!server/server.ts", 24 | "!server/app.ts", 25 | "!scripts/*" 26 | ] 27 | }, 28 | "dependencies": { 29 | "body-parser": "^1.18.3", 30 | "dotenv": "^4.0.0", 31 | "express": "^4.16.2", 32 | "express-jwt": "^5.3.1", 33 | "jsonwebtoken": "^8.3.0", 34 | "lodash": "^4.17.14", 35 | "mongoose": "^5.7.5", 36 | "passport": "^0.4.0", 37 | "passport-local": "^1.0.0" 38 | }, 39 | "devDependencies": { 40 | "@types/app-shared-types": "link:../types", 41 | "@types/body-parser": "^1.16.4", 42 | "@types/dotenv": "^4.0.0", 43 | "@types/express": "^4.0.36", 44 | "@types/express-jwt": "^0.0.40", 45 | "@types/jest": "^24.0.15", 46 | "@types/jsonwebtoken": "^7.2.8", 47 | "@types/lodash": "^4.14.116", 48 | "@types/mongodb-memory-server": "^1.8.0", 49 | "@types/mongoose": "^5.2.0", 50 | "@types/node": "^8.0.13", 51 | "@types/passport": "^0.4.5", 52 | "@types/passport-local": "^1.0.33", 53 | "@types/supertest": "^2.0.2", 54 | "chalk": "^2.4.1", 55 | "jest": "^24.8.0", 56 | "mongodb-memory-server": "^2.1.0", 57 | "nodemon-webpack-plugin": "^3.0.1", 58 | "supertest": "^3.0.0", 59 | "ts-jest": "^21.2.4", 60 | "ts-loader": "^3.2.0", 61 | "ts-node": "^3.2.0", 62 | "tslint": "^5.11.0", 63 | "typescript": "^3.1.6", 64 | "webpack": "^3.9.1" 65 | }, 66 | "scripts": { 67 | "start": "webpack --watch", 68 | "build": "webpack --config webpack.config.js", 69 | "lint": "tslint -c ../tslint.json -p ./tsconfig.json", 70 | "test": "jest --coverage --colors", 71 | "test:watch": "jest --coverage --colors --watchAll" 72 | } 73 | } 74 | -------------------------------------------------------------------------------- /template/backend/server/users/user.model.ts: -------------------------------------------------------------------------------- 1 | import { pbkdf2Sync, randomBytes } from "crypto"; 2 | import { sign } from "jsonwebtoken"; 3 | import { Document, model, Schema } from "mongoose"; 4 | import { SchemaDef } from "../../types"; 5 | 6 | interface User { 7 | email: string; 8 | hash: string; 9 | salt: string; 10 | } 11 | // Declare the model interface 12 | interface UserDoc extends User, Document { 13 | setPassword(password: string): void; 14 | isPasswordValid(password: string): boolean; 15 | generateJwt(): { token: string; expiry: Date }; 16 | } 17 | 18 | const userSchemaDef: SchemaDef = { 19 | email: { 20 | type: String, 21 | // Important! We want users to be unique 22 | unique: true, 23 | required: true 24 | }, 25 | hash: { 26 | type: String, 27 | required: true 28 | }, 29 | salt: { 30 | type: String, 31 | required: true 32 | } 33 | }; 34 | 35 | // Declare the model schema 36 | const userSchema = new Schema(userSchemaDef); 37 | 38 | // Define some public methods for our model 39 | class UserClass { 40 | private id: string; 41 | private email: string; 42 | private salt: string; 43 | private hash: string; 44 | 45 | // Create a salt and hash from the password 46 | public setPassword(password: string) { 47 | this.salt = randomBytes(16).toString("hex"); 48 | this.hash = pbkdf2Sync(password, this.salt, 100000, 512, "sha512").toString("hex"); 49 | } 50 | 51 | // Check if hashes match 52 | public isPasswordValid(password: string): boolean { 53 | const hash = pbkdf2Sync(password, this.salt, 100000, 512, "sha512").toString("hex"); 54 | return this.hash === hash; 55 | } 56 | 57 | // Generate access token for 30 minutes 58 | public generateJwt(): { token: string; expiry: Date } { 59 | const expiry = new Date(); 60 | expiry.setMinutes(expiry.getMinutes() + 30); 61 | 62 | const token = sign({ 63 | _id: this.id, 64 | email: this.email, 65 | exp: Math.round(expiry.getTime() / 1000), 66 | }, process.env.AUTH_SHARED_SECRET); 67 | 68 | return { token, expiry }; 69 | } 70 | } 71 | 72 | // Important! Don't forget to use loadClass so your new methods will be included in the model 73 | userSchema.loadClass(UserClass); 74 | 75 | export default model("User", userSchema); 76 | -------------------------------------------------------------------------------- /template/backend/server/users/users.controller.ts: -------------------------------------------------------------------------------- 1 | import * as bodyParser from "body-parser"; 2 | import { Router } from "express"; 3 | import * as mongoose from "mongoose"; 4 | import * as passport from "passport"; 5 | import { Strategy } from "passport-local"; 6 | import { authorize } from "../config"; 7 | import User from "./user.model"; 8 | 9 | passport.use(new Strategy({ usernameField: "email" }, async (username, password, done) => { 10 | try { 11 | // Tries to find the user matching the given username 12 | const user = await User.findOne({ email: username }); 13 | // Check if the password is valid 14 | if (user && user.isPasswordValid(password)) { 15 | return done(null, user); 16 | } else { 17 | // Throws an error if credentials are not valid 18 | throw new Error("Invalid credentials"); 19 | } 20 | } catch (error) { 21 | return done(error); 22 | } 23 | })); 24 | 25 | const router = Router(); 26 | 27 | router.route("/register").post(bodyParser.json(), async (request, response) => { 28 | try { 29 | const user = new User(); 30 | user.email = request.body.email; 31 | // Set the password hash with the method created in the model 32 | user.setPassword(request.body.password); 33 | await user.save(); 34 | // Returns a new token upon registering a user 35 | const tokenSignature = user.generateJwt(); 36 | return response.status(200).json(tokenSignature); 37 | } catch (error) { 38 | return response.status(400).send(error); 39 | } 40 | }); 41 | 42 | router.route("/login").post(bodyParser.json(), (request, response) => { 43 | // Use passport to authenticate user login 44 | passport.authenticate("local", (error, user) => { 45 | if (!user) { 46 | return response.status(400).json({ error: error.message }); 47 | } 48 | // If login is valid generate a token and return it to the user 49 | const tokenSignature = user.generateJwt(); 50 | return response.status(200).json(tokenSignature); 51 | })(request, response); 52 | }); 53 | 54 | // This is an example of a protected route. Notice that we call `authorize` in the first place! 55 | router.route("/profile").get(authorize, async (request, response) => { 56 | const user = await User.findById(request.user._id); 57 | return response.status(200).json(user); 58 | }); 59 | 60 | export default router; 61 | -------------------------------------------------------------------------------- /template/backend/server/items/items.test.ts: -------------------------------------------------------------------------------- 1 | import MongodbMemoryServer from "mongodb-memory-server"; 2 | import * as mongoose from "mongoose"; 3 | import * as request from "supertest"; 4 | import app from "../app"; 5 | import User from "../users/user.model"; 6 | import Item from "./item.model"; 7 | 8 | describe("/api/items tests", () => { 9 | 10 | const mongod = new MongodbMemoryServer(); 11 | let token: string = ""; 12 | 13 | // Connect to mongoose mock, create a test user and get the access token 14 | beforeAll(async () => { 15 | const uri = await mongod.getConnectionString(); 16 | await mongoose.connect(uri, { useNewUrlParser: true }); 17 | const user = new User(); 18 | user.email = "test@email.com"; 19 | user.setPassword("test-password"); 20 | await user.save(); 21 | const response = await request(app) 22 | .post("/api/users/login") 23 | .send({ email: "test@email.com", password: "test-password" }); 24 | token = response.body.token; 25 | }); 26 | 27 | // Remove test user, disconnect and stop database 28 | afterAll(async () => { 29 | await User.remove({}); 30 | await mongoose.disconnect(); 31 | await mongod.stop(); 32 | }); 33 | 34 | // Create a sample item 35 | beforeEach(async () => { 36 | const item = new Item(); 37 | item.name = "item name"; 38 | item.value = 1000; 39 | await item.save(); 40 | }); 41 | 42 | // Remove sample items 43 | afterEach(async () => { 44 | await Item.remove({}); 45 | }); 46 | 47 | it("should get items", async () => { 48 | const response = await request(app) 49 | .get("/api/items") 50 | .set("Authorization", `Bearer ${token}`); 51 | expect(response.status).toBe(200); 52 | expect(response.body).toEqual([expect.objectContaining({ name: "item name", value: 1000 })]); 53 | }); 54 | 55 | it("should post items", async () => { 56 | const response = await request(app) 57 | .post("/api/items") 58 | .set("Authorization", `Bearer ${token}`) 59 | .send({ name: "new item", value: 2000 }); 60 | expect(response.status).toBe(200); 61 | expect(response.body).toBe("Item saved!"); 62 | }); 63 | 64 | it("should catch errors when posting items", async () => { 65 | const response = await request(app) 66 | .post("/api/items") 67 | .set("Authorization", `Bearer ${token}`) 68 | .send({}); 69 | expect(response.status).toBe(400); 70 | }); 71 | }); 72 | -------------------------------------------------------------------------------- /template/backend/server/users/users.test.ts: -------------------------------------------------------------------------------- 1 | import * as _ from "lodash"; 2 | import MongodbMemoryServer from "mongodb-memory-server"; 3 | import * as mongoose from "mongoose"; 4 | import * as request from "supertest"; 5 | import app from "../app"; 6 | import User from "./user.model"; 7 | 8 | describe("/api/users tests", () => { 9 | 10 | const mongod = new MongodbMemoryServer(); 11 | const registerNewUser = (): request.Test => { 12 | return request(app) 13 | .post("/api/users/register") 14 | .send({ email: "new@user.com", password: "test-password" }); 15 | }; 16 | 17 | beforeAll(async () => { 18 | const uri = await mongod.getConnectionString(); 19 | await mongoose.connect(uri, { useNewUrlParser: true }); 20 | }); 21 | 22 | afterAll(async () => { 23 | await mongoose.disconnect(); 24 | await mongod.stop(); 25 | }); 26 | 27 | afterEach(async () => { 28 | await User.remove({}); 29 | }); 30 | 31 | it("should register user", async () => { 32 | const response = await registerNewUser(); 33 | expect(response.status).toBe(200); 34 | expect(_.keys(response.body)).toEqual(["token", "expiry"]); 35 | }); 36 | 37 | it("should catch errors when registering user", async () => { 38 | const response = await request(app) 39 | .post("/api/users/register") 40 | .send({}); 41 | expect(response.status).toBe(400); 42 | }); 43 | 44 | it("should login user", async () => { 45 | await registerNewUser(); 46 | const response = await request(app) 47 | .post("/api/users/login") 48 | .send({ email: "new@user.com", password: "test-password" }); 49 | expect(response.status).toBe(200); 50 | expect(_.keys(response.body)).toEqual(["token", "expiry"]); 51 | }); 52 | 53 | it("should return invalid credentials error when login is invalid", async () => { 54 | await registerNewUser(); 55 | const response = await request(app) 56 | .post("/api/users/login") 57 | .send({ email: "new@user.com", password: "wrong-password" }); 58 | expect(response.status).toBe(400); 59 | expect(response.body).toEqual({ error: "Invalid credentials" }); 60 | }); 61 | 62 | it("should get user profile", async () => { 63 | const register = await registerNewUser(); 64 | const response = await request(app) 65 | .get("/api/users/profile") 66 | .set("Authorization", `Bearer ${register.body.token}`); 67 | expect(response.status).toBe(200); 68 | expect(response.body.email).toBe("new@user.com"); 69 | }); 70 | 71 | }); 72 | -------------------------------------------------------------------------------- /template/frontend/src/logo.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /template/frontend/src/App.test.tsx: -------------------------------------------------------------------------------- 1 | import axios from "axios"; 2 | import MockAdapter from "axios-mock-adapter"; 3 | import { shallow } from "enzyme"; 4 | import * as React from "react"; 5 | import App, { AppState } from "./App"; 6 | 7 | let mock: MockAdapter; 8 | const mockItemsResponse = [{ name: "item1", value: 1 }]; 9 | const mockLoginResponse = { expiry: "2020-01-01T10:00:00.000Z", token: "abcd123" }; 10 | const mockUserCredentials = { email: "user-email", password: "user-password" }; 11 | 12 | beforeEach(() => { 13 | mock = new MockAdapter(axios); 14 | localStorage.clear(); 15 | }); 16 | 17 | it("conditionally renders based on session", () => { 18 | const invalidSessionWrapper = shallow(); 19 | expect(invalidSessionWrapper.find("div[className='App-login']")).toHaveLength(1); 20 | const expiry = new Date(); 21 | expiry.setFullYear(expiry.getFullYear() + 1); 22 | localStorage.setItem("expiry", expiry.toISOString()); 23 | const validSessionWrapper = shallow(); 24 | expect(validSessionWrapper.find("div[className='App-private']")).toHaveLength(1); 25 | }); 26 | 27 | it("can handle login", done => { 28 | mock.onPost("/api/users/login", mockUserCredentials).reply(200, mockLoginResponse); 29 | const wrapper = shallow(); 30 | wrapper.find("input[placeholder='email']").simulate("change", { target: { value: mockUserCredentials.email } }); 31 | wrapper.find("input[placeholder='password']").simulate("change", { target: { value: mockUserCredentials.password } }); 32 | wrapper.find("button[children='Log in']").simulate("click"); 33 | setImmediate(() => { 34 | expect(wrapper.state().isLoggedIn).toBe(true); 35 | done(); 36 | }); 37 | }); 38 | 39 | it("can catch login errors", done => { 40 | mock.onPost("/api/users/login").reply(400); 41 | const wrapper = shallow(); 42 | wrapper.setState({ email: "user-email", password: "user-password" }); 43 | wrapper.find("button[children='Log in']").simulate("click"); 44 | setImmediate(() => { 45 | expect(wrapper.state().error).toBe("Something went wrong"); 46 | done(); 47 | }); 48 | }); 49 | 50 | it("can handle logout", () => { 51 | const wrapper = shallow(); 52 | wrapper.setState({ isLoggedIn: true }); 53 | wrapper.find("button[children='Log out']").simulate("click"); 54 | expect(wrapper.state().isLoggedIn).toBe(false); 55 | }); 56 | 57 | it("can get data", done => { 58 | mock.onGet("/api/items").reply(200, mockItemsResponse); 59 | const wrapper = shallow(); 60 | wrapper.setState({ isLoggedIn: true }); 61 | wrapper.find("button[children='Get test data']").simulate("click"); 62 | setImmediate(() => { 63 | expect(wrapper.state().data).toEqual(mockItemsResponse); 64 | done(); 65 | }); 66 | }); 67 | 68 | it("can catch data errors", done => { 69 | mock.onGet("/api/items").reply(400); 70 | const wrapper = shallow(); 71 | wrapper.setState({ isLoggedIn: true }); 72 | wrapper.find("button[children='Get test data']").simulate("click"); 73 | setImmediate(() => { 74 | expect(wrapper.state().error).toBe("Something went wrong"); 75 | done(); 76 | }); 77 | }); 78 | -------------------------------------------------------------------------------- /template/frontend/src/App.tsx: -------------------------------------------------------------------------------- 1 | import axios from "axios"; 2 | import React from "react"; 3 | import "./App.css"; 4 | import logo from "./logo.svg"; 5 | import { isSessionValid, setSession, clearSession, getAuthHeaders } from "./session"; 6 | 7 | export interface AppState { 8 | email: string; 9 | password: string; 10 | isRequesting: boolean; 11 | isLoggedIn: boolean; 12 | data: App.Item[]; 13 | error: string; 14 | } 15 | 16 | class App extends React.Component<{}, AppState> { 17 | public state = { 18 | email: "", 19 | password: "", 20 | isRequesting: false, 21 | isLoggedIn: false, 22 | data: [], 23 | error: "", 24 | }; 25 | 26 | public componentDidMount() { 27 | this.setState({ isLoggedIn: isSessionValid() }); 28 | } 29 | 30 | public render() { 31 | return ( 32 |
33 |
34 | logo 35 |

Welcome to React

36 |
37 |
{this.state.error}
38 | {this.state.isLoggedIn ? ( 39 |
40 |
41 | Server test data: 42 |
    43 | {this.state.data.map((item: App.Item, index) => ( 44 |
  • 45 | name: {item.name} / value: {item.value} 46 |
  • 47 | ))} 48 |
49 |
50 | 53 | 56 |
57 | ) : ( 58 |
59 | (try the credentials: testuser@email.com / my-password) 60 | ) => this.setState({ email: e.target.value })} 65 | /> 66 | ) => this.setState({ password: e.target.value })} 71 | /> 72 | 75 |
76 | )} 77 |
78 | ); 79 | } 80 | 81 | private handleLogin = async (): Promise => { 82 | const { email, password } = this.state; 83 | try { 84 | this.setState({ error: "" }); 85 | this.setState({ isRequesting: true }); 86 | const response = await axios.post<{ token: string; expiry: string }>("/api/users/login", { email, password }); 87 | const { token, expiry } = response.data; 88 | setSession(token, expiry); 89 | this.setState({ isLoggedIn: true }); 90 | } catch (error) { 91 | this.setState({ error: "Something went wrong" }); 92 | } finally { 93 | this.setState({ isRequesting: false }); 94 | } 95 | }; 96 | 97 | private logout = (): void => { 98 | clearSession(); 99 | this.setState({ isLoggedIn: false }); 100 | }; 101 | 102 | private getTestData = async (): Promise => { 103 | try { 104 | this.setState({ error: "" }); 105 | const response = await axios.get("/api/items", { headers: getAuthHeaders() }); 106 | this.setState({ data: response.data }); 107 | } catch (error) { 108 | this.setState({ error: "Something went wrong" }); 109 | } finally { 110 | this.setState({ isRequesting: false }); 111 | } 112 | }; 113 | } 114 | 115 | export default App; 116 | -------------------------------------------------------------------------------- /template/README.md: -------------------------------------------------------------------------------- 1 | # Fullstack Express-React app written in TypeScript 2 | 3 | [![Build Status](https://travis-ci.com/Fabianopb/express-react-ts-ci.svg?branch=master)](https://travis-ci.com/Fabianopb/express-react-ts-ci) 4 | 5 | This is a starter kit for a fullstack application configured to use [Express](http://expressjs.com/) and [MongoDB](https://www.mongodb.com/) in the backend, and [React](https://reactjs.org/) in the frontend, all written in [TypeScript](https://www.typescriptlang.org/). The backend is built with [webpack](https://webpack.js.org/) (configuration inspired from [here](https://github.com/anthillsolutions/api-skel)), and the frontend was bootstraped with [create-react-app-typescript](https://github.com/wmonk/create-react-app-typescript). 6 | 7 | This starter kit includes test configuration and a couple test examples using [Jest](https://jestjs.io/), as well as minimum set up to run your tests in [Travis CI](https://travis-ci.com/) and to deploy to [Heroku](https://www.heroku.com/). 8 | 9 | ## Running it locally 10 | 11 | Run your mongo instance locally, as for example: 12 | 13 | ``` 14 | $ sudo mongod --dbpath /data/test/ --port 27017 15 | ``` 16 | 17 | Notes: this is important to be done before installing the dependencies so the script to populate the database with sample data can connect to mongo. 18 | 19 | Create a `.env` file with the authentication secret in the root of the backend folder (check `backend/.env.example`). 20 | 21 | ``` 22 | AUTH_SHARED_SECRET=my-auth-shared-secret-hash-here 23 | ``` 24 | 25 | Install dependencies: 26 | 27 | ``` 28 | $ yarn install 29 | ``` 30 | 31 | Launch the application: 32 | 33 | ``` 34 | $ yarn start 35 | ``` 36 | 37 | ## Creating endpoints in your API 38 | 39 | The backend is structured by routes. Initially we have `items` and `users`, and inside of each we have the respective `model`, `controller`, and `tests`. 40 | 41 | Say you want to create an endpoint to manage your favorite restaurants. you can then create the following structure under the `backend/server/restaurants` folder: 42 | 43 | ``` 44 | backend/server/restaurants/ 45 | │── restaurant.model.ts 46 | │── restaurants.controller.ts 47 | └── restaurants.test.ts 48 | ``` 49 | 50 | The `model` is a [Mongoose](https://mongoosejs.com/) model, and it contains the schema for your object and its methods if necessary. 51 | 52 | The `controller` consists of your endpoints, where you define what actions your user will be able to perform, like creating, reading, updating, and deleting entries. _Notice that if you use the `authorize` middleware preceding your endpoint's callback it will be a private route. In other words, the user will only be able to interact with that endpoint if he has a valid token (if he is authenticated)._ 53 | 54 | Example of a private endpoint. If you remove `authorize` this will be a public endpoint. 55 | 56 | ```ts 57 | router.route("/").get(authorize, async (request, response) => { 58 | const items = await Item.find(); 59 | return response.status(200).json(items); 60 | }); 61 | ``` 62 | 63 | ## Testing the backend 64 | 65 | For testing the backend we use a combination of `jest`, `supertest`, and `mongodb-memory-server`. 66 | 67 | It's important to start an instance of `MongodbMemoryServer` (an in-memory version of Mongo run only during tests so you don't interact with your real database when testing) before the tests start. Also don't forget to clean up the in-memory database, disconnect, and close your mocked connections. 68 | 69 | If you test for authenticated routes you need a valid token, which can be aquired for example in the `beforeAll` method. 70 | 71 | You can see examples for all of that in `items.test.ts` and `users.test.ts`. 72 | 73 | ## React with TypeScript 74 | 75 | Say goodbye to PropTypes, and welcome TypeScript! 76 | 77 | A class component receiving props and containing local state can be written like this: 78 | 79 | ```ts 80 | type MyComponentState = { 81 | isOpen: boolean; 82 | value: number; 83 | }; 84 | 85 | type MyComponentProps = { 86 | name: string; 87 | callback: () => void; 88 | }; 89 | 90 | class MyClassComponent extends React.Component { 91 | state = { 92 | isOpen: true, 93 | value: 0 94 | }; 95 | 96 | public render() { 97 | return ( 98 | // your JSX here... 99 | ); 100 | } 101 | 102 | private myPrivateMethod = (data: string): void => { 103 | // do something in your private method... 104 | }; 105 | } 106 | ``` 107 | 108 | In the other hand, a functional (presentational) component can be written like this: 109 | 110 | ```ts 111 | type MyComponentProps = { 112 | name: string; 113 | callback: () => void; 114 | }; 115 | 116 | const MyFuncComponent: React.SFC = ({ name, callback }) => ( 117 | // your JSX here... 118 | ); 119 | ``` 120 | 121 | ## Sharing types 122 | 123 | Just as a footnote it's very desirable to share types between your API and your frontend so both can _talk in the same language_. This could be achieved, for example, by creating a local `@type` module in the root that could be directly linked to each project via [yarn's link](https://yarnpkg.com/lang/en/docs/cli/link/). 124 | 125 | ## License 126 | 127 | MIT 128 | -------------------------------------------------------------------------------- /template/frontend/src/serviceWorker.ts: -------------------------------------------------------------------------------- 1 | // This optional code is used to register a service worker. 2 | // register() is not called by default. 3 | 4 | // This lets the app load faster on subsequent visits in production, and gives 5 | // it offline capabilities. However, it also means that developers (and users) 6 | // will only see deployed updates on subsequent visits to a page, after all the 7 | // existing tabs open on the page have been closed, since previously cached 8 | // resources are updated in the background. 9 | 10 | // To learn more about the benefits of this model and instructions on how to 11 | // opt-in, read http://bit.ly/CRA-PWA 12 | 13 | const isLocalhost = Boolean( 14 | window.location.hostname === "localhost" || 15 | // [::1] is the IPv6 localhost address. 16 | window.location.hostname === "[::1]" || 17 | // 127.0.0.1/8 is considered localhost for IPv4. 18 | window.location.hostname.match(/^127(?:\.(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)){3}$/) 19 | ); 20 | 21 | interface Config { 22 | onSuccess?: (registration: ServiceWorkerRegistration) => void; 23 | onUpdate?: (registration: ServiceWorkerRegistration) => void; 24 | } 25 | 26 | export function register(config?: Config) { 27 | if (process.env.NODE_ENV === "production" && "serviceWorker" in navigator) { 28 | // The URL constructor is available in all browsers that support SW. 29 | const publicUrl = new URL((process as { env: { [key: string]: string } }).env.PUBLIC_URL, window.location.href); 30 | if (publicUrl.origin !== window.location.origin) { 31 | // Our service worker won't work if PUBLIC_URL is on a different origin 32 | // from what our page is served on. This might happen if a CDN is used to 33 | // serve assets; see https://github.com/facebook/create-react-app/issues/2374 34 | return; 35 | } 36 | 37 | window.addEventListener("load", () => { 38 | const swUrl = `${process.env.PUBLIC_URL}/service-worker.js`; 39 | 40 | if (isLocalhost) { 41 | // This is running on localhost. Let's check if a service worker still exists or not. 42 | checkValidServiceWorker(swUrl, config); 43 | 44 | // Add some additional logging to localhost, pointing developers to the 45 | // service worker/PWA documentation. 46 | navigator.serviceWorker.ready.then(() => { 47 | console.log("This web app is being served cache-first by a service worker. To learn more, visit http://bit.ly/CRA-PWA"); 48 | }); 49 | } else { 50 | // Is not localhost. Just register service worker 51 | registerValidSW(swUrl, config); 52 | } 53 | }); 54 | } 55 | } 56 | 57 | function registerValidSW(swUrl: string, config?: Config) { 58 | navigator.serviceWorker 59 | .register(swUrl) 60 | .then(registration => { 61 | registration.onupdatefound = () => { 62 | const installingWorker = registration.installing; 63 | if (installingWorker == null) { 64 | return; 65 | } 66 | installingWorker.onstatechange = () => { 67 | if (installingWorker.state === "installed") { 68 | if (navigator.serviceWorker.controller) { 69 | // At this point, the updated precached content has been fetched, 70 | // but the previous service worker will still serve the older 71 | // content until all client tabs are closed. 72 | console.log("New content is available and will be used when all tabs for this page are closed. See http://bit.ly/CRA-PWA."); 73 | 74 | // Execute callback 75 | if (config && config.onUpdate) { 76 | config.onUpdate(registration); 77 | } 78 | } else { 79 | // At this point, everything has been precached. 80 | // It's the perfect time to display a 81 | // "Content is cached for offline use." message. 82 | console.log("Content is cached for offline use."); 83 | 84 | // Execute callback 85 | if (config && config.onSuccess) { 86 | config.onSuccess(registration); 87 | } 88 | } 89 | } 90 | }; 91 | }; 92 | }) 93 | .catch(error => { 94 | console.error("Error during service worker registration:", error); 95 | }); 96 | } 97 | 98 | function checkValidServiceWorker(swUrl: string, config?: Config) { 99 | // Check if the service worker can be found. If it can't reload the page. 100 | fetch(swUrl) 101 | .then(response => { 102 | // Ensure service worker exists, and that we really are getting a JS file. 103 | const contentType = response.headers.get("content-type"); 104 | if (response.status === 404 || (contentType != null && contentType.indexOf("javascript") === -1)) { 105 | // No service worker found. Probably a different app. Reload the page. 106 | navigator.serviceWorker.ready.then(registration => { 107 | registration.unregister().then(() => { 108 | window.location.reload(); 109 | }); 110 | }); 111 | } else { 112 | // Service worker found. Proceed as normal. 113 | registerValidSW(swUrl, config); 114 | } 115 | }) 116 | .catch(() => { 117 | console.log("No internet connection found. App is running in offline mode."); 118 | }); 119 | } 120 | 121 | export function unregister() { 122 | if ("serviceWorker" in navigator) { 123 | navigator.serviceWorker.ready.then(registration => { 124 | registration.unregister(); 125 | }); 126 | } 127 | } 128 | -------------------------------------------------------------------------------- /template/yarn.lock: -------------------------------------------------------------------------------- 1 | # THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY. 2 | # yarn lockfile v1 3 | 4 | 5 | "@babel/code-frame@^7.0.0": 6 | version "7.0.0" 7 | resolved "https://registry.yarnpkg.com/@babel/code-frame/-/code-frame-7.0.0.tgz#06e2ab19bdb535385559aabb5ba59729482800f8" 8 | integrity sha512-OfC2uemaknXr87bdLUkWog7nYuliM9Ij5HUcajsVcMCpQrcLmtxRbVFTIqmcSkSeYRBFBRxs2FiUqFJDLdiebA== 9 | dependencies: 10 | "@babel/highlight" "^7.0.0" 11 | 12 | "@babel/highlight@^7.0.0": 13 | version "7.0.0" 14 | resolved "https://registry.yarnpkg.com/@babel/highlight/-/highlight-7.0.0.tgz#f710c38c8d458e6dd9a201afb637fcb781ce99e4" 15 | integrity sha512-UFMC4ZeFC48Tpvj7C8UgLvtkaUuovQX+5xNWrsIoMG8o2z+XFKjKaN9iVmS84dPwVN00W4wPmqvYoZF3EGAsfw== 16 | dependencies: 17 | chalk "^2.0.0" 18 | esutils "^2.0.2" 19 | js-tokens "^4.0.0" 20 | 21 | "@babel/runtime@^7.0.0": 22 | version "7.4.5" 23 | resolved "https://registry.yarnpkg.com/@babel/runtime/-/runtime-7.4.5.tgz#582bb531f5f9dc67d2fcb682979894f75e253f12" 24 | integrity sha512-TuI4qpWZP6lGOGIuGWtp9sPluqYICmbk8T/1vpSysqJxRPkudh/ofFWyqdcMsDf2s7KvDL4/YHgKyvcS3g9CJQ== 25 | dependencies: 26 | regenerator-runtime "^0.13.2" 27 | 28 | "@samverschueren/stream-to-observable@^0.3.0": 29 | version "0.3.0" 30 | resolved "https://registry.yarnpkg.com/@samverschueren/stream-to-observable/-/stream-to-observable-0.3.0.tgz#ecdf48d532c58ea477acfcab80348424f8d0662f" 31 | integrity sha512-MI4Xx6LHs4Webyvi6EbspgyAb4D2Q2VtnCQ1blOJcoLS6mVa8lNN2rkIy1CVxfTUpoyIbCTkXES1rLXztFD1lg== 32 | dependencies: 33 | any-observable "^0.3.0" 34 | 35 | "@types/normalize-package-data@^2.4.0": 36 | version "2.4.0" 37 | resolved "https://registry.yarnpkg.com/@types/normalize-package-data/-/normalize-package-data-2.4.0.tgz#e486d0d97396d79beedd0a6e33f4534ff6b4973e" 38 | integrity sha512-f5j5b/Gf71L+dbqxIpQ4Z2WlmI/mPJ0fOkGGmFgtb6sAu97EPczzbS3/tJKxmcYDj55OX6ssqwDAWOHIYDRDGA== 39 | 40 | ansi-escapes@^3.0.0: 41 | version "3.2.0" 42 | resolved "https://registry.yarnpkg.com/ansi-escapes/-/ansi-escapes-3.2.0.tgz#8780b98ff9dbf5638152d1f1fe5c1d7b4442976b" 43 | integrity sha512-cBhpre4ma+U0T1oM5fXg7Dy1Jw7zzwv7lt/GoCpr+hDQJoYnKVPLL4dCvSEFMmQurOQvSrwT7SL/DAlhBI97RQ== 44 | 45 | ansi-regex@^2.0.0: 46 | version "2.1.1" 47 | resolved "https://registry.yarnpkg.com/ansi-regex/-/ansi-regex-2.1.1.tgz#c3b33ab5ee360d86e0e628f0468ae7ef27d654df" 48 | 49 | ansi-regex@^3.0.0: 50 | version "3.0.0" 51 | resolved "https://registry.yarnpkg.com/ansi-regex/-/ansi-regex-3.0.0.tgz#ed0317c322064f79466c02966bddb605ab37d998" 52 | 53 | ansi-styles@^2.2.1: 54 | version "2.2.1" 55 | resolved "https://registry.yarnpkg.com/ansi-styles/-/ansi-styles-2.2.1.tgz#b432dd3358b634cf75e1e4664368240533c1ddbe" 56 | integrity sha1-tDLdM1i2NM914eRmQ2gkBTPB3b4= 57 | 58 | ansi-styles@^3.2.1: 59 | version "3.2.1" 60 | resolved "https://registry.yarnpkg.com/ansi-styles/-/ansi-styles-3.2.1.tgz#41fbb20243e50b12be0f04b8dedbf07520ce841d" 61 | dependencies: 62 | color-convert "^1.9.0" 63 | 64 | any-observable@^0.3.0: 65 | version "0.3.0" 66 | resolved "https://registry.yarnpkg.com/any-observable/-/any-observable-0.3.0.tgz#af933475e5806a67d0d7df090dd5e8bef65d119b" 67 | integrity sha512-/FQM1EDkTsf63Ub2C6O7GuYFDsSXUwsaZDurV0np41ocwq0jthUAYCmhBX9f+KwlaCgIuWyr/4WlUQUBfKfZog== 68 | 69 | argparse@^1.0.7: 70 | version "1.0.10" 71 | resolved "https://registry.yarnpkg.com/argparse/-/argparse-1.0.10.tgz#bcd6791ea5ae09725e17e5ad988134cd40b3d911" 72 | integrity sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg== 73 | dependencies: 74 | sprintf-js "~1.0.2" 75 | 76 | arr-diff@^4.0.0: 77 | version "4.0.0" 78 | resolved "https://registry.yarnpkg.com/arr-diff/-/arr-diff-4.0.0.tgz#d6461074febfec71e7e15235761a329a5dc7c520" 79 | integrity sha1-1kYQdP6/7HHn4VI1dhoyml3HxSA= 80 | 81 | arr-flatten@^1.1.0: 82 | version "1.1.0" 83 | resolved "https://registry.yarnpkg.com/arr-flatten/-/arr-flatten-1.1.0.tgz#36048bbff4e7b47e136644316c99669ea5ae91f1" 84 | integrity sha512-L3hKV5R/p5o81R7O02IGnwpDmkp6E982XhtbuwSe3O4qOtMMMtodicASA1Cny2U+aCXcNpml+m4dPsvsJ3jatg== 85 | 86 | arr-union@^3.1.0: 87 | version "3.1.0" 88 | resolved "https://registry.yarnpkg.com/arr-union/-/arr-union-3.1.0.tgz#e39b09aea9def866a8f206e288af63919bae39c4" 89 | integrity sha1-45sJrqne+Gao8gbiiK9jkZuuOcQ= 90 | 91 | array-union@^1.0.1: 92 | version "1.0.2" 93 | resolved "https://registry.yarnpkg.com/array-union/-/array-union-1.0.2.tgz#9a34410e4f4e3da23dea375be5be70f24778ec39" 94 | integrity sha1-mjRBDk9OPaI96jdb5b5w8kd47Dk= 95 | dependencies: 96 | array-uniq "^1.0.1" 97 | 98 | array-uniq@^1.0.1: 99 | version "1.0.3" 100 | resolved "https://registry.yarnpkg.com/array-uniq/-/array-uniq-1.0.3.tgz#af6ac877a25cc7f74e058894753858dfdb24fdb6" 101 | integrity sha1-r2rId6Jcx/dOBYiUdThY39sk/bY= 102 | 103 | array-unique@^0.3.2: 104 | version "0.3.2" 105 | resolved "https://registry.yarnpkg.com/array-unique/-/array-unique-0.3.2.tgz#a894b75d4bc4f6cd679ef3244a9fd8f46ae2d428" 106 | integrity sha1-qJS3XUvE9s1nnvMkSp/Y9Gri1Cg= 107 | 108 | arrify@^1.0.1: 109 | version "1.0.1" 110 | resolved "https://registry.yarnpkg.com/arrify/-/arrify-1.0.1.tgz#898508da2226f380df904728456849c1501a4b0d" 111 | integrity sha1-iYUI2iIm84DfkEcoRWhJwVAaSw0= 112 | 113 | assign-symbols@^1.0.0: 114 | version "1.0.0" 115 | resolved "https://registry.yarnpkg.com/assign-symbols/-/assign-symbols-1.0.0.tgz#59667f41fadd4f20ccbc2bb96b8d4f7f78ec0367" 116 | integrity sha1-WWZ/QfrdTyDMvCu5a41Pf3jsA2c= 117 | 118 | atob@^2.1.1: 119 | version "2.1.2" 120 | resolved "https://registry.yarnpkg.com/atob/-/atob-2.1.2.tgz#6d9517eb9e030d2436666651e86bd9f6f13533c9" 121 | integrity sha512-Wm6ukoaOGJi/73p/cl2GvLjTI5JM1k/O14isD73YML8StrH/7/lRFgmg8nICZgD3bZZvjwCGxtMOD3wWNAu8cg== 122 | 123 | balanced-match@^1.0.0: 124 | version "1.0.0" 125 | resolved "https://registry.yarnpkg.com/balanced-match/-/balanced-match-1.0.0.tgz#89b4d199ab2bee49de164ea02b89ce462d71b767" 126 | integrity sha1-ibTRmasr7kneFk6gK4nORi1xt2c= 127 | 128 | base@^0.11.1: 129 | version "0.11.2" 130 | resolved "https://registry.yarnpkg.com/base/-/base-0.11.2.tgz#7bde5ced145b6d551a90db87f83c558b4eb48a8f" 131 | integrity sha512-5T6P4xPgpp0YDFvSWwEZ4NoE3aM4QBQXDzmVbraCkFj8zHM+mba8SyqB5DbZWyR7mYHo6Y7BdQo3MoA4m0TeQg== 132 | dependencies: 133 | cache-base "^1.0.1" 134 | class-utils "^0.3.5" 135 | component-emitter "^1.2.1" 136 | define-property "^1.0.0" 137 | isobject "^3.0.1" 138 | mixin-deep "^1.2.0" 139 | pascalcase "^0.1.1" 140 | 141 | brace-expansion@^1.1.7: 142 | version "1.1.11" 143 | resolved "https://registry.yarnpkg.com/brace-expansion/-/brace-expansion-1.1.11.tgz#3c7fcbf529d87226f3d2f52b966ff5271eb441dd" 144 | integrity sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA== 145 | dependencies: 146 | balanced-match "^1.0.0" 147 | concat-map "0.0.1" 148 | 149 | braces@^2.3.1: 150 | version "2.3.2" 151 | resolved "https://registry.yarnpkg.com/braces/-/braces-2.3.2.tgz#5979fd3f14cd531565e5fa2df1abfff1dfaee729" 152 | integrity sha512-aNdbnj9P8PjdXU4ybaWLK2IF3jc/EoDYbC7AazW6to3TRsfXxscC9UXOB5iDiEQrkyIbWp2SLQda4+QAa7nc3w== 153 | dependencies: 154 | arr-flatten "^1.1.0" 155 | array-unique "^0.3.2" 156 | extend-shallow "^2.0.1" 157 | fill-range "^4.0.0" 158 | isobject "^3.0.1" 159 | repeat-element "^1.1.2" 160 | snapdragon "^0.8.1" 161 | snapdragon-node "^2.0.1" 162 | split-string "^3.0.2" 163 | to-regex "^3.0.1" 164 | 165 | builtin-modules@^1.0.0, builtin-modules@^1.1.1: 166 | version "1.1.1" 167 | resolved "https://registry.yarnpkg.com/builtin-modules/-/builtin-modules-1.1.1.tgz#270f076c5a72c02f5b65a47df94c5fe3a278892f" 168 | 169 | cache-base@^1.0.1: 170 | version "1.0.1" 171 | resolved "https://registry.yarnpkg.com/cache-base/-/cache-base-1.0.1.tgz#0a7f46416831c8b662ee36fe4e7c59d76f666ab2" 172 | integrity sha512-AKcdTnFSWATd5/GCPRxr2ChwIJ85CeyrEyjRHlKxQ56d4XJMGym0uAiKn0xbLOGOl3+yRpOTi484dVCEc5AUzQ== 173 | dependencies: 174 | collection-visit "^1.0.0" 175 | component-emitter "^1.2.1" 176 | get-value "^2.0.6" 177 | has-value "^1.0.0" 178 | isobject "^3.0.1" 179 | set-value "^2.0.0" 180 | to-object-path "^0.3.0" 181 | union-value "^1.0.0" 182 | unset-value "^1.0.0" 183 | 184 | caller-callsite@^2.0.0: 185 | version "2.0.0" 186 | resolved "https://registry.yarnpkg.com/caller-callsite/-/caller-callsite-2.0.0.tgz#847e0fce0a223750a9a027c54b33731ad3154134" 187 | integrity sha1-hH4PzgoiN1CpoCfFSzNzGtMVQTQ= 188 | dependencies: 189 | callsites "^2.0.0" 190 | 191 | caller-path@^2.0.0: 192 | version "2.0.0" 193 | resolved "https://registry.yarnpkg.com/caller-path/-/caller-path-2.0.0.tgz#468f83044e369ab2010fac5f06ceee15bb2cb1f4" 194 | integrity sha1-Ro+DBE42mrIBD6xfBs7uFbsssfQ= 195 | dependencies: 196 | caller-callsite "^2.0.0" 197 | 198 | callsites@^2.0.0: 199 | version "2.0.0" 200 | resolved "https://registry.yarnpkg.com/callsites/-/callsites-2.0.0.tgz#06eb84f00eea413da86affefacbffb36093b3c50" 201 | integrity sha1-BuuE8A7qQT2oav/vrL/7Ngk7PFA= 202 | 203 | camelcase@^4.1.0: 204 | version "4.1.0" 205 | resolved "https://registry.yarnpkg.com/camelcase/-/camelcase-4.1.0.tgz#d545635be1e33c542649c69173e5de6acfae34dd" 206 | 207 | chalk@^1.0.0, chalk@^1.1.3: 208 | version "1.1.3" 209 | resolved "https://registry.yarnpkg.com/chalk/-/chalk-1.1.3.tgz#a8115c55e4a702fe4d150abd3872822a7e09fc98" 210 | integrity sha1-qBFcVeSnAv5NFQq9OHKCKn4J/Jg= 211 | dependencies: 212 | ansi-styles "^2.2.1" 213 | escape-string-regexp "^1.0.2" 214 | has-ansi "^2.0.0" 215 | strip-ansi "^3.0.0" 216 | supports-color "^2.0.0" 217 | 218 | chalk@^2.0.0, chalk@^2.0.1, chalk@^2.3.0, chalk@^2.3.1: 219 | version "2.4.2" 220 | resolved "https://registry.yarnpkg.com/chalk/-/chalk-2.4.2.tgz#cd42541677a54333cf541a49108c1432b44c9424" 221 | integrity sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ== 222 | dependencies: 223 | ansi-styles "^3.2.1" 224 | escape-string-regexp "^1.0.5" 225 | supports-color "^5.3.0" 226 | 227 | chalk@^2.4.1: 228 | version "2.4.1" 229 | resolved "https://registry.yarnpkg.com/chalk/-/chalk-2.4.1.tgz#18c49ab16a037b6eb0152cc83e3471338215b66e" 230 | dependencies: 231 | ansi-styles "^3.2.1" 232 | escape-string-regexp "^1.0.5" 233 | supports-color "^5.3.0" 234 | 235 | ci-info@^2.0.0: 236 | version "2.0.0" 237 | resolved "https://registry.yarnpkg.com/ci-info/-/ci-info-2.0.0.tgz#67a9e964be31a51e15e5010d58e6f12834002f46" 238 | integrity sha512-5tK7EtrZ0N+OLFMthtqOj4fI2Jeb88C4CAZPu25LDVUgXJ0A3Js4PMGqrn0JU1W0Mh1/Z8wZzYPxqUrXeBboCQ== 239 | 240 | class-utils@^0.3.5: 241 | version "0.3.6" 242 | resolved "https://registry.yarnpkg.com/class-utils/-/class-utils-0.3.6.tgz#f93369ae8b9a7ce02fd41faad0ca83033190c463" 243 | integrity sha512-qOhPa/Fj7s6TY8H8esGu5QNpMMQxz79h+urzrNYN6mn+9BnxlDGf5QZ+XeCDsxSjPqsSR56XOZOJmpeurnLMeg== 244 | dependencies: 245 | arr-union "^3.1.0" 246 | define-property "^0.2.5" 247 | isobject "^3.0.0" 248 | static-extend "^0.1.1" 249 | 250 | cli-cursor@^2.0.0, cli-cursor@^2.1.0: 251 | version "2.1.0" 252 | resolved "https://registry.yarnpkg.com/cli-cursor/-/cli-cursor-2.1.0.tgz#b35dac376479facc3e94747d41d0d0f5238ffcb5" 253 | integrity sha1-s12sN2R5+sw+lHR9QdDQ9SOP/LU= 254 | dependencies: 255 | restore-cursor "^2.0.0" 256 | 257 | cli-truncate@^0.2.1: 258 | version "0.2.1" 259 | resolved "https://registry.yarnpkg.com/cli-truncate/-/cli-truncate-0.2.1.tgz#9f15cfbb0705005369216c626ac7d05ab90dd574" 260 | integrity sha1-nxXPuwcFAFNpIWxiasfQWrkN1XQ= 261 | dependencies: 262 | slice-ansi "0.0.4" 263 | string-width "^1.0.1" 264 | 265 | cliui@^4.0.0: 266 | version "4.1.0" 267 | resolved "https://registry.yarnpkg.com/cliui/-/cliui-4.1.0.tgz#348422dbe82d800b3022eef4f6ac10bf2e4d1b49" 268 | dependencies: 269 | string-width "^2.1.1" 270 | strip-ansi "^4.0.0" 271 | wrap-ansi "^2.0.0" 272 | 273 | code-point-at@^1.0.0: 274 | version "1.1.0" 275 | resolved "https://registry.yarnpkg.com/code-point-at/-/code-point-at-1.1.0.tgz#0d070b4d043a5bea33a2f1a40e2edb3d9a4ccf77" 276 | 277 | collection-visit@^1.0.0: 278 | version "1.0.0" 279 | resolved "https://registry.yarnpkg.com/collection-visit/-/collection-visit-1.0.0.tgz#4bc0373c164bc3291b4d368c829cf1a80a59dca0" 280 | integrity sha1-S8A3PBZLwykbTTaMgpzxqApZ3KA= 281 | dependencies: 282 | map-visit "^1.0.0" 283 | object-visit "^1.0.0" 284 | 285 | color-convert@^1.9.0: 286 | version "1.9.3" 287 | resolved "https://registry.yarnpkg.com/color-convert/-/color-convert-1.9.3.tgz#bb71850690e1f136567de629d2d5471deda4c1e8" 288 | dependencies: 289 | color-name "1.1.3" 290 | 291 | color-name@1.1.3: 292 | version "1.1.3" 293 | resolved "https://registry.yarnpkg.com/color-name/-/color-name-1.1.3.tgz#a7d0558bd89c42f795dd42328f740831ca53bc25" 294 | 295 | commander@^2.12.1, commander@^2.14.1, commander@^2.9.0: 296 | version "2.20.0" 297 | resolved "https://registry.yarnpkg.com/commander/-/commander-2.20.0.tgz#d58bb2b5c1ee8f87b0d340027e9e94e222c5a422" 298 | integrity sha512-7j2y+40w61zy6YC2iRNpUe/NwhNyoXrYpHMrSunaMG64nRnaf96zO/KMQR4OyN/UnE5KLyEBnKHd4aG3rskjpQ== 299 | 300 | component-emitter@^1.2.1: 301 | version "1.3.0" 302 | resolved "https://registry.yarnpkg.com/component-emitter/-/component-emitter-1.3.0.tgz#16e4070fba8ae29b679f2215853ee181ab2eabc0" 303 | integrity sha512-Rd3se6QB+sO1TwqZjscQrurpEPIfO0/yYnSin6Q/rD3mOutHvUrCAhJub3r90uNb+SESBuE0QYoB90YdfatsRg== 304 | 305 | concat-map@0.0.1: 306 | version "0.0.1" 307 | resolved "https://registry.yarnpkg.com/concat-map/-/concat-map-0.0.1.tgz#d8a96bd77fd68df7793a73036a3ba0d5405d477b" 308 | integrity sha1-2Klr13/Wjfd5OnMDajug1UBdR3s= 309 | 310 | concurrently@^4.0.1: 311 | version "4.0.1" 312 | resolved "https://registry.yarnpkg.com/concurrently/-/concurrently-4.0.1.tgz#f6310fbadf2f476dd95df952edb5c0ab789f672c" 313 | dependencies: 314 | chalk "^2.4.1" 315 | date-fns "^1.23.0" 316 | lodash "^4.17.10" 317 | read-pkg "^4.0.1" 318 | rxjs "6.2.2" 319 | spawn-command "^0.0.2-1" 320 | supports-color "^4.5.0" 321 | tree-kill "^1.1.0" 322 | yargs "^12.0.1" 323 | 324 | copy-descriptor@^0.1.0: 325 | version "0.1.1" 326 | resolved "https://registry.yarnpkg.com/copy-descriptor/-/copy-descriptor-0.1.1.tgz#676f6eb3c39997c2ee1ac3a924fd6124748f578d" 327 | integrity sha1-Z29us8OZl8LuGsOpJP1hJHSPV40= 328 | 329 | cosmiconfig@^5.2.0: 330 | version "5.2.1" 331 | resolved "https://registry.yarnpkg.com/cosmiconfig/-/cosmiconfig-5.2.1.tgz#040f726809c591e77a17c0a3626ca45b4f168b1a" 332 | integrity sha512-H65gsXo1SKjf8zmrJ67eJk8aIRKV5ff2D4uKZIBZShbhGSpEmsQOPW/SKMKYhSTrqR7ufy6RP69rPogdaPh/kA== 333 | dependencies: 334 | import-fresh "^2.0.0" 335 | is-directory "^0.3.1" 336 | js-yaml "^3.13.1" 337 | parse-json "^4.0.0" 338 | 339 | cross-spawn@^6.0.0: 340 | version "6.0.5" 341 | resolved "https://registry.yarnpkg.com/cross-spawn/-/cross-spawn-6.0.5.tgz#4a5ec7c64dfae22c3a14124dbacdee846d80cbc4" 342 | dependencies: 343 | nice-try "^1.0.4" 344 | path-key "^2.0.1" 345 | semver "^5.5.0" 346 | shebang-command "^1.2.0" 347 | which "^1.2.9" 348 | 349 | date-fns@^1.23.0: 350 | version "1.29.0" 351 | resolved "https://registry.yarnpkg.com/date-fns/-/date-fns-1.29.0.tgz#12e609cdcb935127311d04d33334e2960a2a54e6" 352 | 353 | date-fns@^1.27.2: 354 | version "1.30.1" 355 | resolved "https://registry.yarnpkg.com/date-fns/-/date-fns-1.30.1.tgz#2e71bf0b119153dbb4cc4e88d9ea5acfb50dc05c" 356 | integrity sha512-hBSVCvSmWC+QypYObzwGOd9wqdDpOt+0wl0KbU+R+uuZBS1jN8VsD1ss3irQDknRj5NvxiTF6oj/nDRnN/UQNw== 357 | 358 | debug@^2.2.0, debug@^2.3.3: 359 | version "2.6.9" 360 | resolved "https://registry.yarnpkg.com/debug/-/debug-2.6.9.tgz#5d128515df134ff327e90a4c93f4e077a536341f" 361 | integrity sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA== 362 | dependencies: 363 | ms "2.0.0" 364 | 365 | debug@^3.1.0: 366 | version "3.2.6" 367 | resolved "https://registry.yarnpkg.com/debug/-/debug-3.2.6.tgz#e83d17de16d8a7efb7717edbe5fb10135eee629b" 368 | integrity sha512-mel+jf7nrtEl5Pn1Qx46zARXKDpBbvzezse7p7LqINmdoIk8PYP5SySaxEmYv6TZ0JyEKA1hsCId6DIhgITtWQ== 369 | dependencies: 370 | ms "^2.1.1" 371 | 372 | debug@^4.0.1: 373 | version "4.1.1" 374 | resolved "https://registry.yarnpkg.com/debug/-/debug-4.1.1.tgz#3b72260255109c6b589cee050f1d516139664791" 375 | integrity sha512-pYAIzeRo8J6KPEaJ0VWOh5Pzkbw/RetuzehGM7QRRX5he4fPHx2rdKMB256ehJCkX+XRQm16eZLqLNS8RSZXZw== 376 | dependencies: 377 | ms "^2.1.1" 378 | 379 | decamelize@^2.0.0: 380 | version "2.0.0" 381 | resolved "https://registry.yarnpkg.com/decamelize/-/decamelize-2.0.0.tgz#656d7bbc8094c4c788ea53c5840908c9c7d063c7" 382 | dependencies: 383 | xregexp "4.0.0" 384 | 385 | decode-uri-component@^0.2.0: 386 | version "0.2.0" 387 | resolved "https://registry.yarnpkg.com/decode-uri-component/-/decode-uri-component-0.2.0.tgz#eb3913333458775cb84cd1a1fae062106bb87545" 388 | integrity sha1-6zkTMzRYd1y4TNGh+uBiEGu4dUU= 389 | 390 | dedent@^0.7.0: 391 | version "0.7.0" 392 | resolved "https://registry.yarnpkg.com/dedent/-/dedent-0.7.0.tgz#2495ddbaf6eb874abb0e1be9df22d2e5a544326c" 393 | integrity sha1-JJXduvbrh0q7Dhvp3yLS5aVEMmw= 394 | 395 | define-property@^0.2.5: 396 | version "0.2.5" 397 | resolved "https://registry.yarnpkg.com/define-property/-/define-property-0.2.5.tgz#c35b1ef918ec3c990f9a5bc57be04aacec5c8116" 398 | integrity sha1-w1se+RjsPJkPmlvFe+BKrOxcgRY= 399 | dependencies: 400 | is-descriptor "^0.1.0" 401 | 402 | define-property@^1.0.0: 403 | version "1.0.0" 404 | resolved "https://registry.yarnpkg.com/define-property/-/define-property-1.0.0.tgz#769ebaaf3f4a63aad3af9e8d304c9bbe79bfb0e6" 405 | integrity sha1-dp66rz9KY6rTr56NMEybvnm/sOY= 406 | dependencies: 407 | is-descriptor "^1.0.0" 408 | 409 | define-property@^2.0.2: 410 | version "2.0.2" 411 | resolved "https://registry.yarnpkg.com/define-property/-/define-property-2.0.2.tgz#d459689e8d654ba77e02a817f8710d702cb16e9d" 412 | integrity sha512-jwK2UV4cnPpbcG7+VRARKTZPUWowwXA8bzH5NP6ud0oeAxyYPuGZUAC7hMugpCdz4BeSZl2Dl9k66CHJ/46ZYQ== 413 | dependencies: 414 | is-descriptor "^1.0.2" 415 | isobject "^3.0.1" 416 | 417 | del@^3.0.0: 418 | version "3.0.0" 419 | resolved "https://registry.yarnpkg.com/del/-/del-3.0.0.tgz#53ecf699ffcbcb39637691ab13baf160819766e5" 420 | integrity sha1-U+z2mf/LyzljdpGrE7rxYIGXZuU= 421 | dependencies: 422 | globby "^6.1.0" 423 | is-path-cwd "^1.0.0" 424 | is-path-in-cwd "^1.0.0" 425 | p-map "^1.1.1" 426 | pify "^3.0.0" 427 | rimraf "^2.2.8" 428 | 429 | diff@^3.2.0: 430 | version "3.5.0" 431 | resolved "https://registry.yarnpkg.com/diff/-/diff-3.5.0.tgz#800c0dd1e0a8bfbc95835c202ad220fe317e5a12" 432 | integrity sha512-A46qtFgd+g7pDZinpnwiRJtxbC1hpgf0uzP3iG89scHk0AUC7A1TGxf5OiiOUv/JMZR8GOt8hL900hV0bOy5xA== 433 | 434 | elegant-spinner@^1.0.1: 435 | version "1.0.1" 436 | resolved "https://registry.yarnpkg.com/elegant-spinner/-/elegant-spinner-1.0.1.tgz#db043521c95d7e303fd8f345bedc3349cfb0729e" 437 | integrity sha1-2wQ1IcldfjA/2PNFvtwzSc+wcp4= 438 | 439 | end-of-stream@^1.1.0: 440 | version "1.4.1" 441 | resolved "https://registry.yarnpkg.com/end-of-stream/-/end-of-stream-1.4.1.tgz#ed29634d19baba463b6ce6b80a37213eab71ec43" 442 | integrity sha512-1MkrZNvWTKCaigbn+W15elq2BB/L22nqrSY5DKlo3X6+vclJm8Bb5djXJBmEX6fS3+zCh/F4VBK5Z2KxJt4s2Q== 443 | dependencies: 444 | once "^1.4.0" 445 | 446 | error-ex@^1.3.1: 447 | version "1.3.2" 448 | resolved "https://registry.yarnpkg.com/error-ex/-/error-ex-1.3.2.tgz#b4ac40648107fdcdcfae242f428bea8a14d4f1bf" 449 | dependencies: 450 | is-arrayish "^0.2.1" 451 | 452 | escape-string-regexp@^1.0.2, escape-string-regexp@^1.0.4, escape-string-regexp@^1.0.5: 453 | version "1.0.5" 454 | resolved "https://registry.yarnpkg.com/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz#1b61c0562190a8dff6ae3bb2cf0200ca130b86d4" 455 | 456 | esprima@^4.0.0: 457 | version "4.0.1" 458 | resolved "https://registry.yarnpkg.com/esprima/-/esprima-4.0.1.tgz#13b04cdb3e6c5d19df91ab6987a8695619b0aa71" 459 | integrity sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A== 460 | 461 | esutils@^2.0.2: 462 | version "2.0.2" 463 | resolved "https://registry.yarnpkg.com/esutils/-/esutils-2.0.2.tgz#0abf4f1caa5bcb1f7a9d8acc6dea4faaa04bac9b" 464 | integrity sha1-Cr9PHKpbyx96nYrMbepPqqBLrJs= 465 | 466 | execa@^0.10.0: 467 | version "0.10.0" 468 | resolved "https://registry.yarnpkg.com/execa/-/execa-0.10.0.tgz#ff456a8f53f90f8eccc71a96d11bdfc7f082cb50" 469 | dependencies: 470 | cross-spawn "^6.0.0" 471 | get-stream "^3.0.0" 472 | is-stream "^1.1.0" 473 | npm-run-path "^2.0.0" 474 | p-finally "^1.0.0" 475 | signal-exit "^3.0.0" 476 | strip-eof "^1.0.0" 477 | 478 | execa@^1.0.0: 479 | version "1.0.0" 480 | resolved "https://registry.yarnpkg.com/execa/-/execa-1.0.0.tgz#c6236a5bb4df6d6f15e88e7f017798216749ddd8" 481 | integrity sha512-adbxcyWV46qiHyvSp50TKt05tB4tK3HcmF7/nxfAdhnox83seTDbwnaqKO4sXRy7roHAIFqJP/Rw/AuEbX61LA== 482 | dependencies: 483 | cross-spawn "^6.0.0" 484 | get-stream "^4.0.0" 485 | is-stream "^1.1.0" 486 | npm-run-path "^2.0.0" 487 | p-finally "^1.0.0" 488 | signal-exit "^3.0.0" 489 | strip-eof "^1.0.0" 490 | 491 | expand-brackets@^2.1.4: 492 | version "2.1.4" 493 | resolved "https://registry.yarnpkg.com/expand-brackets/-/expand-brackets-2.1.4.tgz#b77735e315ce30f6b6eff0f83b04151a22449622" 494 | integrity sha1-t3c14xXOMPa27/D4OwQVGiJEliI= 495 | dependencies: 496 | debug "^2.3.3" 497 | define-property "^0.2.5" 498 | extend-shallow "^2.0.1" 499 | posix-character-classes "^0.1.0" 500 | regex-not "^1.0.0" 501 | snapdragon "^0.8.1" 502 | to-regex "^3.0.1" 503 | 504 | extend-shallow@^2.0.1: 505 | version "2.0.1" 506 | resolved "https://registry.yarnpkg.com/extend-shallow/-/extend-shallow-2.0.1.tgz#51af7d614ad9a9f610ea1bafbb989d6b1c56890f" 507 | integrity sha1-Ua99YUrZqfYQ6huvu5idaxxWiQ8= 508 | dependencies: 509 | is-extendable "^0.1.0" 510 | 511 | extend-shallow@^3.0.0, extend-shallow@^3.0.2: 512 | version "3.0.2" 513 | resolved "https://registry.yarnpkg.com/extend-shallow/-/extend-shallow-3.0.2.tgz#26a71aaf073b39fb2127172746131c2704028db8" 514 | integrity sha1-Jqcarwc7OfshJxcnRhMcJwQCjbg= 515 | dependencies: 516 | assign-symbols "^1.0.0" 517 | is-extendable "^1.0.1" 518 | 519 | extglob@^2.0.4: 520 | version "2.0.4" 521 | resolved "https://registry.yarnpkg.com/extglob/-/extglob-2.0.4.tgz#ad00fe4dc612a9232e8718711dc5cb5ab0285543" 522 | integrity sha512-Nmb6QXkELsuBr24CJSkilo6UHHgbekK5UiZgfE6UHD3Eb27YC6oD+bhcT+tJ6cl8dmsgdQxnWlcry8ksBIBLpw== 523 | dependencies: 524 | array-unique "^0.3.2" 525 | define-property "^1.0.0" 526 | expand-brackets "^2.1.4" 527 | extend-shallow "^2.0.1" 528 | fragment-cache "^0.2.1" 529 | regex-not "^1.0.0" 530 | snapdragon "^0.8.1" 531 | to-regex "^3.0.1" 532 | 533 | figures@^1.7.0: 534 | version "1.7.0" 535 | resolved "https://registry.yarnpkg.com/figures/-/figures-1.7.0.tgz#cbe1e3affcf1cd44b80cadfed28dc793a9701d2e" 536 | integrity sha1-y+Hjr/zxzUS4DK3+0o3Hk6lwHS4= 537 | dependencies: 538 | escape-string-regexp "^1.0.5" 539 | object-assign "^4.1.0" 540 | 541 | figures@^2.0.0: 542 | version "2.0.0" 543 | resolved "https://registry.yarnpkg.com/figures/-/figures-2.0.0.tgz#3ab1a2d2a62c8bfb431a0c94cb797a2fce27c962" 544 | integrity sha1-OrGi0qYsi/tDGgyUy3l6L84nyWI= 545 | dependencies: 546 | escape-string-regexp "^1.0.5" 547 | 548 | fill-range@^4.0.0: 549 | version "4.0.0" 550 | resolved "https://registry.yarnpkg.com/fill-range/-/fill-range-4.0.0.tgz#d544811d428f98eb06a63dc402d2403c328c38f7" 551 | integrity sha1-1USBHUKPmOsGpj3EAtJAPDKMOPc= 552 | dependencies: 553 | extend-shallow "^2.0.1" 554 | is-number "^3.0.0" 555 | repeat-string "^1.6.1" 556 | to-regex-range "^2.1.0" 557 | 558 | find-parent-dir@^0.3.0: 559 | version "0.3.0" 560 | resolved "https://registry.yarnpkg.com/find-parent-dir/-/find-parent-dir-0.3.0.tgz#33c44b429ab2b2f0646299c5f9f718f376ff8d54" 561 | integrity sha1-M8RLQpqysvBkYpnF+fcY83b/jVQ= 562 | 563 | find-up@^3.0.0: 564 | version "3.0.0" 565 | resolved "https://registry.yarnpkg.com/find-up/-/find-up-3.0.0.tgz#49169f1d7993430646da61ecc5ae355c21c97b73" 566 | dependencies: 567 | locate-path "^3.0.0" 568 | 569 | find-up@^4.0.0: 570 | version "4.0.0" 571 | resolved "https://registry.yarnpkg.com/find-up/-/find-up-4.0.0.tgz#c367f8024de92efb75f2d4906536d24682065c3a" 572 | integrity sha512-zoH7ZWPkRdgwYCDVoQTzqjG8JSPANhtvLhh4KVUHyKnaUJJrNeFmWIkTcNuJmR3GLMEmGYEf2S2bjgx26JTF+Q== 573 | dependencies: 574 | locate-path "^5.0.0" 575 | 576 | fn-name@~2.0.1: 577 | version "2.0.1" 578 | resolved "https://registry.yarnpkg.com/fn-name/-/fn-name-2.0.1.tgz#5214d7537a4d06a4a301c0cc262feb84188002e7" 579 | integrity sha1-UhTXU3pNBqSjAcDMJi/rhBiAAuc= 580 | 581 | for-in@^1.0.2: 582 | version "1.0.2" 583 | resolved "https://registry.yarnpkg.com/for-in/-/for-in-1.0.2.tgz#81068d295a8142ec0ac726c6e2200c30fb6d5e80" 584 | integrity sha1-gQaNKVqBQuwKxybG4iAMMPttXoA= 585 | 586 | fragment-cache@^0.2.1: 587 | version "0.2.1" 588 | resolved "https://registry.yarnpkg.com/fragment-cache/-/fragment-cache-0.2.1.tgz#4290fad27f13e89be7f33799c6bc5a0abfff0d19" 589 | integrity sha1-QpD60n8T6Jvn8zeZxrxaCr//DRk= 590 | dependencies: 591 | map-cache "^0.2.2" 592 | 593 | fs.realpath@^1.0.0: 594 | version "1.0.0" 595 | resolved "https://registry.yarnpkg.com/fs.realpath/-/fs.realpath-1.0.0.tgz#1504ad2523158caa40db4a2787cb01411994ea4f" 596 | integrity sha1-FQStJSMVjKpA20onh8sBQRmU6k8= 597 | 598 | g-status@^2.0.2: 599 | version "2.0.2" 600 | resolved "https://registry.yarnpkg.com/g-status/-/g-status-2.0.2.tgz#270fd32119e8fc9496f066fe5fe88e0a6bc78b97" 601 | integrity sha512-kQoE9qH+T1AHKgSSD0Hkv98bobE90ILQcXAF4wvGgsr7uFqNvwmh8j+Lq3l0RVt3E3HjSbv2B9biEGcEtpHLCA== 602 | dependencies: 603 | arrify "^1.0.1" 604 | matcher "^1.0.0" 605 | simple-git "^1.85.0" 606 | 607 | get-caller-file@^1.0.1: 608 | version "1.0.3" 609 | resolved "https://registry.yarnpkg.com/get-caller-file/-/get-caller-file-1.0.3.tgz#f978fa4c90d1dfe7ff2d6beda2a515e713bdcf4a" 610 | 611 | get-own-enumerable-property-symbols@^3.0.0: 612 | version "3.0.0" 613 | resolved "https://registry.yarnpkg.com/get-own-enumerable-property-symbols/-/get-own-enumerable-property-symbols-3.0.0.tgz#b877b49a5c16aefac3655f2ed2ea5b684df8d203" 614 | integrity sha512-CIJYJC4GGF06TakLg8z4GQKvDsx9EMspVxOYih7LerEL/WosUnFIww45CGfxfeKHqlg3twgUrYRT1O3WQqjGCg== 615 | 616 | get-stdin@^7.0.0: 617 | version "7.0.0" 618 | resolved "https://registry.yarnpkg.com/get-stdin/-/get-stdin-7.0.0.tgz#8d5de98f15171a125c5e516643c7a6d0ea8a96f6" 619 | integrity sha512-zRKcywvrXlXsA0v0i9Io4KDRaAw7+a1ZpjRwl9Wox8PFlVCCHra7E9c4kqXCoCM9nR5tBkaTTZRBoCm60bFqTQ== 620 | 621 | get-stream@^3.0.0: 622 | version "3.0.0" 623 | resolved "https://registry.npmjs.org/get-stream/-/get-stream-3.0.0.tgz#8e943d1358dc37555054ecbe2edb05aa174ede14" 624 | 625 | get-stream@^4.0.0: 626 | version "4.1.0" 627 | resolved "https://registry.yarnpkg.com/get-stream/-/get-stream-4.1.0.tgz#c1b255575f3dc21d59bfc79cd3d2b46b1c3a54b5" 628 | integrity sha512-GMat4EJ5161kIy2HevLlr4luNjBgvmj413KaQA7jt4V8B4RDsfpHk7WQ9GVqfYyyx8OS/L66Kox+rJRNklLK7w== 629 | dependencies: 630 | pump "^3.0.0" 631 | 632 | get-value@^2.0.3, get-value@^2.0.6: 633 | version "2.0.6" 634 | resolved "https://registry.yarnpkg.com/get-value/-/get-value-2.0.6.tgz#dc15ca1c672387ca76bd37ac0a395ba2042a2c28" 635 | integrity sha1-3BXKHGcjh8p2vTesCjlbogQqLCg= 636 | 637 | glob@^7.0.3, glob@^7.1.1, glob@^7.1.3: 638 | version "7.1.4" 639 | resolved "https://registry.yarnpkg.com/glob/-/glob-7.1.4.tgz#aa608a2f6c577ad357e1ae5a5c26d9a8d1969255" 640 | integrity sha512-hkLPepehmnKk41pUGm3sYxoFs/umurYfYJCerbXEyFIWcAzvpipAgVkBqqT9RBKMGjnq6kMuyYwha6csxbiM1A== 641 | dependencies: 642 | fs.realpath "^1.0.0" 643 | inflight "^1.0.4" 644 | inherits "2" 645 | minimatch "^3.0.4" 646 | once "^1.3.0" 647 | path-is-absolute "^1.0.0" 648 | 649 | globby@^6.1.0: 650 | version "6.1.0" 651 | resolved "https://registry.yarnpkg.com/globby/-/globby-6.1.0.tgz#f5a6d70e8395e21c858fb0489d64df02424d506c" 652 | integrity sha1-9abXDoOV4hyFj7BInWTfAkJNUGw= 653 | dependencies: 654 | array-union "^1.0.1" 655 | glob "^7.0.3" 656 | object-assign "^4.0.1" 657 | pify "^2.0.0" 658 | pinkie-promise "^2.0.0" 659 | 660 | has-ansi@^2.0.0: 661 | version "2.0.0" 662 | resolved "https://registry.yarnpkg.com/has-ansi/-/has-ansi-2.0.0.tgz#34f5049ce1ecdf2b0649af3ef24e45ed35416d91" 663 | integrity sha1-NPUEnOHs3ysGSa8+8k5F7TVBbZE= 664 | dependencies: 665 | ansi-regex "^2.0.0" 666 | 667 | has-flag@^2.0.0: 668 | version "2.0.0" 669 | resolved "https://registry.yarnpkg.com/has-flag/-/has-flag-2.0.0.tgz#e8207af1cc7b30d446cc70b734b5e8be18f88d51" 670 | 671 | has-flag@^3.0.0: 672 | version "3.0.0" 673 | resolved "https://registry.yarnpkg.com/has-flag/-/has-flag-3.0.0.tgz#b5d454dc2199ae225699f3467e5a07f3b955bafd" 674 | 675 | has-value@^0.3.1: 676 | version "0.3.1" 677 | resolved "https://registry.yarnpkg.com/has-value/-/has-value-0.3.1.tgz#7b1f58bada62ca827ec0a2078025654845995e1f" 678 | integrity sha1-ex9YutpiyoJ+wKIHgCVlSEWZXh8= 679 | dependencies: 680 | get-value "^2.0.3" 681 | has-values "^0.1.4" 682 | isobject "^2.0.0" 683 | 684 | has-value@^1.0.0: 685 | version "1.0.0" 686 | resolved "https://registry.yarnpkg.com/has-value/-/has-value-1.0.0.tgz#18b281da585b1c5c51def24c930ed29a0be6b177" 687 | integrity sha1-GLKB2lhbHFxR3vJMkw7SmgvmsXc= 688 | dependencies: 689 | get-value "^2.0.6" 690 | has-values "^1.0.0" 691 | isobject "^3.0.0" 692 | 693 | has-values@^0.1.4: 694 | version "0.1.4" 695 | resolved "https://registry.yarnpkg.com/has-values/-/has-values-0.1.4.tgz#6d61de95d91dfca9b9a02089ad384bff8f62b771" 696 | integrity sha1-bWHeldkd/Km5oCCJrThL/49it3E= 697 | 698 | has-values@^1.0.0: 699 | version "1.0.0" 700 | resolved "https://registry.yarnpkg.com/has-values/-/has-values-1.0.0.tgz#95b0b63fec2146619a6fe57fe75628d5a39efe4f" 701 | integrity sha1-lbC2P+whRmGab+V/51Yo1aOe/k8= 702 | dependencies: 703 | is-number "^3.0.0" 704 | kind-of "^4.0.0" 705 | 706 | hosted-git-info@^2.1.4: 707 | version "2.7.1" 708 | resolved "https://registry.yarnpkg.com/hosted-git-info/-/hosted-git-info-2.7.1.tgz#97f236977bd6e125408930ff6de3eec6281ec047" 709 | 710 | husky@^2.3.0: 711 | version "2.3.0" 712 | resolved "https://registry.yarnpkg.com/husky/-/husky-2.3.0.tgz#8b78ed24d763042df7fd899991985d65a976dd13" 713 | integrity sha512-A/ZQSEILoq+mQM3yC3RIBSaw1bYXdkKnyyKVSUiJl+iBjVZc5LQEXdGY1ZjrDxC4IzfRPiJ0IqzEQGCN5TQa/A== 714 | dependencies: 715 | cosmiconfig "^5.2.0" 716 | execa "^1.0.0" 717 | find-up "^3.0.0" 718 | get-stdin "^7.0.0" 719 | is-ci "^2.0.0" 720 | pkg-dir "^4.1.0" 721 | please-upgrade-node "^3.1.1" 722 | read-pkg "^5.1.1" 723 | run-node "^1.0.0" 724 | slash "^3.0.0" 725 | 726 | import-fresh@^2.0.0: 727 | version "2.0.0" 728 | resolved "https://registry.yarnpkg.com/import-fresh/-/import-fresh-2.0.0.tgz#d81355c15612d386c61f9ddd3922d4304822a546" 729 | integrity sha1-2BNVwVYS04bGH53dOSLUMEgipUY= 730 | dependencies: 731 | caller-path "^2.0.0" 732 | resolve-from "^3.0.0" 733 | 734 | indent-string@^3.0.0: 735 | version "3.2.0" 736 | resolved "https://registry.yarnpkg.com/indent-string/-/indent-string-3.2.0.tgz#4a5fd6d27cc332f37e5419a504dbb837105c9289" 737 | integrity sha1-Sl/W0nzDMvN+VBmlBNu4NxBckok= 738 | 739 | inflight@^1.0.4: 740 | version "1.0.6" 741 | resolved "https://registry.yarnpkg.com/inflight/-/inflight-1.0.6.tgz#49bd6331d7d02d0c09bc910a1075ba8165b56df9" 742 | integrity sha1-Sb1jMdfQLQwJvJEKEHW6gWW1bfk= 743 | dependencies: 744 | once "^1.3.0" 745 | wrappy "1" 746 | 747 | inherits@2: 748 | version "2.0.3" 749 | resolved "https://registry.yarnpkg.com/inherits/-/inherits-2.0.3.tgz#633c2c83e3da42a502f52466022480f4208261de" 750 | integrity sha1-Yzwsg+PaQqUC9SRmAiSA9CCCYd4= 751 | 752 | invert-kv@^2.0.0: 753 | version "2.0.0" 754 | resolved "https://registry.yarnpkg.com/invert-kv/-/invert-kv-2.0.0.tgz#7393f5afa59ec9ff5f67a27620d11c226e3eec02" 755 | 756 | is-accessor-descriptor@^0.1.6: 757 | version "0.1.6" 758 | resolved "https://registry.yarnpkg.com/is-accessor-descriptor/-/is-accessor-descriptor-0.1.6.tgz#a9e12cb3ae8d876727eeef3843f8a0897b5c98d6" 759 | integrity sha1-qeEss66Nh2cn7u84Q/igiXtcmNY= 760 | dependencies: 761 | kind-of "^3.0.2" 762 | 763 | is-accessor-descriptor@^1.0.0: 764 | version "1.0.0" 765 | resolved "https://registry.yarnpkg.com/is-accessor-descriptor/-/is-accessor-descriptor-1.0.0.tgz#169c2f6d3df1f992618072365c9b0ea1f6878656" 766 | integrity sha512-m5hnHTkcVsPfqx3AKlyttIPb7J+XykHvJP2B9bZDjlhLIoEq4XoK64Vg7boZlVWYK6LUY94dYPEE7Lh0ZkZKcQ== 767 | dependencies: 768 | kind-of "^6.0.0" 769 | 770 | is-arrayish@^0.2.1: 771 | version "0.2.1" 772 | resolved "https://registry.yarnpkg.com/is-arrayish/-/is-arrayish-0.2.1.tgz#77c99840527aa8ecb1a8ba697b80645a7a926a9d" 773 | 774 | is-buffer@^1.1.5: 775 | version "1.1.6" 776 | resolved "https://registry.yarnpkg.com/is-buffer/-/is-buffer-1.1.6.tgz#efaa2ea9daa0d7ab2ea13a97b2b8ad51fefbe8be" 777 | integrity sha512-NcdALwpXkTm5Zvvbk7owOUSvVvBKDgKP5/ewfXEznmQFfs4ZRmanOeKBTjRVjka3QFoN6XJ+9F3USqfHqTaU5w== 778 | 779 | is-builtin-module@^1.0.0: 780 | version "1.0.0" 781 | resolved "https://registry.npmjs.org/is-builtin-module/-/is-builtin-module-1.0.0.tgz#540572d34f7ac3119f8f76c30cbc1b1e037affbe" 782 | dependencies: 783 | builtin-modules "^1.0.0" 784 | 785 | is-ci@^2.0.0: 786 | version "2.0.0" 787 | resolved "https://registry.yarnpkg.com/is-ci/-/is-ci-2.0.0.tgz#6bc6334181810e04b5c22b3d589fdca55026404c" 788 | integrity sha512-YfJT7rkpQB0updsdHLGWrvhBJfcfzNNawYDNIyQXJz0IViGf75O8EBPKSdvw2rF+LGCsX4FZ8tcr3b19LcZq4w== 789 | dependencies: 790 | ci-info "^2.0.0" 791 | 792 | is-data-descriptor@^0.1.4: 793 | version "0.1.4" 794 | resolved "https://registry.yarnpkg.com/is-data-descriptor/-/is-data-descriptor-0.1.4.tgz#0b5ee648388e2c860282e793f1856fec3f301b56" 795 | integrity sha1-C17mSDiOLIYCgueT8YVv7D8wG1Y= 796 | dependencies: 797 | kind-of "^3.0.2" 798 | 799 | is-data-descriptor@^1.0.0: 800 | version "1.0.0" 801 | resolved "https://registry.yarnpkg.com/is-data-descriptor/-/is-data-descriptor-1.0.0.tgz#d84876321d0e7add03990406abbbbd36ba9268c7" 802 | integrity sha512-jbRXy1FmtAoCjQkVmIVYwuuqDFUbaOeDjmed1tOGPrsMhtJA4rD9tkgA0F1qJ3gRFRXcHYVkdeaP50Q5rE/jLQ== 803 | dependencies: 804 | kind-of "^6.0.0" 805 | 806 | is-descriptor@^0.1.0: 807 | version "0.1.6" 808 | resolved "https://registry.yarnpkg.com/is-descriptor/-/is-descriptor-0.1.6.tgz#366d8240dde487ca51823b1ab9f07a10a78251ca" 809 | integrity sha512-avDYr0SB3DwO9zsMov0gKCESFYqCnE4hq/4z3TdUlukEy5t9C0YRq7HLrsN52NAcqXKaepeCD0n+B0arnVG3Hg== 810 | dependencies: 811 | is-accessor-descriptor "^0.1.6" 812 | is-data-descriptor "^0.1.4" 813 | kind-of "^5.0.0" 814 | 815 | is-descriptor@^1.0.0, is-descriptor@^1.0.2: 816 | version "1.0.2" 817 | resolved "https://registry.yarnpkg.com/is-descriptor/-/is-descriptor-1.0.2.tgz#3b159746a66604b04f8c81524ba365c5f14d86ec" 818 | integrity sha512-2eis5WqQGV7peooDyLmNEPUrps9+SXX5c9pL3xEB+4e9HnGuDa7mB7kHxHw4CbqS9k1T2hOH3miL8n8WtiYVtg== 819 | dependencies: 820 | is-accessor-descriptor "^1.0.0" 821 | is-data-descriptor "^1.0.0" 822 | kind-of "^6.0.2" 823 | 824 | is-directory@^0.3.1: 825 | version "0.3.1" 826 | resolved "https://registry.yarnpkg.com/is-directory/-/is-directory-0.3.1.tgz#61339b6f2475fc772fd9c9d83f5c8575dc154ae1" 827 | integrity sha1-YTObbyR1/Hcv2cnYP1yFddwVSuE= 828 | 829 | is-extendable@^0.1.0, is-extendable@^0.1.1: 830 | version "0.1.1" 831 | resolved "https://registry.yarnpkg.com/is-extendable/-/is-extendable-0.1.1.tgz#62b110e289a471418e3ec36a617d472e301dfc89" 832 | integrity sha1-YrEQ4omkcUGOPsNqYX1HLjAd/Ik= 833 | 834 | is-extendable@^1.0.1: 835 | version "1.0.1" 836 | resolved "https://registry.yarnpkg.com/is-extendable/-/is-extendable-1.0.1.tgz#a7470f9e426733d81bd81e1155264e3a3507cab4" 837 | integrity sha512-arnXMxT1hhoKo9k1LZdmlNyJdDDfy2v0fXjFlmok4+i8ul/6WlbVge9bhM74OpNPQPMGUToDtz+KXa1PneJxOA== 838 | dependencies: 839 | is-plain-object "^2.0.4" 840 | 841 | is-extglob@^2.1.1: 842 | version "2.1.1" 843 | resolved "https://registry.yarnpkg.com/is-extglob/-/is-extglob-2.1.1.tgz#a88c02535791f02ed37c76a1b9ea9773c833f8c2" 844 | integrity sha1-qIwCU1eR8C7TfHahueqXc8gz+MI= 845 | 846 | is-fullwidth-code-point@^1.0.0: 847 | version "1.0.0" 848 | resolved "https://registry.yarnpkg.com/is-fullwidth-code-point/-/is-fullwidth-code-point-1.0.0.tgz#ef9e31386f031a7f0d643af82fde50c457ef00cb" 849 | dependencies: 850 | number-is-nan "^1.0.0" 851 | 852 | is-fullwidth-code-point@^2.0.0: 853 | version "2.0.0" 854 | resolved "https://registry.yarnpkg.com/is-fullwidth-code-point/-/is-fullwidth-code-point-2.0.0.tgz#a3b30a5c4f199183167aaab93beefae3ddfb654f" 855 | 856 | is-glob@^4.0.0: 857 | version "4.0.1" 858 | resolved "https://registry.yarnpkg.com/is-glob/-/is-glob-4.0.1.tgz#7567dbe9f2f5e2467bc77ab83c4a29482407a5dc" 859 | integrity sha512-5G0tKtBTFImOqDnLB2hG6Bp2qcKEFduo4tZu9MT/H6NQv/ghhy30o55ufafxJ/LdH79LLs2Kfrn85TLKyA7BUg== 860 | dependencies: 861 | is-extglob "^2.1.1" 862 | 863 | is-number@^3.0.0: 864 | version "3.0.0" 865 | resolved "https://registry.yarnpkg.com/is-number/-/is-number-3.0.0.tgz#24fd6201a4782cf50561c810276afc7d12d71195" 866 | integrity sha1-JP1iAaR4LPUFYcgQJ2r8fRLXEZU= 867 | dependencies: 868 | kind-of "^3.0.2" 869 | 870 | is-obj@^1.0.1: 871 | version "1.0.1" 872 | resolved "https://registry.yarnpkg.com/is-obj/-/is-obj-1.0.1.tgz#3e4729ac1f5fde025cd7d83a896dab9f4f67db0f" 873 | integrity sha1-PkcprB9f3gJc19g6iW2rn09n2w8= 874 | 875 | is-observable@^1.1.0: 876 | version "1.1.0" 877 | resolved "https://registry.yarnpkg.com/is-observable/-/is-observable-1.1.0.tgz#b3e986c8f44de950867cab5403f5a3465005975e" 878 | integrity sha512-NqCa4Sa2d+u7BWc6CukaObG3Fh+CU9bvixbpcXYhy2VvYS7vVGIdAgnIS5Ks3A/cqk4rebLJ9s8zBstT2aKnIA== 879 | dependencies: 880 | symbol-observable "^1.1.0" 881 | 882 | is-path-cwd@^1.0.0: 883 | version "1.0.0" 884 | resolved "https://registry.yarnpkg.com/is-path-cwd/-/is-path-cwd-1.0.0.tgz#d225ec23132e89edd38fda767472e62e65f1106d" 885 | integrity sha1-0iXsIxMuie3Tj9p2dHLmLmXxEG0= 886 | 887 | is-path-in-cwd@^1.0.0: 888 | version "1.0.1" 889 | resolved "https://registry.yarnpkg.com/is-path-in-cwd/-/is-path-in-cwd-1.0.1.tgz#5ac48b345ef675339bd6c7a48a912110b241cf52" 890 | integrity sha512-FjV1RTW48E7CWM7eE/J2NJvAEEVektecDBVBE5Hh3nM1Jd0kvhHtX68Pr3xsDf857xt3Y4AkwVULK1Vku62aaQ== 891 | dependencies: 892 | is-path-inside "^1.0.0" 893 | 894 | is-path-inside@^1.0.0: 895 | version "1.0.1" 896 | resolved "https://registry.yarnpkg.com/is-path-inside/-/is-path-inside-1.0.1.tgz#8ef5b7de50437a3fdca6b4e865ef7aa55cb48036" 897 | integrity sha1-jvW33lBDej/cprToZe96pVy0gDY= 898 | dependencies: 899 | path-is-inside "^1.0.1" 900 | 901 | is-plain-object@^2.0.1, is-plain-object@^2.0.3, is-plain-object@^2.0.4: 902 | version "2.0.4" 903 | resolved "https://registry.yarnpkg.com/is-plain-object/-/is-plain-object-2.0.4.tgz#2c163b3fafb1b606d9d17928f05c2a1c38e07677" 904 | integrity sha512-h5PpgXkWitc38BBMYawTYMWJHFZJVnBquFE57xFpjB8pJFiF6gZ+bU+WyI/yqXiFR5mdLsgYNaPe8uao6Uv9Og== 905 | dependencies: 906 | isobject "^3.0.1" 907 | 908 | is-promise@^2.1.0: 909 | version "2.1.0" 910 | resolved "https://registry.yarnpkg.com/is-promise/-/is-promise-2.1.0.tgz#79a2a9ece7f096e80f36d2b2f3bc16c1ff4bf3fa" 911 | integrity sha1-eaKp7OfwlugPNtKy87wWwf9L8/o= 912 | 913 | is-regexp@^1.0.0: 914 | version "1.0.0" 915 | resolved "https://registry.yarnpkg.com/is-regexp/-/is-regexp-1.0.0.tgz#fd2d883545c46bac5a633e7b9a09e87fa2cb5069" 916 | integrity sha1-/S2INUXEa6xaYz57mgnof6LLUGk= 917 | 918 | is-stream@^1.1.0: 919 | version "1.1.0" 920 | resolved "https://registry.yarnpkg.com/is-stream/-/is-stream-1.1.0.tgz#12d4a3dd4e68e0b79ceb8dbc84173ae80d91ca44" 921 | 922 | is-windows@^1.0.2: 923 | version "1.0.2" 924 | resolved "https://registry.yarnpkg.com/is-windows/-/is-windows-1.0.2.tgz#d1850eb9791ecd18e6182ce12a30f396634bb19d" 925 | integrity sha512-eXK1UInq2bPmjyX6e3VHIzMLobc4J94i4AWn+Hpq3OU5KkrRC96OAcR3PRJ/pGu6m8TRnBHP9dkXQVsT/COVIA== 926 | 927 | isarray@1.0.0: 928 | version "1.0.0" 929 | resolved "https://registry.yarnpkg.com/isarray/-/isarray-1.0.0.tgz#bb935d48582cba168c06834957a54a3e07124f11" 930 | integrity sha1-u5NdSFgsuhaMBoNJV6VKPgcSTxE= 931 | 932 | isexe@^2.0.0: 933 | version "2.0.0" 934 | resolved "https://registry.yarnpkg.com/isexe/-/isexe-2.0.0.tgz#e8fbf374dc556ff8947a10dcb0572d633f2cfa10" 935 | 936 | isobject@^2.0.0: 937 | version "2.1.0" 938 | resolved "https://registry.yarnpkg.com/isobject/-/isobject-2.1.0.tgz#f065561096a3f1da2ef46272f815c840d87e0c89" 939 | integrity sha1-8GVWEJaj8dou9GJy+BXIQNh+DIk= 940 | dependencies: 941 | isarray "1.0.0" 942 | 943 | isobject@^3.0.0, isobject@^3.0.1: 944 | version "3.0.1" 945 | resolved "https://registry.yarnpkg.com/isobject/-/isobject-3.0.1.tgz#4e431e92b11a9731636aa1f9c8d1ccbcfdab78df" 946 | integrity sha1-TkMekrEalzFjaqH5yNHMvP2reN8= 947 | 948 | js-tokens@^4.0.0: 949 | version "4.0.0" 950 | resolved "https://registry.yarnpkg.com/js-tokens/-/js-tokens-4.0.0.tgz#19203fb59991df98e3a287050d4647cdeaf32499" 951 | integrity sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ== 952 | 953 | js-yaml@^3.13.0, js-yaml@^3.13.1: 954 | version "3.13.1" 955 | resolved "https://registry.yarnpkg.com/js-yaml/-/js-yaml-3.13.1.tgz#aff151b30bfdfa8e49e05da22e7415e9dfa37847" 956 | integrity sha512-YfbcO7jXDdyj0DGxYVSlSeQNHbD7XPWvrVWeVUujrQEoZzWJIRrCPoyk6kL6IAjAG2IolMK4T0hNUe0HOUs5Jw== 957 | dependencies: 958 | argparse "^1.0.7" 959 | esprima "^4.0.0" 960 | 961 | json-parse-better-errors@^1.0.1: 962 | version "1.0.2" 963 | resolved "https://registry.yarnpkg.com/json-parse-better-errors/-/json-parse-better-errors-1.0.2.tgz#bb867cfb3450e69107c131d1c514bab3dc8bcaa9" 964 | 965 | kind-of@^3.0.2, kind-of@^3.0.3, kind-of@^3.2.0: 966 | version "3.2.2" 967 | resolved "https://registry.yarnpkg.com/kind-of/-/kind-of-3.2.2.tgz#31ea21a734bab9bbb0f32466d893aea51e4a3c64" 968 | integrity sha1-MeohpzS6ubuw8yRm2JOupR5KPGQ= 969 | dependencies: 970 | is-buffer "^1.1.5" 971 | 972 | kind-of@^4.0.0: 973 | version "4.0.0" 974 | resolved "https://registry.yarnpkg.com/kind-of/-/kind-of-4.0.0.tgz#20813df3d712928b207378691a45066fae72dd57" 975 | integrity sha1-IIE989cSkosgc3hpGkUGb65y3Vc= 976 | dependencies: 977 | is-buffer "^1.1.5" 978 | 979 | kind-of@^5.0.0: 980 | version "5.1.0" 981 | resolved "https://registry.yarnpkg.com/kind-of/-/kind-of-5.1.0.tgz#729c91e2d857b7a419a1f9aa65685c4c33f5845d" 982 | integrity sha512-NGEErnH6F2vUuXDh+OlbcKW7/wOcfdRHaZ7VWtqCztfHri/++YKmP51OdWeGPuqCOba6kk2OTe5d02VmTB80Pw== 983 | 984 | kind-of@^6.0.0, kind-of@^6.0.2: 985 | version "6.0.2" 986 | resolved "https://registry.yarnpkg.com/kind-of/-/kind-of-6.0.2.tgz#01146b36a6218e64e58f3a8d66de5d7fc6f6d051" 987 | integrity sha512-s5kLOcnH0XqDO+FvuaLX8DDjZ18CGFk7VygH40QoKPUQhW4e2rvM0rwUq0t8IQDOwYSeLK01U90OjzBTme2QqA== 988 | 989 | lcid@^2.0.0: 990 | version "2.0.0" 991 | resolved "https://registry.yarnpkg.com/lcid/-/lcid-2.0.0.tgz#6ef5d2df60e52f82eb228a4c373e8d1f397253cf" 992 | dependencies: 993 | invert-kv "^2.0.0" 994 | 995 | lint-staged@^8.1.7: 996 | version "8.1.7" 997 | resolved "https://registry.yarnpkg.com/lint-staged/-/lint-staged-8.1.7.tgz#a8988bc83bdffa97d04adb09dbc0b1f3a58fa6fc" 998 | integrity sha512-egT0goFhIFoOGk6rasPngTFh2qDqxZddM0PwI58oi66RxCDcn5uDwxmiasWIF0qGnchHSYVJ8HPRD5LrFo7TKA== 999 | dependencies: 1000 | chalk "^2.3.1" 1001 | commander "^2.14.1" 1002 | cosmiconfig "^5.2.0" 1003 | debug "^3.1.0" 1004 | dedent "^0.7.0" 1005 | del "^3.0.0" 1006 | execa "^1.0.0" 1007 | find-parent-dir "^0.3.0" 1008 | g-status "^2.0.2" 1009 | is-glob "^4.0.0" 1010 | is-windows "^1.0.2" 1011 | listr "^0.14.2" 1012 | listr-update-renderer "^0.5.0" 1013 | lodash "^4.17.11" 1014 | log-symbols "^2.2.0" 1015 | micromatch "^3.1.8" 1016 | npm-which "^3.0.1" 1017 | p-map "^1.1.1" 1018 | path-is-inside "^1.0.2" 1019 | pify "^3.0.0" 1020 | please-upgrade-node "^3.0.2" 1021 | staged-git-files "1.1.2" 1022 | string-argv "^0.0.2" 1023 | stringify-object "^3.2.2" 1024 | yup "^0.27.0" 1025 | 1026 | listr-silent-renderer@^1.1.1: 1027 | version "1.1.1" 1028 | resolved "https://registry.yarnpkg.com/listr-silent-renderer/-/listr-silent-renderer-1.1.1.tgz#924b5a3757153770bf1a8e3fbf74b8bbf3f9242e" 1029 | integrity sha1-kktaN1cVN3C/Go4/v3S4u/P5JC4= 1030 | 1031 | listr-update-renderer@^0.5.0: 1032 | version "0.5.0" 1033 | resolved "https://registry.yarnpkg.com/listr-update-renderer/-/listr-update-renderer-0.5.0.tgz#4ea8368548a7b8aecb7e06d8c95cb45ae2ede6a2" 1034 | integrity sha512-tKRsZpKz8GSGqoI/+caPmfrypiaq+OQCbd+CovEC24uk1h952lVj5sC7SqyFUm+OaJ5HN/a1YLt5cit2FMNsFA== 1035 | dependencies: 1036 | chalk "^1.1.3" 1037 | cli-truncate "^0.2.1" 1038 | elegant-spinner "^1.0.1" 1039 | figures "^1.7.0" 1040 | indent-string "^3.0.0" 1041 | log-symbols "^1.0.2" 1042 | log-update "^2.3.0" 1043 | strip-ansi "^3.0.1" 1044 | 1045 | listr-verbose-renderer@^0.5.0: 1046 | version "0.5.0" 1047 | resolved "https://registry.yarnpkg.com/listr-verbose-renderer/-/listr-verbose-renderer-0.5.0.tgz#f1132167535ea4c1261102b9f28dac7cba1e03db" 1048 | integrity sha512-04PDPqSlsqIOaaaGZ+41vq5FejI9auqTInicFRndCBgE3bXG8D6W1I+mWhk+1nqbHmyhla/6BUrd5OSiHwKRXw== 1049 | dependencies: 1050 | chalk "^2.4.1" 1051 | cli-cursor "^2.1.0" 1052 | date-fns "^1.27.2" 1053 | figures "^2.0.0" 1054 | 1055 | listr@^0.14.2: 1056 | version "0.14.3" 1057 | resolved "https://registry.yarnpkg.com/listr/-/listr-0.14.3.tgz#2fea909604e434be464c50bddba0d496928fa586" 1058 | integrity sha512-RmAl7su35BFd/xoMamRjpIE4j3v+L28o8CT5YhAXQJm1fD+1l9ngXY8JAQRJ+tFK2i5njvi0iRUKV09vPwA0iA== 1059 | dependencies: 1060 | "@samverschueren/stream-to-observable" "^0.3.0" 1061 | is-observable "^1.1.0" 1062 | is-promise "^2.1.0" 1063 | is-stream "^1.1.0" 1064 | listr-silent-renderer "^1.1.1" 1065 | listr-update-renderer "^0.5.0" 1066 | listr-verbose-renderer "^0.5.0" 1067 | p-map "^2.0.0" 1068 | rxjs "^6.3.3" 1069 | 1070 | locate-path@^3.0.0: 1071 | version "3.0.0" 1072 | resolved "https://registry.yarnpkg.com/locate-path/-/locate-path-3.0.0.tgz#dbec3b3ab759758071b58fe59fc41871af21400e" 1073 | dependencies: 1074 | p-locate "^3.0.0" 1075 | path-exists "^3.0.0" 1076 | 1077 | locate-path@^5.0.0: 1078 | version "5.0.0" 1079 | resolved "https://registry.yarnpkg.com/locate-path/-/locate-path-5.0.0.tgz#1afba396afd676a6d42504d0a67a3a7eb9f62aa0" 1080 | integrity sha512-t7hw9pI+WvuwNJXwk5zVHpyhIqzg2qTlklJOf0mVxGSbe3Fp2VieZcduNYjaLDoy6p9uGpQEGWG87WpMKlNq8g== 1081 | dependencies: 1082 | p-locate "^4.1.0" 1083 | 1084 | lodash@^4.17.10, lodash@^4.17.11: 1085 | version "4.17.14" 1086 | resolved "https://registry.yarnpkg.com/lodash/-/lodash-4.17.14.tgz#9ce487ae66c96254fe20b599f21b6816028078ba" 1087 | integrity sha512-mmKYbW3GLuJeX+iGP+Y7Gp1AiGHGbXHCOh/jZmrawMmsE7MS4znI3RL2FsjbqOyMayHInjOeykW7PEajUk1/xw== 1088 | 1089 | log-symbols@^1.0.2: 1090 | version "1.0.2" 1091 | resolved "https://registry.yarnpkg.com/log-symbols/-/log-symbols-1.0.2.tgz#376ff7b58ea3086a0f09facc74617eca501e1a18" 1092 | integrity sha1-N2/3tY6jCGoPCfrMdGF+ylAeGhg= 1093 | dependencies: 1094 | chalk "^1.0.0" 1095 | 1096 | log-symbols@^2.2.0: 1097 | version "2.2.0" 1098 | resolved "https://registry.yarnpkg.com/log-symbols/-/log-symbols-2.2.0.tgz#5740e1c5d6f0dfda4ad9323b5332107ef6b4c40a" 1099 | integrity sha512-VeIAFslyIerEJLXHziedo2basKbMKtTw3vfn5IzG0XTjhAVEJyNHnL2p7vc+wBDSdQuUpNw3M2u6xb9QsAY5Eg== 1100 | dependencies: 1101 | chalk "^2.0.1" 1102 | 1103 | log-update@^2.3.0: 1104 | version "2.3.0" 1105 | resolved "https://registry.yarnpkg.com/log-update/-/log-update-2.3.0.tgz#88328fd7d1ce7938b29283746f0b1bc126b24708" 1106 | integrity sha1-iDKP19HOeTiykoN0bwsbwSayRwg= 1107 | dependencies: 1108 | ansi-escapes "^3.0.0" 1109 | cli-cursor "^2.0.0" 1110 | wrap-ansi "^3.0.1" 1111 | 1112 | map-age-cleaner@^0.1.1: 1113 | version "0.1.2" 1114 | resolved "https://registry.yarnpkg.com/map-age-cleaner/-/map-age-cleaner-0.1.2.tgz#098fb15538fd3dbe461f12745b0ca8568d4e3f74" 1115 | dependencies: 1116 | p-defer "^1.0.0" 1117 | 1118 | map-cache@^0.2.2: 1119 | version "0.2.2" 1120 | resolved "https://registry.yarnpkg.com/map-cache/-/map-cache-0.2.2.tgz#c32abd0bd6525d9b051645bb4f26ac5dc98a0dbf" 1121 | integrity sha1-wyq9C9ZSXZsFFkW7TyasXcmKDb8= 1122 | 1123 | map-visit@^1.0.0: 1124 | version "1.0.0" 1125 | resolved "https://registry.yarnpkg.com/map-visit/-/map-visit-1.0.0.tgz#ecdca8f13144e660f1b5bd41f12f3479d98dfb8f" 1126 | integrity sha1-7Nyo8TFE5mDxtb1B8S80edmN+48= 1127 | dependencies: 1128 | object-visit "^1.0.0" 1129 | 1130 | matcher@^1.0.0: 1131 | version "1.1.1" 1132 | resolved "https://registry.yarnpkg.com/matcher/-/matcher-1.1.1.tgz#51d8301e138f840982b338b116bb0c09af62c1c2" 1133 | integrity sha512-+BmqxWIubKTRKNWx/ahnCkk3mG8m7OturVlqq6HiojGJTd5hVYbgZm6WzcYPCoB+KBT4Vd6R7WSRG2OADNaCjg== 1134 | dependencies: 1135 | escape-string-regexp "^1.0.4" 1136 | 1137 | mem@^4.0.0: 1138 | version "4.0.0" 1139 | resolved "https://registry.yarnpkg.com/mem/-/mem-4.0.0.tgz#6437690d9471678f6cc83659c00cbafcd6b0cdaf" 1140 | dependencies: 1141 | map-age-cleaner "^0.1.1" 1142 | mimic-fn "^1.0.0" 1143 | p-is-promise "^1.1.0" 1144 | 1145 | micromatch@^3.1.8: 1146 | version "3.1.10" 1147 | resolved "https://registry.yarnpkg.com/micromatch/-/micromatch-3.1.10.tgz#70859bc95c9840952f359a068a3fc49f9ecfac23" 1148 | integrity sha512-MWikgl9n9M3w+bpsY3He8L+w9eF9338xRl8IAO5viDizwSzziFEyUzo2xrrloB64ADbTf8uA8vRqqttDTOmccg== 1149 | dependencies: 1150 | arr-diff "^4.0.0" 1151 | array-unique "^0.3.2" 1152 | braces "^2.3.1" 1153 | define-property "^2.0.2" 1154 | extend-shallow "^3.0.2" 1155 | extglob "^2.0.4" 1156 | fragment-cache "^0.2.1" 1157 | kind-of "^6.0.2" 1158 | nanomatch "^1.2.9" 1159 | object.pick "^1.3.0" 1160 | regex-not "^1.0.0" 1161 | snapdragon "^0.8.1" 1162 | to-regex "^3.0.2" 1163 | 1164 | mimic-fn@^1.0.0: 1165 | version "1.2.0" 1166 | resolved "https://registry.yarnpkg.com/mimic-fn/-/mimic-fn-1.2.0.tgz#820c86a39334640e99516928bd03fca88057d022" 1167 | 1168 | minimatch@^3.0.4: 1169 | version "3.0.4" 1170 | resolved "https://registry.yarnpkg.com/minimatch/-/minimatch-3.0.4.tgz#5166e286457f03306064be5497e8dbb0c3d32083" 1171 | integrity sha512-yJHVQEhyqPLUTgt9B83PXu6W3rx4MvvHvSUvToogpwoGDOUQ+yDrR0HRot+yOCdCO7u4hX3pWft6kWBBcqh0UA== 1172 | dependencies: 1173 | brace-expansion "^1.1.7" 1174 | 1175 | minimist@0.0.8: 1176 | version "0.0.8" 1177 | resolved "https://registry.yarnpkg.com/minimist/-/minimist-0.0.8.tgz#857fcabfc3397d2625b8228262e86aa7a011b05d" 1178 | integrity sha1-hX/Kv8M5fSYluCKCYuhqp6ARsF0= 1179 | 1180 | mixin-deep@^1.2.0: 1181 | version "1.3.2" 1182 | resolved "https://registry.yarnpkg.com/mixin-deep/-/mixin-deep-1.3.2.tgz#1120b43dc359a785dce65b55b82e257ccf479566" 1183 | integrity sha512-WRoDn//mXBiJ1H40rqa3vH0toePwSsGb45iInWlTySa+Uu4k3tYUSxa2v1KqAiLtvlrSzaExqS1gtk96A9zvEA== 1184 | dependencies: 1185 | for-in "^1.0.2" 1186 | is-extendable "^1.0.1" 1187 | 1188 | mkdirp@^0.5.1: 1189 | version "0.5.1" 1190 | resolved "https://registry.yarnpkg.com/mkdirp/-/mkdirp-0.5.1.tgz#30057438eac6cf7f8c4767f38648d6697d75c903" 1191 | integrity sha1-MAV0OOrGz3+MR2fzhkjWaX11yQM= 1192 | dependencies: 1193 | minimist "0.0.8" 1194 | 1195 | ms@2.0.0: 1196 | version "2.0.0" 1197 | resolved "https://registry.yarnpkg.com/ms/-/ms-2.0.0.tgz#5608aeadfc00be6c2901df5f9861788de0d597c8" 1198 | integrity sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g= 1199 | 1200 | ms@^2.1.1: 1201 | version "2.1.1" 1202 | resolved "https://registry.yarnpkg.com/ms/-/ms-2.1.1.tgz#30a5864eb3ebb0a66f2ebe6d727af06a09d86e0a" 1203 | integrity sha512-tgp+dl5cGk28utYktBsrFqA7HKgrhgPsg6Z/EfhWI4gl1Hwq8B/GmY/0oXZ6nF8hDVesS/FpnYaD/kOWhYQvyg== 1204 | 1205 | nanomatch@^1.2.9: 1206 | version "1.2.13" 1207 | resolved "https://registry.yarnpkg.com/nanomatch/-/nanomatch-1.2.13.tgz#b87a8aa4fc0de8fe6be88895b38983ff265bd119" 1208 | integrity sha512-fpoe2T0RbHwBTBUOftAfBPaDEi06ufaUai0mE6Yn1kacc3SnTErfb/h+X94VXzI64rKFHYImXSvdwGGCmwOqCA== 1209 | dependencies: 1210 | arr-diff "^4.0.0" 1211 | array-unique "^0.3.2" 1212 | define-property "^2.0.2" 1213 | extend-shallow "^3.0.2" 1214 | fragment-cache "^0.2.1" 1215 | is-windows "^1.0.2" 1216 | kind-of "^6.0.2" 1217 | object.pick "^1.3.0" 1218 | regex-not "^1.0.0" 1219 | snapdragon "^0.8.1" 1220 | to-regex "^3.0.1" 1221 | 1222 | nice-try@^1.0.4: 1223 | version "1.0.5" 1224 | resolved "https://registry.yarnpkg.com/nice-try/-/nice-try-1.0.5.tgz#a3378a7696ce7d223e88fc9b764bd7ef1089e366" 1225 | 1226 | normalize-package-data@^2.3.2: 1227 | version "2.4.0" 1228 | resolved "https://registry.yarnpkg.com/normalize-package-data/-/normalize-package-data-2.4.0.tgz#12f95a307d58352075a04907b84ac8be98ac012f" 1229 | dependencies: 1230 | hosted-git-info "^2.1.4" 1231 | is-builtin-module "^1.0.0" 1232 | semver "2 || 3 || 4 || 5" 1233 | validate-npm-package-license "^3.0.1" 1234 | 1235 | normalize-package-data@^2.5.0: 1236 | version "2.5.0" 1237 | resolved "https://registry.yarnpkg.com/normalize-package-data/-/normalize-package-data-2.5.0.tgz#e66db1838b200c1dfc233225d12cb36520e234a8" 1238 | integrity sha512-/5CMN3T0R4XTj4DcGaexo+roZSdSFW/0AOOTROrjxzCG1wrWXEsGbRKevjlIL+ZDE4sZlJr5ED4YW0yqmkK+eA== 1239 | dependencies: 1240 | hosted-git-info "^2.1.4" 1241 | resolve "^1.10.0" 1242 | semver "2 || 3 || 4 || 5" 1243 | validate-npm-package-license "^3.0.1" 1244 | 1245 | npm-path@^2.0.2: 1246 | version "2.0.4" 1247 | resolved "https://registry.yarnpkg.com/npm-path/-/npm-path-2.0.4.tgz#c641347a5ff9d6a09e4d9bce5580c4f505278e64" 1248 | integrity sha512-IFsj0R9C7ZdR5cP+ET342q77uSRdtWOlWpih5eC+lu29tIDbNEgDbzgVJ5UFvYHWhxDZ5TFkJafFioO0pPQjCw== 1249 | dependencies: 1250 | which "^1.2.10" 1251 | 1252 | npm-run-path@^2.0.0: 1253 | version "2.0.2" 1254 | resolved "https://registry.yarnpkg.com/npm-run-path/-/npm-run-path-2.0.2.tgz#35a9232dfa35d7067b4cb2ddf2357b1871536c5f" 1255 | dependencies: 1256 | path-key "^2.0.0" 1257 | 1258 | npm-which@^3.0.1: 1259 | version "3.0.1" 1260 | resolved "https://registry.yarnpkg.com/npm-which/-/npm-which-3.0.1.tgz#9225f26ec3a285c209cae67c3b11a6b4ab7140aa" 1261 | integrity sha1-kiXybsOihcIJyuZ8OxGmtKtxQKo= 1262 | dependencies: 1263 | commander "^2.9.0" 1264 | npm-path "^2.0.2" 1265 | which "^1.2.10" 1266 | 1267 | number-is-nan@^1.0.0: 1268 | version "1.0.1" 1269 | resolved "https://registry.yarnpkg.com/number-is-nan/-/number-is-nan-1.0.1.tgz#097b602b53422a522c1afb8790318336941a011d" 1270 | 1271 | object-assign@^4.0.1, object-assign@^4.1.0: 1272 | version "4.1.1" 1273 | resolved "https://registry.yarnpkg.com/object-assign/-/object-assign-4.1.1.tgz#2109adc7965887cfc05cbbd442cac8bfbb360863" 1274 | integrity sha1-IQmtx5ZYh8/AXLvUQsrIv7s2CGM= 1275 | 1276 | object-copy@^0.1.0: 1277 | version "0.1.0" 1278 | resolved "https://registry.yarnpkg.com/object-copy/-/object-copy-0.1.0.tgz#7e7d858b781bd7c991a41ba975ed3812754e998c" 1279 | integrity sha1-fn2Fi3gb18mRpBupde04EnVOmYw= 1280 | dependencies: 1281 | copy-descriptor "^0.1.0" 1282 | define-property "^0.2.5" 1283 | kind-of "^3.0.3" 1284 | 1285 | object-visit@^1.0.0: 1286 | version "1.0.1" 1287 | resolved "https://registry.yarnpkg.com/object-visit/-/object-visit-1.0.1.tgz#f79c4493af0c5377b59fe39d395e41042dd045bb" 1288 | integrity sha1-95xEk68MU3e1n+OdOV5BBC3QRbs= 1289 | dependencies: 1290 | isobject "^3.0.0" 1291 | 1292 | object.pick@^1.3.0: 1293 | version "1.3.0" 1294 | resolved "https://registry.yarnpkg.com/object.pick/-/object.pick-1.3.0.tgz#87a10ac4c1694bd2e1cbf53591a66141fb5dd747" 1295 | integrity sha1-h6EKxMFpS9Lhy/U1kaZhQftd10c= 1296 | dependencies: 1297 | isobject "^3.0.1" 1298 | 1299 | once@^1.3.0, once@^1.3.1, once@^1.4.0: 1300 | version "1.4.0" 1301 | resolved "https://registry.yarnpkg.com/once/-/once-1.4.0.tgz#583b1aa775961d4b113ac17d9c50baef9dd76bd1" 1302 | integrity sha1-WDsap3WWHUsROsF9nFC6753Xa9E= 1303 | dependencies: 1304 | wrappy "1" 1305 | 1306 | onetime@^2.0.0: 1307 | version "2.0.1" 1308 | resolved "https://registry.yarnpkg.com/onetime/-/onetime-2.0.1.tgz#067428230fd67443b2794b22bba528b6867962d4" 1309 | integrity sha1-BnQoIw/WdEOyeUsiu6UotoZ5YtQ= 1310 | dependencies: 1311 | mimic-fn "^1.0.0" 1312 | 1313 | os-locale@^3.0.0: 1314 | version "3.0.1" 1315 | resolved "https://registry.yarnpkg.com/os-locale/-/os-locale-3.0.1.tgz#3b014fbf01d87f60a1e5348d80fe870dc82c4620" 1316 | dependencies: 1317 | execa "^0.10.0" 1318 | lcid "^2.0.0" 1319 | mem "^4.0.0" 1320 | 1321 | p-defer@^1.0.0: 1322 | version "1.0.0" 1323 | resolved "https://registry.yarnpkg.com/p-defer/-/p-defer-1.0.0.tgz#9f6eb182f6c9aa8cd743004a7d4f96b196b0fb0c" 1324 | 1325 | p-finally@^1.0.0: 1326 | version "1.0.0" 1327 | resolved "https://registry.yarnpkg.com/p-finally/-/p-finally-1.0.0.tgz#3fbcfb15b899a44123b34b6dcc18b724336a2cae" 1328 | 1329 | p-is-promise@^1.1.0: 1330 | version "1.1.0" 1331 | resolved "https://registry.npmjs.org/p-is-promise/-/p-is-promise-1.1.0.tgz#9c9456989e9f6588017b0434d56097675c3da05e" 1332 | 1333 | p-limit@^2.0.0: 1334 | version "2.0.0" 1335 | resolved "https://registry.yarnpkg.com/p-limit/-/p-limit-2.0.0.tgz#e624ed54ee8c460a778b3c9f3670496ff8a57aec" 1336 | dependencies: 1337 | p-try "^2.0.0" 1338 | 1339 | p-limit@^2.2.0: 1340 | version "2.2.0" 1341 | resolved "https://registry.yarnpkg.com/p-limit/-/p-limit-2.2.0.tgz#417c9941e6027a9abcba5092dd2904e255b5fbc2" 1342 | integrity sha512-pZbTJpoUsCzV48Mc9Nh51VbwO0X9cuPFE8gYwx9BTCt9SF8/b7Zljd2fVgOxhIF/HDTKgpVzs+GPhyKfjLLFRQ== 1343 | dependencies: 1344 | p-try "^2.0.0" 1345 | 1346 | p-locate@^3.0.0: 1347 | version "3.0.0" 1348 | resolved "https://registry.yarnpkg.com/p-locate/-/p-locate-3.0.0.tgz#322d69a05c0264b25997d9f40cd8a891ab0064a4" 1349 | dependencies: 1350 | p-limit "^2.0.0" 1351 | 1352 | p-locate@^4.1.0: 1353 | version "4.1.0" 1354 | resolved "https://registry.yarnpkg.com/p-locate/-/p-locate-4.1.0.tgz#a3428bb7088b3a60292f66919278b7c297ad4f07" 1355 | integrity sha512-R79ZZ/0wAxKGu3oYMlz8jy/kbhsNrS7SKZ7PxEHBgJ5+F2mtFW2fK2cOtBh1cHYkQsbzFV7I+EoRKe6Yt0oK7A== 1356 | dependencies: 1357 | p-limit "^2.2.0" 1358 | 1359 | p-map@^1.1.1: 1360 | version "1.2.0" 1361 | resolved "https://registry.yarnpkg.com/p-map/-/p-map-1.2.0.tgz#e4e94f311eabbc8633a1e79908165fca26241b6b" 1362 | integrity sha512-r6zKACMNhjPJMTl8KcFH4li//gkrXWfbD6feV8l6doRHlzljFWGJ2AP6iKaCJXyZmAUMOPtvbW7EXkbWO/pLEA== 1363 | 1364 | p-map@^2.0.0: 1365 | version "2.1.0" 1366 | resolved "https://registry.yarnpkg.com/p-map/-/p-map-2.1.0.tgz#310928feef9c9ecc65b68b17693018a665cea175" 1367 | integrity sha512-y3b8Kpd8OAN444hxfBbFfj1FY/RjtTd8tzYwhUqNYXx0fXx2iX4maP4Qr6qhIKbQXI02wTLAda4fYUbDagTUFw== 1368 | 1369 | p-try@^2.0.0: 1370 | version "2.0.0" 1371 | resolved "https://registry.yarnpkg.com/p-try/-/p-try-2.0.0.tgz#85080bb87c64688fa47996fe8f7dfbe8211760b1" 1372 | 1373 | parse-json@^4.0.0: 1374 | version "4.0.0" 1375 | resolved "https://registry.yarnpkg.com/parse-json/-/parse-json-4.0.0.tgz#be35f5425be1f7f6c747184f98a788cb99477ee0" 1376 | dependencies: 1377 | error-ex "^1.3.1" 1378 | json-parse-better-errors "^1.0.1" 1379 | 1380 | pascalcase@^0.1.1: 1381 | version "0.1.1" 1382 | resolved "https://registry.yarnpkg.com/pascalcase/-/pascalcase-0.1.1.tgz#b363e55e8006ca6fe21784d2db22bd15d7917f14" 1383 | integrity sha1-s2PlXoAGym/iF4TS2yK9FdeRfxQ= 1384 | 1385 | path-exists@^3.0.0: 1386 | version "3.0.0" 1387 | resolved "https://registry.yarnpkg.com/path-exists/-/path-exists-3.0.0.tgz#ce0ebeaa5f78cb18925ea7d810d7b59b010fd515" 1388 | 1389 | path-is-absolute@^1.0.0: 1390 | version "1.0.1" 1391 | resolved "https://registry.yarnpkg.com/path-is-absolute/-/path-is-absolute-1.0.1.tgz#174b9268735534ffbc7ace6bf53a5a9e1b5c5f5f" 1392 | integrity sha1-F0uSaHNVNP+8es5r9TpanhtcX18= 1393 | 1394 | path-is-inside@^1.0.1, path-is-inside@^1.0.2: 1395 | version "1.0.2" 1396 | resolved "https://registry.yarnpkg.com/path-is-inside/-/path-is-inside-1.0.2.tgz#365417dede44430d1c11af61027facf074bdfc53" 1397 | integrity sha1-NlQX3t5EQw0cEa9hAn+s8HS9/FM= 1398 | 1399 | path-key@^2.0.0, path-key@^2.0.1: 1400 | version "2.0.1" 1401 | resolved "https://registry.yarnpkg.com/path-key/-/path-key-2.0.1.tgz#411cadb574c5a140d3a4b1910d40d80cc9f40b40" 1402 | 1403 | path-parse@^1.0.6: 1404 | version "1.0.6" 1405 | resolved "https://registry.yarnpkg.com/path-parse/-/path-parse-1.0.6.tgz#d62dbb5679405d72c4737ec58600e9ddcf06d24c" 1406 | integrity sha512-GSmOT2EbHrINBf9SR7CDELwlJ8AENk3Qn7OikK4nFYAu3Ote2+JYNVvkpAEQm3/TLNEJFD/xZJjzyxg3KBWOzw== 1407 | 1408 | pify@^2.0.0: 1409 | version "2.3.0" 1410 | resolved "https://registry.yarnpkg.com/pify/-/pify-2.3.0.tgz#ed141a6ac043a849ea588498e7dca8b15330e90c" 1411 | integrity sha1-7RQaasBDqEnqWISY59yosVMw6Qw= 1412 | 1413 | pify@^3.0.0: 1414 | version "3.0.0" 1415 | resolved "https://registry.yarnpkg.com/pify/-/pify-3.0.0.tgz#e5a4acd2c101fdf3d9a4d07f0dbc4db49dd28176" 1416 | 1417 | pinkie-promise@^2.0.0: 1418 | version "2.0.1" 1419 | resolved "https://registry.yarnpkg.com/pinkie-promise/-/pinkie-promise-2.0.1.tgz#2135d6dfa7a358c069ac9b178776288228450ffa" 1420 | integrity sha1-ITXW36ejWMBprJsXh3YogihFD/o= 1421 | dependencies: 1422 | pinkie "^2.0.0" 1423 | 1424 | pinkie@^2.0.0: 1425 | version "2.0.4" 1426 | resolved "https://registry.yarnpkg.com/pinkie/-/pinkie-2.0.4.tgz#72556b80cfa0d48a974e80e77248e80ed4f7f870" 1427 | integrity sha1-clVrgM+g1IqXToDnckjoDtT3+HA= 1428 | 1429 | pkg-dir@^4.1.0: 1430 | version "4.2.0" 1431 | resolved "https://registry.yarnpkg.com/pkg-dir/-/pkg-dir-4.2.0.tgz#f099133df7ede422e81d1d8448270eeb3e4261f3" 1432 | integrity sha512-HRDzbaKjC+AOWVXxAU/x54COGeIv9eb+6CkDSQoNTt4XyWoIJvuPsXizxu/Fr23EiekbtZwmh1IcIG/l/a10GQ== 1433 | dependencies: 1434 | find-up "^4.0.0" 1435 | 1436 | please-upgrade-node@^3.0.2, please-upgrade-node@^3.1.1: 1437 | version "3.1.1" 1438 | resolved "https://registry.yarnpkg.com/please-upgrade-node/-/please-upgrade-node-3.1.1.tgz#ed320051dfcc5024fae696712c8288993595e8ac" 1439 | integrity sha512-KY1uHnQ2NlQHqIJQpnh/i54rKkuxCEBx+voJIS/Mvb+L2iYd2NMotwduhKTMjfC1uKoX3VXOxLjIYG66dfJTVQ== 1440 | dependencies: 1441 | semver-compare "^1.0.0" 1442 | 1443 | posix-character-classes@^0.1.0: 1444 | version "0.1.1" 1445 | resolved "https://registry.yarnpkg.com/posix-character-classes/-/posix-character-classes-0.1.1.tgz#01eac0fe3b5af71a2a6c02feabb8c1fef7e00eab" 1446 | integrity sha1-AerA/jta9xoqbAL+q7jB/vfgDqs= 1447 | 1448 | prettier@^1.17.1: 1449 | version "1.17.1" 1450 | resolved "https://registry.yarnpkg.com/prettier/-/prettier-1.17.1.tgz#ed64b4e93e370cb8a25b9ef7fef3e4fd1c0995db" 1451 | integrity sha512-TzGRNvuUSmPgwivDqkZ9tM/qTGW9hqDKWOE9YHiyQdixlKbv7kvEqsmDPrcHJTKwthU774TQwZXVtaQ/mMsvjg== 1452 | 1453 | property-expr@^1.5.0: 1454 | version "1.5.1" 1455 | resolved "https://registry.yarnpkg.com/property-expr/-/property-expr-1.5.1.tgz#22e8706894a0c8e28d58735804f6ba3a3673314f" 1456 | integrity sha512-CGuc0VUTGthpJXL36ydB6jnbyOf/rAHFvmVrJlH+Rg0DqqLFQGAP6hIaxD/G0OAmBJPhXDHuEJigrp0e0wFV6g== 1457 | 1458 | pump@^3.0.0: 1459 | version "3.0.0" 1460 | resolved "https://registry.yarnpkg.com/pump/-/pump-3.0.0.tgz#b4a2116815bde2f4e1ea602354e8c75565107a64" 1461 | integrity sha512-LwZy+p3SFs1Pytd/jYct4wpv49HiYCqd9Rlc5ZVdk0V+8Yzv6jR5Blk3TRmPL1ft69TxP0IMZGJ+WPFU2BFhww== 1462 | dependencies: 1463 | end-of-stream "^1.1.0" 1464 | once "^1.3.1" 1465 | 1466 | read-pkg@^4.0.1: 1467 | version "4.0.1" 1468 | resolved "https://registry.yarnpkg.com/read-pkg/-/read-pkg-4.0.1.tgz#963625378f3e1c4d48c85872b5a6ec7d5d093237" 1469 | dependencies: 1470 | normalize-package-data "^2.3.2" 1471 | parse-json "^4.0.0" 1472 | pify "^3.0.0" 1473 | 1474 | read-pkg@^5.1.1: 1475 | version "5.1.1" 1476 | resolved "https://registry.yarnpkg.com/read-pkg/-/read-pkg-5.1.1.tgz#5cf234dde7a405c90c88a519ab73c467e9cb83f5" 1477 | integrity sha512-dFcTLQi6BZ+aFUaICg7er+/usEoqFdQxiEBsEMNGoipenihtxxtdrQuBXvyANCEI8VuUIVYFgeHGx9sLLvim4w== 1478 | dependencies: 1479 | "@types/normalize-package-data" "^2.4.0" 1480 | normalize-package-data "^2.5.0" 1481 | parse-json "^4.0.0" 1482 | type-fest "^0.4.1" 1483 | 1484 | regenerator-runtime@^0.13.2: 1485 | version "0.13.2" 1486 | resolved "https://registry.yarnpkg.com/regenerator-runtime/-/regenerator-runtime-0.13.2.tgz#32e59c9a6fb9b1a4aff09b4930ca2d4477343447" 1487 | integrity sha512-S/TQAZJO+D3m9xeN1WTI8dLKBBiRgXBlTJvbWjCThHWZj9EvHK70Ff50/tYj2J/fvBY6JtFVwRuazHN2E7M9BA== 1488 | 1489 | regex-not@^1.0.0, regex-not@^1.0.2: 1490 | version "1.0.2" 1491 | resolved "https://registry.yarnpkg.com/regex-not/-/regex-not-1.0.2.tgz#1f4ece27e00b0b65e0247a6810e6a85d83a5752c" 1492 | integrity sha512-J6SDjUgDxQj5NusnOtdFxDwN/+HWykR8GELwctJ7mdqhcyy1xEc4SRFHUXvxTp661YaVKAjfRLZ9cCqS6tn32A== 1493 | dependencies: 1494 | extend-shallow "^3.0.2" 1495 | safe-regex "^1.1.0" 1496 | 1497 | repeat-element@^1.1.2: 1498 | version "1.1.3" 1499 | resolved "https://registry.yarnpkg.com/repeat-element/-/repeat-element-1.1.3.tgz#782e0d825c0c5a3bb39731f84efee6b742e6b1ce" 1500 | integrity sha512-ahGq0ZnV5m5XtZLMb+vP76kcAM5nkLqk0lpqAuojSKGgQtn4eRi4ZZGm2olo2zKFH+sMsWaqOCW1dqAnOru72g== 1501 | 1502 | repeat-string@^1.6.1: 1503 | version "1.6.1" 1504 | resolved "https://registry.yarnpkg.com/repeat-string/-/repeat-string-1.6.1.tgz#8dcae470e1c88abc2d600fff4a776286da75e637" 1505 | integrity sha1-jcrkcOHIirwtYA//Sndihtp15jc= 1506 | 1507 | require-directory@^2.1.1: 1508 | version "2.1.1" 1509 | resolved "https://registry.yarnpkg.com/require-directory/-/require-directory-2.1.1.tgz#8c64ad5fd30dab1c976e2344ffe7f792a6a6df42" 1510 | 1511 | require-main-filename@^1.0.1: 1512 | version "1.0.1" 1513 | resolved "https://registry.yarnpkg.com/require-main-filename/-/require-main-filename-1.0.1.tgz#97f717b69d48784f5f526a6c5aa8ffdda055a4d1" 1514 | 1515 | resolve-from@^3.0.0: 1516 | version "3.0.0" 1517 | resolved "https://registry.yarnpkg.com/resolve-from/-/resolve-from-3.0.0.tgz#b22c7af7d9d6881bc8b6e653335eebcb0a188748" 1518 | integrity sha1-six699nWiBvItuZTM17rywoYh0g= 1519 | 1520 | resolve-url@^0.2.1: 1521 | version "0.2.1" 1522 | resolved "https://registry.yarnpkg.com/resolve-url/-/resolve-url-0.2.1.tgz#2c637fe77c893afd2a663fe21aa9080068e2052a" 1523 | integrity sha1-LGN/53yJOv0qZj/iGqkIAGjiBSo= 1524 | 1525 | resolve@^1.10.0, resolve@^1.3.2: 1526 | version "1.11.0" 1527 | resolved "https://registry.yarnpkg.com/resolve/-/resolve-1.11.0.tgz#4014870ba296176b86343d50b60f3b50609ce232" 1528 | integrity sha512-WL2pBDjqT6pGUNSUzMw00o4T7If+z4H2x3Gz893WoUQ5KW8Vr9txp00ykiP16VBaZF5+j/OcXJHZ9+PCvdiDKw== 1529 | dependencies: 1530 | path-parse "^1.0.6" 1531 | 1532 | restore-cursor@^2.0.0: 1533 | version "2.0.0" 1534 | resolved "https://registry.yarnpkg.com/restore-cursor/-/restore-cursor-2.0.0.tgz#9f7ee287f82fd326d4fd162923d62129eee0dfaf" 1535 | integrity sha1-n37ih/gv0ybU/RYpI9YhKe7g368= 1536 | dependencies: 1537 | onetime "^2.0.0" 1538 | signal-exit "^3.0.2" 1539 | 1540 | ret@~0.1.10: 1541 | version "0.1.15" 1542 | resolved "https://registry.yarnpkg.com/ret/-/ret-0.1.15.tgz#b8a4825d5bdb1fc3f6f53c2bc33f81388681c7bc" 1543 | integrity sha512-TTlYpa+OL+vMMNG24xSlQGEJ3B/RzEfUlLct7b5G/ytav+wPrplCpVMFuwzXbkecJrb6IYo1iFb0S9v37754mg== 1544 | 1545 | rimraf@^2.2.8: 1546 | version "2.6.3" 1547 | resolved "https://registry.yarnpkg.com/rimraf/-/rimraf-2.6.3.tgz#b2d104fe0d8fb27cf9e0a1cda8262dd3833c6cab" 1548 | integrity sha512-mwqeW5XsA2qAejG46gYdENaxXjx9onRNCfn7L0duuP4hCuTIi/QO7PDK07KJfp1d+izWPrzEJDcSqBa0OZQriA== 1549 | dependencies: 1550 | glob "^7.1.3" 1551 | 1552 | run-node@^1.0.0: 1553 | version "1.0.0" 1554 | resolved "https://registry.yarnpkg.com/run-node/-/run-node-1.0.0.tgz#46b50b946a2aa2d4947ae1d886e9856fd9cabe5e" 1555 | integrity sha512-kc120TBlQ3mih1LSzdAJXo4xn/GWS2ec0l3S+syHDXP9uRr0JAT8Qd3mdMuyjqCzeZktgP3try92cEgf9Nks8A== 1556 | 1557 | rxjs@6.2.2: 1558 | version "6.2.2" 1559 | resolved "https://registry.yarnpkg.com/rxjs/-/rxjs-6.2.2.tgz#eb75fa3c186ff5289907d06483a77884586e1cf9" 1560 | dependencies: 1561 | tslib "^1.9.0" 1562 | 1563 | rxjs@^6.3.3: 1564 | version "6.5.2" 1565 | resolved "https://registry.yarnpkg.com/rxjs/-/rxjs-6.5.2.tgz#2e35ce815cd46d84d02a209fb4e5921e051dbec7" 1566 | integrity sha512-HUb7j3kvb7p7eCUHE3FqjoDsC1xfZQ4AHFWfTKSpZ+sAhhz5X1WX0ZuUqWbzB2QhSLp3DoLUG+hMdEDKqWo2Zg== 1567 | dependencies: 1568 | tslib "^1.9.0" 1569 | 1570 | safe-regex@^1.1.0: 1571 | version "1.1.0" 1572 | resolved "https://registry.yarnpkg.com/safe-regex/-/safe-regex-1.1.0.tgz#40a3669f3b077d1e943d44629e157dd48023bf2e" 1573 | integrity sha1-QKNmnzsHfR6UPURinhV91IAjvy4= 1574 | dependencies: 1575 | ret "~0.1.10" 1576 | 1577 | semver-compare@^1.0.0: 1578 | version "1.0.0" 1579 | resolved "https://registry.yarnpkg.com/semver-compare/-/semver-compare-1.0.0.tgz#0dee216a1c941ab37e9efb1788f6afc5ff5537fc" 1580 | integrity sha1-De4hahyUGrN+nvsXiPavxf9VN/w= 1581 | 1582 | "semver@2 || 3 || 4 || 5", semver@^5.5.0: 1583 | version "5.6.0" 1584 | resolved "https://registry.yarnpkg.com/semver/-/semver-5.6.0.tgz#7e74256fbaa49c75aa7c7a205cc22799cac80004" 1585 | 1586 | semver@^5.3.0: 1587 | version "5.7.0" 1588 | resolved "https://registry.yarnpkg.com/semver/-/semver-5.7.0.tgz#790a7cf6fea5459bac96110b29b60412dc8ff96b" 1589 | integrity sha512-Ya52jSX2u7QKghxeoFGpLwCtGlt7j0oY9DYb5apt9nPlJ42ID+ulTXESnt/qAQcoSERyZ5sl3LDIOw0nAn/5DA== 1590 | 1591 | set-blocking@^2.0.0: 1592 | version "2.0.0" 1593 | resolved "https://registry.yarnpkg.com/set-blocking/-/set-blocking-2.0.0.tgz#045f9782d011ae9a6803ddd382b24392b3d890f7" 1594 | 1595 | set-value@^0.4.3: 1596 | version "0.4.3" 1597 | resolved "https://registry.yarnpkg.com/set-value/-/set-value-0.4.3.tgz#7db08f9d3d22dc7f78e53af3c3bf4666ecdfccf1" 1598 | integrity sha1-fbCPnT0i3H945Trzw79GZuzfzPE= 1599 | dependencies: 1600 | extend-shallow "^2.0.1" 1601 | is-extendable "^0.1.1" 1602 | is-plain-object "^2.0.1" 1603 | to-object-path "^0.3.0" 1604 | 1605 | set-value@^2.0.0: 1606 | version "2.0.0" 1607 | resolved "https://registry.yarnpkg.com/set-value/-/set-value-2.0.0.tgz#71ae4a88f0feefbbf52d1ea604f3fb315ebb6274" 1608 | integrity sha512-hw0yxk9GT/Hr5yJEYnHNKYXkIA8mVJgd9ditYZCe16ZczcaELYYcfvaXesNACk2O8O0nTiPQcQhGUQj8JLzeeg== 1609 | dependencies: 1610 | extend-shallow "^2.0.1" 1611 | is-extendable "^0.1.1" 1612 | is-plain-object "^2.0.3" 1613 | split-string "^3.0.1" 1614 | 1615 | shebang-command@^1.2.0: 1616 | version "1.2.0" 1617 | resolved "https://registry.yarnpkg.com/shebang-command/-/shebang-command-1.2.0.tgz#44aac65b695b03398968c39f363fee5deafdf1ea" 1618 | dependencies: 1619 | shebang-regex "^1.0.0" 1620 | 1621 | shebang-regex@^1.0.0: 1622 | version "1.0.0" 1623 | resolved "https://registry.yarnpkg.com/shebang-regex/-/shebang-regex-1.0.0.tgz#da42f49740c0b42db2ca9728571cb190c98efea3" 1624 | 1625 | signal-exit@^3.0.0, signal-exit@^3.0.2: 1626 | version "3.0.2" 1627 | resolved "https://registry.yarnpkg.com/signal-exit/-/signal-exit-3.0.2.tgz#b5fdc08f1287ea1178628e415e25132b73646c6d" 1628 | 1629 | simple-git@^1.85.0: 1630 | version "1.113.0" 1631 | resolved "https://registry.yarnpkg.com/simple-git/-/simple-git-1.113.0.tgz#668989728a1e9cf4ec6c72b69ea2eecc93489bea" 1632 | integrity sha512-i9WVsrK2u0G/cASI9nh7voxOk9mhanWY9eGtWBDSYql6m49Yk5/Fan6uZsDr/xmzv8n+eQ8ahKCoEr8cvU3h+g== 1633 | dependencies: 1634 | debug "^4.0.1" 1635 | 1636 | slash@^3.0.0: 1637 | version "3.0.0" 1638 | resolved "https://registry.yarnpkg.com/slash/-/slash-3.0.0.tgz#6539be870c165adbd5240220dbe361f1bc4d4634" 1639 | integrity sha512-g9Q1haeby36OSStwb4ntCGGGaKsaVSjQ68fBxoQcutl5fS1vuY18H3wSt3jFyFtrkx+Kz0V1G85A4MyAdDMi2Q== 1640 | 1641 | slice-ansi@0.0.4: 1642 | version "0.0.4" 1643 | resolved "https://registry.yarnpkg.com/slice-ansi/-/slice-ansi-0.0.4.tgz#edbf8903f66f7ce2f8eafd6ceed65e264c831b35" 1644 | integrity sha1-7b+JA/ZvfOL46v1s7tZeJkyDGzU= 1645 | 1646 | snapdragon-node@^2.0.1: 1647 | version "2.1.1" 1648 | resolved "https://registry.yarnpkg.com/snapdragon-node/-/snapdragon-node-2.1.1.tgz#6c175f86ff14bdb0724563e8f3c1b021a286853b" 1649 | integrity sha512-O27l4xaMYt/RSQ5TR3vpWCAB5Kb/czIcqUFOM/C4fYcLnbZUc1PkjTAMjof2pBWaSTwOUd6qUHcFGVGj7aIwnw== 1650 | dependencies: 1651 | define-property "^1.0.0" 1652 | isobject "^3.0.0" 1653 | snapdragon-util "^3.0.1" 1654 | 1655 | snapdragon-util@^3.0.1: 1656 | version "3.0.1" 1657 | resolved "https://registry.yarnpkg.com/snapdragon-util/-/snapdragon-util-3.0.1.tgz#f956479486f2acd79700693f6f7b805e45ab56e2" 1658 | integrity sha512-mbKkMdQKsjX4BAL4bRYTj21edOf8cN7XHdYUJEe+Zn99hVEYcMvKPct1IqNe7+AZPirn8BCDOQBHQZknqmKlZQ== 1659 | dependencies: 1660 | kind-of "^3.2.0" 1661 | 1662 | snapdragon@^0.8.1: 1663 | version "0.8.2" 1664 | resolved "https://registry.yarnpkg.com/snapdragon/-/snapdragon-0.8.2.tgz#64922e7c565b0e14204ba1aa7d6964278d25182d" 1665 | integrity sha512-FtyOnWN/wCHTVXOMwvSv26d+ko5vWlIDD6zoUJ7LW8vh+ZBC8QdljveRP+crNrtBwioEUWy/4dMtbBjA4ioNlg== 1666 | dependencies: 1667 | base "^0.11.1" 1668 | debug "^2.2.0" 1669 | define-property "^0.2.5" 1670 | extend-shallow "^2.0.1" 1671 | map-cache "^0.2.2" 1672 | source-map "^0.5.6" 1673 | source-map-resolve "^0.5.0" 1674 | use "^3.1.0" 1675 | 1676 | source-map-resolve@^0.5.0: 1677 | version "0.5.2" 1678 | resolved "https://registry.yarnpkg.com/source-map-resolve/-/source-map-resolve-0.5.2.tgz#72e2cc34095543e43b2c62b2c4c10d4a9054f259" 1679 | integrity sha512-MjqsvNwyz1s0k81Goz/9vRBe9SZdB09Bdw+/zYyO+3CuPk6fouTaxscHkgtE8jKvf01kVfl8riHzERQ/kefaSA== 1680 | dependencies: 1681 | atob "^2.1.1" 1682 | decode-uri-component "^0.2.0" 1683 | resolve-url "^0.2.1" 1684 | source-map-url "^0.4.0" 1685 | urix "^0.1.0" 1686 | 1687 | source-map-url@^0.4.0: 1688 | version "0.4.0" 1689 | resolved "https://registry.yarnpkg.com/source-map-url/-/source-map-url-0.4.0.tgz#3e935d7ddd73631b97659956d55128e87b5084a3" 1690 | integrity sha1-PpNdfd1zYxuXZZlW1VEo6HtQhKM= 1691 | 1692 | source-map@^0.5.6: 1693 | version "0.5.7" 1694 | resolved "https://registry.yarnpkg.com/source-map/-/source-map-0.5.7.tgz#8a039d2d1021d22d1ea14c80d8ea468ba2ef3fcc" 1695 | integrity sha1-igOdLRAh0i0eoUyA2OpGi6LvP8w= 1696 | 1697 | spawn-command@^0.0.2-1: 1698 | version "0.0.2-1" 1699 | resolved "https://registry.yarnpkg.com/spawn-command/-/spawn-command-0.0.2-1.tgz#62f5e9466981c1b796dc5929937e11c9c6921bd0" 1700 | 1701 | spdx-correct@^3.0.0: 1702 | version "3.0.2" 1703 | resolved "https://registry.yarnpkg.com/spdx-correct/-/spdx-correct-3.0.2.tgz#19bb409e91b47b1ad54159243f7312a858db3c2e" 1704 | dependencies: 1705 | spdx-expression-parse "^3.0.0" 1706 | spdx-license-ids "^3.0.0" 1707 | 1708 | spdx-exceptions@^2.1.0: 1709 | version "2.2.0" 1710 | resolved "https://registry.yarnpkg.com/spdx-exceptions/-/spdx-exceptions-2.2.0.tgz#2ea450aee74f2a89bfb94519c07fcd6f41322977" 1711 | 1712 | spdx-expression-parse@^3.0.0: 1713 | version "3.0.0" 1714 | resolved "https://registry.yarnpkg.com/spdx-expression-parse/-/spdx-expression-parse-3.0.0.tgz#99e119b7a5da00e05491c9fa338b7904823b41d0" 1715 | dependencies: 1716 | spdx-exceptions "^2.1.0" 1717 | spdx-license-ids "^3.0.0" 1718 | 1719 | spdx-license-ids@^3.0.0: 1720 | version "3.0.1" 1721 | resolved "https://registry.yarnpkg.com/spdx-license-ids/-/spdx-license-ids-3.0.1.tgz#e2a303236cac54b04031fa7a5a79c7e701df852f" 1722 | 1723 | split-string@^3.0.1, split-string@^3.0.2: 1724 | version "3.1.0" 1725 | resolved "https://registry.yarnpkg.com/split-string/-/split-string-3.1.0.tgz#7cb09dda3a86585705c64b39a6466038682e8fe2" 1726 | integrity sha512-NzNVhJDYpwceVVii8/Hu6DKfD2G+NrQHlS/V/qgv763EYudVwEcMQNxd2lh+0VrUByXN/oJkl5grOhYWvQUYiw== 1727 | dependencies: 1728 | extend-shallow "^3.0.0" 1729 | 1730 | sprintf-js@~1.0.2: 1731 | version "1.0.3" 1732 | resolved "https://registry.yarnpkg.com/sprintf-js/-/sprintf-js-1.0.3.tgz#04e6926f662895354f3dd015203633b857297e2c" 1733 | integrity sha1-BOaSb2YolTVPPdAVIDYzuFcpfiw= 1734 | 1735 | staged-git-files@1.1.2: 1736 | version "1.1.2" 1737 | resolved "https://registry.yarnpkg.com/staged-git-files/-/staged-git-files-1.1.2.tgz#4326d33886dc9ecfa29a6193bf511ba90a46454b" 1738 | integrity sha512-0Eyrk6uXW6tg9PYkhi/V/J4zHp33aNyi2hOCmhFLqLTIhbgqWn5jlSzI+IU0VqrZq6+DbHcabQl/WP6P3BG0QA== 1739 | 1740 | static-extend@^0.1.1: 1741 | version "0.1.2" 1742 | resolved "https://registry.yarnpkg.com/static-extend/-/static-extend-0.1.2.tgz#60809c39cbff55337226fd5e0b520f341f1fb5c6" 1743 | integrity sha1-YICcOcv/VTNyJv1eC1IPNB8ftcY= 1744 | dependencies: 1745 | define-property "^0.2.5" 1746 | object-copy "^0.1.0" 1747 | 1748 | string-argv@^0.0.2: 1749 | version "0.0.2" 1750 | resolved "https://registry.yarnpkg.com/string-argv/-/string-argv-0.0.2.tgz#dac30408690c21f3c3630a3ff3a05877bdcbd736" 1751 | integrity sha1-2sMECGkMIfPDYwo/86BYd73L1zY= 1752 | 1753 | string-width@^1.0.1: 1754 | version "1.0.2" 1755 | resolved "https://registry.yarnpkg.com/string-width/-/string-width-1.0.2.tgz#118bdf5b8cdc51a2a7e70d211e07e2b0b9b107d3" 1756 | dependencies: 1757 | code-point-at "^1.0.0" 1758 | is-fullwidth-code-point "^1.0.0" 1759 | strip-ansi "^3.0.0" 1760 | 1761 | string-width@^2.0.0, string-width@^2.1.1: 1762 | version "2.1.1" 1763 | resolved "https://registry.yarnpkg.com/string-width/-/string-width-2.1.1.tgz#ab93f27a8dc13d28cac815c462143a6d9012ae9e" 1764 | dependencies: 1765 | is-fullwidth-code-point "^2.0.0" 1766 | strip-ansi "^4.0.0" 1767 | 1768 | stringify-object@^3.2.2: 1769 | version "3.3.0" 1770 | resolved "https://registry.yarnpkg.com/stringify-object/-/stringify-object-3.3.0.tgz#703065aefca19300d3ce88af4f5b3956d7556629" 1771 | integrity sha512-rHqiFh1elqCQ9WPLIC8I0Q/g/wj5J1eMkyoiD6eoQApWHP0FtlK7rqnhmabL5VUY9JQCcqwwvlOaSuutekgyrw== 1772 | dependencies: 1773 | get-own-enumerable-property-symbols "^3.0.0" 1774 | is-obj "^1.0.1" 1775 | is-regexp "^1.0.0" 1776 | 1777 | strip-ansi@^3.0.0, strip-ansi@^3.0.1: 1778 | version "3.0.1" 1779 | resolved "https://registry.npmjs.org/strip-ansi/-/strip-ansi-3.0.1.tgz#6a385fb8853d952d5ff05d0e8aaf94278dc63dcf" 1780 | dependencies: 1781 | ansi-regex "^2.0.0" 1782 | 1783 | strip-ansi@^4.0.0: 1784 | version "4.0.0" 1785 | resolved "https://registry.yarnpkg.com/strip-ansi/-/strip-ansi-4.0.0.tgz#a8479022eb1ac368a871389b635262c505ee368f" 1786 | dependencies: 1787 | ansi-regex "^3.0.0" 1788 | 1789 | strip-eof@^1.0.0: 1790 | version "1.0.0" 1791 | resolved "https://registry.yarnpkg.com/strip-eof/-/strip-eof-1.0.0.tgz#bb43ff5598a6eb05d89b59fcd129c983313606bf" 1792 | 1793 | supports-color@^2.0.0: 1794 | version "2.0.0" 1795 | resolved "https://registry.yarnpkg.com/supports-color/-/supports-color-2.0.0.tgz#535d045ce6b6363fa40117084629995e9df324c7" 1796 | integrity sha1-U10EXOa2Nj+kARcIRimZXp3zJMc= 1797 | 1798 | supports-color@^4.5.0: 1799 | version "4.5.0" 1800 | resolved "https://registry.yarnpkg.com/supports-color/-/supports-color-4.5.0.tgz#be7a0de484dec5c5cddf8b3d59125044912f635b" 1801 | dependencies: 1802 | has-flag "^2.0.0" 1803 | 1804 | supports-color@^5.3.0: 1805 | version "5.5.0" 1806 | resolved "https://registry.yarnpkg.com/supports-color/-/supports-color-5.5.0.tgz#e2e69a44ac8772f78a1ec0b35b689df6530efc8f" 1807 | dependencies: 1808 | has-flag "^3.0.0" 1809 | 1810 | symbol-observable@^1.1.0: 1811 | version "1.2.0" 1812 | resolved "https://registry.yarnpkg.com/symbol-observable/-/symbol-observable-1.2.0.tgz#c22688aed4eab3cdc2dfeacbb561660560a00804" 1813 | integrity sha512-e900nM8RRtGhlV36KGEU9k65K3mPb1WV70OdjfxlG2EAuM1noi/E/BaW/uMhL7bPEssK8QV57vN3esixjUvcXQ== 1814 | 1815 | synchronous-promise@^2.0.6: 1816 | version "2.0.9" 1817 | resolved "https://registry.yarnpkg.com/synchronous-promise/-/synchronous-promise-2.0.9.tgz#b83db98e9e7ae826bf9c8261fd8ac859126c780a" 1818 | integrity sha512-LO95GIW16x69LuND1nuuwM4pjgFGupg7pZ/4lU86AmchPKrhk0o2tpMU2unXRrqo81iAFe1YJ0nAGEVwsrZAgg== 1819 | 1820 | to-object-path@^0.3.0: 1821 | version "0.3.0" 1822 | resolved "https://registry.yarnpkg.com/to-object-path/-/to-object-path-0.3.0.tgz#297588b7b0e7e0ac08e04e672f85c1f4999e17af" 1823 | integrity sha1-KXWIt7Dn4KwI4E5nL4XB9JmeF68= 1824 | dependencies: 1825 | kind-of "^3.0.2" 1826 | 1827 | to-regex-range@^2.1.0: 1828 | version "2.1.1" 1829 | resolved "https://registry.yarnpkg.com/to-regex-range/-/to-regex-range-2.1.1.tgz#7c80c17b9dfebe599e27367e0d4dd5590141db38" 1830 | integrity sha1-fIDBe53+vlmeJzZ+DU3VWQFB2zg= 1831 | dependencies: 1832 | is-number "^3.0.0" 1833 | repeat-string "^1.6.1" 1834 | 1835 | to-regex@^3.0.1, to-regex@^3.0.2: 1836 | version "3.0.2" 1837 | resolved "https://registry.yarnpkg.com/to-regex/-/to-regex-3.0.2.tgz#13cfdd9b336552f30b51f33a8ae1b42a7a7599ce" 1838 | integrity sha512-FWtleNAtZ/Ki2qtqej2CXTOayOH9bHDQF+Q48VpWyDXjbYxA4Yz8iDB31zXOBUlOHHKidDbqGVrTUvQMPmBGBw== 1839 | dependencies: 1840 | define-property "^2.0.2" 1841 | extend-shallow "^3.0.2" 1842 | regex-not "^1.0.2" 1843 | safe-regex "^1.1.0" 1844 | 1845 | toposort@^2.0.2: 1846 | version "2.0.2" 1847 | resolved "https://registry.yarnpkg.com/toposort/-/toposort-2.0.2.tgz#ae21768175d1559d48bef35420b2f4962f09c330" 1848 | integrity sha1-riF2gXXRVZ1IvvNUILL0li8JwzA= 1849 | 1850 | tree-kill@^1.1.0: 1851 | version "1.2.0" 1852 | resolved "https://registry.yarnpkg.com/tree-kill/-/tree-kill-1.2.0.tgz#5846786237b4239014f05db156b643212d4c6f36" 1853 | 1854 | tslib@^1.8.0, tslib@^1.8.1, tslib@^1.9.0: 1855 | version "1.9.3" 1856 | resolved "https://registry.yarnpkg.com/tslib/-/tslib-1.9.3.tgz#d7e4dd79245d85428c4d7e4822a79917954ca286" 1857 | 1858 | tslint-config-prettier@^1.18.0: 1859 | version "1.18.0" 1860 | resolved "https://registry.yarnpkg.com/tslint-config-prettier/-/tslint-config-prettier-1.18.0.tgz#75f140bde947d35d8f0d238e0ebf809d64592c37" 1861 | integrity sha512-xPw9PgNPLG3iKRxmK7DWr+Ea/SzrvfHtjFt5LBl61gk2UBG/DB9kCXRjv+xyIU1rUtnayLeMUVJBcMX8Z17nDg== 1862 | 1863 | tslint-react@^4.0.0: 1864 | version "4.0.0" 1865 | resolved "https://registry.yarnpkg.com/tslint-react/-/tslint-react-4.0.0.tgz#b4bb4c01c32448cb14d23f143a2f5e4989bb961e" 1866 | integrity sha512-9fNE0fm9zNDx1+b6hgy8rgDN2WsQLRiIrn3+fbqm0tazBVF6jiaCFAITxmU+WSFWYE03Xhp1joCircXOe1WVAQ== 1867 | dependencies: 1868 | tsutils "^3.9.1" 1869 | 1870 | tslint@^5.16.0: 1871 | version "5.16.0" 1872 | resolved "https://registry.yarnpkg.com/tslint/-/tslint-5.16.0.tgz#ae61f9c5a98d295b9a4f4553b1b1e831c1984d67" 1873 | integrity sha512-UxG2yNxJ5pgGwmMzPMYh/CCnCnh0HfPgtlVRDs1ykZklufFBL1ZoTlWFRz2NQjcoEiDoRp+JyT0lhBbbH/obyA== 1874 | dependencies: 1875 | "@babel/code-frame" "^7.0.0" 1876 | builtin-modules "^1.1.1" 1877 | chalk "^2.3.0" 1878 | commander "^2.12.1" 1879 | diff "^3.2.0" 1880 | glob "^7.1.1" 1881 | js-yaml "^3.13.0" 1882 | minimatch "^3.0.4" 1883 | mkdirp "^0.5.1" 1884 | resolve "^1.3.2" 1885 | semver "^5.3.0" 1886 | tslib "^1.8.0" 1887 | tsutils "^2.29.0" 1888 | 1889 | tsutils@^2.29.0: 1890 | version "2.29.0" 1891 | resolved "https://registry.yarnpkg.com/tsutils/-/tsutils-2.29.0.tgz#32b488501467acbedd4b85498673a0812aca0b99" 1892 | integrity sha512-g5JVHCIJwzfISaXpXE1qvNalca5Jwob6FjI4AoPlqMusJ6ftFE7IkkFoMhVLRgK+4Kx3gkzb8UZK5t5yTTvEmA== 1893 | dependencies: 1894 | tslib "^1.8.1" 1895 | 1896 | tsutils@^3.9.1: 1897 | version "3.10.0" 1898 | resolved "https://registry.yarnpkg.com/tsutils/-/tsutils-3.10.0.tgz#6f1c95c94606e098592b0dff06590cf9659227d6" 1899 | integrity sha512-q20XSMq7jutbGB8luhKKsQldRKWvyBO2BGqni3p4yq8Ys9bEP/xQw3KepKmMRt9gJ4lvQSScrihJrcKdKoSU7Q== 1900 | dependencies: 1901 | tslib "^1.8.1" 1902 | 1903 | type-fest@^0.4.1: 1904 | version "0.4.1" 1905 | resolved "https://registry.yarnpkg.com/type-fest/-/type-fest-0.4.1.tgz#8bdf77743385d8a4f13ba95f610f5ccd68c728f8" 1906 | integrity sha512-IwzA/LSfD2vC1/YDYMv/zHP4rDF1usCwllsDpbolT3D4fUepIO7f9K70jjmUewU/LmGUKJcwcVtDCpnKk4BPMw== 1907 | 1908 | typescript@^3.4.5: 1909 | version "3.4.5" 1910 | resolved "https://registry.yarnpkg.com/typescript/-/typescript-3.4.5.tgz#2d2618d10bb566572b8d7aad5180d84257d70a99" 1911 | integrity sha512-YycBxUb49UUhdNMU5aJ7z5Ej2XGmaIBL0x34vZ82fn3hGvD+bgrMrVDpatgz2f7YxUMJxMkbWxJZeAvDxVe7Vw== 1912 | 1913 | union-value@^1.0.0: 1914 | version "1.0.0" 1915 | resolved "https://registry.yarnpkg.com/union-value/-/union-value-1.0.0.tgz#5c71c34cb5bad5dcebe3ea0cd08207ba5aa1aea4" 1916 | integrity sha1-XHHDTLW61dzr4+oM0IIHulqhrqQ= 1917 | dependencies: 1918 | arr-union "^3.1.0" 1919 | get-value "^2.0.6" 1920 | is-extendable "^0.1.1" 1921 | set-value "^0.4.3" 1922 | 1923 | unset-value@^1.0.0: 1924 | version "1.0.0" 1925 | resolved "https://registry.yarnpkg.com/unset-value/-/unset-value-1.0.0.tgz#8376873f7d2335179ffb1e6fc3a8ed0dfc8ab559" 1926 | integrity sha1-g3aHP30jNRef+x5vw6jtDfyKtVk= 1927 | dependencies: 1928 | has-value "^0.3.1" 1929 | isobject "^3.0.0" 1930 | 1931 | urix@^0.1.0: 1932 | version "0.1.0" 1933 | resolved "https://registry.yarnpkg.com/urix/-/urix-0.1.0.tgz#da937f7a62e21fec1fd18d49b35c2935067a6c72" 1934 | integrity sha1-2pN/emLiH+wf0Y1Js1wpNQZ6bHI= 1935 | 1936 | use@^3.1.0: 1937 | version "3.1.1" 1938 | resolved "https://registry.yarnpkg.com/use/-/use-3.1.1.tgz#d50c8cac79a19fbc20f2911f56eb973f4e10070f" 1939 | integrity sha512-cwESVXlO3url9YWlFW/TA9cshCEhtu7IKJ/p5soJ/gGpj7vbvFrAY/eIioQ6Dw23KjZhYgiIo8HOs1nQ2vr/oQ== 1940 | 1941 | validate-npm-package-license@^3.0.1: 1942 | version "3.0.4" 1943 | resolved "https://registry.yarnpkg.com/validate-npm-package-license/-/validate-npm-package-license-3.0.4.tgz#fc91f6b9c7ba15c857f4cb2c5defeec39d4f410a" 1944 | dependencies: 1945 | spdx-correct "^3.0.0" 1946 | spdx-expression-parse "^3.0.0" 1947 | 1948 | which-module@^2.0.0: 1949 | version "2.0.0" 1950 | resolved "https://registry.yarnpkg.com/which-module/-/which-module-2.0.0.tgz#d9ef07dce77b9902b8a3a8fa4b31c3e3f7e6e87a" 1951 | 1952 | which@^1.2.10, which@^1.2.9: 1953 | version "1.3.1" 1954 | resolved "https://registry.yarnpkg.com/which/-/which-1.3.1.tgz#a45043d54f5805316da8d62f9f50918d3da70b0a" 1955 | dependencies: 1956 | isexe "^2.0.0" 1957 | 1958 | wrap-ansi@^2.0.0: 1959 | version "2.1.0" 1960 | resolved "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-2.1.0.tgz#d8fc3d284dd05794fe84973caecdd1cf824fdd85" 1961 | dependencies: 1962 | string-width "^1.0.1" 1963 | strip-ansi "^3.0.1" 1964 | 1965 | wrap-ansi@^3.0.1: 1966 | version "3.0.1" 1967 | resolved "https://registry.yarnpkg.com/wrap-ansi/-/wrap-ansi-3.0.1.tgz#288a04d87eda5c286e060dfe8f135ce8d007f8ba" 1968 | integrity sha1-KIoE2H7aXChuBg3+jxNc6NAH+Lo= 1969 | dependencies: 1970 | string-width "^2.1.1" 1971 | strip-ansi "^4.0.0" 1972 | 1973 | wrappy@1: 1974 | version "1.0.2" 1975 | resolved "https://registry.yarnpkg.com/wrappy/-/wrappy-1.0.2.tgz#b5243d8f3ec1aa35f1364605bc0d1036e30ab69f" 1976 | integrity sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8= 1977 | 1978 | xregexp@4.0.0: 1979 | version "4.0.0" 1980 | resolved "https://registry.yarnpkg.com/xregexp/-/xregexp-4.0.0.tgz#e698189de49dd2a18cc5687b05e17c8e43943020" 1981 | 1982 | "y18n@^3.2.1 || ^4.0.0": 1983 | version "4.0.0" 1984 | resolved "https://registry.yarnpkg.com/y18n/-/y18n-4.0.0.tgz#95ef94f85ecc81d007c264e190a120f0a3c8566b" 1985 | 1986 | yargs-parser@^10.1.0: 1987 | version "10.1.0" 1988 | resolved "https://registry.yarnpkg.com/yargs-parser/-/yargs-parser-10.1.0.tgz#7202265b89f7e9e9f2e5765e0fe735a905edbaa8" 1989 | dependencies: 1990 | camelcase "^4.1.0" 1991 | 1992 | yargs@^12.0.1: 1993 | version "12.0.2" 1994 | resolved "https://registry.yarnpkg.com/yargs/-/yargs-12.0.2.tgz#fe58234369392af33ecbef53819171eff0f5aadc" 1995 | dependencies: 1996 | cliui "^4.0.0" 1997 | decamelize "^2.0.0" 1998 | find-up "^3.0.0" 1999 | get-caller-file "^1.0.1" 2000 | os-locale "^3.0.0" 2001 | require-directory "^2.1.1" 2002 | require-main-filename "^1.0.1" 2003 | set-blocking "^2.0.0" 2004 | string-width "^2.0.0" 2005 | which-module "^2.0.0" 2006 | y18n "^3.2.1 || ^4.0.0" 2007 | yargs-parser "^10.1.0" 2008 | 2009 | yup@^0.27.0: 2010 | version "0.27.0" 2011 | resolved "https://registry.yarnpkg.com/yup/-/yup-0.27.0.tgz#f8cb198c8e7dd2124beddc2457571329096b06e7" 2012 | integrity sha512-v1yFnE4+u9za42gG/b/081E7uNW9mUj3qtkmelLbW5YPROZzSH/KUUyJu9Wt8vxFJcT9otL/eZopS0YK1L5yPQ== 2013 | dependencies: 2014 | "@babel/runtime" "^7.0.0" 2015 | fn-name "~2.0.1" 2016 | lodash "^4.17.11" 2017 | property-expr "^1.5.0" 2018 | synchronous-promise "^2.0.6" 2019 | toposort "^2.0.2" 2020 | --------------------------------------------------------------------------------