Skip to content

Commit

Permalink
Merge pull request #66 from Neovici/polymer2
Browse files Browse the repository at this point in the history
[wip] Polymer 2.x class based element
  • Loading branch information
nomego authored Jan 13, 2019
2 parents 8f24d92 + 5fcfef0 commit 2423d96
Show file tree
Hide file tree
Showing 18 changed files with 2,908 additions and 3,497 deletions.
22 changes: 15 additions & 7 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,10 @@
],
"arrow-spacing": [
"error",
{ "before": true, "after": true }
{
"before": true,
"after": true
}
],
"brace-style": "error",
"camelcase": "error",
Expand Down Expand Up @@ -56,14 +59,14 @@
"key-spacing": [
"error",
{
"afterColon": true,
"beforeColon": false
"afterColon": true,
"beforeColon": false
}
],
"keyword-spacing": [
"error",
{
"before": true
"before": true
}
],
"no-console": "off",
Expand All @@ -87,6 +90,10 @@
"no-use-before-define": "error",
"no-useless-call": "error",
"no-useless-concat": "error",
"object-shorthand": [
"error",
"always"
],
"one-var": [
"error",
{
Expand All @@ -98,6 +105,7 @@
"error",
"always"
],
"prefer-arrow-callback": "error",
"quotes": [
"error",
"single"
Expand All @@ -114,12 +122,12 @@
"space-before-function-paren": [
"error",
{
"anonymous": "always",
"named": "never"
"anonymous": "always",
"named": "never"
}
],
"space-in-parens": "error",
"space-infix-ops": "error",
"valid-jsdoc": "warn"
}
}
}
45 changes: 26 additions & 19 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,33 +1,40 @@
---
language: node_js
env:
global:
- CC_TEST_REPORTER_ID=9cf7da023bab612f3146e176b8b0a327a3a309a8af2e7a3e468967a7fe4600b4
- SAUCE_USERNAME=nomego
- secure: cQBITrMNen1VJ7rov8APzDC+SdrKmkObpBw3q/tHAYryvw3GhXMLYCFTyLWYCOu0v34OmH3Cu4JEceTFdD74KAXez8CvR140ObVCiS57orVv3V0uUDZB0+2V6qJxHAbWWjuGZsO87RSlZo5eVYW/ELEjPjV5b/OBIrvfx/jOq5+v8KcdYjcnt4LLkZuvyFwPQ8z8LaaUIfjh+LBg7D5C8ISaDs0n1R9dBlZyXyXCExteRCjrGvq2SvfqihNl5Ou7OVT0TMSKIy+AgpIrGHC+R50LLG1vDA+Ryb2qW7gdn/7GX1SUIbDzI0AU1gv+SdJqwY/76aS4PdKzOPtFsbo825p80s4Pq8FREp4ULGLibPc6gUptcQieDo3orJD+C0j/0843GQjfwDq7/KjEBAO1ekMvxdbCaOGOAAZBG+gWj1/TA2ZnCvkjRnoc5MZcb3SQoY+RPea54gkQ3VGC6OvIcn+llMdo3JUI34PAsD0PHD4LgtYLBmkNltjfMEak4bIikkHT6WBErWfn7cC9bwaVppXJa5ih4rEd8tZdu560CYtqUM9ObeAvyskkbUeTmIaDrkzfGXqwcxrG90RFLV22ZMzxIxNFokukA8fWjRhEGa2xXe4hZCgp+NN617Xkv9c6h/De63g2C6tsr9aB33gjTKLHkYYC18VMlRfSk7F/3t4=
node_js: "lts/*"

addons:
firefox: latest
apt:
sources:
- google-chrome
- google-chrome
packages:
- google-chrome-stable
- google-chrome-stable

cache:
yarn: true
directories:
- node_modules
- bower_components
- ".eslintcache"
- "$HOME/.cache/bower"
- node_modules
- bower_components
- .eslintcache
- $HOME/.cache/bower
- $HOME/cc

env:
global:
- CC_TEST_REPORTER_ID=9cf7da023bab612f3146e176b8b0a327a3a309a8af2e7a3e468967a7fe4600b4
- SAUCE_USERNAME=nomego
- secure: cQBITrMNen1VJ7rov8APzDC+SdrKmkObpBw3q/tHAYryvw3GhXMLYCFTyLWYCOu0v34OmH3Cu4JEceTFdD74KAXez8CvR140ObVCiS57orVv3V0uUDZB0+2V6qJxHAbWWjuGZsO87RSlZo5eVYW/ELEjPjV5b/OBIrvfx/jOq5+v8KcdYjcnt4LLkZuvyFwPQ8z8LaaUIfjh+LBg7D5C8ISaDs0n1R9dBlZyXyXCExteRCjrGvq2SvfqihNl5Ou7OVT0TMSKIy+AgpIrGHC+R50LLG1vDA+Ryb2qW7gdn/7GX1SUIbDzI0AU1gv+SdJqwY/76aS4PdKzOPtFsbo825p80s4Pq8FREp4ULGLibPc6gUptcQieDo3orJD+C0j/0843GQjfwDq7/KjEBAO1ekMvxdbCaOGOAAZBG+gWj1/TA2ZnCvkjRnoc5MZcb3SQoY+RPea54gkQ3VGC6OvIcn+llMdo3JUI34PAsD0PHD4LgtYLBmkNltjfMEak4bIikkHT6WBErWfn7cC9bwaVppXJa5ih4rEd8tZdu560CYtqUM9ObeAvyskkbUeTmIaDrkzfGXqwcxrG90RFLV22ZMzxIxNFokukA8fWjRhEGa2xXe4hZCgp+NN617Xkv9c6h/De63g2C6tsr9aB33gjTKLHkYYC18VMlRfSk7F/3t4=
- NEO_CC_URL=https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64
- NEO_CC=$HOME/cc/cc-test-reporter

