Git Product home page Git Product logo

react-typescript-boilerplate's Introduction

🌌 Frontend Boilerplate with React, TypeScript

λ¦¬μ•‘νŠΈ 앱을 μ²˜μŒλΆ€ν„° λ§Œλ“€κΈ° μœ„ν•œ 졜고의 방법!

πŸ‘€ 라이브러리

라이브러리 버전
react (with 🎣Hooks) ^16.11
react-dom ^16.11
react-router ^5.1
react-scripts 3.3
styled-components ^4.4
typescript 3.6
antd 4.1.5

πŸ”§ μ„€μ • νŒŒμΌλ“€

πŸ–‹ title

타이틀 μˆ˜μ •μ„ μœ„ν•΄μ„œλŠ” index.htmlμ—μ„œ ν˜„μž¬ React-TypeScript-Boilerplate둜 λ˜μ–΄μžˆλŠ” 뢀뢄듀을 κ³ μ³μ•Όν•©λ‹ˆλ‹€.

<meta
  name="apple-mobile-web-app-title"
  content="React-TypeScript-Boilerplate"
/>
<title>React-TypeScript-Boilerplate</title>

🦞 favicon

νŒŒλΉ„μ½˜ μˆ˜μ •μ„ μœ„ν•΄μ„œλŠ” asset에 μžˆλŠ” 기쑴의 이미지 νŒŒμΌλ“€μ„ λŒ€μ²΄ν•΄μ•Όν•©λ‹ˆλ‹€. (ν˜„μž¬λŠ” 🦞 이λͺ¨μ§€λ‘œ λ˜μ–΄μžˆμŠ΅λ‹ˆλ‹€.)

FAVIC-O-MATIC에 μ ‘μ†ν•˜μ—¬ Every damm size,sir!λ₯Ό μ„ νƒν•˜κ³  Upload Your Image λ²„νŠΌμ„ ν΄λ¦­ν•˜μ—¬ ν•„μš”ν•œ 이미지 파일이 λ“€μ–΄μžˆλŠ” μ••μΆ•νŒŒμΌμ„ λ°›μŠ΅λ‹ˆλ‹€.

πŸ“„ .eslintrc.json

{
  "extends": [
    "eslint:recommended",
    "plugin:react/recommended",
    "plugin:@typescript-eslint/recommended",
    "prettier/@typescript-eslint",
    "plugin:prettier/recommended"
  ],
  "plugins": ["react", "@typescript-eslint", "prettier"],
  "env": {
    "browser": true,
    "jasmine": true,
    "jest": true
  },
  "settings": {
    "react": {
      "pragma": "React",
      "version": "detect"
    }
  },
  "parser": "@typescript-eslint/parser"
}

πŸ“„ tsconfig.json

tsconfig.jsonμ—λŠ” TypeScript의 컴파일러 μ˜΅μ…˜μ΄ μ •μ˜λ˜μ–΄ μžˆμŠ΅λ‹ˆλ‹€.

λ‹€μŒ μ»€λ§¨λ“œλ₯Ό 톡해 κ°€μž₯ 기본적인 tsconfig.jsonλ₯Ό 생성할 수 μžˆμŠ΅λ‹ˆλ‹€.

$ npx tsc --init

ν•΄λ‹Ή ν”„λ‘œμ νŠΈμ—μ„œλŠ” κΈ°λ³Έ μ˜΅μ…˜μ—μ„œ μˆ˜μ •λœ tsconfig.jsonλ₯Ό μ‚¬μš©ν•©λ‹ˆλ‹€.

{
  "compilerOptions": {
    "target": "es5",
    "lib": ["dom", "dom.iterable", "esnext"],
    "noImplicitAny": false,
    "allowJs": true,
    "skipLibCheck": true,
    "esModuleInterop": true,
    "allowSyntheticDefaultImports": true,
    "strict": true,
    "forceConsistentCasingInFileNames": true,
    "module": "esnext",
    "moduleResolution": "node",
    "resolveJsonModule": true,
    "isolatedModules": true,
    "noEmit": true,
    "jsx": "react"
  },
  "include": ["src"]
}

πŸ“„ tslint.json

{
  "defaultSeverity": "error",
  "extends": ["tslint:recommended"],
  "jsRules": {},
  "rules": {
    "quotemark": false,
    "ordered-imports": false,
    "object-literal-sort-keys": false,
    "member-access": false
  },
  "rulesDirectory": []
}

πŸ“„ .prettierrc

{
  "singleQuote": true,
  "semi": true,
  "useTabs": false,
  "tabWidth": 2,
  "trailingComma": "all",
  "printWidth": 80,
  "arrowParens": "always",
  "orderedImports": true
}

Installation

$ npm install

Running

$ npm run start

Build

$ npm run build

Reference

License

MIT

react-typescript-boilerplate's People

Contributors

dl0312 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

react-typescript-boilerplate's Issues

닀크λͺ¨λ“œ 지원

✨ What?

닀크λͺ¨λ“œ 지원

πŸ›  How?

useContextλ₯Ό μ΄μš©ν•˜μ—¬ 라이트/닀크 λͺ¨λ“œμ— λŒ€ν•œ μƒνƒœλ₯Ό μ „μ—­μœΌλ‘œ κ΄€λ¦¬ν•©λ‹ˆλ‹€.

πŸ“š Reference

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.