-
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.
Merge pull request #10 from KunHwanAhn/release/v0.0.1
Release/v0.0.1
- Loading branch information
Showing
16 changed files
with
8,172 additions
and
0 deletions.
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,3 @@ | ||
> 1% | ||
last 2 versions | ||
ie 11 |
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 @@ | ||
dist | ||
node_modules |
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,39 @@ | ||
module.exports = { | ||
root: true, | ||
env: { | ||
browser: true, | ||
es6: true, | ||
node: true, | ||
}, | ||
extends: [ | ||
'plugin:vue/recommended', | ||
'airbnb-base', | ||
], | ||
plugins: [ | ||
'vue', | ||
], | ||
parserOptions: { | ||
parser: 'babel-eslint', | ||
ecmaVersion: 2020, | ||
sourceType: 'module', | ||
}, | ||
rules: { | ||
'no-console': process.env.NODE_ENV === 'production' ? 'error' : 'off', | ||
'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off', | ||
'import/extensions': ['error', 'always', { | ||
js: 'never', | ||
mjs: 'never', | ||
jsx: 'never', | ||
ts: 'never', | ||
tsx: 'never', | ||
}], | ||
'no-param-reassign': ['error', { | ||
props: true, | ||
ignorePropertyModificationsFor: [ | ||
'state', // for vuex state | ||
'acc', // for reduce accumulators | ||
'e', // for e.returnvalue | ||
], | ||
}], | ||
}, | ||
}; |
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,21 @@ | ||
.DS_Store | ||
node_modules | ||
/dist | ||
|
||
# local env files | ||
.env.local | ||
.env.*.local | ||
|
||
# Log files | ||
npm-debug.log* | ||
yarn-debug.log* | ||
yarn-error.log* | ||
|
||
# Editor directories and files | ||
.idea | ||
.vscode | ||
*.suo | ||
*.ntvs* | ||
*.njsproj | ||
*.sln | ||
*.sw? |
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,6 @@ | ||
{ | ||
"hooks": { | ||
"post-checkout": "yarn", | ||
"pre-commit": "lint-staged" | ||
} | ||
} |
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,6 @@ | ||
{ | ||
"*.{js,vue}": [ | ||
"eslint --fix --ext .js,.vue src", | ||
"git add" | ||
] | ||
} |
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,19 @@ | ||
# CHANGELOG | ||
|
||
## v0.0.1 (2020-03-06) | ||
[webpack] | ||
- webpack 설정 추가 | ||
- webpack-dev-server 설정 추가 | ||
|
||
[babel] | ||
- babel 설정 추가 | ||
|
||
[styles] | ||
- 스타일 추가 | ||
- CSS Module 적용 | ||
|
||
[vue] | ||
- vue 설정 추가 | ||
|
||
[git] | ||
- git hook handler 추가 |
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,9 @@ | ||
{ | ||
"presets": [ | ||
["@babel/preset-env", { | ||
"useBuiltIns": "usage", | ||
"corejs": 3, | ||
"shippedProposals": 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 |
---|---|---|
@@ -0,0 +1,49 @@ | ||
{ | ||
"name": "webpack-babel-vue-template", | ||
"version": "0.0.1", | ||
"description": "Webpack + Babel + Vue.js Template without VueCli", | ||
"main": "src/main.js", | ||
"repository": "https://github.com/KunHwanAhn/webpack-babel-vue-template", | ||
"author": "Conan Kunhwan Ahn <[email protected]>", | ||
"license": "MIT", | ||
"private": false, | ||
"scripts": { | ||
"serve": "NODE_ENV=development webpack-dev-server", | ||
"build": "NODE_ENV=production webpack", | ||
"lint": "eslint --ext .js,.vue src" | ||
}, | ||
"dependencies": { | ||
"core-js": "^3.6.4", | ||
"vue": "^2.6.11" | ||
}, | ||
"devDependencies": { | ||
"@babel/core": "^7.8.7", | ||
"@babel/preset-env": "^7.8.7", | ||
"autoprefixer": "^9.7.4", | ||
"babel-eslint": "^10.1.0", | ||
"babel-loader": "^8.0.6", | ||
"clean-webpack-plugin": "^3.0.0", | ||
"css-loader": "^3.4.2", | ||
"eslint": "^6.8.0", | ||
"eslint-config-airbnb-base": "^14.0.0", | ||
"eslint-loader": "^3.0.3", | ||
"eslint-plugin-import": "^2.20.1", | ||
"eslint-plugin-vue": "^6.2.1", | ||
"file-loader": "^5.1.0", | ||
"html-webpack-plugin": "^3.2.0", | ||
"husky": "^4.2.3", | ||
"lint-staged": "^10.0.8", | ||
"mini-css-extract-plugin": "^0.9.0", | ||
"optimize-css-assets-webpack-plugin": "^5.0.3", | ||
"postcss-loader": "^3.0.0", | ||
"sass": "^1.26.2", | ||
"sass-loader": "^8.0.2", | ||
"style-loader": "^1.1.3", | ||
"terser-webpack-plugin": "^2.3.5", | ||
"vue-loader": "^15.9.0", | ||
"vue-template-compiler": "^2.6.11", | ||
"webpack": "^4.42.0", | ||
"webpack-cli": "^3.3.11", | ||
"webpack-dev-server": "^3.10.3" | ||
} | ||
} |
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,7 @@ | ||
/* eslint-disable global-require */ | ||
/* eslint-disable import/no-extraneous-dependencies */ | ||
module.exports = { | ||
plugins: [ | ||
require('autoprefixer'), | ||
], | ||
}; |
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,16 @@ | ||
<!DOCTYPE html> | ||
<html lang="ko"> | ||
<head> | ||
<meta charset="utf-8"> | ||
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | ||
<meta name="viewport" content="width=device-width,initial-scale=1.0"> | ||
<title>Webpack + Babel + Vue.js Template</title> | ||
</head> | ||
<body> | ||
<noscript> | ||
<strong>We're sorry but webpack-babel-vue-template doesn't work properly without JavaScript enabled. Please enable it to continue.</strong> | ||
</noscript> | ||
<div id="app"></div> | ||
<!-- built files will be auto injected --> | ||
</body> | ||
</html> |
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 @@ | ||
<template> | ||
<div :class="$style.hello"> | ||
Hello Vue! | ||
</div> | ||
</template> | ||
|
||
<script> | ||
export default {}; | ||
</script> | ||
|
||
<style lang="scss" module> | ||
.hello { | ||
font-size: 24px; | ||
} | ||
</style> |
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,9 @@ | ||
import Vue from 'vue'; | ||
// eslint-disable-next-line import/no-unresolved | ||
import '@/styles/index.scss'; | ||
|
||
import App from './App.vue'; | ||
|
||
new Vue({ | ||
render: (h) => h(App), | ||
}).$mount('#app'); |
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,22 @@ | ||
* { | ||
box-sizing: border-box; | ||
|
||
::before { | ||
box-sizing: border-box; | ||
} | ||
|
||
::after { | ||
box-sizing: border-box; | ||
} | ||
} | ||
|
||
a { | ||
text-decoration: none; | ||
} | ||
|
||
img, | ||
embed, | ||
object, | ||
video { | ||
max-width: 100%; | ||
} |
Oops, something went wrong.