├── .editorconfig ├── .eslintrc.js ├── .gitattributes ├── .github ├── CODE_OF_CONDUCT.md ├── ISSUE_TEMPLATE │ ├── bug_report.md │ └── feature_request.md ├── LICENSE └── workflows │ └── nodejs.yml ├── .gitignore ├── .mergify.yml ├── .npmrc ├── .nvmrc ├── .prettierignore ├── .prettierrc ├── .stylelintrc ├── .travis.yml ├── CHANGELOG.md ├── README.md ├── app ├── .htaccess ├── .nginx.conf ├── app.js ├── components │ ├── Footer │ │ ├── Footer.js │ │ ├── Footer.scss │ │ └── index.js │ ├── Header │ │ ├── Header.js │ │ ├── Header.scss │ │ └── index.js │ └── common │ │ ├── assets │ │ └── images │ │ │ ├── Main.png │ │ │ └── dashboard.png │ │ └── styles │ │ ├── _fonts.scss │ │ ├── _variables.scss │ │ └── main.scss ├── configureStore.js ├── containers │ ├── App │ │ ├── index.js │ │ └── selectors.js │ ├── FeaturePage │ │ ├── FeaturePage.js │ │ ├── FeaturePage.scss │ │ └── Loadable.js │ ├── HomePage │ │ ├── Homepage.js │ │ └── Loadable.js │ └── NotFoundPage │ │ ├── Loadable.js │ │ └── NotFound.js ├── global-styles.js ├── images │ ├── favicon.ico │ └── icon-512x512.png ├── index.html ├── reducers.js └── utils │ ├── history.js │ └── loadable.js ├── appveyor.yml ├── babel.config.js ├── internals ├── generators │ ├── component │ │ ├── component.js.hbs │ │ ├── index.js │ │ ├── index.js.hbs │ │ ├── loadable.js.hbs │ │ ├── messages.js.hbs │ │ └── style.scss.hbs │ ├── container │ │ ├── index.js │ │ ├── index.js.hbs │ │ ├── saga.js.hbs │ │ ├── selectors.js.hbs │ │ └── slice.js.hbs │ ├── index.js │ ├── styledComponents │ │ ├── index.js │ │ ├── index.js.hbs │ │ └── styles.js.hbs │ └── utils │ │ └── componentExists.js ├── scripts │ ├── analyze.js │ ├── clean.js │ ├── generate-templates-for-linting.js │ ├── helpers │ │ ├── checkmark.js │ │ ├── get-required-node-npm-versions.js │ │ ├── git-utils.js │ │ ├── progress.js │ │ └── xmark.js │ └── setup.js └── webpack │ ├── webpack.base.babel.js │ ├── webpack.dev.babel.js │ └── webpack.prod.babel.js ├── package.json ├── pnpm-lock.yaml ├── renovate.json └── server ├── argv.js ├── index.js ├── logger.js ├── middlewares ├── addDevMiddlewares.js ├── addProdMiddlewares.js └── frontendMiddleware.js └── port.js /.editorconfig: -------------------------------------------------------------------------------- 1 | # editorconfig.org 2 | 3 | root = true 4 | 5 | [*] 6 | charset = utf-8 7 | end_of_line = lf 8 | insert_final_newline = true 9 | indent_style = space 10 | indent_size = 2 11 | trim_trailing_whitespace = true 12 | 13 | [*.md] 14 | trim_trailing_whitespace = false 15 | -------------------------------------------------------------------------------- /.eslintrc.js: -------------------------------------------------------------------------------- 1 | const fs = require('fs'); 2 | const path = require('path'); 3 | 4 | const prettierOptions = JSON.parse( 5 | fs.readFileSync(path.resolve(__dirname, '.prettierrc'), 'utf8'), 6 | ); 7 | 8 | module.exports = { 9 | parser: 'babel-eslint', 10 | extends: ['airbnb', 'prettier', 'prettier/react'], 11 | plugins: ['prettier', 'redux-saga', 'react', 'react-hooks', 'jsx-a11y'], 12 | env: { 13 | jest: true, 14 | browser: true, 15 | node: true, 16 | es6: true, 17 | }, 18 | parserOptions: { 19 | ecmaVersion: 6, 20 | sourceType: 'module', 21 | ecmaFeatures: { 22 | jsx: true, 23 | }, 24 | }, 25 | rules: { 26 | 'prettier/prettier': ['error', prettierOptions], 27 | 'arrow-body-style': [2, 'as-needed'], 28 | 'class-methods-use-this': 0, 29 | 'import/imports-first': 0, 30 | 'import/newline-after-import': 0, 31 | 'import/no-dynamic-require': 0, 32 | 'import/no-extraneous-dependencies': 0, 33 | 'import/no-named-as-default': 0, 34 | 'import/extensions': 0, 35 | 'import/no-unresolved': 0, 36 | 'import/no-webpack-loader-syntax': 0, 37 | 'import/prefer-default-export': 0, 38 | indent: [ 39 | 2, 40 | 2, 41 | { 42 | SwitchCase: 1, 43 | }, 44 | ], 45 | 'jsx-a11y/aria-props': 2, 46 | 'jsx-a11y/heading-has-content': 0, 47 | 'jsx-a11y/label-has-associated-control': [ 48 | 2, 49 | { 50 | // NOTE: If this error triggers, either disable it or add 51 | // your custom components, labels and attributes via these options 52 | // See https://github.com/evcohen/eslint-plugin-jsx-a11y/blob/master/docs/rules/label-has-associated-control.md 53 | controlComponents: ['Input'], 54 | }, 55 | ], 56 | 'jsx-a11y/label-has-for': 0, 57 | 'jsx-a11y/mouse-events-have-key-events': 2, 58 | 'jsx-a11y/role-has-required-aria-props': 2, 59 | 'jsx-a11y/role-supports-aria-props': 2, 60 | 'max-len': 0, 61 | 'newline-per-chained-call': 0, 62 | 'no-confusing-arrow': 0, 63 | 'no-console': [ 64 | 'error', 65 | { 66 | allow: ['warn', 'error', 'info'], 67 | }, 68 | ], 69 | 'no-unused-vars': 2, 70 | 'no-use-before-define': 0, 71 | 'prefer-template': 2, 72 | 'react/destructuring-assignment': 0, 73 | 'react-hooks/rules-of-hooks': 'error', 74 | 'react/jsx-closing-tag-location': 0, 75 | 'react/forbid-prop-types': 0, 76 | 'react/jsx-first-prop-new-line': [2, 'multiline'], 77 | 'react/jsx-filename-extension': 0, 78 | 'react/jsx-no-target-blank': 0, 79 | 'react/jsx-props-no-spreading': 0, 80 | 'react/jsx-uses-vars': 2, 81 | 'react/prefer-stateless-function': 0, 82 | 'react/require-default-props': 0, 83 | 'react/require-extension': 0, 84 | 'react/self-closing-comp': 0, 85 | 'react/sort-comp': 0, 86 | 'redux-saga/no-yield-in-race': 2, 87 | 'redux-saga/yield-effects': 2, 88 | 'require-yield': 0, 89 | }, 90 | settings: { 91 | 'import/resolver': { 92 | node: { 93 | moduleDirectory: ['node_modules', 'src'], 94 | }, 95 | }, 96 | 'import/extensions': [ 97 | 'error', 98 | 'ignorePackages', 99 | { 100 | js: 'never', 101 | jsx: 'never', 102 | }, 103 | ], 104 | }, 105 | }; 106 | -------------------------------------------------------------------------------- /.gitattributes: -------------------------------------------------------------------------------- 1 | # From https://github.com/Danimoth/gitattributes/blob/master/Web.gitattributes 2 | 3 | # Handle line endings automatically for files detected as text 4 | # and leave all files detected as binary untouched. 5 | * text=auto 6 | 7 | # 8 | # The above will handle all files NOT found below 9 | # 10 | 11 | # 12 | ## These files are text and should be normalized (Convert crlf => lf) 13 | # 14 | 15 | # source code 16 | *.php text 17 | *.css text 18 | *.sass text 19 | *.scss text 20 | *.less text 21 | *.styl text 22 | *.js text eol=lf 23 | *.coffee text 24 | *.json text 25 | *.htm text 26 | *.html text 27 | *.xml text 28 | *.svg text 29 | *.txt text 30 | *.ini text 31 | *.inc text 32 | *.pl text 33 | *.rb text 34 | *.py text 35 | *.scm text 36 | *.sql text 37 | *.sh text 38 | *.bat text 39 | 40 | # templates 41 | *.ejs text 42 | *.hbt text 43 | *.jade text 44 | *.haml text 45 | *.hbs text 46 | *.dot text 47 | *.tmpl text 48 | *.phtml text 49 | 50 | # server config 51 | .htaccess text 52 | .nginx.conf text 53 | 54 | # git config 55 | .gitattributes text 56 | .gitignore text 57 | .gitconfig text 58 | 59 | # code analysis config 60 | .jshintrc text 61 | .jscsrc text 62 | .jshintignore text 63 | .csslintrc text 64 | 65 | # misc config 66 | *.yaml text 67 | *.yml text 68 | .editorconfig text 69 | 70 | # build config 71 | *.npmignore text 72 | *.bowerrc text 73 | 74 | # Heroku 75 | Procfile text 76 | .slugignore text 77 | 78 | # Documentation 79 | *.md text 80 | LICENSE text 81 | AUTHORS text 82 | 83 | 84 | # 85 | ## These files are binary and should be left untouched 86 | # 87 | 88 | # (binary is a macro for -text -diff) 89 | *.png binary 90 | *.jpg binary 91 | *.jpeg binary 92 | *.gif binary 93 | *.ico binary 94 | *.mov binary 95 | *.mp4 binary 96 | *.mp3 binary 97 | *.flv binary 98 | *.fla binary 99 | *.swf binary 100 | *.gz binary 101 | *.zip binary 102 | *.7z binary 103 | *.ttf binary 104 | *.eot binary 105 | *.woff binary 106 | *.pyc binary 107 | *.pdf binary 108 | -------------------------------------------------------------------------------- /.github/CODE_OF_CONDUCT.md: -------------------------------------------------------------------------------- 1 | # Contributor Covenant Code of Conduct 2 | 3 | ## Our Pledge 4 | 5 | In the interest of fostering an open and welcoming environment, we as 6 | contributors and maintainers pledge to making participation in our project and 7 | our community a harassment-free experience for everyone, regardless of age, body 8 | size, disability, ethnicity, sex characteristics, gender identity and expression, 9 | level of experience, education, socio-economic status, nationality, personal 10 | appearance, race, religion, or sexual identity and orientation. 11 | 12 | ## Our Standards 13 | 14 | Examples of behavior that contributes to creating a positive environment 15 | include: 16 | 17 | - Using welcoming and inclusive language 18 | - Being respectful of differing viewpoints and experiences 19 | - Gracefully accepting constructive criticism 20 | - Focusing on what is best for the community 21 | - Showing empathy towards other community members 22 | 23 | Examples of unacceptable behavior by participants include: 24 | 25 | - The use of sexualized language or imagery and unwelcome sexual attention or 26 | advances 27 | - Trolling, insulting/derogatory comments, and personal or political attacks 28 | - Public or private harassment 29 | - Publishing others' private information, such as a physical or electronic 30 | address, without explicit permission 31 | - Other conduct which could reasonably be considered inappropriate in a 32 | professional setting 33 | 34 | ## Our Responsibilities 35 | 36 | Project maintainers are responsible for clarifying the standards of acceptable 37 | behavior and are expected to take appropriate and fair corrective action in 38 | response to any instances of unacceptable behavior. 39 | 40 | Project maintainers have the right and responsibility to remove, edit, or 41 | reject comments, commits, code, wiki edits, issues, and other contributions 42 | that are not aligned to this Code of Conduct, or to ban temporarily or 43 | permanently any contributor for other behaviors that they deem inappropriate, 44 | threatening, offensive, or harmful. 45 | 46 | ## Scope 47 | 48 | This Code of Conduct applies both within project spaces and in public spaces 49 | when an individual is representing the project or its community. Examples of 50 | representing a project or community include using an official project e-mail 51 | address, posting via an official social media account, or acting as an appointed 52 | representative at an online or offline event. Representation of a project may be 53 | further defined and clarified by project maintainers. 54 | 55 | ## Enforcement 56 | 57 | Instances of abusive, harassing, or otherwise unacceptable behavior may be 58 | reported by contacting the project team at kamrantahir25@gmail.com. All 59 | complaints will be reviewed and investigated and will result in a response that 60 | is deemed necessary and appropriate to the circumstances. The project team is 61 | obligated to maintain confidentiality with regard to the reporter of an incident. 62 | Further details of specific enforcement policies may be posted separately. 63 | 64 | Project maintainers who do not follow or enforce the Code of Conduct in good 65 | faith may face temporary or permanent repercussions as determined by other 66 | members of the project's leadership. 67 | 68 | ## Attribution 69 | 70 | This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4, 71 | available at https://www.contributor-covenant.org/version/1/4/code-of-conduct.html 72 | 73 | [homepage]: https://www.contributor-covenant.org 74 | 75 | For answers to common questions about this code of conduct, see 76 | https://www.contributor-covenant.org/faq 77 | -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/bug_report.md: -------------------------------------------------------------------------------- 1 | --- 2 | name: Bug report 3 | about: Create a report to help us improve 4 | title: '' 5 | labels: '' 6 | assignees: '' 7 | 8 | --- 9 | 10 | **Describe the bug** 11 | A clear and concise description of what the bug is. 12 | 13 | **To Reproduce** 14 | Steps to reproduce the behavior: 15 | 1. Go to '...' 16 | 2. Click on '....' 17 | 3. Scroll down to '....' 18 | 4. See error 19 | 20 | **Expected behavior** 21 | A clear and concise description of what you expected to happen. 22 | 23 | **Screenshots** 24 | If applicable, add screenshots to help explain your problem. 25 | 26 | **Desktop (please complete the following information):** 27 | - OS: [e.g. iOS] 28 | - Browser [e.g. chrome, safari] 29 | - Version [e.g. 22] 30 | 31 | **Smartphone (please complete the following information):** 32 | - Device: [e.g. iPhone6] 33 | - OS: [e.g. iOS8.1] 34 | - Browser [e.g. stock browser, safari] 35 | - Version [e.g. 22] 36 | 37 | **Additional context** 38 | Add any other context about the problem here. 39 | -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/feature_request.md: -------------------------------------------------------------------------------- 1 | --- 2 | name: Feature request 3 | about: Suggest an idea for this project 4 | title: '' 5 | labels: '' 6 | assignees: '' 7 | 8 | --- 9 | 10 | **Is your feature request related to a problem? Please describe.** 11 | A clear and concise description of what the problem is. Ex. I'm always frustrated when [...] 12 | 13 | **Describe the solution you'd like** 14 | A clear and concise description of what you want to happen. 15 | 16 | **Describe alternatives you've considered** 17 | A clear and concise description of any alternative solutions or features you've considered. 18 | 19 | **Additional context** 20 | Add any other context or screenshots about the feature request here. 21 | -------------------------------------------------------------------------------- /.github/LICENSE: -------------------------------------------------------------------------------- 1 | GNU GENERAL PUBLIC LICENSE 2 | Version 3, 29 June 2007 3 | 4 | Copyright (C) 2007 Free Software Foundation, Inc. 5 | Everyone is permitted to copy and distribute verbatim copies 6 | of this license document, but changing it is not allowed. 7 | 8 | Preamble 9 | 10 | The GNU General Public License is a free, copyleft license for 11 | software and other kinds of works. 12 | 13 | The licenses for most software and other practical works are designed 14 | to take away your freedom to share and change the works. By contrast, 15 | the GNU General Public License is intended to guarantee your freedom to 16 | share and change all versions of a program--to make sure it remains free 17 | software for all its users. We, the Free Software Foundation, use the 18 | GNU General Public License for most of our software; it applies also to 19 | any other work released this way by its authors. You can apply it to 20 | your programs, too. 21 | 22 | When we speak of free software, we are referring to freedom, not 23 | price. Our General Public Licenses are designed to make sure that you 24 | have the freedom to distribute copies of free software (and charge for 25 | them if you wish), that you receive source code or can get it if you 26 | want it, that you can change the software or use pieces of it in new 27 | free programs, and that you know you can do these things. 28 | 29 | To protect your rights, we need to prevent others from denying you 30 | these rights or asking you to surrender the rights. Therefore, you have 31 | certain responsibilities if you distribute copies of the software, or if 32 | you modify it: responsibilities to respect the freedom of others. 33 | 34 | For example, if you distribute copies of such a program, whether 35 | gratis or for a fee, you must pass on to the recipients the same 36 | freedoms that you received. You must make sure that they, too, receive 37 | or can get the source code. And you must show them these terms so they 38 | know their rights. 39 | 40 | Developers that use the GNU GPL protect your rights with two steps: 41 | (1) assert copyright on the software, and (2) offer you this License 42 | giving you legal permission to copy, distribute and/or modify it. 43 | 44 | For the developers' and authors' protection, the GPL clearly explains 45 | that there is no warranty for this free software. For both users' and 46 | authors' sake, the GPL requires that modified versions be marked as 47 | changed, so that their problems will not be attributed erroneously to 48 | authors of previous versions. 49 | 50 | Some devices are designed to deny users access to install or run 51 | modified versions of the software inside them, although the manufacturer 52 | can do so. This is fundamentally incompatible with the aim of 53 | protecting users' freedom to change the software. The systematic 54 | pattern of such abuse occurs in the area of products for individuals to 55 | use, which is precisely where it is most unacceptable. Therefore, we 56 | have designed this version of the GPL to prohibit the practice for those 57 | products. If such problems arise substantially in other domains, we 58 | stand ready to extend this provision to those domains in future versions 59 | of the GPL, as needed to protect the freedom of users. 60 | 61 | Finally, every program is threatened constantly by software patents. 62 | States should not allow patents to restrict development and use of 63 | software on general-purpose computers, but in those that do, we wish to 64 | avoid the special danger that patents applied to a free program could 65 | make it effectively proprietary. To prevent this, the GPL assures that 66 | patents cannot be used to render the program non-free. 67 | 68 | The precise terms and conditions for copying, distribution and 69 | modification follow. 70 | 71 | TERMS AND CONDITIONS 72 | 73 | 0. Definitions. 74 | 75 | "This License" refers to version 3 of the GNU General Public License. 76 | 77 | "Copyright" also means copyright-like laws that apply to other kinds of 78 | works, such as semiconductor masks. 79 | 80 | "The Program" refers to any copyrightable work licensed under this 81 | License. Each licensee is addressed as "you". "Licensees" and 82 | "recipients" may be individuals or organizations. 83 | 84 | To "modify" a work means to copy from or adapt all or part of the work 85 | in a fashion requiring copyright permission, other than the making of an 86 | exact copy. The resulting work is called a "modified version" of the 87 | earlier work or a work "based on" the earlier work. 88 | 89 | A "covered work" means either the unmodified Program or a work based 90 | on the Program. 91 | 92 | To "propagate" a work means to do anything with it that, without 93 | permission, would make you directly or secondarily liable for 94 | infringement under applicable copyright law, except executing it on a 95 | computer or modifying a private copy. Propagation includes copying, 96 | distribution (with or without modification), making available to the 97 | public, and in some countries other activities as well. 98 | 99 | To "convey" a work means any kind of propagation that enables other 100 | parties to make or receive copies. Mere interaction with a user through 101 | a computer network, with no transfer of a copy, is not conveying. 102 | 103 | An interactive user interface displays "Appropriate Legal Notices" 104 | to the extent that it includes a convenient and prominently visible 105 | feature that (1) displays an appropriate copyright notice, and (2) 106 | tells the user that there is no warranty for the work (except to the 107 | extent that warranties are provided), that licensees may convey the 108 | work under this License, and how to view a copy of this License. If 109 | the interface presents a list of user commands or options, such as a 110 | menu, a prominent item in the list meets this criterion. 111 | 112 | 1. Source Code. 113 | 114 | The "source code" for a work means the preferred form of the work 115 | for making modifications to it. "Object code" means any non-source 116 | form of a work. 117 | 118 | A "Standard Interface" means an interface that either is an official 119 | standard defined by a recognized standards body, or, in the case of 120 | interfaces specified for a particular programming language, one that 121 | is widely used among developers working in that language. 122 | 123 | The "System Libraries" of an executable work include anything, other 124 | than the work as a whole, that (a) is included in the normal form of 125 | packaging a Major Component, but which is not part of that Major 126 | Component, and (b) serves only to enable use of the work with that 127 | Major Component, or to implement a Standard Interface for which an 128 | implementation is available to the public in source code form. A 129 | "Major Component", in this context, means a major essential component 130 | (kernel, window system, and so on) of the specific operating system 131 | (if any) on which the executable work runs, or a compiler used to 132 | produce the work, or an object code interpreter used to run it. 133 | 134 | The "Corresponding Source" for a work in object code form means all 135 | the source code needed to generate, install, and (for an executable 136 | work) run the object code and to modify the work, including scripts to 137 | control those activities. However, it does not include the work's 138 | System Libraries, or general-purpose tools or generally available free 139 | programs which are used unmodified in performing those activities but 140 | which are not part of the work. For example, Corresponding Source 141 | includes interface definition files associated with source files for 142 | the work, and the source code for shared libraries and dynamically 143 | linked subprograms that the work is specifically designed to require, 144 | such as by intimate data communication or control flow between those 145 | subprograms and other parts of the work. 146 | 147 | The Corresponding Source need not include anything that users 148 | can regenerate automatically from other parts of the Corresponding 149 | Source. 150 | 151 | The Corresponding Source for a work in source code form is that 152 | same work. 153 | 154 | 2. Basic Permissions. 155 | 156 | All rights granted under this License are granted for the term of 157 | copyright on the Program, and are irrevocable provided the stated 158 | conditions are met. This License explicitly affirms your unlimited 159 | permission to run the unmodified Program. The output from running a 160 | covered work is covered by this License only if the output, given its 161 | content, constitutes a covered work. This License acknowledges your 162 | rights of fair use or other equivalent, as provided by copyright law. 163 | 164 | You may make, run and propagate covered works that you do not 165 | convey, without conditions so long as your license otherwise remains 166 | in force. You may convey covered works to others for the sole purpose 167 | of having them make modifications exclusively for you, or provide you 168 | with facilities for running those works, provided that you comply with 169 | the terms of this License in conveying all material for which you do 170 | not control copyright. Those thus making or running the covered works 171 | for you must do so exclusively on your behalf, under your direction 172 | and control, on terms that prohibit them from making any copies of 173 | your copyrighted material outside their relationship with you. 174 | 175 | Conveying under any other circumstances is permitted solely under 176 | the conditions stated below. Sublicensing is not allowed; section 10 177 | makes it unnecessary. 178 | 179 | 3. Protecting Users' Legal Rights From Anti-Circumvention Law. 180 | 181 | No covered work shall be deemed part of an effective technological 182 | measure under any applicable law fulfilling obligations under article 183 | 11 of the WIPO copyright treaty adopted on 20 December 1996, or 184 | similar laws prohibiting or restricting circumvention of such 185 | measures. 186 | 187 | When you convey a covered work, you waive any legal power to forbid 188 | circumvention of technological measures to the extent such circumvention 189 | is effected by exercising rights under this License with respect to 190 | the covered work, and you disclaim any intention to limit operation or 191 | modification of the work as a means of enforcing, against the work's 192 | users, your or third parties' legal rights to forbid circumvention of 193 | technological measures. 194 | 195 | 4. Conveying Verbatim Copies. 196 | 197 | You may convey verbatim copies of the Program's source code as you 198 | receive it, in any medium, provided that you conspicuously and 199 | appropriately publish on each copy an appropriate copyright notice; 200 | keep intact all notices stating that this License and any 201 | non-permissive terms added in accord with section 7 apply to the code; 202 | keep intact all notices of the absence of any warranty; and give all 203 | recipients a copy of this License along with the Program. 204 | 205 | You may charge any price or no price for each copy that you convey, 206 | and you may offer support or warranty protection for a fee. 207 | 208 | 5. Conveying Modified Source Versions. 209 | 210 | You may convey a work based on the Program, or the modifications to 211 | produce it from the Program, in the form of source code under the 212 | terms of section 4, provided that you also meet all of these conditions: 213 | 214 | a) The work must carry prominent notices stating that you modified 215 | it, and giving a relevant date. 216 | 217 | b) The work must carry prominent notices stating that it is 218 | released under this License and any conditions added under section 219 | 7. This requirement modifies the requirement in section 4 to 220 | "keep intact all notices". 221 | 222 | c) You must license the entire work, as a whole, under this 223 | License to anyone who comes into possession of a copy. This 224 | License will therefore apply, along with any applicable section 7 225 | additional terms, to the whole of the work, and all its parts, 226 | regardless of how they are packaged. This License gives no 227 | permission to license the work in any other way, but it does not 228 | invalidate such permission if you have separately received it. 229 | 230 | d) If the work has interactive user interfaces, each must display 231 | Appropriate Legal Notices; however, if the Program has interactive 232 | interfaces that do not display Appropriate Legal Notices, your 233 | work need not make them do so. 234 | 235 | A compilation of a covered work with other separate and independent 236 | works, which are not by their nature extensions of the covered work, 237 | and which are not combined with it such as to form a larger program, 238 | in or on a volume of a storage or distribution medium, is called an 239 | "aggregate" if the compilation and its resulting copyright are not 240 | used to limit the access or legal rights of the compilation's users 241 | beyond what the individual works permit. Inclusion of a covered work 242 | in an aggregate does not cause this License to apply to the other 243 | parts of the aggregate. 244 | 245 | 6. Conveying Non-Source Forms. 246 | 247 | You may convey a covered work in object code form under the terms 248 | of sections 4 and 5, provided that you also convey the 249 | machine-readable Corresponding Source under the terms of this License, 250 | in one of these ways: 251 | 252 | a) Convey the object code in, or embodied in, a physical product 253 | (including a physical distribution medium), accompanied by the 254 | Corresponding Source fixed on a durable physical medium 255 | customarily used for software interchange. 256 | 257 | b) Convey the object code in, or embodied in, a physical product 258 | (including a physical distribution medium), accompanied by a 259 | written offer, valid for at least three years and valid for as 260 | long as you offer spare parts or customer support for that product 261 | model, to give anyone who possesses the object code either (1) a 262 | copy of the Corresponding Source for all the software in the 263 | product that is covered by this License, on a durable physical 264 | medium customarily used for software interchange, for a price no 265 | more than your reasonable cost of physically performing this 266 | conveying of source, or (2) access to copy the 267 | Corresponding Source from a network server at no charge. 268 | 269 | c) Convey individual copies of the object code with a copy of the 270 | written offer to provide the Corresponding Source. This 271 | alternative is allowed only occasionally and noncommercially, and 272 | only if you received the object code with such an offer, in accord 273 | with subsection 6b. 274 | 275 | d) Convey the object code by offering access from a designated 276 | place (gratis or for a charge), and offer equivalent access to the 277 | Corresponding Source in the same way through the same place at no 278 | further charge. You need not require recipients to copy the 279 | Corresponding Source along with the object code. If the place to 280 | copy the object code is a network server, the Corresponding Source 281 | may be on a different server (operated by you or a third party) 282 | that supports equivalent copying facilities, provided you maintain 283 | clear directions next to the object code saying where to find the 284 | Corresponding Source. Regardless of what server hosts the 285 | Corresponding Source, you remain obligated to ensure that it is 286 | available for as long as needed to satisfy these requirements. 287 | 288 | e) Convey the object code using peer-to-peer transmission, provided 289 | you inform other peers where the object code and Corresponding 290 | Source of the work are being offered to the general public at no 291 | charge under subsection 6d. 292 | 293 | A separable portion of the object code, whose source code is excluded 294 | from the Corresponding Source as a System Library, need not be 295 | included in conveying the object code work. 296 | 297 | A "User Product" is either (1) a "consumer product", which means any 298 | tangible personal property which is normally used for personal, family, 299 | or household purposes, or (2) anything designed or sold for incorporation 300 | into a dwelling. In determining whether a product is a consumer product, 301 | doubtful cases shall be resolved in favor of coverage. For a particular 302 | product received by a particular user, "normally used" refers to a 303 | typical or common use of that class of product, regardless of the status 304 | of the particular user or of the way in which the particular user 305 | actually uses, or expects or is expected to use, the product. A product 306 | is a consumer product regardless of whether the product has substantial 307 | commercial, industrial or non-consumer uses, unless such uses represent 308 | the only significant mode of use of the product. 309 | 310 | "Installation Information" for a User Product means any methods, 311 | procedures, authorization keys, or other information required to install 312 | and execute modified versions of a covered work in that User Product from 313 | a modified version of its Corresponding Source. The information must 314 | suffice to ensure that the continued functioning of the modified object 315 | code is in no case prevented or interfered with solely because 316 | modification has been made. 317 | 318 | If you convey an object code work under this section in, or with, or 319 | specifically for use in, a User Product, and the conveying occurs as 320 | part of a transaction in which the right of possession and use of the 321 | User Product is transferred to the recipient in perpetuity or for a 322 | fixed term (regardless of how the transaction is characterized), the 323 | Corresponding Source conveyed under this section must be accompanied 324 | by the Installation Information. But this requirement does not apply 325 | if neither you nor any third party retains the ability to install 326 | modified object code on the User Product (for example, the work has 327 | been installed in ROM). 328 | 329 | The requirement to provide Installation Information does not include a 330 | requirement to continue to provide support service, warranty, or updates 331 | for a work that has been modified or installed by the recipient, or for 332 | the User Product in which it has been modified or installed. Access to a 333 | network may be denied when the modification itself materially and 334 | adversely affects the operation of the network or violates the rules and 335 | protocols for communication across the network. 336 | 337 | Corresponding Source conveyed, and Installation Information provided, 338 | in accord with this section must be in a format that is publicly 339 | documented (and with an implementation available to the public in 340 | source code form), and must require no special password or key for 341 | unpacking, reading or copying. 342 | 343 | 7. Additional Terms. 344 | 345 | "Additional permissions" are terms that supplement the terms of this 346 | License by making exceptions from one or more of its conditions. 347 | Additional permissions that are applicable to the entire Program shall 348 | be treated as though they were included in this License, to the extent 349 | that they are valid under applicable law. If additional permissions 350 | apply only to part of the Program, that part may be used separately 351 | under those permissions, but the entire Program remains governed by 352 | this License without regard to the additional permissions. 353 | 354 | When you convey a copy of a covered work, you may at your option 355 | remove any additional permissions from that copy, or from any part of 356 | it. (Additional permissions may be written to require their own 357 | removal in certain cases when you modify the work.) You may place 358 | additional permissions on material, added by you to a covered work, 359 | for which you have or can give appropriate copyright permission. 360 | 361 | Notwithstanding any other provision of this License, for material you 362 | add to a covered work, you may (if authorized by the copyright holders of 363 | that material) supplement the terms of this License with terms: 364 | 365 | a) Disclaiming warranty or limiting liability differently from the 366 | terms of sections 15 and 16 of this License; or 367 | 368 | b) Requiring preservation of specified reasonable legal notices or 369 | author attributions in that material or in the Appropriate Legal 370 | Notices displayed by works containing it; or 371 | 372 | c) Prohibiting misrepresentation of the origin of that material, or 373 | requiring that modified versions of such material be marked in 374 | reasonable ways as different from the original version; or 375 | 376 | d) Limiting the use for publicity purposes of names of licensors or 377 | authors of the material; or 378 | 379 | e) Declining to grant rights under trademark law for use of some 380 | trade names, trademarks, or service marks; or 381 | 382 | f) Requiring indemnification of licensors and authors of that 383 | material by anyone who conveys the material (or modified versions of 384 | it) with contractual assumptions of liability to the recipient, for 385 | any liability that these contractual assumptions directly impose on 386 | those licensors and authors. 387 | 388 | All other non-permissive additional terms are considered "further 389 | restrictions" within the meaning of section 10. If the Program as you 390 | received it, or any part of it, contains a notice stating that it is 391 | governed by this License along with a term that is a further 392 | restriction, you may remove that term. If a license document contains 393 | a further restriction but permits relicensing or conveying under this 394 | License, you may add to a covered work material governed by the terms 395 | of that license document, provided that the further restriction does 396 | not survive such relicensing or conveying. 397 | 398 | If you add terms to a covered work in accord with this section, you 399 | must place, in the relevant source files, a statement of the 400 | additional terms that apply to those files, or a notice indicating 401 | where to find the applicable terms. 402 | 403 | Additional terms, permissive or non-permissive, may be stated in the 404 | form of a separately written license, or stated as exceptions; 405 | the above requirements apply either way. 406 | 407 | 8. Termination. 408 | 409 | You may not propagate or modify a covered work except as expressly 410 | provided under this License. Any attempt otherwise to propagate or 411 | modify it is void, and will automatically terminate your rights under 412 | this License (including any patent licenses granted under the third 413 | paragraph of section 11). 414 | 415 | However, if you cease all violation of this License, then your 416 | license from a particular copyright holder is reinstated (a) 417 | provisionally, unless and until the copyright holder explicitly and 418 | finally terminates your license, and (b) permanently, if the copyright 419 | holder fails to notify you of the violation by some reasonable means 420 | prior to 60 days after the cessation. 421 | 422 | Moreover, your license from a particular copyright holder is 423 | reinstated permanently if the copyright holder notifies you of the 424 | violation by some reasonable means, this is the first time you have 425 | received notice of violation of this License (for any work) from that 426 | copyright holder, and you cure the violation prior to 30 days after 427 | your receipt of the notice. 428 | 429 | Termination of your rights under this section does not terminate the 430 | licenses of parties who have received copies or rights from you under 431 | this License. If your rights have been terminated and not permanently 432 | reinstated, you do not qualify to receive new licenses for the same 433 | material under section 10. 434 | 435 | 9. Acceptance Not Required for Having Copies. 436 | 437 | You are not required to accept this License in order to receive or 438 | run a copy of the Program. Ancillary propagation of a covered work 439 | occurring solely as a consequence of using peer-to-peer transmission 440 | to receive a copy likewise does not require acceptance. However, 441 | nothing other than this License grants you permission to propagate or 442 | modify any covered work. These actions infringe copyright if you do 443 | not accept this License. Therefore, by modifying or propagating a 444 | covered work, you indicate your acceptance of this License to do so. 445 | 446 | 10. Automatic Licensing of Downstream Recipients. 447 | 448 | Each time you convey a covered work, the recipient automatically 449 | receives a license from the original licensors, to run, modify and 450 | propagate that work, subject to this License. You are not responsible 451 | for enforcing compliance by third parties with this License. 452 | 453 | An "entity transaction" is a transaction transferring control of an 454 | organization, or substantially all assets of one, or subdividing an 455 | organization, or merging organizations. If propagation of a covered 456 | work results from an entity transaction, each party to that 457 | transaction who receives a copy of the work also receives whatever 458 | licenses to the work the party's predecessor in interest had or could 459 | give under the previous paragraph, plus a right to possession of the 460 | Corresponding Source of the work from the predecessor in interest, if 461 | the predecessor has it or can get it with reasonable efforts. 462 | 463 | You may not impose any further restrictions on the exercise of the 464 | rights granted or affirmed under this License. For example, you may 465 | not impose a license fee, royalty, or other charge for exercise of 466 | rights granted under this License, and you may not initiate litigation 467 | (including a cross-claim or counterclaim in a lawsuit) alleging that 468 | any patent claim is infringed by making, using, selling, offering for 469 | sale, or importing the Program or any portion of it. 470 | 471 | 11. Patents. 472 | 473 | A "contributor" is a copyright holder who authorizes use under this 474 | License of the Program or a work on which the Program is based. The 475 | work thus licensed is called the contributor's "contributor version". 476 | 477 | A contributor's "essential patent claims" are all patent claims 478 | owned or controlled by the contributor, whether already acquired or 479 | hereafter acquired, that would be infringed by some manner, permitted 480 | by this License, of making, using, or selling its contributor version, 481 | but do not include claims that would be infringed only as a 482 | consequence of further modification of the contributor version. For 483 | purposes of this definition, "control" includes the right to grant 484 | patent sublicenses in a manner consistent with the requirements of 485 | this License. 486 | 487 | Each contributor grants you a non-exclusive, worldwide, royalty-free 488 | patent license under the contributor's essential patent claims, to 489 | make, use, sell, offer for sale, import and otherwise run, modify and 490 | propagate the contents of its contributor version. 491 | 492 | In the following three paragraphs, a "patent license" is any express 493 | agreement or commitment, however denominated, not to enforce a patent 494 | (such as an express permission to practice a patent or covenant not to 495 | sue for patent infringement). To "grant" such a patent license to a 496 | party means to make such an agreement or commitment not to enforce a 497 | patent against the party. 498 | 499 | If you convey a covered work, knowingly relying on a patent license, 500 | and the Corresponding Source of the work is not available for anyone 501 | to copy, free of charge and under the terms of this License, through a 502 | publicly available network server or other readily accessible means, 503 | then you must either (1) cause the Corresponding Source to be so 504 | available, or (2) arrange to deprive yourself of the benefit of the 505 | patent license for this particular work, or (3) arrange, in a manner 506 | consistent with the requirements of this License, to extend the patent 507 | license to downstream recipients. "Knowingly relying" means you have 508 | actual knowledge that, but for the patent license, your conveying the 509 | covered work in a country, or your recipient's use of the covered work 510 | in a country, would infringe one or more identifiable patents in that 511 | country that you have reason to believe are valid. 512 | 513 | If, pursuant to or in connection with a single transaction or 514 | arrangement, you convey, or propagate by procuring conveyance of, a 515 | covered work, and grant a patent license to some of the parties 516 | receiving the covered work authorizing them to use, propagate, modify 517 | or convey a specific copy of the covered work, then the patent license 518 | you grant is automatically extended to all recipients of the covered 519 | work and works based on it. 520 | 521 | A patent license is "discriminatory" if it does not include within 522 | the scope of its coverage, prohibits the exercise of, or is 523 | conditioned on the non-exercise of one or more of the rights that are 524 | specifically granted under this License. You may not convey a covered 525 | work if you are a party to an arrangement with a third party that is 526 | in the business of distributing software, under which you make payment 527 | to the third party based on the extent of your activity of conveying 528 | the work, and under which the third party grants, to any of the 529 | parties who would receive the covered work from you, a discriminatory 530 | patent license (a) in connection with copies of the covered work 531 | conveyed by you (or copies made from those copies), or (b) primarily 532 | for and in connection with specific products or compilations that 533 | contain the covered work, unless you entered into that arrangement, 534 | or that patent license was granted, prior to 28 March 2007. 535 | 536 | Nothing in this License shall be construed as excluding or limiting 537 | any implied license or other defenses to infringement that may 538 | otherwise be available to you under applicable patent law. 539 | 540 | 12. No Surrender of Others' Freedom. 541 | 542 | If conditions are imposed on you (whether by court order, agreement or 543 | otherwise) that contradict the conditions of this License, they do not 544 | excuse you from the conditions of this License. If you cannot convey a 545 | covered work so as to satisfy simultaneously your obligations under this 546 | License and any other pertinent obligations, then as a consequence you may 547 | not convey it at all. For example, if you agree to terms that obligate you 548 | to collect a royalty for further conveying from those to whom you convey 549 | the Program, the only way you could satisfy both those terms and this 550 | License would be to refrain entirely from conveying the Program. 551 | 552 | 13. Use with the GNU Affero General Public License. 553 | 554 | Notwithstanding any other provision of this License, you have 555 | permission to link or combine any covered work with a work licensed 556 | under version 3 of the GNU Affero General Public License into a single 557 | combined work, and to convey the resulting work. The terms of this 558 | License will continue to apply to the part which is the covered work, 559 | but the special requirements of the GNU Affero General Public License, 560 | section 13, concerning interaction through a network will apply to the 561 | combination as such. 562 | 563 | 14. Revised Versions of this License. 564 | 565 | The Free Software Foundation may publish revised and/or new versions of 566 | the GNU General Public License from time to time. Such new versions will 567 | be similar in spirit to the present version, but may differ in detail to 568 | address new problems or concerns. 569 | 570 | Each version is given a distinguishing version number. If the 571 | Program specifies that a certain numbered version of the GNU General 572 | Public License "or any later version" applies to it, you have the 573 | option of following the terms and conditions either of that numbered 574 | version or of any later version published by the Free Software 575 | Foundation. If the Program does not specify a version number of the 576 | GNU General Public License, you may choose any version ever published 577 | by the Free Software Foundation. 578 | 579 | If the Program specifies that a proxy can decide which future 580 | versions of the GNU General Public License can be used, that proxy's 581 | public statement of acceptance of a version permanently authorizes you 582 | to choose that version for the Program. 583 | 584 | Later license versions may give you additional or different 585 | permissions. However, no additional obligations are imposed on any 586 | author or copyright holder as a result of your choosing to follow a 587 | later version. 588 | 589 | 15. Disclaimer of Warranty. 590 | 591 | THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY 592 | APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT 593 | HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY 594 | OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, 595 | THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 596 | PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM 597 | IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF 598 | ALL NECESSARY SERVICING, REPAIR OR CORRECTION. 599 | 600 | 16. Limitation of Liability. 601 | 602 | IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING 603 | WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS 604 | THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY 605 | GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE 606 | USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF 607 | DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD 608 | PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), 609 | EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF 610 | SUCH DAMAGES. 611 | 612 | 17. Interpretation of Sections 15 and 16. 613 | 614 | If the disclaimer of warranty and limitation of liability provided 615 | above cannot be given local legal effect according to their terms, 616 | reviewing courts shall apply local law that most closely approximates 617 | an absolute waiver of all civil liability in connection with the 618 | Program, unless a warranty or assumption of liability accompanies a 619 | copy of the Program in return for a fee. 620 | 621 | END OF TERMS AND CONDITIONS 622 | 623 | How to Apply These Terms to Your New Programs 624 | 625 | If you develop a new program, and you want it to be of the greatest 626 | possible use to the public, the best way to achieve this is to make it 627 | free software which everyone can redistribute and change under these terms. 628 | 629 | To do so, attach the following notices to the program. It is safest 630 | to attach them to the start of each source file to most effectively 631 | state the exclusion of warranty; and each file should have at least 632 | the "copyright" line and a pointer to where the full notice is found. 633 | 634 | 635 | Copyright (C) 636 | 637 | This program is free software: you can redistribute it and/or modify 638 | it under the terms of the GNU General Public License as published by 639 | the Free Software Foundation, either version 3 of the License, or 640 | (at your option) any later version. 641 | 642 | This program is distributed in the hope that it will be useful, 643 | but WITHOUT ANY WARRANTY; without even the implied warranty of 644 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 645 | GNU General Public License for more details. 646 | 647 | You should have received a copy of the GNU General Public License 648 | along with this program. If not, see . 649 | 650 | Also add information on how to contact you by electronic and paper mail. 651 | 652 | If the program does terminal interaction, make it output a short 653 | notice like this when it starts in an interactive mode: 654 | 655 | Copyright (C) 656 | This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'. 657 | This is free software, and you are welcome to redistribute it 658 | under certain conditions; type `show c' for details. 659 | 660 | The hypothetical commands `show w' and `show c' should show the appropriate 661 | parts of the General Public License. Of course, your program's commands 662 | might be different; for a GUI interface, you would use an "about box". 663 | 664 | You should also get your employer (if you work as a programmer) or school, 665 | if any, to sign a "copyright disclaimer" for the program, if necessary. 666 | For more information on this, and how to apply and follow the GNU GPL, see 667 | . 668 | 669 | The GNU General Public License does not permit incorporating your program 670 | into proprietary programs. If your program is a subroutine library, you 671 | may consider it more useful to permit linking proprietary applications with 672 | the library. If this is what you want to do, use the GNU Lesser General 673 | Public License instead of this License. But first, please read 674 | . 675 | -------------------------------------------------------------------------------- /.github/workflows/nodejs.yml: -------------------------------------------------------------------------------- 1 | name: Node CI 2 | 3 | on: [push] 4 | 5 | jobs: 6 | build: 7 | runs-on: ubuntu-latest 8 | 9 | strategy: 10 | matrix: 11 | node-version: [10.x, 12.x] 12 | 13 | steps: 14 | - uses: actions/checkout@v1 15 | - name: Use Node.js ${{ matrix.node-version }} 16 | uses: actions/setup-node@v1 17 | with: 18 | node-version: ${{ matrix.node-version }} 19 | - name: pnpm install, build 20 | run: | 21 | curl -L https://unpkg.com/@pnpm/self-installer | node 22 | pnpm install 23 | pnpm run build 24 | env: 25 | CI: true 26 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # Don't check auto-generated stuff into git 2 | coverage 3 | build 4 | node_modules 5 | stats.json 6 | 7 | # Cruft 8 | .DS_Store 9 | npm-debug.log 10 | .idea 11 | -------------------------------------------------------------------------------- /.mergify.yml: -------------------------------------------------------------------------------- 1 | pull_request_rules: 2 | - name: automatic merge on CI success and review 3 | conditions: 4 | - status-success=Travis CI - Pull Request 5 | - base=Dev 6 | actions: 7 | merge: 8 | method: merge 9 | -------------------------------------------------------------------------------- /.npmrc: -------------------------------------------------------------------------------- 1 | save-exact = true 2 | -------------------------------------------------------------------------------- /.nvmrc: -------------------------------------------------------------------------------- 1 | lts/dubnium 2 | -------------------------------------------------------------------------------- /.prettierignore: -------------------------------------------------------------------------------- 1 | build/ 2 | node_modules/ 3 | internals/generators/ 4 | internals/scripts/ 5 | package-lock.json 6 | yarn.lock 7 | package.json 8 | -------------------------------------------------------------------------------- /.prettierrc: -------------------------------------------------------------------------------- 1 | { 2 | "printWidth": 80, 3 | "tabWidth": 2, 4 | "useTabs": false, 5 | "semi": true, 6 | "singleQuote": true, 7 | "trailingComma": "all" 8 | } 9 | -------------------------------------------------------------------------------- /.stylelintrc: -------------------------------------------------------------------------------- 1 | { 2 | "processors": ["stylelint-processor-styled-components"], 3 | "extends": [ 4 | "stylelint-config-recommended", 5 | "stylelint-config-styled-components" 6 | ] 7 | } 8 | -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- 1 | language: node_js 2 | 3 | node_js: 4 | - 'node' 5 | - 'lts/*' 6 | 7 | services: 8 | - xvfb 9 | 10 | script: 11 | - pnpm run build 12 | 13 | before_install: 14 | - curl -L https://unpkg.com/@pnpm/self-installer | node 15 | - export CHROME_BIN=chromium-browser 16 | - export DISPLAY=:99.0 17 | 18 | install: 19 | - pnpm install 20 | 21 | notifications: 22 | email: 23 | on_failure: change 24 | 25 | cache: 26 | directories: 27 | - node_modules 28 | -------------------------------------------------------------------------------- /CHANGELOG.md: -------------------------------------------------------------------------------- 1 | # Changelog 2 | 3 | 4 | ## 1.0.0 (2020-04-08) 5 | 6 | ### Added 7 | 8 | - ✨ StyledComponents generator [[e7bdd40](https://github.com/EvilSpark/Infinity-react-boilerplate/commit/e7bdd401b3c4f93d704ae33fc35a32e3db86acce)] 9 | - ✨ HardSourceWebpackPlugin [[e2b846e](https://github.com/EvilSpark/Infinity-react-boilerplate/commit/e2b846e75aeb3a30bd4444842013cc79339bfaf1)] 10 | - ✨ Added scss to generator [[4c4f5f8](https://github.com/EvilSpark/Infinity-react-boilerplate/commit/4c4f5f897416705303e7827d03e448496e8325f3)] 11 | - ✨ Pretty error and react dashboard [[284c16b](https://github.com/EvilSpark/Infinity-react-boilerplate/commit/284c16b3fac109c80f201d679c6c4b3ecdaf561c)] 12 | - ✨ Dependency Fixed [[4239f29](https://github.com/EvilSpark/Infinity-react-boilerplate/commit/4239f294150017df77ebae8d8dec5f71c63dca01)] 13 | - ✨ Changelog [[b29c706](https://github.com/EvilSpark/Infinity-react-boilerplate/commit/b29c70665c468b19db5b16e6107e98888ee9d0a0)] 14 | - ✨ Readme updated [[9498aa3](https://github.com/EvilSpark/Infinity-react-boilerplate/commit/9498aa3e92cd5f0f36c6bbc6077fd51e48757316)] 15 | 16 | ### Changed 17 | 18 | - ⬆️ readme [[ee70d89](https://github.com/EvilSpark/Infinity-react-boilerplate/commit/ee70d892e2bf0b99a87db082cd7bc6a10950eccc)] 19 | - ⬆️ Bump @babel/register from 7.7.4 to 7.7.7 [[8f13e44](https://github.com/EvilSpark/Infinity-react-boilerplate/commit/8f13e4400092c6b563ecd511a07003b397b10391)] 20 | - ⬆️ Bump webpack from 4.41.3 to 4.41.4 [[302a5a1](https://github.com/EvilSpark/Infinity-react-boilerplate/commit/302a5a10cf0416d19657df0d3466cf6d4104ff4c)] 21 | - ⬆️ Bump @babel/cli from 7.7.5 to 7.7.7 [[a0ef3c1](https://github.com/EvilSpark/Infinity-react-boilerplate/commit/a0ef3c11e477bb8fd41a82fe0139234fd81d9082)] 22 | - ⬆️ Bump immer from 5.0.1 to 5.0.2 [[9915810](https://github.com/EvilSpark/Infinity-react-boilerplate/commit/99158106b4d75ef4b7c491588f270c0d0ab2d191)] 23 | - ⬆️ dependency upgrade [[4a75bfd](https://github.com/EvilSpark/Infinity-react-boilerplate/commit/4a75bfd6220221a8662b8e74a44918c96bbabb2b)] 24 | - 🎨 changelog [[f30731a](https://github.com/EvilSpark/Infinity-react-boilerplate/commit/f30731af89e06775eec17060dcf3a12971f8f57e)] 25 | - ⬆️ dependency [[b9ac7fb](https://github.com/EvilSpark/Infinity-react-boilerplate/commit/b9ac7fba65c42956c454f58db0fbbb18afd877b1)] 26 | - ⬆️ upgrading dependency [[7658c77](https://github.com/EvilSpark/Infinity-react-boilerplate/commit/7658c7799fa6a3fc443f1eecbe454a95df0b292c)] 27 | - ⬆️ connected-react-router 6.6.1 [[cc4b5e3](https://github.com/EvilSpark/Infinity-react-boilerplate/commit/cc4b5e3670c6bb6a984011b191b741a5f503ed56)] 28 | - ⬆️ Bump eslint from 6.6.0 to 6.7.0 [[767b0f8](https://github.com/EvilSpark/Infinity-react-boilerplate/commit/767b0f80b7c225d191ad1cc40ef1a3bd643d4731)] 29 | - ⬆️ Bump file-loader from 4.2.0 to 4.3.0 [[a8416b3](https://github.com/EvilSpark/Infinity-react-boilerplate/commit/a8416b32360de8303bd5ef8e44ab699ab6b3fb34)] 30 | - ⬆️ Bump url-loader from 2.2.0 to 2.3.0 [[307cb49](https://github.com/EvilSpark/Infinity-react-boilerplate/commit/307cb49a729da9e1a3025f83cb1cedfb7f92439c)] 31 | - 🎨 Commited [[bce5cb5](https://github.com/EvilSpark/Infinity-react-boilerplate/commit/bce5cb55f7455ba6c3baab248ac77989e69c2eaa)] 32 | - 🎨 Badge [[c9ccb8f](https://github.com/EvilSpark/Infinity-react-boilerplate/commit/c9ccb8f1cd5738e1f4959d5c7fc7e364467bce38)] 33 | - 🎨 readme [[c1ee682](https://github.com/EvilSpark/Infinity-react-boilerplate/commit/c1ee6829c98fb4a0e3beafc0614314e16520bf31)] 34 | - 🎨 Changelog [[0c68084](https://github.com/EvilSpark/Infinity-react-boilerplate/commit/0c68084a6d7ffcbbed0f0e4d43e066e017037088)] 35 | - 🎨 Readme testing [[4ad1be8](https://github.com/EvilSpark/Infinity-react-boilerplate/commit/4ad1be8cbf3bc1ca7f971e5be2bf7713ca965161)] 36 | 37 | ### Removed 38 | 39 | - ➖ Jest and Friends [[8de13d9](https://github.com/EvilSpark/Infinity-react-boilerplate/commit/8de13d91b9ba77249b7a5722bb74400d3cf36563)] 40 | 41 | ### Fixed 42 | 43 | - 🚑 tree-shaking [[a020d2b](https://github.com/EvilSpark/Infinity-react-boilerplate/commit/a020d2b9818ddd39cf673c30b0757e793d1eb213)] 44 | - 🐛 Hotloader fix [[63286a7](https://github.com/EvilSpark/Infinity-react-boilerplate/commit/63286a78a73e4e79e375a95c047eb495da5163a4)] 45 | - 🐛 Mergify fix [[6f09c63](https://github.com/EvilSpark/Infinity-react-boilerplate/commit/6f09c637ee5fc5ba26bb679835073aebdd241ada)] 46 | - 🐛 CI [[df82a2c](https://github.com/EvilSpark/Infinity-react-boilerplate/commit/df82a2c9e0e36155f87dcc24e9dd9bd46df4f330)] 47 | - 🐛 Husky Fixed [[ace782e](https://github.com/EvilSpark/Infinity-react-boilerplate/commit/ace782ec550070e51a145a1d589a5bc30993c7d5)] 48 | - 🚑 Maintenancee [[9a98b34](https://github.com/EvilSpark/Infinity-react-boilerplate/commit/9a98b340a2ada91facb0a6742e58add4ebbd95f0)] 49 | - 🚑 scripts removed [[9570279](https://github.com/EvilSpark/Infinity-react-boilerplate/commit/95702799e74f0b218ad1c9265e4d6c32638a603b)] 50 | - 🚑 packagelock [[ed63e3b](https://github.com/EvilSpark/Infinity-react-boilerplate/commit/ed63e3b6f3b0e9b4cb028d8a6622be3f8a433f05)] 51 | 52 | ### Miscellaneous 53 | 54 | - Dev ([#200](https://github.com/EvilSpark/Infinity-react-boilerplate/issues/200)) [[c55959f](https://github.com/EvilSpark/Infinity-react-boilerplate/commit/c55959f2b49b7c604b891528b72e130a06184f9f)] 55 | - [ImgBot] Optimize images ([#172](https://github.com/EvilSpark/Infinity-react-boilerplate/issues/172)) [[53fb0f6](https://github.com/EvilSpark/Infinity-react-boilerplate/commit/53fb0f616273866bee482e697c8c4a889338a122)] 56 | - Changed Image [[753983b](https://github.com/EvilSpark/Infinity-react-boilerplate/commit/753983b1ab594172938055df686c9142aec20927)] 57 | - webpack fix [[ac171d3](https://github.com/EvilSpark/Infinity-react-boilerplate/commit/ac171d34248883826ef323724a113ed446974df8)] 58 | - Restyled by jq ([#170](https://github.com/EvilSpark/Infinity-react-boilerplate/issues/170)) [[32c884c](https://github.com/EvilSpark/Infinity-react-boilerplate/commit/32c884c1605db0404f79c75bfdef81203925ed8c)] 59 | - renovate fix [[658b839](https://github.com/EvilSpark/Infinity-react-boilerplate/commit/658b839e226a1f105d03e484445714cc4f13d047)] 60 | - renovate fix [[5c27326](https://github.com/EvilSpark/Infinity-react-boilerplate/commit/5c27326d5d2b9ba34fff6803ebd60f8434a6c2ca)] 61 | - Merge pull request [#168](https://github.com/EvilSpark/Infinity-react-boilerplate/issues/168) from EvilSpark/renovate/react-monorepo [[5fe66ae](https://github.com/EvilSpark/Infinity-react-boilerplate/commit/5fe66aeb4cd18442aefe9d051d77ee4f3943ec71)] 62 | - Update react monorepo [[82edb73](https://github.com/EvilSpark/Infinity-react-boilerplate/commit/82edb739013a88b0807fd95ae03a5d4dbf10d92c)] 63 | - Merge pull request [#167](https://github.com/EvilSpark/Infinity-react-boilerplate/issues/167) from EvilSpark/renovate/hot-loader-react-dom-16.x [[c17a61e](https://github.com/EvilSpark/Infinity-react-boilerplate/commit/c17a61ef9b82d56a5718bd3cc4fc0af483228e58)] 64 | - Update dependency @hot-loader/react-dom to v16.12.0 [[922a596](https://github.com/EvilSpark/Infinity-react-boilerplate/commit/922a5968dc3b8d635eb70188d6a922def7fb4827)] 65 | - Merge pull request [#166](https://github.com/EvilSpark/Infinity-react-boilerplate/issues/166) from EvilSpark/renovate/babel-monorepo [[29597ae](https://github.com/EvilSpark/Infinity-react-boilerplate/commit/29597ae11c2e48e428f5087a8730e79301bf1637)] 66 | - Update dependency babel-eslint to v10.1.0 [[75a79de](https://github.com/EvilSpark/Infinity-react-boilerplate/commit/75a79de0a724d71e985ab7a4578ab861a1a64d64)] 67 | - Merge pull request [#165](https://github.com/EvilSpark/Infinity-react-boilerplate/issues/165) from EvilSpark/renovate/lint-staged-10.x [[6061ae7](https://github.com/EvilSpark/Infinity-react-boilerplate/commit/6061ae7d4010814ea1098fa10b4123aca62a0066)] 68 | - Update dependency lint-staged to v10.0.8 [[69104cd](https://github.com/EvilSpark/Infinity-react-boilerplate/commit/69104cd36a9bf6d8a702e5527ab8e176dd26ae9c)] 69 | - Merge pull request [#164](https://github.com/EvilSpark/Infinity-react-boilerplate/issues/164) from EvilSpark/renovate/file-loader-5.x [[642b355](https://github.com/EvilSpark/Infinity-react-boilerplate/commit/642b3551b345c0ae53d1263f6cbb2347c00b1138)] 70 | - Update dependency file-loader to v5.1.0 [[7b21ef9](https://github.com/EvilSpark/Infinity-react-boilerplate/commit/7b21ef9e0e3febfc4ffab1acd46720b764c796f1)] 71 | - Netlify CI disable [[a8ed09c](https://github.com/EvilSpark/Infinity-react-boilerplate/commit/a8ed09cbc348681ecf5dfa66d35ad9bc0d7855d1)] 72 | - Merge pull request [#163](https://github.com/EvilSpark/Infinity-react-boilerplate/issues/163) from EvilSpark/renovate/react-redux-7.x [[889eb73](https://github.com/EvilSpark/Infinity-react-boilerplate/commit/889eb73f2ff33ac5216ffe718705a0fed20c11d5)] 73 | - Update dependency react-redux to v7.2.0 [[51ba3f2](https://github.com/EvilSpark/Infinity-react-boilerplate/commit/51ba3f2072de6d49a592402b8c4014bf7aa7edeb)] 74 | - Merge pull request [#162](https://github.com/EvilSpark/Infinity-react-boilerplate/issues/162) from EvilSpark/renovate/react-monorepo [[207dc2b](https://github.com/EvilSpark/Infinity-react-boilerplate/commit/207dc2b68f0df0e1cd629575f719f926b51d5d67)] 75 | - Update dependency eslint-plugin-react-hooks to v2.4.0 [[8fa8216](https://github.com/EvilSpark/Infinity-react-boilerplate/commit/8fa821672ab96d5b419dec0e0a8153dbe4dde114)] 76 | - Merge pull request [#161](https://github.com/EvilSpark/Infinity-react-boilerplate/issues/161) from EvilSpark/renovate/plop-2.x [[72c96ef](https://github.com/EvilSpark/Infinity-react-boilerplate/commit/72c96efa92007c7caef44878c3e320a9afe1c9eb)] 77 | - Update dependency plop to v2.5.4 [[2af91d9](https://github.com/EvilSpark/Infinity-react-boilerplate/commit/2af91d9ea72df9a912d2f871c3d6ed476a4a41ea)] 78 | - Merge pull request [#160](https://github.com/EvilSpark/Infinity-react-boilerplate/issues/160) from EvilSpark/renovate/node-plop-0.x [[681eed9](https://github.com/EvilSpark/Infinity-react-boilerplate/commit/681eed99f44f90d192a7d43fcb7fea77dc8e6987)] 79 | - Update dependency node-plop to v0.24.0 [[911db85](https://github.com/EvilSpark/Infinity-react-boilerplate/commit/911db85702795ecee35d2f221e572d5573b31560)] 80 | - Merge pull request [#159](https://github.com/EvilSpark/Infinity-react-boilerplate/issues/159) from EvilSpark/renovate/terser-webpack-plugin-2.x [[9b9c1a1](https://github.com/EvilSpark/Infinity-react-boilerplate/commit/9b9c1a1902be9312f859fe944c7597db6a343815)] 81 | - Update dependency terser-webpack-plugin to v2.3.5 [[bdd71c6](https://github.com/EvilSpark/Infinity-react-boilerplate/commit/bdd71c664ca1729a37d8d511d0a6b75240dd8f01)] 82 | - Merge pull request [#158](https://github.com/EvilSpark/Infinity-react-boilerplate/issues/158) from EvilSpark/renovate/stylelint-processor-styled-components-1.x [[17aa453](https://github.com/EvilSpark/Infinity-react-boilerplate/commit/17aa4533fea20572e3d44f4e3a4b66de3677f2dc)] 83 | - Update dependency stylelint-processor-styled-components to v1.10.0 [[1d52e21](https://github.com/EvilSpark/Infinity-react-boilerplate/commit/1d52e21649a35844b8e92598969b48ec12d8f611)] 84 | - Merge pull request [#157](https://github.com/EvilSpark/Infinity-react-boilerplate/issues/157) from EvilSpark/renovate/stylelint-13.x [[d124b9b](https://github.com/EvilSpark/Infinity-react-boilerplate/commit/d124b9b61e3454f759210ba708f460f7a7037d2a)] 85 | - Update dependency stylelint to v13.2.0 [[159eaeb](https://github.com/EvilSpark/Infinity-react-boilerplate/commit/159eaeb2d9d997f0d6a4d58485926260541d6415)] 86 | - Merge pull request [#156](https://github.com/EvilSpark/Infinity-react-boilerplate/issues/156) from EvilSpark/renovate/compare-versions-3.x [[aa6367a](https://github.com/EvilSpark/Infinity-react-boilerplate/commit/aa6367a72a978d20a6be6b44a4707ece1840121f)] 87 | - Update dependency compare-versions to v3.6.0 [[db18690](https://github.com/EvilSpark/Infinity-react-boilerplate/commit/db1869022d4d366445394e41c2d867b3b43ae849)] 88 | - Merge pull request [#155](https://github.com/EvilSpark/Infinity-react-boilerplate/issues/155) from EvilSpark/renovate/reduxjs-toolkit-1.x [[9f121cf](https://github.com/EvilSpark/Infinity-react-boilerplate/commit/9f121cf20ac5a41eb8f88862525903e6058ea06d)] 89 | - Update dependency @reduxjs/toolkit to v1.2.5 [[57b26fc](https://github.com/EvilSpark/Infinity-react-boilerplate/commit/57b26fcf1c6daaa86ce871c00c8b4991625684f0)] 90 | - Merge pull request [#154](https://github.com/EvilSpark/Infinity-react-boilerplate/issues/154) from EvilSpark/renovate/husky-4.x [[80e68af](https://github.com/EvilSpark/Infinity-react-boilerplate/commit/80e68aff60260889d4dec4d3833e34a2df8c398b)] 91 | - Update dependency husky to v4.2.3 [[183d9ae](https://github.com/EvilSpark/Infinity-react-boilerplate/commit/183d9ae8d5ec16bfbe987133a17499afbab3a1c4)] 92 | - Merge pull request [#153](https://github.com/EvilSpark/Infinity-react-boilerplate/issues/153) from EvilSpark/renovate/immer-5.x [[123d235](https://github.com/EvilSpark/Infinity-react-boilerplate/commit/123d2357ae11dd68b4fbf9f10f0ddeb3fc89755d)] 93 | - Update dependency immer to v5.3.6 [[a7621db](https://github.com/EvilSpark/Infinity-react-boilerplate/commit/a7621db3c4031dc542ddb370c71baf6bd851e5de)] 94 | - Merge pull request [#152](https://github.com/EvilSpark/Infinity-react-boilerplate/issues/152) from EvilSpark/renovate/husky-4.x [[079d5cb](https://github.com/EvilSpark/Infinity-react-boilerplate/commit/079d5cb12313cc6f15c44f98a1d3c7fd21461e38)] 95 | - Update dependency husky to v4.2.2 [[4ba4267](https://github.com/EvilSpark/Infinity-react-boilerplate/commit/4ba4267632949b4fe3410d9e595865838f909137)] 96 | - Merge pull request [#151](https://github.com/EvilSpark/Infinity-react-boilerplate/issues/151) from EvilSpark/renovate/webpack-cli-3.x [[c941043](https://github.com/EvilSpark/Infinity-react-boilerplate/commit/c941043799cafe41745db26cff71ad8205284c50)] 97 | - Update dependency webpack-cli to v3.3.11 [[475b817](https://github.com/EvilSpark/Infinity-react-boilerplate/commit/475b8174fe621cbddb00b5607489d82de7fe94c7)] 98 | - Merge pull request [#150](https://github.com/EvilSpark/Infinity-react-boilerplate/issues/150) from EvilSpark/renovate/webpack-4.x [[39b0e89](https://github.com/EvilSpark/Infinity-react-boilerplate/commit/39b0e8901fa54410fe733a321f1c39a26c1818ae)] 99 | - Update dependency webpack to v4.41.6 [[29a59a3](https://github.com/EvilSpark/Infinity-react-boilerplate/commit/29a59a3f730daa6615c2148bd6077101ee4cccb4)] 100 | - Merge pull request [#149](https://github.com/EvilSpark/Infinity-react-boilerplate/issues/149) from EvilSpark/renovate/immer-5.x [[724f712](https://github.com/EvilSpark/Infinity-react-boilerplate/commit/724f7125c7b3f00fd29d6a2e6c0fa9af5b57e31f)] 101 | - Update dependency immer to v5.3.5 [[e63e332](https://github.com/EvilSpark/Infinity-react-boilerplate/commit/e63e3321024b12e383ad5c312f3aff0a5aee8033)] 102 | - Merge pull request [#148](https://github.com/EvilSpark/Infinity-react-boilerplate/issues/148) from EvilSpark/renovate/webpack-pwa-manifest-4.x [[6e940f0](https://github.com/EvilSpark/Infinity-react-boilerplate/commit/6e940f0a321083e42e5442212965a7534d3169c0)] 103 | - Update dependency webpack-pwa-manifest to v4.2.0 [[83b5cca](https://github.com/EvilSpark/Infinity-react-boilerplate/commit/83b5ccaaf1c40c8b077cdb2e5285285a39868e92)] 104 | - Merge pull request [#147](https://github.com/EvilSpark/Infinity-react-boilerplate/issues/147) from EvilSpark/renovate/reduxjs-toolkit-1.x [[17738f5](https://github.com/EvilSpark/Infinity-react-boilerplate/commit/17738f59b8f14bb75527701f8afef52c617925f7)] 105 | - Update dependency @reduxjs/toolkit to v1.2.4 [[b3b4b0b](https://github.com/EvilSpark/Infinity-react-boilerplate/commit/b3b4b0b1ec959c0348a8f6d6845fd517f37dc78b)] 106 | - Merge pull request [#146](https://github.com/EvilSpark/Infinity-react-boilerplate/issues/146) from EvilSpark/renovate/connected-react-router-6.x [[15fedf2](https://github.com/EvilSpark/Infinity-react-boilerplate/commit/15fedf24137557bfc5436b80428bea76693f950f)] 107 | - Update dependency connected-react-router to v6.7.0 [[aa6153a](https://github.com/EvilSpark/Infinity-react-boilerplate/commit/aa6153a0bedcd4b36c32e21ab8d94b416a4fe99a)] 108 | - Merge pull request [#145](https://github.com/EvilSpark/Infinity-react-boilerplate/issues/145) from EvilSpark/renovate/rimraf-3.x [[eccfad3](https://github.com/EvilSpark/Infinity-react-boilerplate/commit/eccfad3ead9a925fa715c9ca3ee91b136872e9ae)] 109 | - Update dependency rimraf to v3.0.2 [[2543d81](https://github.com/EvilSpark/Infinity-react-boilerplate/commit/2543d813558ac8b6a04b8c8124a5403a7d9d0b89)] 110 | - Merge pull request [#144](https://github.com/EvilSpark/Infinity-react-boilerplate/issues/144) from EvilSpark/renovate/stylelint-13.x [[48d0588](https://github.com/EvilSpark/Infinity-react-boilerplate/commit/48d058834a6545f06b84df3881b1ae532433cfe2)] 111 | - Update dependency stylelint to v13.1.0 [[d18ef85](https://github.com/EvilSpark/Infinity-react-boilerplate/commit/d18ef853b9d975723ffc04844b2ec40e0bd4fd18)] 112 | - Merge pull request [#143](https://github.com/EvilSpark/Infinity-react-boilerplate/issues/143) from EvilSpark/renovate/svg-url-loader-4.x [[197e5c9](https://github.com/EvilSpark/Infinity-react-boilerplate/commit/197e5c951ce10a43958ae8e159e4cdb7461ab96b)] 113 | - Update dependency svg-url-loader to v4 [[8209c65](https://github.com/EvilSpark/Infinity-react-boilerplate/commit/8209c65071cdbad92c3e50d979d4b90fb73d89ba)] 114 | - Merge pull request [#142](https://github.com/EvilSpark/Infinity-react-boilerplate/issues/142) from EvilSpark/renovate/immer-5.x [[cd68710](https://github.com/EvilSpark/Infinity-react-boilerplate/commit/cd687103385054793bf088bd86ef612db14193ef)] 115 | - Update dependency immer to v5.3.4 [[cb10748](https://github.com/EvilSpark/Infinity-react-boilerplate/commit/cb107484aa9511ca91dbaded0e6d484f86c58c0d)] 116 | - Merge pull request [#141](https://github.com/EvilSpark/Infinity-react-boilerplate/issues/141) from EvilSpark/renovate/immer-5.x [[71c3782](https://github.com/EvilSpark/Infinity-react-boilerplate/commit/71c3782c41d1b219466a77c751a17f35711123dc)] 117 | - Update dependency immer to v5.3.3 [[49b1911](https://github.com/EvilSpark/Infinity-react-boilerplate/commit/49b1911578d003ad3f61611f61b3b01260ea9517)] 118 | - Merge pull request [#140](https://github.com/EvilSpark/Infinity-react-boilerplate/issues/140) from EvilSpark/renovate/styled-components-5.x [[d745117](https://github.com/EvilSpark/Infinity-react-boilerplate/commit/d745117c9bdf982802281894c31526c329ae5167)] 119 | - Update dependency styled-components to v5.0.1 [[4dde3f5](https://github.com/EvilSpark/Infinity-react-boilerplate/commit/4dde3f5e87b96c5baad112855a1269dfe4030c81)] 120 | - Merge pull request [#139](https://github.com/EvilSpark/Infinity-react-boilerplate/issues/139) from EvilSpark/renovate/eslint-plugin-react-7.x [[6532780](https://github.com/EvilSpark/Infinity-react-boilerplate/commit/653278081c5b24a1b3ebfcee943a74cc93e0e620)] 121 | - Update dependency eslint-plugin-react to v7.18.3 [[ef8db3f](https://github.com/EvilSpark/Infinity-react-boilerplate/commit/ef8db3fd6fbc8c819792d1c9ec0fcacad04e6616)] 122 | - Merge pull request [#138](https://github.com/EvilSpark/Infinity-react-boilerplate/issues/138) from EvilSpark/renovate/eslint-plugin-import-2.x [[897abc1](https://github.com/EvilSpark/Infinity-react-boilerplate/commit/897abc1451c14653548e6522b4641e61410fb827)] 123 | - Update dependency eslint-plugin-import to v2.20.1 [[3c9e22a](https://github.com/EvilSpark/Infinity-react-boilerplate/commit/3c9e22ac960af45dfc513816dcb666eb8f902173)] 124 | - Merge pull request [#137](https://github.com/EvilSpark/Infinity-react-boilerplate/issues/137) from EvilSpark/renovate/eslint-plugin-react-7.x [[bea5128](https://github.com/EvilSpark/Infinity-react-boilerplate/commit/bea5128219685eb7d1e38c9b93513dbbcdada5f2)] 125 | - Update dependency eslint-plugin-react to v7.18.2 [[d7e32d3](https://github.com/EvilSpark/Infinity-react-boilerplate/commit/d7e32d3d6395e3ceb10d30ff814389bfaaaeab49)] 126 | - Merge pull request [#136](https://github.com/EvilSpark/Infinity-react-boilerplate/issues/136) from EvilSpark/renovate/eslint-plugin-react-7.x [[f988d97](https://github.com/EvilSpark/Infinity-react-boilerplate/commit/f988d97d91484899cb42864b8430b11f2531cb52)] 127 | - Update dependency eslint-plugin-react to v7.18.1 [[6d4dedf](https://github.com/EvilSpark/Infinity-react-boilerplate/commit/6d4dedf65093fd2b4d714b1cc88fe79832f28d23)] 128 | - Merge pull request [#135](https://github.com/EvilSpark/Infinity-react-boilerplate/issues/135) from EvilSpark/renovate/lint-staged-10.x [[a3945c3](https://github.com/EvilSpark/Infinity-react-boilerplate/commit/a3945c31b38ae16b95f8fc4d194ee7e75df59410)] 129 | - Update dependency lint-staged to v10.0.7 [[e583c6a](https://github.com/EvilSpark/Infinity-react-boilerplate/commit/e583c6aab5b9ad1f1926cc20fb4196805ef7967c)] 130 | - Merge pull request [#134](https://github.com/EvilSpark/Infinity-react-boilerplate/issues/134) from EvilSpark/renovate/react-app-polyfill-1.x [[0c7013c](https://github.com/EvilSpark/Infinity-react-boilerplate/commit/0c7013c142719fc92930404c43a6b5047694b4c9)] 131 | - Update dependency react-app-polyfill to v1.0.6 [[29703c6](https://github.com/EvilSpark/Infinity-react-boilerplate/commit/29703c6030b8a5e91ec8c211ccf9b1e9cdbd06bc)] 132 | - Merge pull request [#133](https://github.com/EvilSpark/Infinity-react-boilerplate/issues/133) from EvilSpark/renovate/terser-webpack-plugin-2.x [[102b05c](https://github.com/EvilSpark/Infinity-react-boilerplate/commit/102b05c66bd75bd84eddce795b376e1b1b0e0a23)] 133 | - Update dependency terser-webpack-plugin to v2.3.4 [[23db4c3](https://github.com/EvilSpark/Infinity-react-boilerplate/commit/23db4c3d13f8ab2353cfd135efcb7a8d3845e0f4)] 134 | - Merge pull request [#132](https://github.com/EvilSpark/Infinity-react-boilerplate/issues/132) from EvilSpark/renovate/lint-staged-10.x [[d8a0a80](https://github.com/EvilSpark/Infinity-react-boilerplate/commit/d8a0a8036aa18347238d7aba7f12f06614384da4)] 135 | - Update dependency lint-staged to v10.0.6 [[ef90619](https://github.com/EvilSpark/Infinity-react-boilerplate/commit/ef90619706a4c5184afd217b63f6c8852491cdcf)] 136 | - Merge pull request [#131](https://github.com/EvilSpark/Infinity-react-boilerplate/issues/131) from EvilSpark/renovate/babel-monorepo [[334472f](https://github.com/EvilSpark/Infinity-react-boilerplate/commit/334472f4570fbe3502142dc1ff34b832930ad46d)] 137 | - Update babel monorepo to v7.8.4 [[feecf20](https://github.com/EvilSpark/Infinity-react-boilerplate/commit/feecf204b62448bf480160305b53c7401ee0fbc4)] 138 | - Merge pull request [#130](https://github.com/EvilSpark/Infinity-react-boilerplate/issues/130) from EvilSpark/renovate/lint-staged-10.x [[a8f2161](https://github.com/EvilSpark/Infinity-react-boilerplate/commit/a8f2161b46677bb0ca96bfd0216b5ee919545c41)] 139 | - Update dependency lint-staged to v10.0.5 [[985aa22](https://github.com/EvilSpark/Infinity-react-boilerplate/commit/985aa22410284e442a5f384044c25c5afbb2957c)] 140 | - Merge pull request [#129](https://github.com/EvilSpark/Infinity-react-boilerplate/issues/129) from EvilSpark/renovate/lint-staged-10.x [[4540740](https://github.com/EvilSpark/Infinity-react-boilerplate/commit/45407401a07e35d0f677516b418af6bab6f3df58)] 141 | - Update dependency lint-staged to v10.0.4 [[6520483](https://github.com/EvilSpark/Infinity-react-boilerplate/commit/6520483db4ee8f321ad7b9c6eed44abdfd610625)] 142 | - Merge pull request [#128](https://github.com/EvilSpark/Infinity-react-boilerplate/issues/128) from EvilSpark/renovate/terser-webpack-plugin-2.x [[3cf19da](https://github.com/EvilSpark/Infinity-react-boilerplate/commit/3cf19dad32d8f5f73ca116e51e2cd2a03ad32d3e)] 143 | - Update dependency terser-webpack-plugin to v2.3.3 [[94db420](https://github.com/EvilSpark/Infinity-react-boilerplate/commit/94db42048245306452c35535382cc8b72682ceae)] 144 | - Merge pull request [#127](https://github.com/EvilSpark/Infinity-react-boilerplate/issues/127) from EvilSpark/renovate/eslint-config-prettier-6.x [[ddee7f8](https://github.com/EvilSpark/Infinity-react-boilerplate/commit/ddee7f88e38f4603df8fbde2451d38988b8267c3)] 145 | - Update dependency eslint-config-prettier to v6.10.0 [[50ea825](https://github.com/EvilSpark/Infinity-react-boilerplate/commit/50ea82506cb6370660a19fceaf83e51c515fb7c9)] 146 | - Merge pull request [#126](https://github.com/EvilSpark/Infinity-react-boilerplate/issues/126) from EvilSpark/renovate/rimraf-3.x [[519ebe2](https://github.com/EvilSpark/Infinity-react-boilerplate/commit/519ebe2ff7db7666039759177f9c885b7cc17af1)] 147 | - Update dependency rimraf to v3.0.1 [[c281cb8](https://github.com/EvilSpark/Infinity-react-boilerplate/commit/c281cb83e2ce74cdbc739771cb4f32ead9d64c59)] 148 | - Merge pull request [#125](https://github.com/EvilSpark/Infinity-react-boilerplate/issues/125) from EvilSpark/renovate/redux-injectors-1.x [[818cf3d](https://github.com/EvilSpark/Infinity-react-boilerplate/commit/818cf3dde9fb46e71ea31b3f77fcc9241a7ef1b0)] 149 | - Update dependency redux-injectors to v1.3.0 [[18304d6](https://github.com/EvilSpark/Infinity-react-boilerplate/commit/18304d68cdca69b266143df562df2476ed60c79e)] 150 | - Merge pull request [#124](https://github.com/EvilSpark/Infinity-react-boilerplate/issues/124) from EvilSpark/renovate/lint-staged-10.x [[a30c349](https://github.com/EvilSpark/Infinity-react-boilerplate/commit/a30c349dd4029cf3c177c69aba031c01f97d8d15)] 151 | - Update dependency lint-staged to v10.0.3 [[ed28a49](https://github.com/EvilSpark/Infinity-react-boilerplate/commit/ed28a49d5cdd45001ca14655ec4fd4d2fb1667e5)] 152 | - Merge pull request [#123](https://github.com/EvilSpark/Infinity-react-boilerplate/issues/123) from EvilSpark/renovate/babel-plugin-styled-components-1.x [[dc58eae](https://github.com/EvilSpark/Infinity-react-boilerplate/commit/dc58eae4368a151479212f97013f3ade2f3c357b)] 153 | - Update dependency babel-plugin-styled-components to v1.10.7 [[82f212d](https://github.com/EvilSpark/Infinity-react-boilerplate/commit/82f212ddee6e8c9e5cf49c6fd793762efecba8f1)] 154 | - Merge pull request [#122](https://github.com/EvilSpark/Infinity-react-boilerplate/issues/122) from EvilSpark/renovate/cross-env-7.x [[b01f9f8](https://github.com/EvilSpark/Infinity-react-boilerplate/commit/b01f9f85b9da5ef3bc1cdcdb6ada8ca9316376c9)] 155 | - Update dependency cross-env to v7 [[c93e3fb](https://github.com/EvilSpark/Infinity-react-boilerplate/commit/c93e3fbf752bdbca0346f67c4bb9f6527a74ecec)] 156 | - Merge pull request [#121](https://github.com/EvilSpark/Infinity-react-boilerplate/issues/121) from EvilSpark/renovate/husky-4.x [[25047b7](https://github.com/EvilSpark/Infinity-react-boilerplate/commit/25047b70bb5097791a1dd67f7f5ac66e78ca5297)] 157 | - Update dependency husky to v4.2.1 [[3427400](https://github.com/EvilSpark/Infinity-react-boilerplate/commit/34274001061c748994b0ec61c0f3fa7ca86587d3)] 158 | - Merge pull request [#120](https://github.com/EvilSpark/Infinity-react-boilerplate/issues/120) from EvilSpark/renovate/hoist-non-react-statics-3.x [[213dc08](https://github.com/EvilSpark/Infinity-react-boilerplate/commit/213dc080940c5611d227ca0deb34d0d3f2638c3a)] 159 | - Update dependency hoist-non-react-statics to v3.3.2 [[cb2bbea](https://github.com/EvilSpark/Infinity-react-boilerplate/commit/cb2bbeabb199c63d4f2eab8468dcaba773848365)] 160 | - Merge pull request [#119](https://github.com/EvilSpark/Infinity-react-boilerplate/issues/119) from EvilSpark/renovate/lint-staged-10.x [[3837d94](https://github.com/EvilSpark/Infinity-react-boilerplate/commit/3837d9459cc04959dc881a4e20d5a23fcf361208)] 161 | - Update dependency lint-staged to v10.0.2 [[863dad4](https://github.com/EvilSpark/Infinity-react-boilerplate/commit/863dad497a7707f1f18173e49271af1a6f778527)] 162 | - Merge pull request [#118](https://github.com/EvilSpark/Infinity-react-boilerplate/issues/118) from EvilSpark/renovate/react-hot-loader-4.x [[eaf283d](https://github.com/EvilSpark/Infinity-react-boilerplate/commit/eaf283dbc8346aeccfeea97f928754924f48c23e)] 163 | - Update dependency react-hot-loader to v4.12.19 [[e47e8ed](https://github.com/EvilSpark/Infinity-react-boilerplate/commit/e47e8ed30a0c3df1f48b352d90429305789c66ee)] 164 | - Merge pull request [#117](https://github.com/EvilSpark/Infinity-react-boilerplate/issues/117) from EvilSpark/renovate/husky-4.x [[25fb49f](https://github.com/EvilSpark/Infinity-react-boilerplate/commit/25fb49ff11c46053e6fd3d1c9597895eeefbab5d)] 165 | - Update dependency husky to v4.2.0 [[41fff67](https://github.com/EvilSpark/Infinity-react-boilerplate/commit/41fff67767fa6ba91d290e24a1949c9fe4bf034d)] 166 | - Merge pull request [#116](https://github.com/EvilSpark/Infinity-react-boilerplate/issues/116) from EvilSpark/renovate/husky-4.x [[cb0f72a](https://github.com/EvilSpark/Infinity-react-boilerplate/commit/cb0f72a10ae76d1401e704975d6ea2bbdfd48446)] 167 | - Update dependency husky to v4.1.0 [[5887ea8](https://github.com/EvilSpark/Infinity-react-boilerplate/commit/5887ea80e21852b1d39bdf41917486be66ce1d95)] 168 | - Merge pull request [#115](https://github.com/EvilSpark/Infinity-react-boilerplate/issues/115) from EvilSpark/renovate/lint-staged-10.x [[4c11c3a](https://github.com/EvilSpark/Infinity-react-boilerplate/commit/4c11c3a3d4b7abb9c3e128aaf03298906a05617c)] 169 | - Update dependency lint-staged to v10.0.1 [[73005c1](https://github.com/EvilSpark/Infinity-react-boilerplate/commit/73005c1b2199180344f3b42b9a1f249f97646045)] 170 | - Merge pull request [#114](https://github.com/EvilSpark/Infinity-react-boilerplate/issues/114) from EvilSpark/renovate/reduxjs-toolkit-1.x [[135b297](https://github.com/EvilSpark/Infinity-react-boilerplate/commit/135b29731a15543358cec8fd937849669ecdca48)] 171 | - Update dependency @reduxjs/toolkit to v1.2.3 [[3298ca9](https://github.com/EvilSpark/Infinity-react-boilerplate/commit/3298ca98f1be0c070cf2a3aa4fb80712c7489138)] 172 | - Merge pull request [#113](https://github.com/EvilSpark/Infinity-react-boilerplate/issues/113) from EvilSpark/renovate/lint-staged-10.x [[01040ed](https://github.com/EvilSpark/Infinity-react-boilerplate/commit/01040eda1bef2c7f5b5d4f7bbfda39482ab06020)] 173 | - Update dependency lint-staged to v10 [[f06d3c1](https://github.com/EvilSpark/Infinity-react-boilerplate/commit/f06d3c15e4bb5a060c57a257773d45ae1dc541e7)] 174 | - Merge pull request [#112](https://github.com/EvilSpark/Infinity-react-boilerplate/issues/112) from EvilSpark/renovate/style-loader-1.x [[3599e03](https://github.com/EvilSpark/Infinity-react-boilerplate/commit/3599e035f262e40af067554eb1d4025c2b1fa933)] 175 | - Update dependency style-loader to v1.1.3 [[a8e8ab4](https://github.com/EvilSpark/Infinity-react-boilerplate/commit/a8e8ab49d28df7a557df528f3160b7ca4d1d54e3)] 176 | - Merge pull request [#111](https://github.com/EvilSpark/Infinity-react-boilerplate/issues/111) from EvilSpark/renovate/node-sass-4.x [[909167b](https://github.com/EvilSpark/Infinity-react-boilerplate/commit/909167bd0d11bdc107104b641fa492bbdf6bb677)] 177 | - Update dependency node-sass to v4.13.1 [[375638a](https://github.com/EvilSpark/Infinity-react-boilerplate/commit/375638a4791d5c7746b110a1c44b52f3382c8faa)] 178 | - Merge pull request [#110](https://github.com/EvilSpark/Infinity-react-boilerplate/issues/110) from EvilSpark/renovate/eslint-plugin-react-7.x [[60d8409](https://github.com/EvilSpark/Infinity-react-boilerplate/commit/60d84098bcf6009d04be1b6c7784b734b5907e3f)] 179 | - Update dependency eslint-plugin-react to v7.18.0 [[7f02bc8](https://github.com/EvilSpark/Infinity-react-boilerplate/commit/7f02bc82a1aee3fc37d35e6e286afbbd825afaab)] 180 | - Merge pull request [#109](https://github.com/EvilSpark/Infinity-react-boilerplate/issues/109) from EvilSpark/renovate/reduxjs-toolkit-1.x [[381730f](https://github.com/EvilSpark/Infinity-react-boilerplate/commit/381730f988a722a0deb32037dbed8293f93c3f03)] 181 | - Update dependency @reduxjs/toolkit to v1.2.2 [[9190980](https://github.com/EvilSpark/Infinity-react-boilerplate/commit/9190980577b9ceaf2fcf134cf582927bc46c0912)] 182 | - Merge pull request [#108](https://github.com/EvilSpark/Infinity-react-boilerplate/issues/108) from EvilSpark/renovate/husky-4.x [[220f694](https://github.com/EvilSpark/Infinity-react-boilerplate/commit/220f6948e55d2412fc9c92a92505c51e699e3c76)] 183 | - Update dependency husky to v4.0.10 [[e6b5d8b](https://github.com/EvilSpark/Infinity-react-boilerplate/commit/e6b5d8bcc11ed39ee210e8e6ff863ed654d756fe)] 184 | - Merge pull request [#106](https://github.com/EvilSpark/Infinity-react-boilerplate/issues/106) from EvilSpark/renovate/immer-5.x [[7fac8a7](https://github.com/EvilSpark/Infinity-react-boilerplate/commit/7fac8a7cfd2cefe429dd5ece77a61b754f48b02b)] 185 | - Update dependency immer to v5.3.2 [[76d2033](https://github.com/EvilSpark/Infinity-react-boilerplate/commit/76d20334f3ca9464e41be86682df07383862e33a)] 186 | - Merge pull request [#105](https://github.com/EvilSpark/Infinity-react-boilerplate/issues/105) from EvilSpark/renovate/immer-5.x [[058e4bb](https://github.com/EvilSpark/Infinity-react-boilerplate/commit/058e4bbab05f14467852c278a7d170f26357f27c)] 187 | - Update dependency immer to v5.3.1 [[5a075cc](https://github.com/EvilSpark/Infinity-react-boilerplate/commit/5a075cc6bfaac8b2295c1cead418008f1bc32694)] 188 | - Merge pull request [#104](https://github.com/EvilSpark/Infinity-react-boilerplate/issues/104) from EvilSpark/renovate/immer-5.x [[86ff8e7](https://github.com/EvilSpark/Infinity-react-boilerplate/commit/86ff8e74039b70b7fbcdb9cde052e19b4764cda4)] 189 | - Update dependency immer to v5.3.0 [[43e8710](https://github.com/EvilSpark/Infinity-react-boilerplate/commit/43e87100f3443b90df6de0b26a6ff9ed2d5ff6bc)] 190 | - Merge pull request [#103](https://github.com/EvilSpark/Infinity-react-boilerplate/issues/103) from EvilSpark/renovate/husky-4.x [[d83f225](https://github.com/EvilSpark/Infinity-react-boilerplate/commit/d83f225588df24ec2e75ff24d7cd0fc38c5fe0e4)] 191 | - Update dependency husky to v4.0.9 [[8ddece2](https://github.com/EvilSpark/Infinity-react-boilerplate/commit/8ddece22396af2bfb0d33509f09e0ffef2a1cddf)] 192 | - Merge pull request [#102](https://github.com/EvilSpark/Infinity-react-boilerplate/issues/102) from EvilSpark/renovate/husky-4.x [[5c85ebf](https://github.com/EvilSpark/Infinity-react-boilerplate/commit/5c85ebfd13e88cc61dd9354c369324a017ac822b)] 193 | - Update dependency husky to v4.0.8 [[2c08c46](https://github.com/EvilSpark/Infinity-react-boilerplate/commit/2c08c463d1c4a59116ae9a458ceaae35d3898a14)] 194 | - Merge pull request [#101](https://github.com/EvilSpark/Infinity-react-boilerplate/issues/101) from EvilSpark/renovate/babel-monorepo [[d577030](https://github.com/EvilSpark/Infinity-react-boilerplate/commit/d5770309e364b9512ea2bc235c72ec701318d38d)] 195 | - Update babel monorepo to v7.8.3 [[42b33a3](https://github.com/EvilSpark/Infinity-react-boilerplate/commit/42b33a382d0d8eb691df44366b1d09e6095af689)] 196 | - Merge pull request [#100](https://github.com/EvilSpark/Infinity-react-boilerplate/issues/100) from EvilSpark/renovate/babel-monorepo [[6773f2b](https://github.com/EvilSpark/Infinity-react-boilerplate/commit/6773f2bf43d166d922a36ad8d4dc6650f9d7ad9e)] 197 | - Update dependency @babel/plugin-syntax-dynamic-import to v7.8.3 [[6a3b680](https://github.com/EvilSpark/Infinity-react-boilerplate/commit/6a3b6807b1ad4b3d53591119378f239bceb122b3)] 198 | - Merge pull request [#99](https://github.com/EvilSpark/Infinity-react-boilerplate/issues/99) from EvilSpark/renovate/styled-components-5.x [[fb6fae8](https://github.com/EvilSpark/Infinity-react-boilerplate/commit/fb6fae8e497c34b8e0f266b781b955ead6ebae5e)] 199 | - Update dependency styled-components to v5 [[2b14b08](https://github.com/EvilSpark/Infinity-react-boilerplate/commit/2b14b08a0339281e1ab77bd300822b4608fd83d2)] 200 | - Merge pull request [#98](https://github.com/EvilSpark/Infinity-react-boilerplate/issues/98) from EvilSpark/renovate/sass-loader-8.x [[5fb3e32](https://github.com/EvilSpark/Infinity-react-boilerplate/commit/5fb3e32567e2b8509f9e4cf2173a97d175756053)] 201 | - Update dependency sass-loader to v8.0.2 [[8aca615](https://github.com/EvilSpark/Infinity-react-boilerplate/commit/8aca61564083af9d1798c09b0ebc44764563da84)] 202 | - Merge pull request [#97](https://github.com/EvilSpark/Infinity-react-boilerplate/issues/97) from EvilSpark/renovate/babel-monorepo [[f389ea6](https://github.com/EvilSpark/Infinity-react-boilerplate/commit/f389ea693c27d22b87f8146e79b36883c6dda17c)] 203 | - Update dependency @babel/preset-env to v7.8.2 [[1d29982](https://github.com/EvilSpark/Infinity-react-boilerplate/commit/1d29982d7a0912d03ba88b9bd8365f00bb5fd404)] 204 | - Merge pull request [#96](https://github.com/EvilSpark/Infinity-react-boilerplate/issues/96) from EvilSpark/renovate/stylelint-13.x [[5476c65](https://github.com/EvilSpark/Infinity-react-boilerplate/commit/5476c652b4942ab64c7bf94358b3ff46e2020436)] 205 | - Update dependency stylelint to v13 [[e792d68](https://github.com/EvilSpark/Infinity-react-boilerplate/commit/e792d687ee2ac4d17d4fa08db29e8fd46dae67fe)] 206 | - Merge pull request [#95](https://github.com/EvilSpark/Infinity-react-boilerplate/issues/95) from EvilSpark/renovate/husky-4.x [[1a4158b](https://github.com/EvilSpark/Infinity-react-boilerplate/commit/1a4158b7028579cb1102894253c532ec875d5a32)] 207 | - Update dependency husky to v4.0.7 [[0f1ef13](https://github.com/EvilSpark/Infinity-react-boilerplate/commit/0f1ef137935769bf0a9bb8ba26cff79072a3112c)] 208 | - Merge pull request [#94](https://github.com/EvilSpark/Infinity-react-boilerplate/issues/94) from EvilSpark/renovate/babel-monorepo [[09b620a](https://github.com/EvilSpark/Infinity-react-boilerplate/commit/09b620a678fa1914603eb77ba3cf1eb30af7eb81)] 209 | - Update babel monorepo to v7.8.0 [[287bb59](https://github.com/EvilSpark/Infinity-react-boilerplate/commit/287bb59d98fade088b8925f9be6153c8ccd4fd70)] 210 | - Merge pull request [#93](https://github.com/EvilSpark/Infinity-react-boilerplate/issues/93) from EvilSpark/renovate/eslint-plugin-import-2.x [[37e575c](https://github.com/EvilSpark/Infinity-react-boilerplate/commit/37e575c0295d991e0392bf9ea67f22fa2dab9144)] 211 | - Update dependency eslint-plugin-import to v2.20.0 [[e5b9d83](https://github.com/EvilSpark/Infinity-react-boilerplate/commit/e5b9d83a4c8b2b79738de45fc6dc3cbcae249175)] 212 | - Merge pull request [#92](https://github.com/EvilSpark/Infinity-react-boilerplate/issues/92) from EvilSpark/renovate/eslint-import-resolver-webpack-0.x [[fa14ad7](https://github.com/EvilSpark/Infinity-react-boilerplate/commit/fa14ad7091b503412f7b09965ff0cd90f3f965c7)] 213 | - Update dependency eslint-import-resolver-webpack to v0.12.1 [[7dae1c7](https://github.com/EvilSpark/Infinity-react-boilerplate/commit/7dae1c781a2e386b1be0caa3041ab2e43909604f)] 214 | - Merge pull request [#91](https://github.com/EvilSpark/Infinity-react-boilerplate/issues/91) from EvilSpark/renovate/css-loader-3.x [[65b0db2](https://github.com/EvilSpark/Infinity-react-boilerplate/commit/65b0db2996b8de71a61c22f80bf17b7f27ee349d)] 215 | - Update dependency css-loader to v3.4.2 [[c2bea73](https://github.com/EvilSpark/Infinity-react-boilerplate/commit/c2bea734d21da03d3d0da52fa94b674d75337441)] 216 | - Merge pull request [#90](https://github.com/EvilSpark/Infinity-react-boilerplate/issues/90) from EvilSpark/renovate/sass-loader-8.x [[180e4ac](https://github.com/EvilSpark/Infinity-react-boilerplate/commit/180e4ace535e50dc5a9bdca4142c6716d60bd5c4)] 217 | - Update dependency sass-loader to v8.0.1 [[045babf](https://github.com/EvilSpark/Infinity-react-boilerplate/commit/045babfe257b6b16d88c60a4f5f2bdeb4240bbd5)] 218 | - Merge pull request [#89](https://github.com/EvilSpark/Infinity-react-boilerplate/issues/89) from EvilSpark/renovate/immer-5.x [[1a9948c](https://github.com/EvilSpark/Infinity-react-boilerplate/commit/1a9948c194bf6c6e462ded27cbcf49d9673921c2)] 219 | - Update dependency immer to v5.2.1 [[41bbc75](https://github.com/EvilSpark/Infinity-react-boilerplate/commit/41bbc758bd9723ffa4df03b9251cb6ac41c52753)] 220 | - Merge pull request [#88](https://github.com/EvilSpark/Infinity-react-boilerplate/issues/88) from EvilSpark/renovate/husky-4.x [[7793da0](https://github.com/EvilSpark/Infinity-react-boilerplate/commit/7793da096ba914046da5c3d1fc57dc4377573293)] 221 | - Update dependency husky to v4.0.6 [[ede6d7b](https://github.com/EvilSpark/Infinity-react-boilerplate/commit/ede6d7bac118655667bcb94af73723fa35c46b28)] 222 | - Merge pull request [#87](https://github.com/EvilSpark/Infinity-react-boilerplate/issues/87) from EvilSpark/renovate/husky-4.x [[2189bcd](https://github.com/EvilSpark/Infinity-react-boilerplate/commit/2189bcd92504dce96256de89da5b333c421b83c4)] 223 | - Update dependency husky to v4.0.5 [[1005a60](https://github.com/EvilSpark/Infinity-react-boilerplate/commit/1005a60ff7806e4d9475c8475d944314dfdaefc8)] 224 | - Merge pull request [#86](https://github.com/EvilSpark/Infinity-react-boilerplate/issues/86) from EvilSpark/renovate/husky-4.x [[8e5bf4e](https://github.com/EvilSpark/Infinity-react-boilerplate/commit/8e5bf4edcf414b2a18e9fd060ac211721fef55d2)] 225 | - Update dependency husky to v4.0.4 [[f5cb9f0](https://github.com/EvilSpark/Infinity-react-boilerplate/commit/f5cb9f0923a00a63aafb712eece710b221896827)] 226 | - Merge pull request [#85](https://github.com/EvilSpark/Infinity-react-boilerplate/issues/85) from EvilSpark/renovate/immer-5.x [[afe0512](https://github.com/EvilSpark/Infinity-react-boilerplate/commit/afe051286beeb8eb43bdc34082fa5534e069d932)] 227 | - Update dependency immer to v5.2.0 [[41adaf0](https://github.com/EvilSpark/Infinity-react-boilerplate/commit/41adaf06b7f324e903223094e666e632f1b609e5)] 228 | - Merge pull request [#84](https://github.com/EvilSpark/Infinity-react-boilerplate/issues/84) from EvilSpark/renovate/terser-webpack-plugin-2.x [[4b1d323](https://github.com/EvilSpark/Infinity-react-boilerplate/commit/4b1d323e48ef9e14da692708ce119d85bb2c3aec)] 229 | - Update dependency terser-webpack-plugin to v2.3.2 [[6c94aa5](https://github.com/EvilSpark/Infinity-react-boilerplate/commit/6c94aa55472e62b3ac72da34d01365eaf094620b)] 230 | - Merge pull request [#83](https://github.com/EvilSpark/Infinity-react-boilerplate/issues/83) from EvilSpark/renovate/compression-webpack-plugin-3.x [[7693d5f](https://github.com/EvilSpark/Infinity-react-boilerplate/commit/7693d5feb3b4cd058a6c0b5316942a433b104372)] 231 | - Update dependency compression-webpack-plugin to v3.1.0 [[0cabf4f](https://github.com/EvilSpark/Infinity-react-boilerplate/commit/0cabf4f5ef0f7dc8056705d43a23ba7dbb6645de)] 232 | - Merge pull request [#82](https://github.com/EvilSpark/Infinity-react-boilerplate/issues/82) from EvilSpark/renovate/husky-4.x [[0778a89](https://github.com/EvilSpark/Infinity-react-boilerplate/commit/0778a899837494737dc4c92063cff2547930ce86)] 233 | - Update dependency husky to v4.0.3 [[bee62e7](https://github.com/EvilSpark/Infinity-react-boilerplate/commit/bee62e7787a4d6be7172e1b82897068ff101cff4)] 234 | - Merge pull request [#81](https://github.com/EvilSpark/Infinity-react-boilerplate/issues/81) from EvilSpark/renovate/husky-4.x [[93c6c53](https://github.com/EvilSpark/Infinity-react-boilerplate/commit/93c6c53dfc0c5e6c51467c58440608677451ba3a)] 235 | - Update dependency husky to v4.0.2 [[99ad408](https://github.com/EvilSpark/Infinity-react-boilerplate/commit/99ad4080fab3353fb07f7698b17a249f2337569e)] 236 | - Merge pull request [#80](https://github.com/EvilSpark/Infinity-react-boilerplate/issues/80) from EvilSpark/renovate/husky-4.x [[4004857](https://github.com/EvilSpark/Infinity-react-boilerplate/commit/40048575db816dd68c2b45218ae099ff5c324c29)] 237 | - Update dependency husky to v4.0.1 [[27c97bd](https://github.com/EvilSpark/Infinity-react-boilerplate/commit/27c97bdd53cefe8f58b838862b92541ce25b376b)] 238 | - Merge pull request [#79](https://github.com/EvilSpark/Infinity-react-boilerplate/issues/79) from EvilSpark/renovate/husky-4.x [[108a908](https://github.com/EvilSpark/Infinity-react-boilerplate/commit/108a908af9f5e70d4df4686168a66837df4a0cb1)] 239 | - Update dependency husky to v4 [[23ee604](https://github.com/EvilSpark/Infinity-react-boilerplate/commit/23ee604f894db7532d35e4ed686a74654f7fc797)] 240 | - Update README.md [[c0e1cb2](https://github.com/EvilSpark/Infinity-react-boilerplate/commit/c0e1cb2384654de9221f8dde428b49f6d4f26ea8)] 241 | - Merge pull request [#78](https://github.com/EvilSpark/Infinity-react-boilerplate/issues/78) from EvilSpark/renovate/css-loader-3.x [[99b9725](https://github.com/EvilSpark/Infinity-react-boilerplate/commit/99b9725cb5a6402f41b5053d44694d8cdb16e6cf)] 242 | - Update dependency css-loader to v3.4.1 [[64e864f](https://github.com/EvilSpark/Infinity-react-boilerplate/commit/64e864ff57dfe14acca534e9cd064ebd718b1a13)] 243 | - Changelog [[60e1027](https://github.com/EvilSpark/Infinity-react-boilerplate/commit/60e10273fc233317520f0b41b1bf80354732b246)] 244 | - Update dependency webpack to v4.41.5 ([#77](https://github.com/EvilSpark/Infinity-react-boilerplate/issues/77)) [[fb3a3a5](https://github.com/EvilSpark/Infinity-react-boilerplate/commit/fb3a3a58d4f350038a241da5f34124443a0e5bcb)] 245 | - Mergify: configuration update ([#76](https://github.com/EvilSpark/Infinity-react-boilerplate/issues/76)) [[4f7433d](https://github.com/EvilSpark/Infinity-react-boilerplate/commit/4f7433ddd69185cb7f1582c6aa1cd1d288a1fada)] 246 | - Update dependency stylelint to v12.0.1 ([#72](https://github.com/EvilSpark/Infinity-react-boilerplate/issues/72)) [[bbd0048](https://github.com/EvilSpark/Infinity-react-boilerplate/commit/bbd0048a456850ee2955011fd7d90c54a170f119)] 247 | - Update dependency eslint-config-prettier to v6.9.0 ([#75](https://github.com/EvilSpark/Infinity-react-boilerplate/issues/75)) [[f5873a5](https://github.com/EvilSpark/Infinity-react-boilerplate/commit/f5873a59226f03a3809dfdd3f18e4ce8f3925e20)] 248 | - Update dependency @reduxjs/toolkit to v1.2.1 ([#74](https://github.com/EvilSpark/Infinity-react-boilerplate/issues/74)) [[b7809d8](https://github.com/EvilSpark/Infinity-react-boilerplate/commit/b7809d844ec9a04a30df5d62374a15bf8bf67b61)] 249 | - 🚀 ([#70](https://github.com/EvilSpark/Infinity-react-boilerplate/issues/70)) [[16d18d7](https://github.com/EvilSpark/Infinity-react-boilerplate/commit/16d18d774d226f38fcb0ad7de22adf4ac1d2e452)] 250 | - Update dependency eslint-config-prettier to v6.8.0 ([#67](https://github.com/EvilSpark/Infinity-react-boilerplate/issues/67)) [[3726fbe](https://github.com/EvilSpark/Infinity-react-boilerplate/commit/3726fbe2650ec3f6ec68bc507c0d648eb263204c)] 251 | - 🌴 ([#65](https://github.com/EvilSpark/Infinity-react-boilerplate/issues/65)) [[e35e830](https://github.com/EvilSpark/Infinity-react-boilerplate/commit/e35e830ee1a5bb796fb577cea34eb9f8d6174c2c)] 252 | - Update dependency eslint to v6.8.0 ([#61](https://github.com/EvilSpark/Infinity-react-boilerplate/issues/61)) [[f49dafb](https://github.com/EvilSpark/Infinity-react-boilerplate/commit/f49dafba267d3bbcadf6ed2caa8dcd985a22489d)] 253 | - Update dependency immer to v5.1.0 ([#60](https://github.com/EvilSpark/Infinity-react-boilerplate/issues/60)) [[512d49f](https://github.com/EvilSpark/Infinity-react-boilerplate/commit/512d49ff2d378d5482ca01fd2dff1727f9ed3873)] 254 | - Merge pull request [#59](https://github.com/EvilSpark/Infinity-react-boilerplate/issues/59) from EvilSpark/renovate/style-loader-1.x [[12e36fd](https://github.com/EvilSpark/Infinity-react-boilerplate/commit/12e36fdf3b45049f0997c9a8968dd74b711a6069)] 255 | - Merge pull request [#58](https://github.com/EvilSpark/Infinity-react-boilerplate/issues/58) from EvilSpark/dependabot/npm_and_yarn/babel/register-7.7.7 [[14f81f7](https://github.com/EvilSpark/Infinity-react-boilerplate/commit/14f81f70864fdae90c8d87581e4f574b234ad180)] 256 | - Merge pull request [#56](https://github.com/EvilSpark/Infinity-react-boilerplate/issues/56) from EvilSpark/dependabot/npm_and_yarn/webpack-4.41.4 [[18fc3a8](https://github.com/EvilSpark/Infinity-react-boilerplate/commit/18fc3a82859655a07de84bfc62dd8a8e8bfd4bdb)] 257 | - Merge pull request [#55](https://github.com/EvilSpark/Infinity-react-boilerplate/issues/55) from EvilSpark/dependabot/npm_and_yarn/babel/cli-7.7.7 [[95388e8](https://github.com/EvilSpark/Infinity-react-boilerplate/commit/95388e8722f603dc2770d53f8e105bd53c199e7d)] 258 | - Merge pull request [#54](https://github.com/EvilSpark/Infinity-react-boilerplate/issues/54) from EvilSpark/dependabot/npm_and_yarn/immer-5.0.2 [[6836e28](https://github.com/EvilSpark/Infinity-react-boilerplate/commit/6836e2857c7c3b69a1cc40a43e3ecf18b17e19a3)] 259 | - Update dependency style-loader to v1.1.1 [[80f93e2](https://github.com/EvilSpark/Infinity-react-boilerplate/commit/80f93e2aaf93bb3e3e8c7d49646d279e82b457eb)] 260 | - Changelog [[8f8f42e](https://github.com/EvilSpark/Infinity-react-boilerplate/commit/8f8f42e9ac62cfd29086ee7e0c6b2ebc382ebe48)] 261 | - Merge pull request [#47](https://github.com/EvilSpark/Infinity-react-boilerplate/issues/47) from EvilSpark/renovate/webpack-4.x [[61a8767](https://github.com/EvilSpark/Infinity-react-boilerplate/commit/61a87678ec95c103c43fe232292064515cbf1b62)] 262 | - Merge pull request [#46](https://github.com/EvilSpark/Infinity-react-boilerplate/issues/46) from EvilSpark/renovate/eslint-plugin-prettier-3.x [[64fad95](https://github.com/EvilSpark/Infinity-react-boilerplate/commit/64fad952446008e79ff80ca987a175abf6f50350)] 263 | - Update dependency webpack to v4.41.3 [[fb39680](https://github.com/EvilSpark/Infinity-react-boilerplate/commit/fb39680173053cf4a163a0acdd7f3bc6b8665644)] 264 | - Update dependency eslint-plugin-prettier to v3.1.2 [[c15bd34](https://github.com/EvilSpark/Infinity-react-boilerplate/commit/c15bd3453882c007a1d29f402f9b1ae7b912638b)] 265 | - Changelog [[decf9cb](https://github.com/EvilSpark/Infinity-react-boilerplate/commit/decf9cbeb91b5452cddf25a5de8e70f1cf16797d)] 266 | - Merge pull request [#44](https://github.com/EvilSpark/Infinity-react-boilerplate/issues/44) from EvilSpark/renovate/testing-library-react-9.x [[52ae4d2](https://github.com/EvilSpark/Infinity-react-boilerplate/commit/52ae4d240e0a899f51efa33df0c2620eaddf9a80)] 267 | - Merge pull request [#42](https://github.com/EvilSpark/Infinity-react-boilerplate/issues/42) from EvilSpark/renovate/css-loader-3.x [[91d60ca](https://github.com/EvilSpark/Infinity-react-boilerplate/commit/91d60cadb745c4e68095a45ea37a960c1fbd2816)] 268 | - Update dependency @testing-library/react to v9.4.0 [[c96bd08](https://github.com/EvilSpark/Infinity-react-boilerplate/commit/c96bd08f380ba20b177a590b860cbc2675975f2b)] 269 | - Merge pull request [#41](https://github.com/EvilSpark/Infinity-react-boilerplate/issues/41) from EvilSpark/renovate/ngrok-3.x [[a849510](https://github.com/EvilSpark/Infinity-react-boilerplate/commit/a8495101eb55b80d862a7163277391ee923e53db)] 270 | - Update dependency css-loader to v3.3.2 [[2def217](https://github.com/EvilSpark/Infinity-react-boilerplate/commit/2def21767f5f880f277ab13f4b2ed24d9e782595)] 271 | - Update dependency ngrok to v3.2.7 [[1e97834](https://github.com/EvilSpark/Infinity-react-boilerplate/commit/1e97834938f2b810d9ad9641de625a9709232d34)] 272 | - Merge pull request [#29](https://github.com/EvilSpark/Infinity-react-boilerplate/issues/29) from EvilSpark/imgbot [[741ba88](https://github.com/EvilSpark/Infinity-react-boilerplate/commit/741ba88b45e596b2d23df5173a54d9536b8175e9)] 273 | - 📝 Testing a new badge [[a5301fe](https://github.com/EvilSpark/Infinity-react-boilerplate/commit/a5301fe7d5abfe9395debf53db10390a52b4c3fa)] 274 | - Merge pull request [#28](https://github.com/EvilSpark/Infinity-react-boilerplate/issues/28) from EvilSpark/renovate/eslint-import-resolver-webpack-0.x [[605843e](https://github.com/EvilSpark/Infinity-react-boilerplate/commit/605843e84123efaec34a2a25ac5c8b0df6450dd1)] 275 | - Merge pull request [#27](https://github.com/EvilSpark/Infinity-react-boilerplate/issues/27) from EvilSpark/renovate/babel-monorepo [[d3450a0](https://github.com/EvilSpark/Infinity-react-boilerplate/commit/d3450a00a5982cef53a6eafbd9fbe0aa984fc4e4)] 276 | - [ImgBot] Optimize images [[9ea8292](https://github.com/EvilSpark/Infinity-react-boilerplate/commit/9ea82927deca3e793a5ed4719ed438f6ba36784b)] 277 | - Update dependency eslint-import-resolver-webpack to v0.12.0 [[f4833e7](https://github.com/EvilSpark/Infinity-react-boilerplate/commit/f4833e73085897416a5e9c448f604da5ade57e99)] 278 | - Update dependency @babel/preset-env to v7.7.6 [[c38eb46](https://github.com/EvilSpark/Infinity-react-boilerplate/commit/c38eb466b52c42d276c41221550f7be2984b6d65)] 279 | - Merge pull request [#26](https://github.com/EvilSpark/Infinity-react-boilerplate/issues/26) from EvilSpark/renovate/eslint-plugin-redux-saga-1.x [[9abb273](https://github.com/EvilSpark/Infinity-react-boilerplate/commit/9abb2730512e62636c89caf7a7c30e758293d029)] 280 | - Update dependency eslint-plugin-redux-saga to v1.1.3 [[44b5d96](https://github.com/EvilSpark/Infinity-react-boilerplate/commit/44b5d96d39e5dafdf0f7ad73ce37267c08238587)] 281 | - Merge pull request [#25](https://github.com/EvilSpark/Infinity-react-boilerplate/issues/25) from EvilSpark/renovate/terser-webpack-plugin-2.x [[efe5064](https://github.com/EvilSpark/Infinity-react-boilerplate/commit/efe5064d877c6f9d43b48651d80940511582d088)] 282 | - Merge pull request [#24](https://github.com/EvilSpark/Infinity-react-boilerplate/issues/24) from EvilSpark/renovate/babel-monorepo [[c8660d4](https://github.com/EvilSpark/Infinity-react-boilerplate/commit/c8660d4da2d0413d509b2c80a7a9cc5a74f1a6d5)] 283 | - Changelog [[6427516](https://github.com/EvilSpark/Infinity-react-boilerplate/commit/642751661a91529f7425e0384c4901a2e27bcb11)] 284 | - Update dependency terser-webpack-plugin to v2.2.2 [[a3226aa](https://github.com/EvilSpark/Infinity-react-boilerplate/commit/a3226aabd38f85638ea53fd5feaecf3758bf1cd2)] 285 | - Update babel monorepo to v7.7.5 [[eac8a32](https://github.com/EvilSpark/Infinity-react-boilerplate/commit/eac8a323020b843de144b04f922dc01ed0ff6936)] 286 | - Merge pull request [#23](https://github.com/EvilSpark/Infinity-react-boilerplate/issues/23) from EvilSpark/renovate/react-app-polyfill-1.x [[ed0f9c9](https://github.com/EvilSpark/Infinity-react-boilerplate/commit/ed0f9c96e2836a83114922994938aec108998341)] 287 | - Update dependency react-app-polyfill to v1.0.5 [[4932bc5](https://github.com/EvilSpark/Infinity-react-boilerplate/commit/4932bc5def09deb2846254bce88d359b352452f9)] 288 | - Merge pull request [#22](https://github.com/EvilSpark/Infinity-react-boilerplate/issues/22) from EvilSpark/renovate/css-loader-3.x [[2c8262b](https://github.com/EvilSpark/Infinity-react-boilerplate/commit/2c8262bece822b32fc2840af65eee1788a0c3b56)] 289 | - Merge pull request [#21](https://github.com/EvilSpark/Infinity-react-boilerplate/issues/21) from EvilSpark/renovate/reduxjs-toolkit-1.x [[600c09b](https://github.com/EvilSpark/Infinity-react-boilerplate/commit/600c09baf75f3e788eb326a2bdc01f19b969e4a3)] 290 | - Update dependency css-loader to v3.2.1 [[aad35b2](https://github.com/EvilSpark/Infinity-react-boilerplate/commit/aad35b27b7ae863bb0c5730704716126d5a6d0b1)] 291 | - Update dependency @reduxjs/toolkit to v1.1.0 [[97bd8d5](https://github.com/EvilSpark/Infinity-react-boilerplate/commit/97bd8d5c29310af1324cfd1d61cac2d241a2053f)] 292 | - Merge pull request [#20](https://github.com/EvilSpark/Infinity-react-boilerplate/issues/20) from EvilSpark/renovate/eslint-6.x [[4549e5e](https://github.com/EvilSpark/Infinity-react-boilerplate/commit/4549e5e9ae07559042dbb9123d8a1f022bd84b6d)] 293 | - Update dependency eslint to v6.7.2 [[1eff162](https://github.com/EvilSpark/Infinity-react-boilerplate/commit/1eff16253f1b1072c55a6354983dd8a3e8683623)] 294 | - Merge pull request [#19](https://github.com/EvilSpark/Infinity-react-boilerplate/issues/19) from EvilSpark/renovate/eslint-plugin-react-7.x [[a8f3520](https://github.com/EvilSpark/Infinity-react-boilerplate/commit/a8f35202fd32343f2ffe9b9b380fbe025ad00588)] 295 | - Update dependency eslint-plugin-react to v7.17.0 [[ef8148f](https://github.com/EvilSpark/Infinity-react-boilerplate/commit/ef8148facc05516a7cf075d8ec6b6531d9f55518)] 296 | - Merge pull request [#18](https://github.com/EvilSpark/Infinity-react-boilerplate/issues/18) from EvilSpark/renovate/style-loader-1.x [[e4ca8d9](https://github.com/EvilSpark/Infinity-react-boilerplate/commit/e4ca8d9cb4c43c96dd4cf21b66caea53afd3ba00)] 297 | - Update dependency style-loader to v1.0.1 [[7d81ade](https://github.com/EvilSpark/Infinity-react-boilerplate/commit/7d81adef53c946766f11cb29d43f13aa3654ba6f)] 298 | - Merge pull request [#17](https://github.com/EvilSpark/Infinity-react-boilerplate/issues/17) from EvilSpark/renovate/lint-staged-9.x [[0ce3aa5](https://github.com/EvilSpark/Infinity-react-boilerplate/commit/0ce3aa5659bcd98f269163ecad65a4e40b981081)] 299 | - Update dependency lint-staged to v9.5.0 [[81df089](https://github.com/EvilSpark/Infinity-react-boilerplate/commit/81df089300f4a62b496858f0181f40402ba886df)] 300 | - Merge pull request [#16](https://github.com/EvilSpark/Infinity-react-boilerplate/issues/16) from EvilSpark/renovate/url-loader-3.x [[b7ee3b9](https://github.com/EvilSpark/Infinity-react-boilerplate/commit/b7ee3b979634c6cbd99e7b77bd2f89ef967c92ac)] 301 | - Update dependency url-loader to v3 [[b66f7a5](https://github.com/EvilSpark/Infinity-react-boilerplate/commit/b66f7a56ef774c930e6009b464abd04728e4762a)] 302 | - Merge pull request [#15](https://github.com/EvilSpark/Infinity-react-boilerplate/issues/15) from EvilSpark/renovate/file-loader-5.x [[56be2ea](https://github.com/EvilSpark/Infinity-react-boilerplate/commit/56be2ea31cbf38ebd023ef09c4a1f521e75e2335)] 303 | - Merge pull request [#13](https://github.com/EvilSpark/Infinity-react-boilerplate/issues/13) from EvilSpark/renovate/eslint-6.x [[2e7ca97](https://github.com/EvilSpark/Infinity-react-boilerplate/commit/2e7ca971798e70457cc0dd921416ceda3756e148)] 304 | - Update dependency file-loader to v5 [[ff03fbd](https://github.com/EvilSpark/Infinity-react-boilerplate/commit/ff03fbd5080a17f6014f87c0a5afb7713b6a0099)] 305 | - Update dependency eslint to v6.7.1 [[54b2125](https://github.com/EvilSpark/Infinity-react-boilerplate/commit/54b21256ead1ef781db6c53247bcab14cc8fb564)] 306 | - Merge pull request [#12](https://github.com/EvilSpark/Infinity-react-boilerplate/issues/12) from EvilSpark/renovate/stylelint-processor-styled-components-1.x [[79f4b7d](https://github.com/EvilSpark/Infinity-react-boilerplate/commit/79f4b7dab8620a18521ccdba0e357abaab88b504)] 307 | - Merge branch 'master' of https://github.com/EvilSpark/react-redux-boilerplate [[9ac051b](https://github.com/EvilSpark/Infinity-react-boilerplate/commit/9ac051b7dac74e9a37c513f362ef2027f4102830)] 308 | - Generators added [[f7e3e6b](https://github.com/EvilSpark/Infinity-react-boilerplate/commit/f7e3e6b71e5622d08732e371d549e1c3c5395e09)] 309 | - Update dependency stylelint-processor-styled-components to v1.9.0 [[1becf2b](https://github.com/EvilSpark/Infinity-react-boilerplate/commit/1becf2b928de64ed6fbaa819a73b0c418110a6e7)] 310 | - Merge pull request [#11](https://github.com/EvilSpark/Infinity-react-boilerplate/issues/11) from EvilSpark/renovate/babel-monorepo [[9c8adf6](https://github.com/EvilSpark/Infinity-react-boilerplate/commit/9c8adf6e5a549db6881db6139aff7169bca386b3)] 311 | - Merge pull request [#10](https://github.com/EvilSpark/Infinity-react-boilerplate/issues/10) from EvilSpark/dependabot/npm_and_yarn/eslint-6.7.0 [[f70f0c6](https://github.com/EvilSpark/Infinity-react-boilerplate/commit/f70f0c6bbfacbf36875938b24ab21ff154eaf9ef)] 312 | - Update babel monorepo to v7.7.4 [[fd21892](https://github.com/EvilSpark/Infinity-react-boilerplate/commit/fd218920357cf797c0d9fc9e45e880f903615073)] 313 | - Merge pull request [#8](https://github.com/EvilSpark/Infinity-react-boilerplate/issues/8) from EvilSpark/renovate/svg-url-loader-3.x [[b81936d](https://github.com/EvilSpark/Infinity-react-boilerplate/commit/b81936d152fd23a224e24c1b145e95d94a716b74)] 314 | - Update dependency svg-url-loader to v3.0.3 [[292dbe6](https://github.com/EvilSpark/Infinity-react-boilerplate/commit/292dbe6651e62cd1ac107c3b20ed050746b25ab8)] 315 | - 📝 Docs [[e1fa7d8](https://github.com/EvilSpark/Infinity-react-boilerplate/commit/e1fa7d8dd0f9884003025568edd1e0c68008ec31)] 316 | - Merge pull request [#7](https://github.com/EvilSpark/Infinity-react-boilerplate/issues/7) from EvilSpark/renovate/configure [[7a5937b](https://github.com/EvilSpark/Infinity-react-boilerplate/commit/7a5937b1732ee1edcb3a744f7c0791714d05a132)] 317 | - Merge pull request [#6](https://github.com/EvilSpark/Infinity-react-boilerplate/issues/6) from EvilSpark/dependabot/npm_and_yarn/file-loader-4.3.0 [[88af692](https://github.com/EvilSpark/Infinity-react-boilerplate/commit/88af69209603b50d12880abb6e57198c0a054657)] 318 | - Merge pull request [#5](https://github.com/EvilSpark/Infinity-react-boilerplate/issues/5) from EvilSpark/dependabot/npm_and_yarn/url-loader-2.3.0 [[be43425](https://github.com/EvilSpark/Infinity-react-boilerplate/commit/be43425d8293047ddaa1c94300eafff5edc6624f)] 319 | - Merge pull request [#4](https://github.com/EvilSpark/Infinity-react-boilerplate/issues/4) from EvilSpark/add-code-of-conduct-1 [[4d2bc5a](https://github.com/EvilSpark/Infinity-react-boilerplate/commit/4d2bc5a339c1bb382b29a17324d1d5f4ce2d6f34)] 320 | - Create CODE_OF_CONDUCT.md [[8ddf278](https://github.com/EvilSpark/Infinity-react-boilerplate/commit/8ddf278525c8e8e51f89e2aea059f74ed8cc56ef)] 321 | - Merge pull request [#3](https://github.com/EvilSpark/Infinity-react-boilerplate/issues/3) from EvilSpark/imgbot [[3d4a490](https://github.com/EvilSpark/Infinity-react-boilerplate/commit/3d4a490e9a8f1ccab9f085f2c2201984880c033e)] 322 | - Readme [[a3ad994](https://github.com/EvilSpark/Infinity-react-boilerplate/commit/a3ad99466d6b80f642289ab74153843a556c3e83)] 323 | - 📝 Badges [[92e44b1](https://github.com/EvilSpark/Infinity-react-boilerplate/commit/92e44b16195d79da667ac1882fd1564d0d0da95c)] 324 | - Merge pull request [#2](https://github.com/EvilSpark/Infinity-react-boilerplate/issues/2) from EvilSpark/add-license-1 [[31844be](https://github.com/EvilSpark/Infinity-react-boilerplate/commit/31844bec7813499bbe8deea307655727c501503c)] 325 | - Create LICENSE [[b3c0cc7](https://github.com/EvilSpark/Infinity-react-boilerplate/commit/b3c0cc7a061f1588946db818b5cd98fb715ab261)] 326 | - Create nodejs1.yml [[2135051](https://github.com/EvilSpark/Infinity-react-boilerplate/commit/21350512f2f41ec6abf0901822ae45806d3458bb)] 327 | - Add renovate.json [[0de46ac](https://github.com/EvilSpark/Infinity-react-boilerplate/commit/0de46ac978964b84fdcd7b5e168607eb6e7353c4)] 328 | - [ImgBot] Optimize images [[877caa8](https://github.com/EvilSpark/Infinity-react-boilerplate/commit/877caa8b2f45e9a7b003a67be31d472f492480f2)] 329 | - Merge branch 'master' of https://github.com/EvilSpark/react-redux-boilerplate [[b74539c](https://github.com/EvilSpark/Infinity-react-boilerplate/commit/b74539c3a9fe38ae23c5f031ced2f340489036e1)] 330 | - Create nodejs.yml [[89f292f](https://github.com/EvilSpark/Infinity-react-boilerplate/commit/89f292f85edeb2585e36f73a9085c58cce6c6270)] 331 | - Update issue templates [[c7dc603](https://github.com/EvilSpark/Infinity-react-boilerplate/commit/c7dc603c263e5b46639b3b65998b0c87f5dec720)] 332 | - Readme [[950b10c](https://github.com/EvilSpark/Infinity-react-boilerplate/commit/950b10c449bf2ba76c18c824e33bd0004085da43)] 333 | - 📝 lockfile updated [[309ae65](https://github.com/EvilSpark/Infinity-react-boilerplate/commit/309ae65671eeed25f0c097976e8b91720199ad18)] 334 | - 🚩 Translation stuff removed [[6c2b743](https://github.com/EvilSpark/Infinity-react-boilerplate/commit/6c2b743e13dfb761ba3494965cd37d76741e9ddf)] 335 | - Dependencies Updated [[c748a09](https://github.com/EvilSpark/Infinity-react-boilerplate/commit/c748a09f10849f6443c9010acfeddd2b91c9d2bc)] 336 | 337 | 338 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Focus has shifted to the development of [Full Stack Boilerplate](https://github.com/Sparklytical/Fullstack-Boilerplate), the successor to Infinity-react-boilerplate. If you are interested in contributing or using it, come take a look! 2 | 3 |

