Repository: Armour/express-webpack-react-redux-typescript-boilerplate Branch: master Commit: 9f9435307de4 Files: 174 Total size: 146.8 KB Directory structure: gitextract_w64eli_i/ ├── .appveyor.yml ├── .babelrc ├── .circleci/ │ └── config.yml ├── .commitlintrc.yml ├── .dockerignore ├── .editorconfig ├── .eslintignore ├── .eslintrc ├── .gitattributes ├── .github/ │ ├── CODE_OF_CONDUCT.md │ ├── COMMIT_CONVENTION.md │ ├── CONTRIBUTING.md │ ├── ISSUE_TEMPLATE.md │ ├── PULL_REQUEST_TEMPLATE.md │ └── main.workflow ├── .gitignore ├── .stylelintignore ├── .stylelintrc ├── Dockerfile ├── LICENSE ├── README.md ├── __mocks__/ │ ├── fileMock.tsx │ └── react-i18next.tsx ├── backend/ │ ├── config.json │ ├── controllers/ │ │ └── notes.js │ ├── db/ │ │ └── index.js │ ├── jsconfig.json │ ├── redis-data/ │ │ └── .gitkeep │ ├── routes/ │ │ ├── index.js │ │ └── notes.js │ ├── server.js │ └── sql/ │ ├── data.sql │ └── schema.sql ├── docker-compose.yml ├── frontend/ │ ├── public/ │ │ ├── browserconfig.xml │ │ ├── index.ejs │ │ ├── locales/ │ │ │ ├── en/ │ │ │ │ ├── common.json │ │ │ │ ├── homePage.json │ │ │ │ ├── notFoundPage.json │ │ │ │ ├── parallaxPage.json │ │ │ │ └── reactPage.json │ │ │ ├── jp/ │ │ │ │ ├── common.json │ │ │ │ ├── homePage.json │ │ │ │ ├── notFoundPage.json │ │ │ │ ├── parallaxPage.json │ │ │ │ └── reactPage.json │ │ │ └── zh/ │ │ │ ├── common.json │ │ │ ├── homePage.json │ │ │ ├── notFoundPage.json │ │ │ ├── parallaxPage.json │ │ │ └── reactPage.json │ │ ├── manifest.webmanifest │ │ └── robots.txt │ └── src/ │ ├── App.tsx │ ├── components/ │ │ ├── ContentLoader/ │ │ │ ├── __tests__/ │ │ │ │ ├── __snapshots__/ │ │ │ │ │ └── contentLoader.spec.tsx.snap │ │ │ │ └── contentLoader.spec.tsx │ │ │ ├── contentLoader.scss │ │ │ ├── contentLoader.tsx │ │ │ └── index.tsx │ │ ├── Dropdown/ │ │ │ ├── __tests__/ │ │ │ │ ├── __snapshots__/ │ │ │ │ │ └── dropdown.spec.tsx.snap │ │ │ │ └── dropdown.spec.tsx │ │ │ ├── dropdown.tsx │ │ │ └── index.tsx │ │ ├── Footer/ │ │ │ ├── __tests__/ │ │ │ │ ├── __snapshots__/ │ │ │ │ │ └── footer.spec.tsx.snap │ │ │ │ └── footer.spec.tsx │ │ │ ├── footer.tsx │ │ │ └── index.tsx │ │ └── Header/ │ │ ├── __tests__/ │ │ │ ├── __snapshots__/ │ │ │ │ └── header.spec.tsx.snap │ │ │ └── header.spec.tsx │ │ ├── header.scss │ │ ├── header.tsx │ │ └── index.tsx │ ├── i18n/ │ │ └── index.tsx │ ├── index.tsx │ ├── pages/ │ │ ├── HomePage/ │ │ │ ├── __tests__/ │ │ │ │ ├── __snapshots__/ │ │ │ │ │ └── homePage.spec.tsx.snap │ │ │ │ └── homePage.spec.tsx │ │ │ ├── components/ │ │ │ │ ├── Carousel/ │ │ │ │ │ ├── __tests__/ │ │ │ │ │ │ ├── __snapshots__/ │ │ │ │ │ │ │ └── carousel.spec.tsx.snap │ │ │ │ │ │ └── carousel.spec.tsx │ │ │ │ │ ├── carousel.tsx │ │ │ │ │ ├── constants/ │ │ │ │ │ │ └── carousel.tsx │ │ │ │ │ └── index.tsx │ │ │ │ ├── Pushpin/ │ │ │ │ │ ├── __tests__/ │ │ │ │ │ │ ├── __snapshots__/ │ │ │ │ │ │ │ └── pushpin.spec.tsx.snap │ │ │ │ │ │ └── pushpin.spec.tsx │ │ │ │ │ ├── index.tsx │ │ │ │ │ ├── pushpin.scss │ │ │ │ │ └── pushpin.tsx │ │ │ │ └── TranslationButton/ │ │ │ │ ├── __tests__/ │ │ │ │ │ ├── __snapshots__/ │ │ │ │ │ │ └── translationButton.spec.tsx.snap │ │ │ │ │ └── translationButton.spec.tsx │ │ │ │ ├── index.tsx │ │ │ │ └── translationButton.tsx │ │ │ ├── homePage.scss │ │ │ ├── homePage.tsx │ │ │ └── index.tsx │ │ ├── NotFoundPage/ │ │ │ ├── __tests__/ │ │ │ │ ├── __snapshots__/ │ │ │ │ │ └── notFoundPage.spec.tsx.snap │ │ │ │ └── notFoundPage.spec.tsx │ │ │ ├── index.tsx │ │ │ ├── notFoundPage.scss │ │ │ └── notFoundPage.tsx │ │ ├── ParallaxPage/ │ │ │ ├── __tests__/ │ │ │ │ ├── __snapshots__/ │ │ │ │ │ └── parallaxPage.spec.tsx.snap │ │ │ │ └── parallaxPage.spec.tsx │ │ │ ├── components/ │ │ │ │ └── PrismCodes/ │ │ │ │ ├── __tests__/ │ │ │ │ │ ├── __snapshots__/ │ │ │ │ │ │ └── prismCodes.spec.tsx.snap │ │ │ │ │ └── prismCodes.spec.tsx │ │ │ │ ├── constants/ │ │ │ │ │ └── prismCodes.tsx │ │ │ │ ├── index.tsx │ │ │ │ ├── prismCodes.scss │ │ │ │ └── prismCodes.tsx │ │ │ ├── index.tsx │ │ │ ├── parallaxPage.scss │ │ │ └── parallaxPage.tsx │ │ └── ReactPage/ │ │ ├── __tests__/ │ │ │ ├── __snapshots__/ │ │ │ │ └── reactPage.spec.tsx.snap │ │ │ └── reactPage.spec.tsx │ │ ├── components/ │ │ │ ├── FetchNote/ │ │ │ │ ├── __tests__/ │ │ │ │ │ ├── __snapshots__/ │ │ │ │ │ │ └── fetchNote.spec.tsx.snap │ │ │ │ │ └── fetchNote.spec.tsx │ │ │ │ ├── fetchNote.scss │ │ │ │ ├── fetchNote.tsx │ │ │ │ └── index.tsx │ │ │ └── TodoLayout/ │ │ │ ├── __tests__/ │ │ │ │ ├── __snapshots__/ │ │ │ │ │ └── todoLayout.spec.tsx.snap │ │ │ │ └── todoLayout.spec.tsx │ │ │ ├── components/ │ │ │ │ ├── TodoFooter/ │ │ │ │ │ ├── __tests__/ │ │ │ │ │ │ ├── __snapshots__/ │ │ │ │ │ │ │ └── todoFooter.spec.tsx.snap │ │ │ │ │ │ └── todoFooter.spec.tsx │ │ │ │ │ ├── components/ │ │ │ │ │ │ └── TodoFilter/ │ │ │ │ │ │ ├── __tests__/ │ │ │ │ │ │ │ ├── __snapshots__/ │ │ │ │ │ │ │ │ └── todoFilter.spec.tsx.snap │ │ │ │ │ │ │ └── todoFilter.spec.tsx │ │ │ │ │ │ ├── index.tsx │ │ │ │ │ │ ├── todoFilter.scss │ │ │ │ │ │ └── todoFilter.tsx │ │ │ │ │ ├── index.tsx │ │ │ │ │ └── todoFooter.tsx │ │ │ │ ├── TodoInput/ │ │ │ │ │ ├── __tests__/ │ │ │ │ │ │ ├── __snapshots__/ │ │ │ │ │ │ │ └── todoInput.spec.tsx.snap │ │ │ │ │ │ └── todoInput.spec.tsx │ │ │ │ │ ├── index.tsx │ │ │ │ │ └── todoInput.tsx │ │ │ │ └── TodoList/ │ │ │ │ ├── __tests__/ │ │ │ │ │ ├── __snapshots__/ │ │ │ │ │ │ └── todoList.spec.tsx.snap │ │ │ │ │ └── todoList.spec.tsx │ │ │ │ ├── components/ │ │ │ │ │ └── Todo/ │ │ │ │ │ ├── __tests__/ │ │ │ │ │ │ ├── __snapshots__/ │ │ │ │ │ │ │ └── todo.spec.tsx.snap │ │ │ │ │ │ └── todo.spec.tsx │ │ │ │ │ ├── index.tsx │ │ │ │ │ ├── todo.scss │ │ │ │ │ └── todo.tsx │ │ │ │ ├── index.tsx │ │ │ │ └── todoList.tsx │ │ │ ├── index.tsx │ │ │ ├── todoLayout.scss │ │ │ └── todoLayout.tsx │ │ ├── index.tsx │ │ ├── reactPage.scss │ │ └── reactPage.tsx │ ├── reducers/ │ │ └── index.tsx │ ├── router.tsx │ ├── sagas/ │ │ └── index.tsx │ ├── sass/ │ │ ├── global.scss │ │ └── variables.scss │ ├── services/ │ │ ├── notes/ │ │ │ ├── actions.tsx │ │ │ ├── apis.tsx │ │ │ ├── constants.tsx │ │ │ ├── reducer.tsx │ │ │ ├── sagas.tsx │ │ │ └── types.d.ts │ │ └── todos/ │ │ ├── __test__/ │ │ │ ├── actions.spec.tsx │ │ │ └── reducer.spec.tsx │ │ ├── actions.tsx │ │ ├── constants.tsx │ │ ├── reducer.tsx │ │ └── types.d.ts │ ├── store/ │ │ └── index.tsx │ ├── types/ │ │ └── global.d.ts │ └── utils/ │ └── index.tsx ├── package.json ├── tsconfig.json ├── tslint.json ├── webpack.config.base.babel.js ├── webpack.config.dev.babel.js ├── webpack.config.dll.babel.js ├── webpack.config.prod.babel.js └── webpack.config.profile.babel.js ================================================ FILE CONTENTS ================================================ ================================================ FILE: .appveyor.yml ================================================ environment: nodejs_version: "11" install: - ps: Install-Product node $env:nodejs_version - yarn install build_script: - yarn build test_script: - yarn test cache: - "%LOCALAPPDATA%\\Yarn" ================================================ FILE: .babelrc ================================================ { "presets": [ "@babel/preset-env", "@babel/preset-react", "@babel/preset-typescript" ], "plugins": [ [ "@babel/plugin-proposal-class-properties", { "loose": true, } ], "@babel/plugin-syntax-dynamic-import", "@babel/plugin-transform-runtime", "react-hot-loader/babel", [ "prismjs", { "languages": [ "javascript", "css", "markup", "cpp", "bash", "docker", "go", "json", "markdown", "python", "jsx", "tsx", "scss", "typescript" ], "plugins": [ "autolinker", "command-line" ], "theme": "default", "css": true } ] ] } ================================================ FILE: .circleci/config.yml ================================================ # Javascript Node CircleCI 2.0 configuration file # # Check https://circleci.com/docs/2.0/language-javascript/ for more details # version: 2 jobs: build: working_directory: ~ docker: - image: circleci/node:11 steps: - checkout - run: name: Install Docker client command: | set -x VER="18.09.1" curl -L -o /tmp/docker.tgz https://download.docker.com/linux/static/stable/x86_64/docker-$VER.tgz tar -xz -C /tmp -f /tmp/docker.tgz sudo cp -r /tmp/docker/* /usr/bin - run: name: Install Docker Compose command: | set -x VER="1.23.2" curl -L https://github.com/docker/compose/releases/download/$VER/docker-compose-`uname -s`-`uname -m` > /tmp/docker-compose sudo cp /tmp/docker-compose /usr/local/bin/docker-compose sudo chmod +x /usr/local/bin/docker-compose - setup_remote_docker - run: name: Run Docker Compose command: docker-compose up --build -d - run: name: Install dependencies command: yarn install - run: name: Run test command: yarn test ================================================ FILE: .commitlintrc.yml ================================================ extends: ['armour'] ================================================ FILE: .dockerignore ================================================ # General .DS_Store *~ *.swp *.log # Thumbnails ._* Thumbs.db # Trash folder or files .Trashes .Trash-* # Folder config file [Dd]esktop.ini # Recycle Bin used on file shares $RECYCLE.BIN/ # Editor config folder .idea/ .vscode/* !.vscode/settings.json !.vscode/tasks.json !.vscode/launch.json !.vscode/extensions.json # Code coverage coverage/ .coveralls.yml # Misc __mocks__/ .circleci/ .github/ node_modules/ dist/ .appveyor.yml .*lintrc* .*lintignore* yarn.lock ================================================ FILE: .editorconfig ================================================ # http://editorconfig.org # top-most EditorConfig file root = true # Unix-style newlines with a newline ending every file [*] charset = utf-8 end_of_line = lf insert_final_newline = true trim_trailing_whitespace = true # Trailing space override for markdown file [*.md] trim_trailing_whitespace = false # Indentation override for js(x), ts(x) files [*.{js,jsx,ts,tsx}] indent_size = 2 indent_style = space # Indentation override for css files [*.{css,styl,scss,less,sass}] indent_size = 2 indent_style = space # Indentation override for html files [*.html] indent_size = 2 indent_style = space # Indentation override for config files [*.{json,yml}] indent_size = 2 indent_style = space # Minified JavaScript files shouldn't be changed [**.min.js] indent_style = ignore insert_final_newline = ignore ================================================ FILE: .eslintignore ================================================ node_modules/ dist/ coverage/ ================================================ FILE: .eslintrc ================================================ { "env": { "browser": true, "node": true, "es6": true }, "extends": [ "airbnb" ], "rules": { "import/export": "error", "import/first": "error", "import/no-commonjs": "error", "import/no-deprecated": "error", "import/no-duplicates": "error", "import/no-unresolved": "error", "import/no-webpack-loader-syntax": "error", "linebreak-style": "off", "indent": [ "error", 2 ], "no-console": [ "error", { "allow": [ "warn", "error", "info" ] } ], "quotes": [ "error", "single", { "allowTemplateLiterals": true } ] } } ================================================ FILE: .gitattributes ================================================ # Details per file setting: # text These files should be normalized (i.e. convert CRLF to LF). # binary These files are binary and should be left untouched. # Auto detect text files and perform LF normalization * text=auto # The above will handle all files NOT found below # SOURCE CODE *.bat text eol=crlf *.css text *.js text *.jsx text *.ejs text *.html text *.less text *.sass text *.scss text *.sh text eol=lf *.sql text *.ts text *.tsx text # DOCKER *.dockerignore text Dockerfile text # COMPILED FILES *.dll binary *.dylib binary *.exe binary *.so binary # DOCUMENTATION *.md text *.txt text LICENSE text # CONFIGS .editorconfig text .gitattributes text .gitignore text *.conf text *.config text *.json text *.lock text *.toml text *.yaml text *.yml text # GRAPHICS *.ai binary *.bmp binary *.eps binary *.gif binary *.heic binary *.ico binary *.jpeg binary *.jpg binary *.pdf binary *.png binary *.psb binary *.psd binary *.svg text *.tif binary *.tiff binary *.wbmp binary *.webp binary # AUDIO *.aac binary *.flac binary *.m4a binary *.mid binary *.midi binary *.mp3 binary *.mp4a binary *.mpga binary *.oga binary *.ogg binary *.wav binary *.weba binary # VIDEO *.3g2 binary *.3gp binary *.asf binary *.avi binary *.f4v binary *.fla binary *.flv binary *.m4v binary *.mov binary *.mp4 binary *.mpeg binary *.mpg binary *.ogv binary *.qt binary *.swf binary *.webm binary # ARCHIVES *.7z binary *.gz binary *.jar binary *.rar binary *.tar binary *.zip binary # FONTS *.eot binary *.otf binary *.ttf binary *.woff binary *.woff2 binary ================================================ FILE: .github/CODE_OF_CONDUCT.md ================================================ # Contributor Covenant Code of Conduct ## Our Pledge In the interest of fostering an open and welcoming environment, we as contributors and maintainers pledge to making participation in our project and our community a harassment-free experience for everyone, regardless of age, body size, disability, ethnicity, gender identity and expression, level of experience, education, socio-economic status, nationality, personal appearance, race, religion, or sexual identity and orientation. ## Our Standards Examples of behavior that contributes to creating a positive environment include: * Using welcoming and inclusive language * Being respectful of differing viewpoints and experiences * Gracefully accepting constructive criticism * Focusing on what is best for the community * Showing empathy towards other community members Examples of unacceptable behavior by participants include: * The use of sexualized language or imagery and unwelcome sexual attention or advances * Trolling, insulting/derogatory comments, and personal or political attacks * Public or private harassment * Publishing others' private information, such as a physical or electronic address, without explicit permission * Other conduct which could reasonably be considered inappropriate in a professional setting ## Our Responsibilities Project maintainers are responsible for clarifying the standards of acceptable behavior and are expected to take appropriate and fair corrective action in response to any instances of unacceptable behavior. Project maintainers have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct, or to ban temporarily or permanently any contributor for other behaviors that they deem inappropriate, threatening, offensive, or harmful. ## Scope This Code of Conduct applies both within project spaces and in public spaces when an individual is representing the project or its community. Examples of representing a project or community include using an official project e-mail address, posting via an official social media account, or acting as an appointed representative at an online or offline event. Representation of a project may be further defined and clarified by project maintainers. ## Enforcement Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by contacting the project team at [INSERT EMAIL ADDRESS]. All complaints will be reviewed and investigated and will result in a response that is deemed necessary and appropriate to the circumstances. The project team is obligated to maintain confidentiality with regard to the reporter of an incident. Further details of specific enforcement policies may be posted separately. Project maintainers who do not follow or enforce the Code of Conduct in good faith may face temporary or permanent repercussions as determined by other members of the project's leadership. ## Attribution This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4, available at [https://www.contributor-covenant.org/version/1/4/code-of-conduct.html](https://www.contributor-covenant.org/version/1/4/code-of-conduct.html) [homepage]: https://www.contributor-covenant.org ================================================ FILE: .github/COMMIT_CONVENTION.md ================================================ # Git Commit Message Convention > This is adapted from [Angular's commit convention](https://github.com/conventional-changelog/conventional-changelog/tree/master/packages/conventional-changelog-angular). ## TL;DR Messages must be matched by the following regex: ``` js /^(Revert: )?(Feature|Fix|Docs|Improve|Config|Example|Refactor|Style|Test|Build|CI)(\(.+\))?: .{1,80}/ ``` ## Commit Message Format Each commit message consists of a **header**, a **body** and a **footer**. The header has a special format that includes a **type**, a **scope** and a **subject**: ```text ():