Skip to content

Commit

Permalink
Transfer the internal PoC to public repo. Cleanup code style.
Browse files Browse the repository at this point in the history
  • Loading branch information
dero committed Feb 5, 2021
1 parent f5a8997 commit 20cb3ac
Show file tree
Hide file tree
Showing 23 changed files with 4,033 additions and 163 deletions.
6 changes: 6 additions & 0 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"presets": ["@babel/env"],
"plugins": [
"@babel/plugin-syntax-class-properties"
]
}
12 changes: 12 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# EditorConfig is awesome: https://EditorConfig.org

# top-most EditorConfig file
root = true

[*]
indent_style = space
indent_size = 2
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
30 changes: 25 additions & 5 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,27 @@
{
"extends": [
"airbnb-base",
"plugin:jest/recommended",
"plugin:jsdoc/recommended"
]
"parser": "@babel/eslint-parser",
"parserOptions": {
"babelOptions": {
"configFile": "./.babelrc"
},
"ecmaVersion": 2018
},
"plugins": ["@babel"],
"extends": [
"airbnb-base",
"plugin:jest/recommended",
"plugin:jsdoc/recommended"
],
"env": {
"browser": true,
"es6": true,
"es2017": true
},
"rules": {
"no-underscore-dangle": "off",
"no-param-reassign": "off",
"max-classes-per-file": "off",
"prefer-promise-reject-errors": "off",
"class-methods-use-this": "off"
}
}
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,6 @@ node_modules/
vendor/
.firebaserc
firebase-debug.log
/.firebase
/public/sw.js
/public/dist
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,3 +35,11 @@ Install the dependencies:
Start the Firebase emulator:

npm start

## Build process

Project uses Rollup to build the main application JS file and the Service Worker file. No transpilation is done, the tooling exists
mostly just to resolve ES Modules in the Service Worker context. Usage:

* `npm run build`: Build the `/public/js/index.js` and `/public/sw.js` files.
* `npm run watch`: Watch for changes to files in `/src` and rebuild files as necessary on the fly.
Loading

0 comments on commit 20cb3ac

Please sign in to comment.