4 | react boilerplate banner 5 |

6 |
7 | 8 |
Start your next react project in seconds
9 |
A highly scalable, offline-first foundation with the best DX and a focus on performance and best practices
10 | 11 |
12 | 13 |
14 |
15 | 16 | David 17 | 18 | 19 | David 20 | 21 | 22 | 23 | Travis (.com) 24 | 25 | AppVeyor 26 | 27 | 28 | 29 | 30 | Changelog 31 | 32 | 33 | 34 | 35 | GitHub last commit 36 | GitHub repo size 37 | GitHub top language 38 |
39 |
40 | 41 |
42 | 43 |
44 | Created by EvilSpark and forked from ReactBoilerplate. 45 |
46 | 47 | ## Features 48 | 49 | 50 | 51 |
52 |
Quick scaffolding
53 |
Create components, containers, routes, selectors and sagas - and their tests - right from the CLI!
54 | 55 |
Instant feedback
56 |
Enjoy the best DX (Developer eXperience) and code your app at the speed of thought! Your saved changes to the CSS and JS are reflected instantaneously without refreshing the page. Preserve application state even when you update something in the underlying code!
57 | 58 |
Predictable state management
59 |
Unidirectional data flow allows for change logging and time travel debugging.
60 | 61 |
Next generation JavaScript
62 |
Use template strings, object destructuring, arrow functions, JSX syntax etc.
63 | 64 |
Next generation CSS
65 |
Write composable CSS that's co-located with your components for complete modularity. Unique generated class names keep the specificity low while eliminating style clashes. Ship only the styles that are on the page for the best performance.
66 | 67 |
Industry-standard routing
68 |
It's natural to want to add pages (e.g. `/about`) to your application, and routing makes this possible.
69 | 70 |
Offline-first
71 |
The next frontier in performant web apps: availability without a network connection from the instant your users load the app.
72 |
Additional Features
73 |
Improved Generator, Cache for faster startup
74 |
Static code analysis
75 |
Focus on writing new features without worrying about formatting or code quality. With the right editor setup, your code will automatically be formatted and linted as you work.
76 | 77 |
SEO
78 |
We support SEO (document head tags management) for search engines that support indexing of JavaScript content. (eg. Google)
79 |
80 | 81 | But wait... there's more! 82 | 83 | - _Native web app:_ Your app's new home? The home screen of your users' phones. 84 | - _The fastest fonts:_ Say goodbye to vacant text. 85 | - _Stay fast_: Profile your app's performance from the comfort of your command 86 | line! 87 | - _Catch problems:_ AppVeyor and TravisCI setups included by default, so your 88 | tests get run automatically on Windows and Unix. 89 | 90 | Keywords: React.js, Redux, Hot Reloading, ESNext, Babel, react-router, Offline First, ServiceWorker, `styled-components`, redux-saga, FontFaceObserver 91 | 92 | ## Quick start 93 | 94 | 1. Make sure that you have Node.js v8.15.1 and npm v5 or above installed. 95 | 2. Clone this repo using `git clone --depth=1 https://github.com/EvilSpark/react-redux-boilerplate.git ` 96 | 3. Move to the appropriate directory: `cd `.
97 | 4. Run `npm run setup` in order to install dependencies and clean the git repo.
98 | _At this point you can run `npm start` to see the example app at `http://localhost:3000`._ 99 | 5. Although I prefer using PNPM instead of NPM. 100 | 101 | Now you're ready to rumble! 102 | 103 | > Please note that this boilerplate is **production-ready and not meant for beginners**! If you're just starting out with react or redux, please refer to https://github.com/petehunt/react-howto instead. If you want a solid, battle-tested base to build your next product upon and have some experience with react, this is the perfect start for you. 104 | 105 | ## License 106 | 107 | This project is licensed under the MIT license, Copyright (c) 2019 EvilSpark. For more information see `LICENSE.md`. 108 | -------------------------------------------------------------------------------- /app/.htaccess: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | ####################################################################### 5 | # GENERAL # 6 | ####################################################################### 7 | 8 | # Make apache follow sym links to files 9 | Options +FollowSymLinks 10 | # If somebody opens a folder, hide all files from the resulting folder list 11 | IndexIgnore */* 12 | 13 | 14 | ####################################################################### 15 | # REWRITING # 16 | ####################################################################### 17 | 18 | # Enable rewriting 19 | RewriteEngine On 20 | 21 | # If its not HTTPS 22 | RewriteCond %{HTTPS} off 23 | 24 | # Comment out the RewriteCond above, and uncomment the RewriteCond below if you're using a load balancer (e.g. CloudFlare) for SSL 25 | # RewriteCond %{HTTP:X-Forwarded-Proto} !https 26 | 27 | # Redirect to the same URL with https://, ignoring all further rules if this one is in effect 28 | RewriteRule ^(.*) https://%{HTTP_HOST}/$1 [R,L] 29 | 30 | # If we get to here, it means we are on https:// 31 | 32 | # If the file with the specified name in the browser doesn't exist 33 | RewriteCond %{REQUEST_FILENAME} !-f 34 | 35 | # and the directory with the specified name in the browser doesn't exist 36 | RewriteCond %{REQUEST_FILENAME} !-d 37 | 38 | # and we are not opening the root already (otherwise we get a redirect loop) 39 | RewriteCond %{REQUEST_FILENAME} !\/$ 40 | 41 | # Rewrite all requests to the root 42 | RewriteRule ^(.*) / 43 | 44 | 45 | 46 | 47 | # Do not cache sw.js, required for offline-first updates. 48 | 49 | Header set Cache-Control "private, no-cache, no-store, proxy-revalidate, no-transform" 50 | Header set Pragma "no-cache" 51 | 52 | 53 | -------------------------------------------------------------------------------- /app/.nginx.conf: -------------------------------------------------------------------------------- 1 | ## 2 | # Put this file in /etc/nginx/conf.d folder and make sure 3 | # you have a line 'include /etc/nginx/conf.d/*.conf;' 4 | # in your main nginx configuration file 5 | ## 6 | 7 | ## 8 | # Redirect to the same URL with https:// 9 | ## 10 | 11 | server { 12 | 13 | listen 80; 14 | 15 | # Type your domain name below 16 | server_name example.com; 17 | 18 | return 301 https://$server_name$request_uri; 19 | 20 | } 21 | 22 | ## 23 | # HTTPS configurations 24 | ## 25 | 26 | server { 27 | 28 | listen 443 ssl; 29 | 30 | # Type your domain name below 31 | server_name example.com; 32 | 33 | # Configure the Certificate and Key you got from your CA (e.g. Lets Encrypt) 34 | ssl_certificate /path/to/certificate.crt; 35 | ssl_certificate_key /path/to/server.key; 36 | 37 | ssl_session_timeout 1d; 38 | ssl_session_cache shared:SSL:50m; 39 | ssl_session_tickets off; 40 | 41 | # Only use TLS v1.2 as Transport Security Protocol 42 | ssl_protocols TLSv1.2; 43 | 44 | # Only use ciphersuites that are considered modern and secure by Mozilla 45 | ssl_ciphers 'ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305:ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-SHA384:ECDHE-RSA-AES256-SHA384:ECDHE-ECDSA-AES128-SHA256:ECDHE-RSA-AES128-SHA256'; 46 | 47 | # Do not let attackers downgrade the ciphersuites in Client Hello 48 | # Always use server-side offered ciphersuites 49 | ssl_prefer_server_ciphers on; 50 | 51 | # HSTS (ngx_http_headers_module is required) (15768000 seconds = 6 months) 52 | add_header Strict-Transport-Security max-age=15768000; 53 | 54 | # Diffie-Hellman parameter for DHE ciphersuites, recommended 2048 bits 55 | # Uncomment if you want to use your own Diffie-Hellman parameter, which can be generated with: openssl ecparam -genkey -out dhparam.pem -name prime256v1 56 | # See https://wiki.mozilla.org/Security/Server_Side_TLS#DHE_handshake_and_dhparam 57 | # ssl_dhparam /path/to/dhparam.pem; 58 | 59 | 60 | ## OCSP Configuration START 61 | # If you want to provide OCSP Stapling, you can uncomment the following lines 62 | # See https://www.digitalocean.com/community/tutorials/how-to-configure-ocsp-stapling-on-apache-and-nginx for more infos about OCSP and its use case 63 | # fetch OCSP records from URL in ssl_certificate and cache them 64 | 65 | #ssl_stapling on; 66 | #ssl_stapling_verify on; 67 | 68 | # verify chain of trust of OCSP response using Root CA and Intermediate certs (you will get this file from your CA) 69 | #ssl_trusted_certificate /path/to/root_CA_cert_plus_intermediates; 70 | 71 | ## OCSP Configuration END 72 | 73 | # To let nginx use its own DNS Resolver 74 | # resolver ; 75 | 76 | # Set path 77 | root /var/www/; 78 | 79 | # Always serve index.html for any request 80 | location / { 81 | try_files $uri /index.html; 82 | } 83 | 84 | # Do not cache sw.js, required for offline-first updates. 85 | location /sw.js { 86 | add_header Cache-Control "no-cache"; 87 | proxy_cache_bypass $http_pragma; 88 | proxy_cache_revalidate on; 89 | expires off; 90 | access_log off; 91 | } 92 | 93 | ## 94 | # If you want to use Node/Rails/etc. API server 95 | # on the same port (443) config Nginx as a reverse proxy. 96 | # For security reasons use a firewall like ufw in Ubuntu 97 | # and deny port 3000/tcp. 98 | ## 99 | 100 | # location /api/ { 101 | # 102 | # proxy_pass http://localhost:3000; 103 | # proxy_http_version 1.1; 104 | # proxy_set_header X-Forwarded-Proto https; 105 | # proxy_set_header Upgrade $http_upgrade; 106 | # proxy_set_header Connection 'upgrade'; 107 | # proxy_set_header Host $host; 108 | # proxy_cache_bypass $http_upgrade; 109 | # 110 | # } 111 | 112 | } 113 | -------------------------------------------------------------------------------- /app/app.js: -------------------------------------------------------------------------------- 1 | /** 2 | * app.js 3 | * 4 | * This is the entry file for the application, only setup and boilerplate 5 | * code. 6 | */ 7 | 8 | import 'react-app-polyfill/ie11'; 9 | import 'react-app-polyfill/stable'; 10 | 11 | // Import all the third party stuff 12 | import React from 'react'; 13 | import ReactDOM from 'react-dom'; 14 | import { Provider } from 'react-redux'; 15 | import { ConnectedRouter } from 'connected-react-router'; 16 | import FontFaceObserver from 'fontfaceobserver'; 17 | import history from 'utils/history'; 18 | import 'sanitize.css/sanitize.css'; 19 | 20 | // Import root app 21 | import App from 'containers/App'; 22 | 23 | // Load the favicon and the .htaccess file 24 | /* eslint-disable import/no-unresolved */ 25 | import '!file-loader?name=[name].[ext]!./images/favicon.ico'; 26 | import 'file-loader?name=.htaccess!./.htaccess'; 27 | /* eslint-enable import/no-unresolved */ 28 | 29 | import { HelmetProvider } from 'react-helmet-async'; 30 | import configureStore from './configureStore'; 31 | 32 | // the index.html file and this observer) 33 | const openSansObserver = new FontFaceObserver('Open Sans', {}); 34 | 35 | // When Open Sans is loaded, add a font-family using Open Sans to the body 36 | openSansObserver.load().then(() => { 37 | document.body.classList.add('fontLoaded'); 38 | }); 39 | 40 | // Create redux store with history 41 | const initialState = {}; 42 | const store = configureStore(initialState, history); 43 | const MOUNT_NODE = document.getElementById('app'); 44 | 45 | const ConnectedApp = () => ( 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | ); 54 | 55 | const render = () => { 56 | ReactDOM.render(, MOUNT_NODE); 57 | }; 58 | 59 | if (module.hot) { 60 | // Hot reloadable React components 61 | // modules.hot.accept does not accept dynamic dependencies, 62 | // have to be constants at compile-time 63 | module.hot.accept(['containers/App'], () => { 64 | ReactDOM.unmountComponentAtNode(MOUNT_NODE); 65 | render(); 66 | }); 67 | } 68 | render(); 69 | // Chunked polyfill for browsers without Intl support 70 | 71 | // Install ServiceWorker and AppCache in the end since 72 | // it's not most important operation and if main code fails, 73 | // we do not want it installed 74 | if (process.env.NODE_ENV === 'production') { 75 | require('offline-plugin/runtime').install(); // eslint-disable-line global-require 76 | } 77 | -------------------------------------------------------------------------------- /app/components/Footer/Footer.js: -------------------------------------------------------------------------------- 1 | import React from 'react'; 2 | import './Footer.scss'; 3 | 4 | // logo. 5 | 6 | // import { FaFacebookSquare, FaLinkedin, FaWhatsappSquare } from 'react-icons/fa'; 7 | 8 | function Footer() { 9 | return
Footer
; 10 | } 11 | 12 | export default Footer; 13 | -------------------------------------------------------------------------------- /app/components/Footer/Footer.scss: -------------------------------------------------------------------------------- 1 | .Footer { 2 | display: flex; 3 | flex-direction: column; 4 | width: 100%; 5 | background: #0d3a63; 6 | color: #fff; 7 | height: 300px; 8 | } 9 | -------------------------------------------------------------------------------- /app/components/Footer/index.js: -------------------------------------------------------------------------------- 1 | export { default } from './Footer'; 2 | -------------------------------------------------------------------------------- /app/components/Header/Header.js: -------------------------------------------------------------------------------- 1 | import React from 'react'; 2 | import './Header.scss'; 3 | 4 | // components 5 | 6 | // icons 7 | 8 | // Images 9 | 10 | import Banner from '../common/assets/images/Main.png'; 11 | 12 | function Header() { 13 | return ( 14 |
15 | 16 | react-boilerplate - Logo 17 | 18 | 19 | 26 |
27 | ); 28 | } 29 | 30 | export default Header; 31 | -------------------------------------------------------------------------------- /app/components/Header/Header.scss: -------------------------------------------------------------------------------- 1 | .Header { 2 | min-width: 100%; 3 | display: flex; 4 | flex-direction: column; 5 | 6 | a { 7 | margin: 1rem auto; 8 | } 9 | 10 | ul { 11 | margin: 0 auto; 12 | 13 | a { 14 | margin: 1rem; 15 | } 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /app/components/Header/index.js: -------------------------------------------------------------------------------- 1 | export { default } from './Header'; 2 | -------------------------------------------------------------------------------- /app/components/common/assets/images/Main.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Sparklytical/Infinity-react-boilerplate/b414ef2bc203dd8feddfc715ae10b1514c917231/app/components/common/assets/images/Main.png -------------------------------------------------------------------------------- /app/components/common/assets/images/dashboard.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Sparklytical/Infinity-react-boilerplate/b414ef2bc203dd8feddfc715ae10b1514c917231/app/components/common/assets/images/dashboard.png -------------------------------------------------------------------------------- /app/components/common/styles/_fonts.scss: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Sparklytical/Infinity-react-boilerplate/b414ef2bc203dd8feddfc715ae10b1514c917231/app/components/common/styles/_fonts.scss -------------------------------------------------------------------------------- /app/components/common/styles/_variables.scss: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Sparklytical/Infinity-react-boilerplate/b414ef2bc203dd8feddfc715ae10b1514c917231/app/components/common/styles/_variables.scss -------------------------------------------------------------------------------- /app/components/common/styles/main.scss: -------------------------------------------------------------------------------- 1 | //@import url('https://fonts.googleapis.com/css?family=Lato:400,700,900&display=swap'); 2 | @import './variables'; 3 | @import './fonts'; 4 | -------------------------------------------------------------------------------- /app/configureStore.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Create the store with dynamic reducers 3 | */ 4 | 5 | import { configureStore, getDefaultMiddleware } from '@reduxjs/toolkit'; 6 | import { routerMiddleware } from 'connected-react-router'; 7 | import { createInjectorsEnhancer, forceReducerReload } from 'redux-injectors'; 8 | import createSagaMiddleware from 'redux-saga'; 9 | import createReducer from './reducers'; 10 | 11 | export default function configureAppStore(initialState = {}, history) { 12 | const reduxSagaMonitorOptions = {}; 13 | 14 | const sagaMiddleware = createSagaMiddleware(reduxSagaMonitorOptions); 15 | const { run: runSaga } = sagaMiddleware; 16 | 17 | // Create the store with two middlewares 18 | // 1. sagaMiddleware: Makes redux-sagas work 19 | // 2. routerMiddleware: Syncs the location/URL path to the state 20 | const middlewares = [sagaMiddleware, routerMiddleware(history)]; 21 | 22 | const enhancers = [ 23 | createInjectorsEnhancer({ 24 | createReducer, 25 | runSaga, 26 | }), 27 | ]; 28 | 29 | const store = configureStore({ 30 | reducer: createReducer(), 31 | preloadedState: initialState, 32 | middleware: [...getDefaultMiddleware(), ...middlewares], 33 | enhancers, 34 | }); 35 | 36 | // Make reducers hot reloadable, see http://mxs.is/googmo 37 | /* istanbul ignore next */ 38 | if (module.hot) { 39 | module.hot.accept('./reducers', () => { 40 | forceReducerReload(store); 41 | }); 42 | } 43 | 44 | return store; 45 | } 46 | -------------------------------------------------------------------------------- /app/containers/App/index.js: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | * App.js 4 | * 5 | * This component is the skeleton around the actual pages, and should only 6 | * contain code that should be seen on all pages. (e.g. navigation bar) 7 | * 8 | */ 9 | 10 | import React from 'react'; 11 | import { Switch, Route } from 'react-router-dom'; 12 | import { Helmet } from 'react-helmet-async'; 13 | 14 | import { hot } from 'react-hot-loader/root'; 15 | import HomePage from 'containers/HomePage/Loadable'; 16 | import FeaturePage from 'containers/FeaturePage/Loadable'; 17 | import NotFoundPage from 'containers/NotFoundPage/Loadable'; 18 | 19 | // Header and Footer 20 | import Header from 'components/Header'; 21 | import Footer from 'components/Footer'; 22 | 23 | import GlobalStyle from '../../global-styles'; 24 | 25 | function App() { 26 | return ( 27 |
28 | 32 | 33 | 34 |
35 | 36 | 37 | 38 | 39 | 40 |
41 | 42 |
43 | ); 44 | } 45 | export default hot(App); 46 | -------------------------------------------------------------------------------- /app/containers/App/selectors.js: -------------------------------------------------------------------------------- 1 | /** 2 | * App selectors 3 | */ 4 | 5 | import { createSelector } from '@reduxjs/toolkit'; 6 | 7 | const selectRouter = state => state.router; 8 | 9 | const makeSelectLocation = () => 10 | createSelector( 11 | selectRouter, 12 | routerState => routerState.location, 13 | ); 14 | 15 | export { makeSelectLocation }; 16 | -------------------------------------------------------------------------------- /app/containers/FeaturePage/FeaturePage.js: -------------------------------------------------------------------------------- 1 | import React from 'react'; 2 | import { Helmet } from 'react-helmet-async'; 3 | import './FeaturePage.scss'; 4 | 5 | export default class FeaurePage extends React.Component { 6 | render() { 7 | return ( 8 |
9 | 10 | Feature Page 11 | 15 | 16 |
17 |
18 |

Features

19 |

Features of boilerplate

20 | 21 |
    22 |
  • Quick Scaffolding
  • 23 |
  • SEO
  • 24 |
  • Instant Feedback
  • 25 |
  • Loading Bar
  • 26 |
  • Redux Toolkit state management
  • 27 |
28 |
29 |
30 |
31 | ); 32 | } 33 | } 34 | -------------------------------------------------------------------------------- /app/containers/FeaturePage/FeaturePage.scss: -------------------------------------------------------------------------------- 1 | .features-page { 2 | display: flex; 3 | justify-content: center; 4 | } 5 | -------------------------------------------------------------------------------- /app/containers/FeaturePage/Loadable.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Asynchronously loads the component for HomePage 3 | */ 4 | 5 | import loadable from 'utils/loadable'; 6 | 7 | export default loadable(() => import('./FeaturePage')); 8 | -------------------------------------------------------------------------------- /app/containers/HomePage/Homepage.js: -------------------------------------------------------------------------------- 1 | /* 2 | * HomePage 3 | * 4 | * This is the first thing users see of our App, at the '/' route 5 | * 6 | */ 7 | 8 | import React from 'react'; 9 | // import Header from '../../components/Header/Header.js'; 10 | // import Footer from '../../components/Footer/Footer.js'; 11 | import { Helmet } from 'react-helmet-async'; 12 | export default class HomePage extends React.PureComponent { 13 | render() { 14 | return ( 15 |
16 | 17 | Home Page 18 | 22 | 23 |
24 |
25 |

