vaadin-context-menu
Advanced tools
Comparing version 2.0.0 to 3.0.0-alpha4
@@ -5,3 +5,4 @@ { | ||
"browser": true, | ||
"node": true | ||
"node": true, | ||
"es6": true | ||
}, | ||
@@ -12,4 +13,5 @@ "plugins": [ | ||
"globals": { | ||
"Polymer": false | ||
"Polymer": false, | ||
"Vaadin": false | ||
} | ||
} |
@@ -20,3 +20,6 @@ { | ||
"bower_components", | ||
"test" | ||
"test", | ||
"gulpfile.js", | ||
"package-lock.json", | ||
"wct.conf.js" | ||
], | ||
@@ -26,9 +29,9 @@ "dependencies": { | ||
"iron-overlay-behavior": "^2.0.0", | ||
"iron-media-query": "^2.0.0" | ||
"iron-media-query": "^2.0.0", | ||
"vaadin-themable-mixin": "^1.1.0", | ||
"vaadin-overlay": "^1.1.0" | ||
}, | ||
"devDependencies": { | ||
"elements-demo-resources": "vaadin/elements-demo-resources#^2.0.0", | ||
"iron-component-page": "^2.0.0", | ||
"iron-component-page": "^3.0.0", | ||
"iron-demo-helpers": "^2.0.0", | ||
"iron-icons": "^2.0.0", | ||
"iron-test-helpers": "^2.0.0", | ||
@@ -39,19 +42,7 @@ "paper-item": "^2.0.0", | ||
"test-fixture": "^3.0.0", | ||
"vaadin-grid": "#2.1-polymer-2-rebased", | ||
"web-component-tester": "^6.0.0" | ||
}, | ||
"variants": { | ||
"1.x": { | ||
"dependencies": { | ||
"polymer": "^1.7.0" | ||
}, | ||
"resolutions": { | ||
"polymer": "^1.7.0", | ||
"webcomponentsjs": "^0.7.24" | ||
} | ||
} | ||
}, | ||
"resolutions": { | ||
"iron-doc-viewer": "1 - 2" | ||
"vaadin-grid": "^3.0.0", | ||
"webcomponentsjs": "^1.0.0", | ||
"web-component-tester": "^6.1.5", | ||
"vaadin-demo-helpers": "vaadin/vaadin-demo-helpers" | ||
} | ||
} |
@@ -7,2 +7,4 @@ { | ||
"globals": { | ||
"ContextMenuDemo": false, | ||
"DemoReadyEventEmitter": false, | ||
"getItems": false, | ||
@@ -9,0 +11,0 @@ "getNewItem": false |
'use strict'; | ||
var gulp = require('gulp'); | ||
var eslint = require('gulp-eslint'); | ||
var htmlExtract = require('gulp-html-extract'); | ||
var stylelint = require('gulp-stylelint'); | ||
const gulp = require('gulp'); | ||
const eslint = require('gulp-eslint'); | ||
const htmlExtract = require('gulp-html-extract'); | ||
const stylelint = require('gulp-stylelint'); | ||
gulp.task('lint', ['lint:js', 'lint:html', 'lint:css']); | ||
gulp.task('lint:js', function() { | ||
gulp.task('lint:js', () => { | ||
return gulp.src([ | ||
@@ -15,8 +15,8 @@ '*.js', | ||
]) | ||
.pipe(eslint()) | ||
.pipe(eslint.format()) | ||
.pipe(eslint.failAfterError()); | ||
.pipe(eslint()) | ||
.pipe(eslint.format()) | ||
.pipe(eslint.failAfterError()); | ||
}); | ||
gulp.task('lint:html', function() { | ||
gulp.task('lint:html', () => { | ||
return gulp.src([ | ||
@@ -27,12 +27,12 @@ '*.html', | ||
]) | ||
.pipe(htmlExtract({ | ||
sel: 'script, code-example code', | ||
strip: true | ||
})) | ||
.pipe(eslint()) | ||
.pipe(eslint.format()) | ||
.pipe(eslint.failAfterError()); | ||
.pipe(htmlExtract({ | ||
sel: 'script, code-example code', | ||
strip: true | ||
})) | ||
.pipe(eslint()) | ||
.pipe(eslint.format()) | ||
.pipe(eslint.failAfterError()); | ||
}); | ||
gulp.task('lint:css', function() { | ||
gulp.task('lint:css', () => { | ||
return gulp.src([ | ||
@@ -43,10 +43,10 @@ '*.html', | ||
]) | ||
.pipe(htmlExtract({ | ||
sel: 'style' | ||
})) | ||
.pipe(stylelint({ | ||
reporters: [ | ||
{formatter: 'string', console: true} | ||
] | ||
})); | ||
.pipe(htmlExtract({ | ||
sel: 'style' | ||
})) | ||
.pipe(stylelint({ | ||
reporters: [ | ||
{formatter: 'string', console: true} | ||
] | ||
})); | ||
}); |
{ | ||
"name": "vaadin-context-menu", | ||
"version": "2.0.0", | ||
"version": "3.0.0-alpha4", | ||
"description": "Polymer element for showing context dependent items for any element on the page", | ||
@@ -21,12 +21,15 @@ "main": "vaadin-context-menu.html", | ||
"devDependencies": { | ||
"eslint-plugin-html": "^1.7.0", | ||
"eslint-config-vaadin": "^0.1.0", | ||
"bower": "latest", | ||
"eslint": "^4.0.0", | ||
"eslint-config-vaadin": "latest", | ||
"eslint-plugin-html": "^3.0.0", | ||
"gulp": "latest", | ||
"gulp-html-extract": "^0.2.0", | ||
"gulp-eslint": "^3.0.1", | ||
"gulp-eslint": "^4.0.0", | ||
"gulp-html-extract": "^0.3.0", | ||
"gulp-stylelint": "^3.7.0", | ||
"polymer-cli": "^0.18.0", | ||
"stylelint-config-vaadin": "^0.1.0", | ||
"web-component-tester": "^5.0.0", | ||
"yargs": "latest" | ||
"polymer-cli": "^1.2.0", | ||
"stylelint": "^7.12.0", | ||
"stylelint-config-vaadin": "latest", | ||
"web-component-tester": "^6.1.5", | ||
"yargs": "v8.0.2" | ||
}, | ||
@@ -33,0 +36,0 @@ "scripts": { |
@@ -47,3 +47,3 @@ ![Bower version](https://img.shields.io/bower/v/vaadin-context-menu.svg) | ||
## Contributing | ||
## Running demos and tests in browser | ||
@@ -54,11 +54,6 @@ 1. Fork the `vaadin-context-menu` repository and clone it locally. | ||
1. When in the `vaadin-context-menu` directory, run `npm install` to install dependencies. | ||
1. When in the `vaadin-context-menu` directory, run `npm install` and then `bower install` to install dependencies. | ||
1. Run `polymer serve --open`, browser will automatically open the component API documentation. | ||
## Running demos and tests in browser | ||
1. Install [polyserve](https://www.npmjs.com/package/polyserve): `npm install -g polyserve` | ||
1. When in the `vaadin-context-menu` directory, run `polyserve --open`, browser will automatically open the component API documentation. | ||
1. You can also open demo or in-browser tests by adding **demo** or **test** to the URL, for example: | ||
@@ -72,7 +67,5 @@ | ||
1. Install [web-component-tester](https://www.npmjs.com/package/web-component-tester): `npm install -g web-component-tester` | ||
1. When in the `vaadin-context-menu` directory, run `polymer test` | ||
1. When in the `vaadin-context-menu` directory, run `wct` or `npm test` | ||
## Following the coding style | ||
@@ -86,3 +79,3 @@ | ||
- Make sure your code is compliant with our code linters: `gulp lint` | ||
- Check that tests are passing: `npm test` | ||
- Check that tests are passing: `polymer test` | ||
- [Submit a pull request](https://www.digitalocean.com/community/tutorials/how-to-create-a-pull-request-on-github) with detailed title and description | ||
@@ -89,0 +82,0 @@ - Wait for response from one of Vaadin Elements team members |
@@ -1,16 +0,17 @@ | ||
var argv = require('yargs').argv; | ||
const argv = require('yargs').argv; | ||
module.exports = { | ||
registerHooks: function(context) { | ||
var saucelabsPlatforms = [ | ||
'OS X 10.11/iphone@10.0', | ||
'OS X 10.11/ipad@10.0', | ||
'Windows 10/microsoftedge@14', | ||
registerHooks: context => { | ||
const saucelabsPlatforms = [ | ||
'macOS 10.12/iphone@10.3', | ||
'macOS 10.12/ipad@10.3', | ||
'Windows 10/microsoftedge@15', | ||
'Windows 10/internet explorer@11', | ||
'OS X 10.11/safari@10.0' | ||
'macOS 10.12/safari@10.0' | ||
]; | ||
var cronPlatforms = [ | ||
'Windows 10/chrome@58', | ||
'Windows 10/firefox@53' | ||
const cronPlatforms = [ | ||
'Android/chrome', | ||
'Windows 10/chrome@59', | ||
'Windows 10/firefox@54' | ||
]; | ||
@@ -17,0 +18,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Deprecated
MaintenanceThe maintainer of the package marked it as deprecated. This could indicate that a single version should not be used, or that the package is no longer maintained and any new vulnerabilities will not be fixed.
Found 1 instance in 1 package
313052
6140
0
13
32
1
84
1