Skip to content

Instantly share code, notes, and snippets.

Avatar
🏫
in Seoul

rockpell

🏫
in Seoul
View GitHub Profile
View what_is_tdd.md

TDD는 무엇인가?

  • 테스트를 먼저 만들고 테스트를 통과하기 위해 코드를 작성하는 것을 의미한다.

  • 코드를 만들고 테스트를 하여 제대로 동작하는지 반복하면서 이에 대한 피드백을 적극적으로 받는 개발 방법이다.

TDD는 왜 하는걸까?

@rockpell
rockpell / .babelrc
Created Nov 8, 2020
babel config for react
View .babelrc
{
"presets": [
"@babel/preset-env",
"@babel/preset-react"
]
}
View webpack.config.js
const port = process.env.PORT || 3000;
const path = require('path');
const HtmlWebpackPlugin = require('html-webpack-plugin');
module.exports = {
mode: 'development',
entry: { app: ['babel-polyfill', './src/index.js'] },
output: {
filename: 'bundle.[hash].js',
publicPath: '/',
View ecosystem.config.js
module.exports = {
apps: [
{
name: '',
script: './app.js',
instances: 0,
exec_mode: 'cluster'
}
]
};
@rockpell
rockpell / app.js
Last active Nov 8, 2020
express sample code
View app.js
const express = require('express');
const passport = require('passport');
require('dotenv').config();
const indexRouter = require('./routes/index');
const port = process.env.PORT || 3000;
const app = express();
app.use(passport.initialize());
View .eslintrc.js
module.exports = {
env: {
browser: true,
es2021: true,
node: true,
},
extends: ['eslint:recommended', 'plugin:react/recommended'],
parserOptions: {
ecmaVersion: 12,
sourceType: 'module',
@rockpell
rockpell / . prettierrc
Last active Nov 8, 2020
prettier setting
View . prettierrc
{
"arrowParens": "always",
"bracketSpacing": true,
"htmlWhitespaceSensitivity": "css",
"insertPragma": false,
"jsxBracketSameLine": false,
"jsxSingleQuote": false,
"printWidth": 80,
"proseWrap": "preserve",
"quoteProps": "as-needed",
View I'm a night 🦉
🌞 Morning 57 commits ▊░░░░░░░░░░░░░░░░░░░░ 4.1%
🌆 Daytime 425 commits ██████▍░░░░░░░░░░░░░░ 30.4%
🌃 Evening 695 commits ██████████▍░░░░░░░░░░ 49.7%
🌙 Night 222 commits ███▎░░░░░░░░░░░░░░░░░ 15.9%
You can’t perform that action at this time.