Skip to content

Instantly share code, notes, and snippets.

@admwx7
Last active January 30, 2018 17:36
Show Gist options
  • Select an option

  • Save admwx7/fc968033de2410623276ccb85a132403 to your computer and use it in GitHub Desktop.

Select an option

Save admwx7/fc968033de2410623276ccb85a132403 to your computer and use it in GitHub Desktop.
GIT repo config files
> 1%
last 3 versions
Firefox ESR
not Explorer <= 11
not OperaMini all
not Android < 62
not BlackBerry <= 10
not ExplorerMobile <= 11
not UCAndroid <= 11.4
not QQAndroid <= 1.2
not OperaMobile < 37
module.exports = {
'extends': ['eslint:recommended', 'google'],
'env': {
browser: true,
es6: true,
},
'globals': {
Polymer: true,
AM: true,
},
'plugins': [
'html',
],
'rules': {
// 2 == error, 1 == warning, 0 == off
'arrow-parens': [2, 'always'],
'indent': [2, 2, {
SwitchCase: 1,
VariableDeclarator: 2,
}],
'prefer-const': 2,
'max-len': [2, {
'code': 120,
}],
'new-cap': 0,
'no-unused-expressions': [2, {
allowShortCircuit: true,
allowTernary: false,
}],
'no-unused-vars': [2, {
vars: 'all',
args: 'after-used',
}],
},
};
// this file should exist in the test/ fold of your repo without the appended `-test` in the file name
module.exports = {
'env': {
'mocha': true,
},
'plugins': [
'chai-expect',
],
'globals': {
'expect': false,
'fixture': false,
'flush': false,
'replace': false,
'sinon': false,
'WCT': false,
},
rules: {
'no-unused-expressions': 0,
},
};
bower_components*
node_modules*
build*
bower-*.json
language: node_js
sudo: false
before_script:
- npm run lint
install:
- npm i -g polymer-cli
- npm i
- polymer install --variants
node_js: stable
addons:
firefox: latest
chrome: stable
script:
- polymer test
- if [ "${TRAVIS_BRANCH}" = "master" ] && [ "${TRAVIS_PULL_REQUEST}" = "false" ]; then polymer test --plugin sauce; fi
dist: trusty
notifications:
email:
on_success: never
on_failure: always

Build Status Published on webcomponents.org GitHub license

<**>

Browsers Support

IE / Edge
IE / Edge
Firefox
Firefox
Chrome
Chrome
Safari
Safari
Opera
Opera
iOS Safari
iOS Safari
Chrome for Android
Chrome for Android
Edge last 3 versions last 3 versions last 3 versions last 3 versions last 3 versions last version

Installation

Build Tools: npm i -g polymer-cli

Dependencies: polymer install --variants

Linting: npm i && npm run lint

Testing: npm run test

Usage

Contributing

  1. Fork it!
  2. Create your feature branch: git checkout -b my-new-feature
  3. Commit your changes: git commit -am 'Add some feature'
  4. Push to the branch: git push origin my-new-feature
  5. Submit a pull request :D
<!-- Should exist inside of the test folder, used to run all tests with a single end-point, remove the `-test` suffix -->
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, minimum-scale=1.0, initial-scale=1.0, user-scalable=yes">
<script src="../../web-component-tester/browser.js"></script>
</head>
<body>
<script>
// Load and run all tests (.html, .js): each test requires 2 lines
WCT.loadSuites([
'_test.html?dom=shadow',
'_test.html?wc-shadydom=true&wc-ce=true',
]);
</script>
</body>
</html>
{
"name": "",
"description": "",
"license": "Apache-2.0",
"author": "Austin Murdock <admwx7@gmail.com> (https://amscripting.com)",
"repository": {
"type": "git",
"url": "git@github.com:admwx7/"
},
"devDependencies": {
"eslint": "^4.16.0",
"eslint-config-google": "^0.9.0",
"eslint-plugin-chai-expect": "^1.1.0",
"eslint-plugin-html": "^4.0.0"
},
"scripts": {
"lint": "npm run lint:javascript && polymer lint",
"lint:javascript": "eslint . --ext js,html --ignore-path .gitignore",
"test": "polymer test"
}
}
{
"plugins": {
"local": {
"browserOptions": {
"chrome": [
"headless",
"disable-gpu",
"no-sandbox"
],
"firefox": [
"-headless"
]
}
},
"sauce": {
"disabled": true,
"browsers": [
{
"browserName": "microsoftedge",
"platform": "Windows 10",
"version": "latest"
},
{
"browserName": "microsoftedge",
"platform": "Windows 10",
"version": "latest-1"
},
{
"browserName": "safari",
"platform": "OS X 10.11",
"version": "latest"
},
{
"browserName": "safari",
"platform": "OS X 10.12",
"version": "latest"
}
]
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment