Skip to content

Commit

Permalink
Refactor HKID Generator using morden web development tools and techni…
Browse files Browse the repository at this point in the history
…ques:

1. Add Webpack
2. Use of ES6 and babel
3. Delete vendor scripts jQuery, fullpage.js, and Clipboard and include them via npm
4. Delete old service worker scripts and use workbox for PWA
5. Change folder structures
6. Use of CSS preprocessor
  • Loading branch information
icelam committed Apr 28, 2019
1 parent 6b07312 commit a461be5
Show file tree
Hide file tree
Showing 61 changed files with 990 additions and 3,189 deletions.
24 changes: 24 additions & 0 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{
"presets": [
[
"@babel/preset-env",
{
"useBuiltIns": "usage",
"targets": {
"browsers": [
">0.2%",
"not dead",
"not ie <= 9",
"not op_mini all",
"ie 10",
"ie 11"
]
}
}
]
],
"compact" : false,
"ignore": [
"node_modules"
]
}
9 changes: 9 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
root = true

[*]
indent_style = space
indent_size = 2
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
2 changes: 2 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
/src/index.html
/src/assets/vendor/*
64 changes: 64 additions & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
{
"env": {
"browser": true,
"commonjs": true,
"es6": true,
"node": true
},
"extends": ["eslint:recommended", "airbnb-base"],
"settings": {
"import/resolver": {
"webpack": {
"config": "./webpack/webpack.base.conf.js"
},
"extensions": [".js"]
}
},
"parserOptions": {
"sourceType": "module"
},
"rules": {
"no-console": [
"off"
],
"object-curly-newline": [
"error",
{
"ImportDeclaration": "never",
"ExportDeclaration": "never"
}
],
"no-plusplus": [
"off"
],
"no-nested-ternary": [
"off"
],
"no-useless-escape": [
"off"
],
"no-underscore-dangle": [
"off"
],
"no-unused-expressions": [
2,
{ "allowTernary": true }
],
"comma-dangle": [
"error",
"never"
],
"max-len": [
"error",
{ "code": 150 }
],
"import/no-extraneous-dependencies": [
"error",
{
"devDependencies": true,
"optionalDependencies": false,
"peerDependencies": false
}
]
}
}
10 changes: 10 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
.DS_Store
node_modules

npm-debug.log*
yarn-debug.log*
yarn-error.log*

/dist

bundle-analyzer-plugin-report.html
File renamed without changes.
File renamed without changes.
Binary file removed images/try-jira.gif
Binary file not shown.
Binary file removed images/try-jira.psd
Binary file not shown.
184 changes: 0 additions & 184 deletions index.html

This file was deleted.

Loading

0 comments on commit a461be5

Please sign in to comment.