Start your next react project in seconds

26 |

27 | A minimal React-Redux boilerplate with all the best 28 | practices 29 |

30 |
31 |
32 |
33 | ); 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /app/containers/HomePage/Loadable.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Asynchronously loads the component for HomePage 3 | */ 4 | 5 | import loadable from 'utils/loadable'; 6 | 7 | export default loadable(() => import('./Homepage')); 8 | -------------------------------------------------------------------------------- /app/containers/NotFoundPage/Loadable.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Asynchronously loads the component for NotFoundPage 3 | */ 4 | 5 | import loadable from 'utils/loadable'; 6 | 7 | export default loadable(() => import('./NotFound')); 8 | -------------------------------------------------------------------------------- /app/containers/NotFoundPage/NotFound.js: -------------------------------------------------------------------------------- 1 | /** 2 | * NotFoundPage 3 | * 4 | * This is the page we show when the user visits a url that doesn't have a route 5 | * 6 | */ 7 | 8 | import React from 'react'; 9 | 10 | export default function NotFound() { 11 | return

Page NotFound

; 12 | } 13 | -------------------------------------------------------------------------------- /app/global-styles.js: -------------------------------------------------------------------------------- 1 | import { createGlobalStyle } from 'styled-components'; 2 | 3 | const GlobalStyle = createGlobalStyle` 4 | html, 5 | body { 6 | height: 100%; 7 | width: 100%; 8 | } 9 | 10 | body { 11 | font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; 12 | } 13 | 14 | #app { 15 | background-color: #fafafa; 16 | min-height: 100%; 17 | min-width: 100%; 18 | } 19 | 20 | p, 21 | label { 22 | font-family: Georgia, Times, 'Times New Roman', serif; 23 | line-height: 1.5em; 24 | } 25 | 26 | input, select { 27 | font-family: inherit; 28 | font-size: inherit; 29 | } 30 | `; 31 | 32 | export default GlobalStyle; 33 | -------------------------------------------------------------------------------- /app/images/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Sparklytical/Infinity-react-boilerplate/b414ef2bc203dd8feddfc715ae10b1514c917231/app/images/favicon.ico -------------------------------------------------------------------------------- /app/images/icon-512x512.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Sparklytical/Infinity-react-boilerplate/b414ef2bc203dd8feddfc715ae10b1514c917231/app/images/icon-512x512.png -------------------------------------------------------------------------------- /app/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | React Boilerplate 15 | 16 | 17 | 18 | 19 | 24 | 25 | 26 | 27 |
28 | 29 | 30 | 31 | -------------------------------------------------------------------------------- /app/reducers.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Combine all reducers in this file and export the combined reducers. 3 | */ 4 | 5 | import { combineReducers } from '@reduxjs/toolkit'; 6 | import { connectRouter } from 'connected-react-router'; 7 | 8 | import history from 'utils/history'; 9 | 10 | /** 11 | * Merges the main reducer with the router state and dynamically injected reducers 12 | */ 13 | export default function createReducer(injectedReducers = {}) { 14 | const rootReducer = combineReducers({ 15 | router: connectRouter(history), 16 | ...injectedReducers, 17 | }); 18 | 19 | return rootReducer; 20 | } 21 | -------------------------------------------------------------------------------- /app/utils/history.js: -------------------------------------------------------------------------------- 1 | import { createBrowserHistory } from 'history'; 2 | const history = createBrowserHistory(); 3 | export default history; 4 | -------------------------------------------------------------------------------- /app/utils/loadable.js: -------------------------------------------------------------------------------- 1 | import React, { lazy, Suspense } from 'react'; 2 | 3 | const loadable = (importFunc, { fallback = null } = { fallback: null }) => { 4 | const LazyComponent = lazy(importFunc); 5 | 6 | return props => ( 7 | 8 | 9 | 10 | ); 11 | }; 12 | 13 | export default loadable; 14 | -------------------------------------------------------------------------------- /appveyor.yml: -------------------------------------------------------------------------------- 1 | # http://www.appveyor.com/docs/appveyor-yml 2 | 3 | # Set build version format here instead of in the admin panel 4 | version: '{build}' 5 | 6 | # Do not build on gh tags 7 | skip_tags: true 8 | 9 | # Test against these versions of Node.js 10 | environment: 11 | matrix: 12 | # Node versions to run 13 | - nodejs_version: 'Current' 14 | - nodejs_version: 'LTS' 15 | 16 | # Fix line endings in Windows. (runs before repo cloning) 17 | init: 18 | - git config --global core.autocrlf input 19 | 20 | # Install scripts--runs after repo cloning 21 | install: 22 | - ps: Install-Product node $env:nodejs_version 23 | - curl -L https://unpkg.com/@pnpm/self-installer | node 24 | - pnpm install 25 | 26 | # Disable automatic builds 27 | build: off 28 | 29 | # Post-install test scripts 30 | 31 | # Cache node_modules for faster builds 32 | cache: 33 | - node_modules -> package.json 34 | # remove, as appveyor doesn't support secure variables on pr builds 35 | # so `COVERALLS_REPO_TOKEN` cannot be set, without hard-coding in this file 36 | #on_success: 37 | #- npm run coveralls 38 | -------------------------------------------------------------------------------- /babel.config.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | presets: [ 3 | [ 4 | '@babel/preset-env', 5 | { 6 | modules: false, 7 | }, 8 | ], 9 | '@babel/preset-react', 10 | ], 11 | plugins: [ 12 | 'react-hot-loader/babel', 13 | 'styled-components', 14 | '@babel/plugin-proposal-class-properties', 15 | '@babel/plugin-syntax-dynamic-import', 16 | ], 17 | env: { 18 | production: { 19 | only: ['app'], 20 | plugins: [ 21 | 'lodash', 22 | 'transform-react-remove-prop-types', 23 | '@babel/plugin-transform-react-inline-elements', 24 | '@babel/plugin-transform-react-constant-elements', 25 | ], 26 | }, 27 | test: { 28 | plugins: [ 29 | '@babel/plugin-transform-modules-commonjs', 30 | 'dynamic-import-node', 31 | ], 32 | }, 33 | }, 34 | }; 35 | -------------------------------------------------------------------------------- /internals/generators/component/component.js.hbs: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | * {{ properCase name }} 4 | * 5 | */ 6 | 7 | {{#if memo}} 8 | import React, { memo } from 'react'; 9 | {{else}} 10 | import React from 'react'; 11 | {{/if}} 12 | // import PropTypes from 'prop-types'; 13 | // import styled from 'styled-components'; 14 | {{#if scss }} 15 | import './{{ properCase name }}.scss'; 16 | {{/if}} 17 | 18 | 19 | function {{ properCase name }}() { 20 | return ( 21 |
22 | {{#if wantMessages}} 23 | 24 | {{/if}} 25 |
26 | ); 27 | } 28 | 29 | {{ properCase name }}.propTypes = {}; 30 | 31 | {{#if memo}} 32 | export default memo({{ properCase name }}); 33 | {{else}} 34 | export default {{ properCase name }}; 35 | {{/if}} 36 | -------------------------------------------------------------------------------- /internals/generators/component/index.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Component Generator 3 | */ 4 | 5 | const componentExists = require('../utils/componentExists'); 6 | 7 | module.exports = { 8 | description: 'Add an unconnected component', 9 | prompts: [ 10 | { 11 | type: 'input', 12 | name: 'name', 13 | message: 'What should it be called?', 14 | default: 'Button', 15 | validate: value => { 16 | if (/.+/.test(value)) { 17 | return componentExists(value) 18 | ? 'A component or container with this name already exists' 19 | : true; 20 | } 21 | 22 | return 'The name is required'; 23 | }, 24 | }, 25 | { 26 | type: 'confirm', 27 | name: 'memo', 28 | default: false, 29 | message: 'Do you want to wrap your component in React.memo?', 30 | },{ 31 | type: 'confirm', 32 | name: 'universal', 33 | default: true, 34 | message: 'Do you want to universal import to your component?', 35 | }, 36 | { 37 | type: 'confirm', 38 | name: 'wantLoadable', 39 | default: false, 40 | message: 'Do you want to load the component asynchronously?', 41 | }, 42 | {type: 'confirm', 43 | name: 'scss', 44 | default: true, 45 | message: 'Do you want to add scss file?',}, 46 | ], 47 | actions: data => { 48 | // Generate index.js and index.test.js 49 | const actions = [ 50 | { 51 | type: 'add', 52 | path: '../../app/components/{{properCase name}}/{{properCase name}}.js', 53 | templateFile: './component/component.js.hbs', 54 | abortOnFail: true, 55 | }, 56 | ]; 57 | 58 | // If the user wants i18n messages 59 | 60 | 61 | // If the user wants Loadable.js to load the component asynchronously 62 | if (data.wantLoadable) { 63 | actions.push({ 64 | type: 'add', 65 | path: '../../app/components/{{properCase name}}/Loadable.js', 66 | templateFile: './component/loadable.js.hbs', 67 | abortOnFail: true, 68 | }); 69 | } 70 | if (data.universal) { 71 | actions.push({ 72 | type: 'add', 73 | path: '../../app/components/{{properCase name}}/index.js', 74 | templateFile: './component/index.js.hbs', 75 | abortOnFail: true, 76 | }); 77 | } 78 | if (data.scss) { 79 | actions.push({ 80 | type: 'add', 81 | path: '../../app/components/{{properCase name}}/{{properCase name}}.scss', 82 | templateFile: './component/style.scss.hbs', 83 | abortOnFail: true, 84 | }); 85 | } 86 | actions.push({ 87 | type: 'prettify', 88 | path: '/components/', 89 | }); 90 | 91 | return actions; 92 | }, 93 | }; 94 | -------------------------------------------------------------------------------- /internals/generators/component/index.js.hbs: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | * {{ properCase name }} 4 | * 5 | */ 6 | 7 | export { default } from './{{ properCase name }}'; 8 | -------------------------------------------------------------------------------- /internals/generators/component/loadable.js.hbs: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | * Asynchronously loads the component for {{ properCase name }} 4 | * 5 | */ 6 | 7 | import loadable from 'utils/loadable'; 8 | 9 | export default loadable(() => import('./index')); 10 | -------------------------------------------------------------------------------- /internals/generators/component/messages.js.hbs: -------------------------------------------------------------------------------- 1 | /* 2 | * {{ properCase name }} Messages 3 | * 4 | * This contains all the text for the {{ properCase name }} component. 5 | */ 6 | 7 | import { defineMessages } from 'react-intl'; 8 | 9 | export const scope = 'app.components.{{ properCase name }}'; 10 | 11 | export default defineMessages({ 12 | header: { 13 | id: `${scope}.header`, 14 | defaultMessage: 'This is the {{ properCase name }} component!', 15 | }, 16 | }); 17 | -------------------------------------------------------------------------------- /internals/generators/component/style.scss.hbs: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | * {{ properCase name }} 4 | * 5 | */ 6 | 7 | 8 | .{{ properCase name }} { 9 | color: #000; 10 | } 11 | -------------------------------------------------------------------------------- /internals/generators/container/index.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Container Generator 3 | */ 4 | 5 | const componentExists = require('../utils/componentExists'); 6 | 7 | module.exports = { 8 | description: 'Add a container component', 9 | prompts: [ 10 | { 11 | type: 'input', 12 | name: 'name', 13 | message: 'What should it be called?', 14 | default: 'Form', 15 | validate: value => { 16 | if (/.+/.test(value)) { 17 | return componentExists(value) 18 | ? 'A component or container with this name already exists' 19 | : true; 20 | } 21 | 22 | return 'The name is required'; 23 | }, 24 | }, 25 | { 26 | type: 'confirm', 27 | name: 'memo', 28 | default: false, 29 | message: 'Do you want to wrap your component in React.memo?', 30 | }, 31 | { 32 | type: 'confirm', 33 | name: 'wantHeaders', 34 | default: false, 35 | message: 'Do you want headers?', 36 | }, 37 | { 38 | type: 'confirm', 39 | name: 'wantActionsAndReducer', 40 | default: true, 41 | message: 42 | 'Do you want an actions/constants/selectors/reducer tuple for this container?', 43 | }, 44 | { 45 | type: 'confirm', 46 | name: 'wantSaga', 47 | default: true, 48 | message: 'Do you want sagas for asynchronous flows? (e.g. fetching data)', 49 | }, 50 | 51 | { 52 | type: 'confirm', 53 | name: 'wantLoadable', 54 | default: true, 55 | message: 'Do you want to load resources asynchronously?', 56 | }, 57 | ], 58 | actions: data => { 59 | // Generate index.js and index.test.js 60 | const actions = [ 61 | { 62 | type: 'add', 63 | path: '../../app/containers/{{properCase name}}/index.js', 64 | templateFile: './container/index.js.hbs', 65 | abortOnFail: true, 66 | } 67 | ]; 68 | 69 | 70 | // If they want actions and a reducer, generate the slice, 71 | // the selectors and the corresponding tests 72 | if (data.wantActionsAndReducer) { 73 | // Selectors 74 | actions.push({ 75 | type: 'add', 76 | path: '../../app/containers/{{properCase name}}/selectors.js', 77 | templateFile: './container/selectors.js.hbs', 78 | abortOnFail: true, 79 | }); 80 | 81 | 82 | // Slice 83 | actions.push({ 84 | type: 'add', 85 | path: '../../app/containers/{{properCase name}}/slice.js', 86 | templateFile: './container/slice.js.hbs', 87 | abortOnFail: true, 88 | }); 89 | 90 | } 91 | 92 | // Sagas 93 | if (data.wantSaga) { 94 | actions.push({ 95 | type: 'add', 96 | path: '../../app/containers/{{properCase name}}/saga.js', 97 | templateFile: './container/saga.js.hbs', 98 | abortOnFail: true, 99 | }); 100 | 101 | } 102 | 103 | if (data.wantLoadable) { 104 | actions.push({ 105 | type: 'add', 106 | path: '../../app/containers/{{properCase name}}/Loadable.js', 107 | templateFile: './component/loadable.js.hbs', 108 | abortOnFail: true, 109 | }); 110 | } 111 | 112 | actions.push({ 113 | type: 'prettify', 114 | path: '/containers/', 115 | }); 116 | 117 | return actions; 118 | }, 119 | }; 120 | -------------------------------------------------------------------------------- /internals/generators/container/index.js.hbs: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | * {{properCase name }} 4 | * 5 | */ 6 | 7 | {{#if memo}} 8 | import React, { memo } from 'react'; 9 | {{else}} 10 | import React from 'react'; 11 | {{/if}} 12 | // import PropTypes from 'prop-types'; 13 | {{#if wantHeaders}} 14 | import { Helmet } from 'react-helmet-async'; 15 | {{/if}} 16 | {{#if wantMessages}} 17 | import { FormattedMessage } from 'react-intl'; 18 | {{/if}} 19 | {{#if wantActionsAndReducer}} 20 | import { useSelector, useDispatch } from 'react-redux'; 21 | import { createStructuredSelector } from 'reselect'; 22 | {{/if}} 23 | 24 | {{#if wantActionsAndReducer}} 25 | {{#if wantSaga}} 26 | import { useInjectReducer, useInjectSaga } from 'redux-injectors'; 27 | {{else}} 28 | import { useInjectReducer } from 'redux-injectors'; 29 | {{/if}} 30 | {{else}} 31 | {{#if wantSaga}} 32 | import { useInjectSaga } from 'redux-injectors'; 33 | {{/if}} 34 | {{/if}} 35 | {{#if wantActionsAndReducer}} 36 | import makeSelect{{properCase name}} from './selectors'; 37 | import { reducer } from './slice'; 38 | {{/if}} 39 | {{#if wantSaga}} 40 | import saga from './saga'; 41 | {{/if}} 42 | {{#if wantMessages}} 43 | import messages from './messages'; 44 | {{/if}} 45 | 46 | {{#if wantActionsAndReducer}} 47 | const stateSelector = createStructuredSelector({ 48 | {{camelCase name}}: makeSelect{{properCase name}}(), 49 | }); 50 | {{/if}} 51 | 52 | function {{ properCase name }}() { 53 | {{#if wantActionsAndReducer}} 54 | useInjectReducer({ key: '{{ camelCase name }}', reducer }); 55 | {{/if}} 56 | {{#if wantSaga}} 57 | useInjectSaga({ key: '{{ camelCase name }}', saga }); 58 | {{/if}} 59 | {{#if wantActionsAndReducer}} 60 | 61 | /* eslint-disable no-unused-vars */ 62 | const { {{camelCase name}} } = useSelector(stateSelector); 63 | const dispatch = useDispatch(); 64 | /* eslint-enable no-unused-vars */ 65 | {{/if}} 66 | 67 | return ( 68 |
69 | {{#if wantHeaders}} 70 | 71 | {{properCase name}} 72 | 73 | 74 | {{/if}} 75 | {{#if wantMessages}} 76 | 77 | {{/if}} 78 |
79 | ); 80 | } 81 | 82 | {{ properCase name }}.propTypes = {}; 83 | 84 | {{#if memo}} 85 | export default memo({{ properCase name }}); 86 | {{else}} 87 | export default {{ properCase name }}; 88 | {{/if}} 89 | -------------------------------------------------------------------------------- /internals/generators/container/saga.js.hbs: -------------------------------------------------------------------------------- 1 | // import { take, call, put, select } from 'redux-saga/effects'; 2 | 3 | // Individual exports for testing 4 | export default function* {{ camelCase name }}Saga() { 5 | // See example in containers/ReposManager/saga.js in the react-boilerplate sample app 6 | } 7 | -------------------------------------------------------------------------------- /internals/generators/container/selectors.js.hbs: -------------------------------------------------------------------------------- 1 | import { createSelector } from 'reselect'; 2 | import { initialState } from './slice'; 3 | 4 | /** 5 | * Direct selector to the {{ camelCase name }} state domain 6 | */ 7 | 8 | const select{{ properCase name }}Domain = state => state.{{ camelCase name }} || initialState; 9 | 10 | /** 11 | * Other specific selectors 12 | */ 13 | 14 | /** 15 | * Default selector used by {{ properCase name }} 16 | */ 17 | 18 | const makeSelect{{ properCase name }} = () => 19 | createSelector(select{{ properCase name }}Domain, substate => substate); 20 | 21 | export default makeSelect{{ properCase name }}; 22 | export { select{{ properCase name }}Domain }; 23 | -------------------------------------------------------------------------------- /internals/generators/container/slice.js.hbs: -------------------------------------------------------------------------------- 1 | /* 2 | * {{ properCase name }} Slice 3 | * 4 | * Here we define: 5 | * - The shape of our container's slice of Redux store, 6 | * - All the actions which can be triggered for this slice, including their effects on the store. 7 | * 8 | * Note that, while we are using dot notation in our reducer, we are not actually mutating the state 9 | * manually. Under the hood, we use immer to apply these updates to a new copy of the state. 10 | * Please see https://immerjs.github.io/immer/docs/introduction for more information. 11 | * 12 | */ 13 | 14 | import { createSlice } from '@reduxjs/toolkit'; 15 | 16 | export const initialState = {}; 17 | 18 | const {{ camelCase name }}Slice = createSlice({ 19 | name: '{{ camelCase name }}', 20 | initialState, 21 | reducers: { 22 | // eslint-disable-next-line no-unused-vars 23 | defaultAction(state, action) { 24 | /* Update your state here */ 25 | /* You can access action.payload to get data passed to the action */ 26 | /* See examples in containers/HomePage/saga.js in the react-boilerplate sample app */ 27 | }, 28 | }, 29 | }); 30 | 31 | export const { 32 | defaultAction, 33 | } = {{ camelCase name }}Slice.actions; 34 | 35 | export const { reducer } = {{ camelCase name }}Slice; 36 | -------------------------------------------------------------------------------- /internals/generators/index.js: -------------------------------------------------------------------------------- 1 | /** 2 | * generator/index.js 3 | * 4 | * Exports the generators so plop knows them 5 | */ 6 | 7 | const fs = require('fs'); 8 | const path = require('path'); 9 | const { execSync } = require('child_process'); 10 | const componentGenerator = require('./component/index.js'); 11 | const containerGenerator = require('./container/index.js'); 12 | const StyledComponentGenerator = require('./styledComponents/index.js'); 13 | 14 | /** 15 | * Every generated backup file gets this extension 16 | * @type {string} 17 | */ 18 | const BACKUPFILE_EXTENSION = 'rbgen'; 19 | 20 | module.exports = plop => { 21 | plop.setGenerator('component', componentGenerator); 22 | plop.setGenerator('container', containerGenerator); 23 | plop.setGenerator('styledComponent', StyledComponentGenerator); 24 | plop.addHelper('curly', (object, open) => (open ? '{' : '}')); 25 | plop.setActionType('prettify', (answers, config) => { 26 | const folderPath = `${path.join( 27 | __dirname, 28 | '/../../app/', 29 | config.path, 30 | plop.getHelper('properCase')(answers.name), 31 | '**', 32 | '**.js', 33 | )}`; 34 | 35 | execSync(`npm run prettify -- "${folderPath}"`); 36 | return folderPath; 37 | }); 38 | plop.setActionType('backup', (answers, config) => { 39 | fs.copyFileSync( 40 | path.join(__dirname, config.path, config.file), 41 | path.join( 42 | __dirname, 43 | config.path, 44 | `${config.file}.${BACKUPFILE_EXTENSION}`, 45 | ), 46 | 'utf8', 47 | ); 48 | return path.join( 49 | __dirname, 50 | config.path, 51 | `${config.file}.${BACKUPFILE_EXTENSION}`, 52 | ); 53 | }); 54 | }; 55 | 56 | module.exports.BACKUPFILE_EXTENSION = BACKUPFILE_EXTENSION; 57 | -------------------------------------------------------------------------------- /internals/generators/styledComponents/index.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Component Generator 3 | */ 4 | 5 | const componentExists = require('../utils/componentExists'); 6 | 7 | module.exports = { 8 | description: 'Add a styled component', 9 | prompts: [ 10 | { 11 | type: 'input', 12 | name: 'name', 13 | message: 'What should it be called?', 14 | default: 'Button', 15 | validate: value => { 16 | if (/.+/.test(value)) { 17 | return componentExists(value) 18 | ? 'A component or container with this name already exists' 19 | : true; 20 | } 21 | 22 | return 'The name is required'; 23 | }, 24 | }, 25 | { 26 | type: 'confirm', 27 | name: 'styles', 28 | default: true, 29 | message: 'Do you want separate styles to your component?', 30 | }, 31 | ], 32 | actions: data => { 33 | // Generate index.js and index.test.js 34 | const actions = [ 35 | { 36 | type: 'add', 37 | path: '../../app/components/{{properCase name}}/index.js', 38 | templateFile: './styledComponents/index.js.hbs', 39 | abortOnFail: true, 40 | }, 41 | ]; 42 | 43 | 44 | 45 | // If the user wants Loadable.js to load the component asynchronously 46 | 47 | if (data.styles) { 48 | actions.push({ 49 | type: 'add', 50 | path: '../../app/components/{{properCase name}}/{{properCase name}}Styles.js', 51 | templateFile: './styledComponents/styles.js.hbs', 52 | abortOnFail: true, 53 | }); 54 | } 55 | 56 | actions.push({ 57 | type: 'prettify', 58 | path: '/components/', 59 | }); 60 | 61 | return actions; 62 | }, 63 | }; 64 | -------------------------------------------------------------------------------- /internals/generators/styledComponents/index.js.hbs: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | * {{ properCase name }} 4 | * 5 | */ 6 | import styled, { css } from 'styled-components'; 7 | // import {{ properCase name }}Styles from './ {{ properCase name }}' 8 | const {{ properCase name }}= styled.div`` 9 | 10 | // const {{ properCase name }}= styled({{ properCase name }})Styles`` 11 | 12 | export default {{ properCase name }}; 13 | -------------------------------------------------------------------------------- /internals/generators/styledComponents/styles.js.hbs: -------------------------------------------------------------------------------- 1 | import { css } from 'styled-components'; 2 | 3 | const {{ properCase name }} = css `` 4 | 5 | export default {{ properCase name }} 6 | -------------------------------------------------------------------------------- /internals/generators/utils/componentExists.js: -------------------------------------------------------------------------------- 1 | /** 2 | * componentExists 3 | * 4 | * Check whether the given component exist in either the components or containers directory 5 | */ 6 | 7 | const fs = require('fs'); 8 | const path = require('path'); 9 | const pageComponents = fs.readdirSync( 10 | path.join(__dirname, '../../../app/components'), 11 | ); 12 | const pageContainers = fs.readdirSync( 13 | path.join(__dirname, '../../../app/containers'), 14 | ); 15 | const components = pageComponents.concat(pageContainers); 16 | 17 | function componentExists(comp) { 18 | return components.indexOf(comp) >= 0; 19 | } 20 | 21 | module.exports = componentExists; 22 | -------------------------------------------------------------------------------- /internals/scripts/analyze.js: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env node 2 | 3 | const shelljs = require('shelljs'); 4 | const chalk = require('chalk'); 5 | const animateProgress = require('./helpers/progress'); 6 | const addCheckMark = require('./helpers/checkmark'); 7 | 8 | const progress = animateProgress('Generating stats'); 9 | 10 | // Generate stats.json file with webpack 11 | shelljs.exec( 12 | 'cross-env NODE_ENV=production webpack --config internals/webpack/webpack.prod.babel.js --json > stats.json', 13 | addCheckMark.bind(null, callback), // Output a checkmark on completion 14 | ); 15 | 16 | // Called after webpack has finished generating the stats.json file 17 | function callback() { 18 | clearInterval(progress); 19 | process.stdout.write( 20 | `\n\nOpen ${chalk.magenta( 21 | 'http://webpack.github.io/analyse/', 22 | )} in your browser and upload the stats.json file!${chalk.blue( 23 | `\n(Tip: ${chalk.italic('CMD + double-click')} the link!)\n\n`, 24 | )}`, 25 | ); 26 | } 27 | -------------------------------------------------------------------------------- /internals/scripts/clean.js: -------------------------------------------------------------------------------- 1 | const shell = require('shelljs'); 2 | const addCheckMark = require('./helpers/checkmark.js'); 3 | 4 | if (!shell.which('git')) { 5 | shell.echo('Sorry, this script requires git'); 6 | shell.exit(1); 7 | } 8 | 9 | if (!shell.test('-e', 'internals/templates')) { 10 | shell.echo('The example is deleted already.'); 11 | shell.exit(1); 12 | } 13 | 14 | process.stdout.write('Cleanup started...'); 15 | 16 | // Reuse existing LanguageProvider and i18n tests 17 | shell.mv( 18 | 'app/containers/LanguageProvider/tests', 19 | 'internals/templates/containers/LanguageProvider', 20 | ); 21 | shell.cp('app/tests/i18n.test.js', 'internals/templates/tests/i18n.test.js'); 22 | 23 | // Cleanup components/ 24 | shell.rm('-rf', 'app/components/*'); 25 | 26 | // Handle containers/ 27 | shell.rm('-rf', 'app/containers'); 28 | shell.mv('internals/templates/containers', 'app'); 29 | 30 | // Handle tests/ 31 | shell.mv('internals/templates/tests', 'app'); 32 | 33 | // Handle translations/ 34 | shell.rm('-rf', 'app/translations'); 35 | shell.mv('internals/templates/translations', 'app'); 36 | 37 | // Handle utils/ 38 | shell.rm('-rf', 'app/utils'); 39 | shell.mv('internals/templates/utils', 'app'); 40 | 41 | // Replace the files in the root app/ folder 42 | shell.cp('internals/templates/app.js', 'app/app.js'); 43 | shell.cp('internals/templates/global-styles.js', 'app/global-styles.js'); 44 | shell.cp('internals/templates/i18n.js', 'app/i18n.js'); 45 | shell.cp('internals/templates/index.html', 'app/index.html'); 46 | shell.cp('internals/templates/reducers.js', 'app/reducers.js'); 47 | shell.cp('internals/templates/configureStore.js', 'app/configureStore.js'); 48 | 49 | // Remove the templates folder 50 | shell.rm('-rf', 'internals/templates'); 51 | 52 | addCheckMark(); 53 | 54 | // Commit the changes 55 | if ( 56 | shell.exec('git add . --all && git commit -qm "Remove default example"') 57 | .code !== 0 58 | ) { 59 | shell.echo('\nError: Git commit failed'); 60 | shell.exit(1); 61 | } 62 | 63 | shell.echo('\nCleanup done. Happy Coding!!!'); 64 | -------------------------------------------------------------------------------- /internals/scripts/generate-templates-for-linting.js: -------------------------------------------------------------------------------- 1 | /** 2 | * This script is for internal `react-boilerplate`'s usage. 3 | * It will run all generators in order to be able to lint them and detect 4 | * critical errors. Every generated component's name starts with 'RbGenerated' 5 | * and any modified file is backed up by a file with the same name but with the 6 | * 'rbgen' extension so it can be easily excluded from the test coverage reports. 7 | */ 8 | 9 | const chalk = require('chalk'); 10 | const fs = require('fs'); 11 | const nodePlop = require('node-plop'); 12 | const path = require('path'); 13 | const rimraf = require('rimraf'); 14 | const shell = require('shelljs'); 15 | 16 | const addCheckmark = require('./helpers/checkmark'); 17 | const addXmark = require('./helpers/xmark'); 18 | 19 | /** 20 | * Every generated component/container is preceded by this 21 | * @type {string} 22 | */ 23 | const { BACKUPFILE_EXTENSION } = require('../generators/index'); 24 | 25 | process.chdir(path.join(__dirname, '../generators')); 26 | 27 | const plop = nodePlop('./index.js'); 28 | const componentGen = plop.getGenerator('component'); 29 | const containerGen = plop.getGenerator('container'); 30 | const languageGen = plop.getGenerator('language'); 31 | 32 | /** 33 | * Every generated component/container is preceded by this 34 | * @type {string} 35 | */ 36 | const NAMESPACE = 'RbGenerated'; 37 | 38 | /** 39 | * Return a prettified string 40 | * @param {*} data 41 | * @returns {string} 42 | */ 43 | function prettyStringify(data) { 44 | return JSON.stringify(data, null, 2); 45 | } 46 | 47 | /** 48 | * Handle results from Plop 49 | * @param {array} changes 50 | * @param {array} failures 51 | * @returns {Promise<*>} 52 | */ 53 | function handleResult({ changes, failures }) { 54 | return new Promise((resolve, reject) => { 55 | if (Array.isArray(failures) && failures.length > 0) { 56 | reject(new Error(prettyStringify(failures))); 57 | } 58 | 59 | resolve(changes); 60 | }); 61 | } 62 | 63 | /** 64 | * Feedback to user 65 | * @param {string} info 66 | * @returns {Function} 67 | */ 68 | function feedbackToUser(info) { 69 | return result => { 70 | console.info(chalk.blue(info)); 71 | return result; 72 | }; 73 | } 74 | 75 | /** 76 | * Report success 77 | * @param {string} message 78 | * @returns {Function} 79 | */ 80 | function reportSuccess(message) { 81 | return result => { 82 | addCheckmark(() => console.log(chalk.green(` ${message}`))); 83 | return result; 84 | }; 85 | } 86 | 87 | /** 88 | * Report errors 89 | * @param {string} reason 90 | * @returns {Function} 91 | */ 92 | function reportErrors(reason) { 93 | // TODO Replace with our own helpers/log that is guaranteed to be blocking? 94 | addXmark(() => console.error(chalk.red(` ${reason}`))); 95 | process.exit(1); 96 | } 97 | 98 | /** 99 | * Run eslint on all js files in the given directory 100 | * @param {string} relativePath 101 | * @returns {Promise} 102 | */ 103 | function runLintingOnDirectory(relativePath) { 104 | return new Promise((resolve, reject) => { 105 | shell.exec( 106 | `npm run lint:eslint "app/${relativePath}/**/**.js"`, 107 | { 108 | silent: true, 109 | }, 110 | code => 111 | code 112 | ? reject(new Error(`Linting error(s) in ${relativePath}`)) 113 | : resolve(relativePath), 114 | ); 115 | }); 116 | } 117 | 118 | /** 119 | * Run eslint on the given file 120 | * @param {string} filePath 121 | * @returns {Promise} 122 | */ 123 | function runLintingOnFile(filePath) { 124 | return new Promise((resolve, reject) => { 125 | shell.exec( 126 | `npm run lint:eslint "${filePath}"`, 127 | { 128 | silent: true, 129 | }, 130 | code => { 131 | if (code) { 132 | reject(new Error(`Linting errors in ${filePath}`)); 133 | } else { 134 | resolve(filePath); 135 | } 136 | }, 137 | ); 138 | }); 139 | } 140 | 141 | /** 142 | * Remove a directory 143 | * @param {string} relativePath 144 | * @returns {Promise} 145 | */ 146 | function removeDir(relativePath) { 147 | return new Promise((resolve, reject) => { 148 | try { 149 | rimraf(path.join(__dirname, '/../../app/', relativePath), err => { 150 | if (err) throw err; 151 | }); 152 | resolve(relativePath); 153 | } catch (err) { 154 | reject(err); 155 | } 156 | }); 157 | } 158 | 159 | /** 160 | * Remove a given file 161 | * @param {string} filePath 162 | * @returns {Promise} 163 | */ 164 | function removeFile(filePath) { 165 | return new Promise((resolve, reject) => { 166 | try { 167 | fs.unlink(filePath, err => { 168 | if (err) throw err; 169 | }); 170 | resolve(filePath); 171 | } catch (err) { 172 | reject(err); 173 | } 174 | }); 175 | } 176 | 177 | /** 178 | * Overwrite file from copy 179 | * @param {string} filePath 180 | * @param {string} [backupFileExtension=BACKUPFILE_EXTENSION] 181 | * @returns {Promise<*>} 182 | */ 183 | async function restoreModifiedFile( 184 | filePath, 185 | backupFileExtension = BACKUPFILE_EXTENSION, 186 | ) { 187 | return new Promise((resolve, reject) => { 188 | const targetFile = filePath.replace(`.${backupFileExtension}`, ''); 189 | try { 190 | fs.copyFile(filePath, targetFile, err => { 191 | if (err) throw err; 192 | }); 193 | resolve(targetFile); 194 | } catch (err) { 195 | reject(err); 196 | } 197 | }); 198 | } 199 | 200 | /** 201 | * Test the component generator and rollback when successful 202 | * @param {string} name - Component name 203 | * @param {string} type - Plop Action type 204 | * @returns {Promise} - Relative path to the generated component 205 | */ 206 | async function generateComponent({ name, memo }) { 207 | const targetFolder = 'components'; 208 | const componentName = `${NAMESPACE}Component${name}`; 209 | const relativePath = `${targetFolder}/${componentName}`; 210 | const component = `component/${memo ? 'Pure' : 'NotPure'}`; 211 | 212 | await componentGen 213 | .runActions({ 214 | name: componentName, 215 | memo, 216 | wantMessages: true, 217 | wantLoadable: true, 218 | }) 219 | .then(handleResult) 220 | .then(feedbackToUser(`Generated '${component}'`)) 221 | .catch(reason => reportErrors(reason)); 222 | await runLintingOnDirectory(relativePath) 223 | .then(reportSuccess(`Linting test passed for '${component}'`)) 224 | .catch(reason => reportErrors(reason)); 225 | await removeDir(relativePath) 226 | .then(feedbackToUser(`Cleanup '${component}'`)) 227 | .catch(reason => reportErrors(reason)); 228 | 229 | return component; 230 | } 231 | 232 | /** 233 | * Test the container generator and rollback when successful 234 | * @param {string} name - Container name 235 | * @param {string} type - Plop Action type 236 | * @returns {Promise} - Relative path to the generated container 237 | */ 238 | async function generateContainer({ name, memo }) { 239 | const targetFolder = 'containers'; 240 | const componentName = `${NAMESPACE}Container${name}`; 241 | const relativePath = `${targetFolder}/${componentName}`; 242 | const container = `container/${memo ? 'Pure' : 'NotPure'}`; 243 | 244 | await containerGen 245 | .runActions({ 246 | name: componentName, 247 | memo, 248 | wantHeaders: true, 249 | wantActionsAndReducer: true, 250 | wantSagas: true, 251 | wantMessages: true, 252 | wantLoadable: true, 253 | }) 254 | .then(handleResult) 255 | .then(feedbackToUser(`Generated '${container}'`)) 256 | .catch(reason => reportErrors(reason)); 257 | await runLintingOnDirectory(relativePath) 258 | .then(reportSuccess(`Linting test passed for '${container}'`)) 259 | .catch(reason => reportErrors(reason)); 260 | await removeDir(relativePath) 261 | .then(feedbackToUser(`Cleanup '${container}'`)) 262 | .catch(reason => reportErrors(reason)); 263 | 264 | return container; 265 | } 266 | 267 | /** 268 | * Generate components 269 | * @param {array} components 270 | * @returns {Promise<[string]>} 271 | */ 272 | async function generateComponents(components) { 273 | const promises = components.map(async component => { 274 | let result; 275 | 276 | if (component.kind === 'component') { 277 | result = await generateComponent(component); 278 | } else if (component.kind === 'container') { 279 | result = await generateContainer(component); 280 | } 281 | 282 | return result; 283 | }); 284 | 285 | const results = await Promise.all(promises); 286 | 287 | return results; 288 | } 289 | 290 | /** 291 | * Test the language generator and rollback when successful 292 | * @param {string} language 293 | * @returns {Promise<*>} 294 | */ 295 | async function generateLanguage(language) { 296 | // Run generator 297 | const generatedFiles = await languageGen 298 | .runActions({ language, test: true }) 299 | .then(handleResult) 300 | .then(feedbackToUser(`Added new language: '${language}'`)) 301 | .then(changes => 302 | changes.reduce((acc, change) => { 303 | const pathWithRemovedAnsiEscapeCodes = change.path.replace( 304 | /* eslint-disable-next-line no-control-regex */ 305 | /(\u001b\[3(?:4|9)m)/g, 306 | '', 307 | ); 308 | const obj = {}; 309 | obj[pathWithRemovedAnsiEscapeCodes] = change.type; 310 | return Object.assign(acc, obj); 311 | }, {}), 312 | ) 313 | .catch(reason => reportErrors(reason)); 314 | 315 | // Run eslint on modified and added JS files 316 | const lintingTasks = Object.keys(generatedFiles) 317 | .filter( 318 | filePath => 319 | generatedFiles[filePath] === 'modify' || 320 | generatedFiles[filePath] === 'add', 321 | ) 322 | .filter(filePath => filePath.endsWith('.js')) 323 | .map(async filePath => { 324 | const result = await runLintingOnFile(filePath) 325 | .then(reportSuccess(`Linting test passed for '${filePath}'`)) 326 | .catch(reason => reportErrors(reason)); 327 | 328 | return result; 329 | }); 330 | 331 | await Promise.all(lintingTasks); 332 | 333 | // Restore modified files 334 | const restoreTasks = Object.keys(generatedFiles) 335 | .filter(filePath => generatedFiles[filePath] === 'backup') 336 | .map(async filePath => { 337 | const result = await restoreModifiedFile(filePath) 338 | .then( 339 | feedbackToUser( 340 | `Restored file: '${filePath.replace( 341 | `.${BACKUPFILE_EXTENSION}`, 342 | '', 343 | )}'`, 344 | ), 345 | ) 346 | .catch(reason => reportErrors(reason)); 347 | 348 | return result; 349 | }); 350 | 351 | await Promise.all(restoreTasks); 352 | 353 | // Remove backup files and added files 354 | const removalTasks = Object.keys(generatedFiles) 355 | .filter( 356 | filePath => 357 | generatedFiles[filePath] === 'backup' || 358 | generatedFiles[filePath] === 'add', 359 | ) 360 | .map(async filePath => { 361 | const result = await removeFile(filePath) 362 | .then(feedbackToUser(`Removed '${filePath}'`)) 363 | .catch(reason => reportErrors(reason)); 364 | 365 | return result; 366 | }); 367 | 368 | await Promise.all(removalTasks); 369 | 370 | return language; 371 | } 372 | 373 | /** 374 | * Run 375 | */ 376 | (async function() { 377 | await generateComponents([ 378 | { kind: 'component', name: 'Component', memo: false }, 379 | { kind: 'component', name: 'MemoizedComponent', memo: true }, 380 | { kind: 'container', name: 'Container', memo: false }, 381 | { kind: 'container', name: 'MemoizedContainer', memo: true }, 382 | ]).catch(reason => reportErrors(reason)); 383 | 384 | await generateLanguage('fr').catch(reason => reportErrors(reason)); 385 | })(); 386 | -------------------------------------------------------------------------------- /internals/scripts/helpers/checkmark.js: -------------------------------------------------------------------------------- 1 | const chalk = require('chalk'); 2 | 3 | /** 4 | * Adds mark check symbol 5 | */ 6 | function addCheckMark(callback) { 7 | process.stdout.write(chalk.green(' ✓')); 8 | if (callback) callback(); 9 | } 10 | 11 | module.exports = addCheckMark; 12 | -------------------------------------------------------------------------------- /internals/scripts/helpers/get-required-node-npm-versions.js: -------------------------------------------------------------------------------- 1 | const { 2 | engines: { node, npm }, 3 | } = require('../../../package.json'); 4 | 5 | module.exports = { 6 | requiredNodeVersion: node.match(/([0-9.]+)/g)[0], 7 | requiredNpmVersion: npm.match(/([0-9.]+)/g)[0], 8 | }; 9 | -------------------------------------------------------------------------------- /internals/scripts/helpers/git-utils.js: -------------------------------------------------------------------------------- 1 | const { exec } = require('child_process'); 2 | const shell = require('shelljs'); 3 | 4 | /** 5 | * Initialize a new Git repository 6 | * @returns {Promise} 7 | */ 8 | function initGitRepository() { 9 | return new Promise((resolve, reject) => { 10 | exec('git init', (err, stdout) => { 11 | if (err) { 12 | reject(new Error(err)); 13 | } else { 14 | resolve(stdout); 15 | } 16 | }); 17 | }); 18 | } 19 | 20 | /** 21 | * Add all files to the new repository 22 | * @returns {Promise} 23 | */ 24 | function addToGitRepository() { 25 | return new Promise((resolve, reject) => { 26 | exec('git add .', (err, stdout) => { 27 | if (err) { 28 | reject(new Error(err)); 29 | } else { 30 | resolve(stdout); 31 | } 32 | }); 33 | }); 34 | } 35 | 36 | /** 37 | * Initial Git commit 38 | * @returns {Promise} 39 | */ 40 | function commitToGitRepository() { 41 | return new Promise((resolve, reject) => { 42 | exec('git commit -m "Initial commit"', (err, stdout) => { 43 | if (err) { 44 | reject(new Error(err)); 45 | } else { 46 | resolve(stdout); 47 | } 48 | }); 49 | }); 50 | } 51 | 52 | /** 53 | * Checks if we are under Git version control 54 | * @returns {Promise} 55 | */ 56 | function hasGitRepository() { 57 | return new Promise((resolve, reject) => { 58 | exec('git status', (err, stdout) => { 59 | if (err) { 60 | reject(new Error(err)); 61 | } 62 | 63 | const regex = new RegExp(/fatal:\s+Not\s+a\s+git\s+repository/, 'i'); 64 | 65 | /* eslint-disable-next-line no-unused-expressions */ 66 | regex.test(stdout) ? resolve(false) : resolve(true); 67 | }); 68 | }); 69 | } 70 | 71 | /** 72 | * Checks if this is a clone from our repo 73 | * @returns {Promise} 74 | */ 75 | function checkIfRepositoryIsAClone() { 76 | return new Promise((resolve, reject) => { 77 | exec('git remote -v', (err, stdout) => { 78 | if (err) { 79 | reject(new Error(err)); 80 | } 81 | 82 | const isClonedRepo = stdout 83 | .split(/\r?\n/) 84 | .map(line => line.trim()) 85 | .filter(line => line.startsWith('origin')) 86 | .filter(line => /react-boilerplate\/react-boilerplate\.git/.test(line)) 87 | .length; 88 | 89 | resolve(!!isClonedRepo); 90 | }); 91 | }); 92 | } 93 | 94 | /** 95 | * Remove the current Git repository 96 | * @returns {Promise} 97 | */ 98 | function removeGitRepository() { 99 | return new Promise((resolve, reject) => { 100 | try { 101 | shell.rm('-rf', '.git/'); 102 | resolve(); 103 | } catch (err) { 104 | reject(err); 105 | } 106 | }); 107 | } 108 | 109 | module.exports = { 110 | initGitRepository, 111 | addToGitRepository, 112 | commitToGitRepository, 113 | hasGitRepository, 114 | checkIfRepositoryIsAClone, 115 | removeGitRepository, 116 | }; 117 | -------------------------------------------------------------------------------- /internals/scripts/helpers/progress.js: -------------------------------------------------------------------------------- 1 | const readline = require('readline'); 2 | 3 | /** 4 | * Adds an animated progress indicator 5 | * 6 | * @param {string} message The message to write next to the indicator 7 | * @param {number} [amountOfDots=3] The amount of dots you want to animate 8 | */ 9 | function animateProgress(message, amountOfDots = 3) { 10 | let i = 0; 11 | return setInterval(() => { 12 | readline.cursorTo(process.stdout, 0); 13 | i = (i + 1) % (amountOfDots + 1); 14 | const dots = new Array(i + 1).join('.'); 15 | process.stdout.write(message + dots); 16 | }, 500); 17 | } 18 | 19 | module.exports = animateProgress; 20 | -------------------------------------------------------------------------------- /internals/scripts/helpers/xmark.js: -------------------------------------------------------------------------------- 1 | const chalk = require('chalk'); 2 | 3 | /** 4 | * Adds mark cross symbol 5 | */ 6 | function addXMark(callback) { 7 | process.stdout.write(chalk.red(' ✘')); 8 | if (callback) callback(); 9 | } 10 | 11 | module.exports = addXMark; 12 | -------------------------------------------------------------------------------- /internals/scripts/setup.js: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env node 2 | 3 | const { exec } = require('child_process'); 4 | const path = require('path'); 5 | const fs = require('fs'); 6 | const readline = require('readline'); 7 | const compareVersions = require('compare-versions'); 8 | const chalk = require('chalk'); 9 | 10 | const animateProgress = require('./helpers/progress'); 11 | const addCheckMark = require('./helpers/checkmark'); 12 | const addXMark = require('./helpers/xmark'); 13 | const { 14 | requiredNpmVersion, 15 | requiredNodeVersion, 16 | } = require('./helpers/get-required-node-npm-versions'); 17 | const { 18 | initGitRepository, 19 | addToGitRepository, 20 | commitToGitRepository, 21 | hasGitRepository, 22 | checkIfRepositoryIsAClone, 23 | removeGitRepository, 24 | } = require('./helpers/git-utils'); 25 | 26 | process.stdin.resume(); 27 | process.stdin.setEncoding('utf8'); 28 | 29 | process.stdout.write('\n'); 30 | let interval = -1; 31 | 32 | /** 33 | * Deletes a file in the current directory 34 | * @param {string} file 35 | * @returns {Promise} 36 | */ 37 | function deleteFileInCurrentDir(file) { 38 | return new Promise((resolve, reject) => { 39 | fs.unlink(path.join(__dirname, file), err => reject(new Error(err))); 40 | resolve(); 41 | }); 42 | } 43 | 44 | /** 45 | * Ask user if he wants to start with a new repository 46 | * @returns {Promise} 47 | */ 48 | function askUserIfWeShouldRemoveRepo() { 49 | return new Promise(resolve => { 50 | process.stdout.write( 51 | '\nDo you want to delete the current git repository and create a new one? [Y/n] ', 52 | ); 53 | process.stdin.resume(); 54 | process.stdin.on('data', pData => { 55 | const answer = 56 | pData 57 | .toString() 58 | .trim() 59 | .toLowerCase() || 'y'; 60 | 61 | /* eslint-disable-next-line no-unused-expressions */ 62 | answer === 'y' ? resolve(true) : resolve(false); 63 | }); 64 | }); 65 | } 66 | 67 | /** 68 | * Checks if we are under Git version control. 69 | * If we are and this a clone of our repository the user is given a choice to 70 | * either keep it or start with a new repository. 71 | * @returns {Promise} 72 | */ 73 | async function cleanCurrentRepository() { 74 | const hasGitRepo = await hasGitRepository().catch(reason => 75 | reportError(reason), 76 | ); 77 | 78 | // We are not under Git version control. So, do nothing 79 | if (hasGitRepo === false) { 80 | return false; 81 | } 82 | 83 | const isClone = await checkIfRepositoryIsAClone().catch(reason => 84 | reportError(reason), 85 | ); 86 | 87 | // Not our clone so do nothing 88 | if (isClone === false) { 89 | return false; 90 | } 91 | 92 | const answer = await askUserIfWeShouldRemoveRepo(); 93 | 94 | if (answer === true) { 95 | process.stdout.write('Removing current repository'); 96 | await removeGitRepository().catch(reason => reportError(reason)); 97 | addCheckMark(); 98 | } 99 | 100 | return answer; 101 | } 102 | 103 | /** 104 | * Check Node.js version 105 | * @param {!number} minimalNodeVersion 106 | * @returns {Promise} 107 | */ 108 | function checkNodeVersion(minimalNodeVersion) { 109 | return new Promise((resolve, reject) => { 110 | exec('node --version', (err, stdout) => { 111 | const nodeVersion = stdout.trim(); 112 | if (err) { 113 | reject(new Error(err)); 114 | } else if (compareVersions(nodeVersion, minimalNodeVersion) === -1) { 115 | reject( 116 | new Error( 117 | `You need Node v${minimalNodeVersion} or above but you have v${nodeVersion}`, 118 | ), 119 | ); 120 | } 121 | 122 | resolve('Node version OK'); 123 | }); 124 | }); 125 | } 126 | 127 | /** 128 | * Check NPM version 129 | * @param {!number} minimalNpmVersion 130 | * @returns {Promise} 131 | */ 132 | function checkNpmVersion(minimalNpmVersion) { 133 | return new Promise((resolve, reject) => { 134 | exec('npm --version', (err, stdout) => { 135 | const npmVersion = stdout.trim(); 136 | if (err) { 137 | reject(new Error(err)); 138 | } else if (compareVersions(npmVersion, minimalNpmVersion) === -1) { 139 | reject( 140 | new Error( 141 | `You need NPM v${minimalNpmVersion} or above but you have v${npmVersion}`, 142 | ), 143 | ); 144 | } 145 | 146 | resolve('NPM version OK'); 147 | }); 148 | }); 149 | } 150 | 151 | /** 152 | * Install all packages 153 | * @returns {Promise} 154 | */ 155 | function installPackages() { 156 | return new Promise((resolve, reject) => { 157 | process.stdout.write( 158 | '\nInstalling dependencies... (This might take a while)', 159 | ); 160 | 161 | setTimeout(() => { 162 | readline.cursorTo(process.stdout, 0); 163 | interval = animateProgress('Installing dependencies'); 164 | }, 500); 165 | 166 | exec('npm install', err => { 167 | if (err) { 168 | reject(new Error(err)); 169 | } 170 | 171 | clearInterval(interval); 172 | addCheckMark(); 173 | resolve('Packages installed'); 174 | }); 175 | }); 176 | } 177 | 178 | /** 179 | * Report the the given error and exits the setup 180 | * @param {string} error 181 | */ 182 | function reportError(error) { 183 | clearInterval(interval); 184 | 185 | if (error) { 186 | process.stdout.write('\n\n'); 187 | addXMark(() => process.stderr.write(chalk.red(` ${error}\n`))); 188 | process.exit(1); 189 | } 190 | } 191 | 192 | /** 193 | * End the setup process 194 | */ 195 | function endProcess() { 196 | clearInterval(interval); 197 | process.stdout.write(chalk.blue('\n\nDone!\n')); 198 | process.exit(0); 199 | } 200 | 201 | /** 202 | * Run 203 | */ 204 | (async () => { 205 | const repoRemoved = await cleanCurrentRepository(); 206 | 207 | await checkNodeVersion(requiredNodeVersion).catch(reason => 208 | reportError(reason), 209 | ); 210 | 211 | await checkNpmVersion(requiredNpmVersion).catch(reason => 212 | reportError(reason), 213 | ); 214 | 215 | await installPackages().catch(reason => reportError(reason)); 216 | await deleteFileInCurrentDir('setup.js').catch(reason => reportError(reason)); 217 | 218 | if (repoRemoved) { 219 | process.stdout.write('\n'); 220 | interval = animateProgress('Initialising new repository'); 221 | process.stdout.write('Initialising new repository'); 222 | 223 | try { 224 | await initGitRepository(); 225 | await addToGitRepository(); 226 | await commitToGitRepository(); 227 | } catch (err) { 228 | reportError(err); 229 | } 230 | 231 | addCheckMark(); 232 | clearInterval(interval); 233 | } 234 | 235 | endProcess(); 236 | })(); 237 | -------------------------------------------------------------------------------- /internals/webpack/webpack.base.babel.js: -------------------------------------------------------------------------------- 1 | /** 2 | * COMMON WEBPACK CONFIGURATION 3 | */ 4 | 5 | const path = require('path'); 6 | const webpack = require('webpack'); 7 | const WebpackBar = require('webpackbar'); 8 | require('pretty-error').start(); 9 | const DashboardPlugin = require('webpack-dashboard/plugin'); 10 | // enable when you need cool stuff 11 | // const Jarvis = require('webpack-jarvis'); 12 | // enable when you want to check sizes. 13 | // const WebpackMonitor = require('webpack-monitor'); 14 | // const BundleAnalyzerPlugin = require('@bundle-analyzer/webpack-plugin'); 15 | const WebpackShower = require('webpack-shower'); 16 | 17 | module.exports = (options) => ({ 18 | mode: options.mode, 19 | entry: options.entry, 20 | output: { 21 | // Compile into js/build.js 22 | path: path.resolve(process.cwd(), 'build'), 23 | publicPath: '/', 24 | 25 | // Merge with env dependent settings 26 | ...options.output, 27 | }, 28 | optimization: options.optimization, 29 | module: { 30 | rules: [ 31 | { 32 | test: /\.jsx?$/, // Transform all .js and .jsx files required somewhere with Babel 33 | exclude: /node_modules/, 34 | use: { 35 | loader: 'babel-loader', 36 | }, 37 | }, 38 | { 39 | test: /\.s[ac]ss$/i, 40 | use: [ 41 | // Creates `style` nodes from JS strings 42 | 'style-loader', 43 | // Translates CSS into CommonJS 44 | 'css-loader', 45 | // Compiles Sass to CSS 46 | 'sass-loader', 47 | ], 48 | }, 49 | { 50 | // Preprocess our own .css files 51 | // This is the place to add your own loaders (e.g. sass/less etc.) 52 | // for a list of loaders, see https://webpack.js.org/loaders/#styling 53 | test: /\.css$/, 54 | exclude: /node_modules/, 55 | use: ['style-loader', 'css-loader'], 56 | }, 57 | { 58 | // Preprocess 3rd party .css files located in node_modules 59 | test: /\.css$/, 60 | include: /node_modules/, 61 | use: ['style-loader', 'css-loader'], 62 | }, 63 | { 64 | test: /\.(eot|otf|ttf|woff|woff2)$/, 65 | use: 'file-loader', 66 | }, 67 | { 68 | test: /\.svg$/, 69 | use: [ 70 | { 71 | loader: 'svg-url-loader', 72 | options: { 73 | // Inline files smaller than 10 kB 74 | limit: 10 * 1024, 75 | }, 76 | }, 77 | ], 78 | }, 79 | { 80 | test: /\.(jpg|png|gif)$/, 81 | use: [ 82 | { 83 | loader: 'url-loader', 84 | options: { 85 | // Inline files smaller than 10 kB 86 | limit: 10 * 1024, 87 | }, 88 | }, 89 | { 90 | loader: 'image-webpack-loader', 91 | options: { 92 | mozjpeg: { 93 | enabled: false, 94 | // NOTE: mozjpeg is disabled as it causes errors in some Linux environments 95 | // Try enabling it in your environment by switching the config to: 96 | // enabled: true, 97 | // progressive: true, 98 | }, 99 | gifsicle: { 100 | interlaced: false, 101 | }, 102 | optipng: { 103 | optimizationLevel: 7, 104 | }, 105 | pngquant: { 106 | quality: [0.65, 0.9], 107 | speed: 4, 108 | }, 109 | }, 110 | }, 111 | ], 112 | }, 113 | { 114 | test: /\.html$/, 115 | use: 'html-loader', 116 | }, 117 | { 118 | test: /\.(mp4|webm)$/, 119 | use: { 120 | loader: 'url-loader', 121 | options: { 122 | limit: 10000, 123 | }, 124 | }, 125 | }, 126 | ], 127 | }, 128 | 129 | plugins: options.plugins.concat([ 130 | // Always expose NODE_ENV to webpack, in order to use `process.env.NODE_ENV` 131 | // inside your code for any environment checks; Terser will automatically 132 | // drop any unreachable code. 133 | new webpack.EnvironmentPlugin({ 134 | NODE_ENV: 'development', 135 | }), 136 | new WebpackBar(), 137 | new DashboardPlugin(), 138 | new WebpackShower(), 139 | // new Jarvis({ 140 | // port: 3001, 141 | // watchOnly: false, // optional: set a port 142 | // }), 143 | // new WebpackMonitor({ 144 | // capture: true, 145 | // launch: true, 146 | // }), 147 | ]), 148 | resolve: { 149 | modules: ['node_modules', 'app'], 150 | extensions: ['.js', '.jsx', '.react.js'], 151 | alias: { 152 | 'react-dom': '@hot-loader/react-dom', 153 | }, 154 | }, 155 | stats: { 156 | all: false, 157 | }, 158 | devtool: options.devtool, 159 | target: 'web', // Make web variables accessible to webpack, e.g. window 160 | performance: options.performance || {}, 161 | }); 162 | -------------------------------------------------------------------------------- /internals/webpack/webpack.dev.babel.js: -------------------------------------------------------------------------------- 1 | /** 2 | * DEVELOPMENT WEBPACK CONFIGURATION 3 | */ 4 | 5 | const path = require('path'); 6 | const webpack = require('webpack'); 7 | const HtmlWebpackPlugin = require('html-webpack-plugin'); 8 | const CircularDependencyPlugin = require('circular-dependency-plugin'); 9 | const ErrorOverlayPlugin = require('error-overlay-webpack-plugin'); 10 | const HardSourceWebpackPlugin = require('hard-source-webpack-plugin'); 11 | 12 | module.exports = require('./webpack.base.babel')({ 13 | mode: 'development', 14 | 15 | // Add hot reloading in development 16 | entry: [ 17 | 'react-hot-loader/patch', 18 | 'webpack-hot-middleware/client?reload=true', 19 | path.join(process.cwd(), 'app/app.js'), // Start with js/app.js 20 | ], 21 | 22 | // Don't use hashes in dev mode for better performance 23 | output: { 24 | filename: '[name].js', 25 | chunkFilename: '[name].chunk.js', 26 | }, 27 | 28 | optimization: { 29 | splitChunks: { 30 | chunks: 'all', 31 | }, 32 | }, 33 | 34 | // Add development plugins 35 | plugins: [ 36 | new ErrorOverlayPlugin(), 37 | new HardSourceWebpackPlugin(), 38 | new webpack.HotModuleReplacementPlugin(), // Tell webpack we want hot reloading 39 | new HtmlWebpackPlugin({ 40 | inject: true, // Inject all files that are generated by webpack, e.g. bundle.js 41 | template: 'app/index.html', 42 | }), 43 | new CircularDependencyPlugin({ 44 | exclude: /a\.js|node_modules/, // exclude node_modules 45 | failOnError: false, // show a warning when there is a circular dependency 46 | }), 47 | ], 48 | 49 | // Emit a source map for easier debugging 50 | // See https://webpack.js.org/configuration/devtool/#devtool 51 | devtool: 'cheap-module-source-map', 52 | 53 | performance: { 54 | hints: false, 55 | }, 56 | }); 57 | -------------------------------------------------------------------------------- /internals/webpack/webpack.prod.babel.js: -------------------------------------------------------------------------------- 1 | // Important modules this config uses 2 | const path = require('path'); 3 | const HtmlWebpackPlugin = require('html-webpack-plugin'); 4 | const WebpackPwaManifest = require('webpack-pwa-manifest'); 5 | const OfflinePlugin = require('offline-plugin'); 6 | const { HashedModuleIdsPlugin } = require('webpack'); 7 | const TerserPlugin = require('terser-webpack-plugin'); 8 | const CompressionPlugin = require('compression-webpack-plugin'); 9 | 10 | module.exports = require('./webpack.base.babel')({ 11 | mode: 'production', 12 | 13 | // In production, we skip all hot-reloading stuff 14 | entry: path.join(process.cwd(), 'app/app.js'), 15 | 16 | // Utilize long-term caching by adding content hashes (not compilation hashes) to compiled assets 17 | output: { 18 | filename: '[name].[chunkhash].js', 19 | chunkFilename: '[name].[chunkhash].chunk.js', 20 | }, 21 | 22 | optimization: { 23 | minimize: true, 24 | minimizer: [ 25 | new TerserPlugin({ 26 | terserOptions: { 27 | warnings: false, 28 | compress: { 29 | comparisons: false, 30 | }, 31 | parse: {}, 32 | mangle: true, 33 | output: { 34 | comments: false, 35 | ascii_only: true, 36 | }, 37 | }, 38 | sourceMap: true, 39 | }), 40 | ], 41 | nodeEnv: 'production', 42 | sideEffects: true, 43 | concatenateModules: true, 44 | runtimeChunk: 'single', 45 | splitChunks: { 46 | chunks: 'all', 47 | maxInitialRequests: 10, 48 | minSize: 0, 49 | cacheGroups: {}, 50 | }, 51 | }, 52 | 53 | plugins: [ 54 | // Minify and optimize the index.html 55 | new HtmlWebpackPlugin({ 56 | template: 'app/index.html', 57 | minify: { 58 | removeComments: true, 59 | collapseWhitespace: true, 60 | removeRedundantAttributes: true, 61 | useShortDoctype: true, 62 | removeEmptyAttributes: true, 63 | removeStyleLinkTypeAttributes: true, 64 | keepClosingSlash: true, 65 | minifyJS: true, 66 | minifyCSS: true, 67 | minifyURLs: true, 68 | }, 69 | inject: true, 70 | }), 71 | 72 | // Put it in the end to capture all the HtmlWebpackPlugin's 73 | // assets manipulations and do leak its manipulations to HtmlWebpackPlugin 74 | new OfflinePlugin({ 75 | relativePaths: false, 76 | publicPath: '/', 77 | appShell: '/', 78 | 79 | // No need to cache .htaccess. See http://mxs.is/googmp, 80 | // this is applied before any match in `caches` section 81 | excludes: ['.htaccess'], 82 | 83 | caches: { 84 | main: [':rest:'], 85 | 86 | // All chunks marked as `additional`, loaded after main section 87 | // and do not prevent SW to install. Change to `optional` if 88 | // do not want them to be preloaded at all (cached only when first loaded) 89 | additional: ['*.chunk.js'], 90 | }, 91 | 92 | // Removes warning for about `additional` section usage 93 | safeToUseOptionalCaches: true, 94 | }), 95 | 96 | new CompressionPlugin({ 97 | algorithm: 'gzip', 98 | test: /\.js$|\.css$|\.html$/, 99 | threshold: 10240, 100 | minRatio: 0.8, 101 | }), 102 | 103 | new WebpackPwaManifest({ 104 | name: 'Infinity React Boilerplate', 105 | short_name: 'Infinity React Boilerplate', 106 | description: 'My Infinity React Boilerplate-based project!', 107 | background_color: '#fafafa', 108 | theme_color: '#000', 109 | inject: true, 110 | ios: true, 111 | icons: [ 112 | { 113 | src: path.resolve('app/images/icon-512x512.png'), 114 | sizes: [72, 96, 128, 144, 192, 384, 512], 115 | }, 116 | { 117 | src: path.resolve('app/images/icon-512x512.png'), 118 | sizes: [120, 152, 167, 180], 119 | ios: true, 120 | }, 121 | ], 122 | }), 123 | 124 | new HashedModuleIdsPlugin({ 125 | hashFunction: 'sha256', 126 | hashDigest: 'hex', 127 | hashDigestLength: 20, 128 | }), 129 | ], 130 | 131 | performance: { 132 | assetFilter: assetFilename => 133 | !/(\.map$)|(^(main\.|favicon\.))/.test(assetFilename), 134 | }, 135 | }); 136 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "react-redux-boilerplate", 3 | "version": "1.0.0", 4 | "description": "A minimal stripped down offline-first react-redux-boilerplate with best performance and pratices.", 5 | "repository": { 6 | "type": "git", 7 | "url": "git://github.com/EvilSpark/react-redux-boilerplate.git" 8 | }, 9 | "engines": { 10 | "npm": ">=5", 11 | "node": ">=8.15.1" 12 | }, 13 | "license": "MIT", 14 | "scripts": { 15 | "analyze:clean": "rimraf stats.json", 16 | "preanalyze": "npm run analyze:clean", 17 | "analyze": "node ./internals/scripts/analyze.js", 18 | "prebuild": "npm run build:clean", 19 | "npmcheckversion": "node ./internals/scripts/npmcheckversion.js", 20 | "build": "cross-env NODE_ENV=production webpack --config internals/webpack/webpack.prod.babel.js --color -p --progress --hide-modules --display-optimization-bailout", 21 | "build:clean": "rimraf ./build", 22 | "start": "cross-env NODE_ENV=development node server", 23 | "dashboard": "cross-env NODE_ENV=development webpack-dashboard -m -- node server", 24 | "api": "json-server app/components/common/data/api.js --port 4000", 25 | "start:tunnel": "cross-env NODE_ENV=development ENABLE_TUNNEL=true node server", 26 | "start:production": "npm run build && npm run start:prod", 27 | "start:prod": "cross-env NODE_ENV=production node server", 28 | "presetup": "npm i chalk shelljs compare-versions --no-save", 29 | "setup": "node ./internals/scripts/setup.js", 30 | "clean": "node ./internals/scripts/clean.js", 31 | "clean:all": "npm run analyze:clean && npm run test:clean && npm run build:clean", 32 | "generate": "plop --plopfile internals/generators/index.js", 33 | "lint": "npm run lint:js && npm run lint:css", 34 | "lint:css": "stylelint app/**/*.js", 35 | "lint:eslint": "eslint --ignore-path .gitignore --ignore-pattern internals/scripts", 36 | "lint:eslint:fix": "eslint --ignore-path .gitignore --ignore-pattern internals/scripts --fix", 37 | "lint:js": "npm run lint:eslint -- . ", 38 | "prettify": "prettier --write" 39 | }, 40 | "lint-staged": { 41 | "*.{js,jsx}": [ 42 | "npm run lint:eslint:fix", 43 | "git add --force" 44 | ], 45 | "*.{md,json}": [ 46 | "prettier --write", 47 | "git add --force" 48 | ] 49 | }, 50 | "husky": { 51 | "hooks": { 52 | "pre-commit": "lint-staged" 53 | } 54 | }, 55 | "resolutions": { 56 | "babel-core": "7.0.0-bridge.0" 57 | }, 58 | "dependencies": { 59 | "@hot-loader/react-dom": "16.13.0", 60 | "@reduxjs/toolkit": "1.5.0", 61 | "chalk": "4.0.0", 62 | "compression": "1.7.4", 63 | "connected-react-router": "6.8.0", 64 | "cross-env": "7.0.2", 65 | "express": "4.17.1", 66 | "fontfaceobserver": "2.1.0", 67 | "history": "4.10.1", 68 | "hoist-non-react-statics": "3.3.2", 69 | "immer": "8.0.1", 70 | "intl": "1.2.5", 71 | "invariant": "2.2.4", 72 | "ip": "1.1.5", 73 | "lodash": "4.17.15", 74 | "minimist": "1.2.5", 75 | "offline-plugin": "5.0.7", 76 | "pretty-error": "2.1.1", 77 | "prop-types": "15.7.2", 78 | "react": "16.13.1", 79 | "react-app-polyfill": "1.0.6", 80 | "react-dom": "16.13.1", 81 | "react-helmet-async": "1.0.6", 82 | "react-hot-loader": "4.12.21", 83 | "react-is": "16.13.1", 84 | "react-redux": "7.2.0", 85 | "react-router-dom": "5.2.0", 86 | "redux-injectors": "1.3.0", 87 | "redux-saga": "1.1.3", 88 | "reselect": "4.0.0", 89 | "sanitize.css": "11.0.0", 90 | "styled-components": "5.1.0" 91 | }, 92 | "devDependencies": { 93 | "@babel/cli": "7.8.4", 94 | "@babel/core": "7.9.6", 95 | "@babel/plugin-proposal-class-properties": "7.8.3", 96 | "@babel/plugin-syntax-dynamic-import": "7.8.3", 97 | "@babel/plugin-transform-modules-commonjs": "7.9.6", 98 | "@babel/plugin-transform-react-constant-elements": "7.9.0", 99 | "@babel/plugin-transform-react-inline-elements": "7.9.0", 100 | "@babel/preset-env": "7.9.6", 101 | "@babel/preset-react": "7.9.4", 102 | "@babel/register": "7.9.0", 103 | "add-asset-html-webpack-plugin": "3.1.3", 104 | "babel-core": "7.0.0-bridge.0", 105 | "babel-eslint": "10.1.0", 106 | "babel-loader": "8.1.0", 107 | "babel-plugin-dynamic-import-node": "2.3.3", 108 | "babel-plugin-lodash": "3.3.4", 109 | "babel-plugin-styled-components": "1.10.7", 110 | "babel-plugin-transform-react-remove-prop-types": "0.4.24", 111 | "circular-dependency-plugin": "5.2.0", 112 | "compare-versions": "3.6.0", 113 | "compression-webpack-plugin": "4.0.0", 114 | "css-loader": "3.5.3", 115 | "error-overlay-webpack-plugin": "0.4.1", 116 | "eslint": "7.0.0", 117 | "eslint-config-airbnb": "18.1.0", 118 | "eslint-config-airbnb-base": "14.1.0", 119 | "eslint-config-prettier": "6.11.0", 120 | "eslint-import-resolver-webpack": "0.12.1", 121 | "eslint-plugin-import": "2.20.2", 122 | "eslint-plugin-jsx-a11y": "6.2.3", 123 | "eslint-plugin-prettier": "3.1.3", 124 | "eslint-plugin-react": "7.20.0", 125 | "eslint-plugin-react-hooks": "4.0.2", 126 | "eslint-plugin-redux-saga": "1.1.3", 127 | "file-loader": "6.0.0", 128 | "hard-source-webpack-plugin": "0.13.1", 129 | "html-loader": "1.1.0", 130 | "html-webpack-plugin": "4.3.0", 131 | "husky": "4.2.5", 132 | "image-webpack-loader": "6.0.0", 133 | "imports-loader": "0.8.0", 134 | "lint-staged": "10.2.2", 135 | "ngrok": "3.2.7", 136 | "node-plop": "0.25.0", 137 | "node-sass": "4.14.1", 138 | "null-loader": "4.0.0", 139 | "plop": "2.6.0", 140 | "prettier": "2.0.5", 141 | "react-test-renderer": "16.13.1", 142 | "rimraf": "3.0.2", 143 | "sass-loader": "8.0.2", 144 | "shelljs": "0.8.4", 145 | "style-loader": "1.2.1", 146 | "stylelint": "13.4.0", 147 | "stylelint-config-recommended": "3.0.0", 148 | "stylelint-config-styled-components": "0.1.1", 149 | "stylelint-processor-styled-components": "1.10.0", 150 | "svg-url-loader": "5.0.0", 151 | "terser-webpack-plugin": "2.3.6", 152 | "url-loader": "4.1.0", 153 | "webpack": "4.43.0", 154 | "webpack-cli": "3.3.11", 155 | "webpack-dashboard": "3.2.0", 156 | "webpack-dev-middleware": "3.7.2", 157 | "webpack-hot-middleware": "2.25.0", 158 | "webpack-pwa-manifest": "4.2.0", 159 | "webpack-shower": "1.7.2", 160 | "webpackbar": "4.0.0", 161 | "whatwg-fetch": "3.0.0" 162 | } 163 | } 164 | -------------------------------------------------------------------------------- /renovate.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": [ 3 | "config:base", 4 | "schedule:earlyMondays" 5 | ], 6 | "baseBranches": [ 7 | "Dev" 8 | ], 9 | "commitBody": [ 10 | "[skip-ci]" 11 | ] 12 | } 13 | -------------------------------------------------------------------------------- /server/argv.js: -------------------------------------------------------------------------------- 1 | module.exports = require('minimist')(process.argv.slice(2)); 2 | -------------------------------------------------------------------------------- /server/index.js: -------------------------------------------------------------------------------- 1 | /* eslint consistent-return:0 import/order:0 */ 2 | 3 | const express = require('express'); 4 | const logger = require('./logger'); 5 | 6 | const argv = require('./argv'); 7 | const port = require('./port'); 8 | const setup = require('./middlewares/frontendMiddleware'); 9 | const isDev = process.env.NODE_ENV !== 'production'; 10 | const ngrok = 11 | (isDev && process.env.ENABLE_TUNNEL) || argv.tunnel 12 | ? require('ngrok') 13 | : false; 14 | const { resolve } = require('path'); 15 | const app = express(); 16 | 17 | // If you need a backend, e.g. an API, add your custom backend-specific middleware here 18 | // app.use('/api', myApi); 19 | 20 | // In production we need to pass these values in instead of relying on webpack 21 | setup(app, { 22 | outputPath: resolve(process.cwd(), 'build'), 23 | publicPath: '/', 24 | }); 25 | 26 | // get the intended host and port number, use localhost and port 3000 if not provided 27 | const customHost = argv.host || process.env.HOST; 28 | const host = customHost || null; // Let http.Server use its default IPv6/4 host 29 | const prettyHost = customHost || 'localhost'; 30 | 31 | // use the gzipped bundle 32 | app.get('*.js', (req, res, next) => { 33 | req.url = req.url + '.gz'; // eslint-disable-line 34 | res.set('Content-Encoding', 'gzip'); 35 | next(); 36 | }); 37 | 38 | // Start your app. 39 | app.listen(port, host, async err => { 40 | if (err) { 41 | return logger.error(err.message); 42 | } 43 | 44 | // Connect to ngrok in dev mode 45 | if (ngrok) { 46 | let url; 47 | try { 48 | url = await ngrok.connect(port); 49 | } catch (e) { 50 | return logger.error(e); 51 | } 52 | logger.appStarted(port, prettyHost, url); 53 | } else { 54 | logger.appStarted(port, prettyHost); 55 | } 56 | }); 57 | -------------------------------------------------------------------------------- /server/logger.js: -------------------------------------------------------------------------------- 1 | /* eslint-disable no-console */ 2 | 3 | const chalk = require('chalk'); 4 | const ip = require('ip'); 5 | 6 | const divider = chalk.gray('\n-----------------------------------'); 7 | 8 | /** 9 | * Logger middleware, you can customize it to make messages more personal 10 | */ 11 | const logger = { 12 | // Called whenever there's an error on the server we want to print 13 | error: err => { 14 | console.error(chalk.red(err)); 15 | }, 16 | 17 | // Called when express.js app starts on given port w/o errors 18 | appStarted: (port, host, tunnelStarted) => { 19 | console.log(`Server started ! ${chalk.green('✓')}`); 20 | 21 | // If the tunnel started, log that and the URL it's available at 22 | if (tunnelStarted) { 23 | console.log(`Tunnel initialised ${chalk.green('✓')}`); 24 | } 25 | 26 | console.log(` 27 | ${chalk.bold('Access URLs:')}${divider} 28 | Localhost: ${chalk.magenta(`http://${host}:${port}`)} 29 | LAN: ${chalk.magenta(`http://${ip.address()}:${port}`) + 30 | (tunnelStarted 31 | ? `\n Proxy: ${chalk.magenta(tunnelStarted)}` 32 | : '')}${divider} 33 | ${chalk.blue(`Press ${chalk.italic('CTRL-C')} to stop`)} 34 | `); 35 | }, 36 | }; 37 | 38 | module.exports = logger; 39 | -------------------------------------------------------------------------------- /server/middlewares/addDevMiddlewares.js: -------------------------------------------------------------------------------- 1 | const path = require('path'); 2 | const webpack = require('webpack'); 3 | const webpackDevMiddleware = require('webpack-dev-middleware'); 4 | const webpackHotMiddleware = require('webpack-hot-middleware'); 5 | 6 | function createWebpackMiddleware(compiler, publicPath) { 7 | return webpackDevMiddleware(compiler, { 8 | logLevel: 'warn', 9 | publicPath, 10 | silent: true, 11 | stats: 'errors-only', 12 | }); 13 | } 14 | 15 | module.exports = function addDevMiddlewares(app, webpackConfig) { 16 | const compiler = webpack(webpackConfig); 17 | const middleware = createWebpackMiddleware( 18 | compiler, 19 | webpackConfig.output.publicPath, 20 | ); 21 | 22 | app.use(middleware); 23 | app.use(webpackHotMiddleware(compiler)); 24 | 25 | // Since webpackDevMiddleware uses memory-fs internally to store build 26 | // artifacts, we use it instead 27 | const fs = middleware.fileSystem; 28 | 29 | app.get('*', (req, res) => { 30 | fs.readFile(path.join(compiler.outputPath, 'index.html'), (err, file) => { 31 | if (err) { 32 | res.sendStatus(404); 33 | } else { 34 | res.send(file.toString()); 35 | } 36 | }); 37 | }); 38 | }; 39 | -------------------------------------------------------------------------------- /server/middlewares/addProdMiddlewares.js: -------------------------------------------------------------------------------- 1 | const path = require('path'); 2 | const express = require('express'); 3 | const compression = require('compression'); 4 | 5 | module.exports = function addProdMiddlewares(app, options) { 6 | const publicPath = options.publicPath || '/'; 7 | const outputPath = options.outputPath || path.resolve(process.cwd(), 'build'); 8 | 9 | // compression middleware compresses your server responses which makes them 10 | // smaller (applies also to assets). You can read more about that technique 11 | // and other good practices on official Express.js docs http://mxs.is/googmy 12 | app.use(compression()); 13 | app.use(publicPath, express.static(outputPath)); 14 | 15 | app.get('*', (req, res) => 16 | res.sendFile(path.resolve(outputPath, 'index.html')), 17 | ); 18 | }; 19 | -------------------------------------------------------------------------------- /server/middlewares/frontendMiddleware.js: -------------------------------------------------------------------------------- 1 | /* eslint-disable global-require */ 2 | 3 | /** 4 | * Front-end middleware 5 | */ 6 | module.exports = (app, options) => { 7 | const isProd = process.env.NODE_ENV === 'production'; 8 | 9 | if (isProd) { 10 | const addProdMiddlewares = require('./addProdMiddlewares'); 11 | addProdMiddlewares(app, options); 12 | } else { 13 | const webpackConfig = require('../../internals/webpack/webpack.dev.babel'); 14 | const addDevMiddlewares = require('./addDevMiddlewares'); 15 | addDevMiddlewares(app, webpackConfig); 16 | } 17 | 18 | return app; 19 | }; 20 | -------------------------------------------------------------------------------- /server/port.js: -------------------------------------------------------------------------------- 1 | const argv = require('./argv'); 2 | 3 | module.exports = parseInt(argv.port || process.env.PORT || '3000', 10); 4 | --------------------------------------------------------------------------------