before_script:
- curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64
> ./cc-test-reporter
- chmod +x ./cc-test-reporter
- "./cc-test-reporter before-build"
- yarn run lint
- yarn lint
- ([[ -e $NEO_CC ]] || curl -L $NEO_CC_URL > $NEO_CC) && chmod +x $NEO_CC
- $NEO_CC before-build
script:
- yarn test
after_script:
- "./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT"
- yarn test $([ -z "$SAUCE_ACCESS_KEY"] && echo "--skip-plugin sauce")
- $NEO_CC after-build --exit-code $TRAVIS_TEST_RESULT

notifications:
slack:
secure: Ijq6DWrCfSGCDv6a5OgzpcNNFNJDtOkBel67AzizrSYEPGExe6YVp9Hp41ln8BGMgO3KNguM11SAWsEy9r8slCE9rcWeYVlIRxQo+0Tvggahz9oCNqh10Mn+0qtg+YKILv4ZnYgLuk0nm3ua2eOV7ypOjXboZ+CYjes4VjwbRbuSO9JT3oui9Kzz/ZXl/TeFwITbMgVQR3Y37O4OxBaXCQGRbkNdI9JfOwl1UmGDqC4i4KLBa2ZKXv4CxH70qxUvEBHpmsCbYOrk2Fj0Njrp5L2Fzs73fy4sKAnfUE9UxRRXTrgfoobBBH+Xw31sU/PZu+R+KPZaWjg9EHEDV6DDyhfAbn5lFbAWoCtgplVsukQP5CxDTugr1fmTxduaxhfaaGyQyAAo7OoexwrlzqCRuLocDRUMNSenxzMuQZe2GAx24MG5HZmCWhz834qrOGONTxUkn8bdI6x/g3xML1BGPzOTdZz/89rF5PDinqoZGJmslpXDc/yH/h//As+9Mbh98+08HFNYoQrdPTL1CqhtYKeUjkijk7CgCUztdLN6RqfbEMfdlxcR7lKQH5r0W5N1nw36qZ+iiL8HlIeG26/wrGX31oi2syo/jV294G6+3YMgqghSXS6hInJ8+GuiQEN4pDvXfK8QqLGxNTTaxdn5GkRvlTuZzuOJZLUhnPtCt+o=
3 changes: 1 addition & 2 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
"**/.git/objects/**": true,
"**/.git/subtree-cache/**": true,
"**/node_modules/**": true,
"**/bower_components/**": true,
"**/bower_components-1.x/**": true
"**/bower_components/**": true
}
}
3 changes: 1 addition & 2 deletions bower.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
"cosmoz-bottom-bar": "Neovici/cosmoz-bottom-bar#^2.0.0",
"cosmoz-i18next": "Neovici/cosmoz-i18next#^1.0.2",
"cosmoz-page-router": "Neovici/cosmoz-page-router#^2.0.0",
"cosmoz-templatize": "Neovici/cosmoz-templatize#^1.0.0",
"iron-flex-layout": "PolymerElements/iron-flex-layout#^2.0.3",
"paper-icon-button": "PolymerElements/paper-icon-button#^2.2.0",
"paper-spinner": "PolymerElements/paper-spinner#^2.1.0"
Expand All @@ -25,4 +24,4 @@
"resolutions": {
"webcomponentsjs": "^1.0.0"
}
}
}
7 changes: 5 additions & 2 deletions cosmoz-data-nav.html
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
<link rel="import" href="../polymer/polymer.html">
<link rel="import" href="../polymer/polymer-element.html">
<link rel="import" href="../polymer/lib/utils/debounce.html">
<link rel="import" href="../polymer/lib/utils/flattened-nodes-observer.html">
<link rel="import" href="../shadycss/apply-shim.html">

<link rel="import" href="../iron-resizable-behavior/iron-resizable-behavior.html">
<link rel="import" href="../iron-flex-layout/iron-flex-layout.html">
<link rel="import" href="../iron-flex-layout/iron-flex-layout-classes.html">

<link rel="import" href="../cosmoz-bottom-bar/cosmoz-bottom-bar-view.html">
<link rel="import" href="../cosmoz-page-router/cosmoz-page-location.html">
<link rel="import" href="../cosmoz-templatize/cosmoz-templatize.html">

<link rel="import" href="../paper-icon-button/paper-icon-button.html">
<link rel="import" href="../paper-spinner/paper-spinner-lite.html">
Expand Down
Loading

0 comments on commit 2423d96

Please sign in to comment.