forked from next-step/js-jest-calculator
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: setup build configurations and templates
- Loading branch information
Showing
11 changed files
with
4,113 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
{ | ||
"rules": {}, | ||
"env": { | ||
"es6": true, | ||
"node": true | ||
}, | ||
"parserOptions": { | ||
"ecmaVersion": "latest", | ||
"sourceType": "module" | ||
}, | ||
"extends": [ | ||
"eslint:recommended", | ||
"plugin:prettier/recommended" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
node_modules/ | ||
dist/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
{ | ||
"version": "0.2.0", | ||
"configurations": [ | ||
{ | ||
"name": "Launch Program", | ||
"program": "${workspaceFolder}/src/index.js", | ||
"request": "launch", | ||
"runtimeArgs": ["-r", "esm"], | ||
"skipFiles": [ | ||
"<node_internals>/**" | ||
], | ||
"sourceMaps": true, | ||
"localRoot": "${workspaceFolder}/dist", | ||
"preLaunchTask": "build", | ||
"type": "node" | ||
}, | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
{ | ||
"version": "2.0.0", | ||
"tasks": [ | ||
{ | ||
"label": "build", | ||
"type": "shell", | ||
"command": "yarn build-dev", | ||
"isBackground": true | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,5 @@ | ||
# js-jest-calculator | ||
<p align="middle" > | ||
<img width="100px;" src="https://github.com/next-step/js-calculator/raw/main/src/images/calculator_icon.png"/> | ||
</p> | ||
<h2 align="middle">계산기</h2> | ||
<p align="middle">jest를 이용해 테스트해보는 계산기</p> |
Empty file.
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
{ | ||
"name": "@woowacourse/javascript-racingcar", | ||
"version": "1.0.0", | ||
"description": "우아한테크코스 웹 프론트엔드 레벨1 자동차 경주 미션", | ||
"main": "src/index.js", | ||
"scripts": { | ||
"start": "npm run build-prod && node dist/bundle.js", | ||
"build-dev": "webpack --mode development", | ||
"build-prod": "webpack --mode production", | ||
"test": "jest --watch" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/woowacourse/javascript-racingcar.git" | ||
}, | ||
"keywords": [], | ||
"author": "", | ||
"license": "ISC", | ||
"bugs": { | ||
"url": "https://github.com/woowacourse/javascript-racingcar/issues" | ||
}, | ||
"homepage": "https://github.com/woowacourse/javascript-racingcar#readme", | ||
"devDependencies": { | ||
"@babel/cli": "^7.20.7", | ||
"@babel/core": "^7.20.12", | ||
"@babel/preset-env": "^7.20.2", | ||
"@types/jest": "^29.2.5", | ||
"babel-jest": "^29.3.1", | ||
"babel-loader": "^9.1.2", | ||
"clean-webpack-plugin": "^4.0.0", | ||
"eslint": "^8.31.0", | ||
"esm": "^3.2.25", | ||
"jest": "^29.3.1", | ||
"prettier": "^2.8.2", | ||
"webpack": "^5.75.0", | ||
"webpack-cli": "^5.0.1" | ||
}, | ||
"jest": { | ||
"transform": { | ||
"\\.[jt]sx?$": "babel-jest" | ||
} | ||
}, | ||
"babel": { | ||
"presets": [ | ||
"@babel/preset-env" | ||
] | ||
} | ||
} |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
const path = require("path"); | ||
const { CleanWebpackPlugin } = require("clean-webpack-plugin"); | ||
|
||
module.exports = { | ||
entry: "./src/index.js", | ||
output: { | ||
path: path.resolve(__dirname, "dist"), | ||
filename: "bundle.js", | ||
}, | ||
resolve: { | ||
extensions: [".js", ".mjs"], | ||
}, | ||
module: { | ||
rules: [ | ||
{ | ||
test: /\.js$/, | ||
exclude: /node_modules/, | ||
use: { | ||
loader: "babel-loader", | ||
options: { | ||
presets: ["@babel/preset-env"], | ||
}, | ||
}, | ||
}, | ||
], | ||
}, | ||
plugins: [new CleanWebpackPlugin()], | ||
devtool: "inline-source-map", | ||
target: "node", | ||
}; |
Oops, something went wrong.