Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move leaflet dependency to dev-dependencies #23

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 4 additions & 6 deletions dist/leaflet-vector-markers.css
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,10 @@ Version: 0.0.6
height: 40%;
position: absolute;
right: 21px;
-webkit-transform-origin: 50% 50%;
-ms-transform-origin: 50% 50%;
transform-origin: 50% 50%;
-webkit-transform: skew(150deg) rotate(-40deg);
-ms-transform: skew(150deg) rotate(-40deg);
transform: skew(150deg) rotate(-40deg);
-ms-transform-origin: 50% 50%;
transform-origin: 50% 50%;
-ms-transform: skew(150deg) rotate(-40deg);
transform: skew(150deg) rotate(-40deg);
width: 60%;
z-index: -1; }

Expand Down
8 changes: 4 additions & 4 deletions dist/leaflet-vector-markers.js
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ return /******/ (function(modules) { // webpackBootstrap
function Icon(options) {
_classCallCheck(this, Icon);

var _this = _possibleConstructorReturn(this, Object.getPrototypeOf(Icon).call(this, options));
var _this = _possibleConstructorReturn(this, (Icon.__proto__ || Object.getPrototypeOf(Icon)).call(this, options));
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Line is too long.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Line is too long.


_leaflet2.default.Util.setOptions(_this, iconOptions);
_leaflet2.default.Util.setOptions(_this, options);
Expand Down Expand Up @@ -204,10 +204,10 @@ return /******/ (function(modules) { // webpackBootstrap
if (options.extraClasses) {
i.classList.add(options.extraClasses);
}
if (options.icon.slice(0, options.prefix.length + 1) === options.prefix + '-') {
i.classList.add(options.icon);
} else {
if (options.prefix) {
i.classList.add(options.prefix + '-' + options.icon);
} else {
i.classList.add(options.icon);
}
if (options.spin && typeof options.spinClass === 'string') {
i.classList.add(options.spinClass);
Expand Down
2 changes: 1 addition & 1 deletion dist/leaflet-vector-markers.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions lib/Icon.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ var Icon = function (_Leaflet$Icon) {
function Icon(options) {
_classCallCheck(this, Icon);

var _this = _possibleConstructorReturn(this, Object.getPrototypeOf(Icon).call(this, options));
var _this = _possibleConstructorReturn(this, (Icon.__proto__ || Object.getPrototypeOf(Icon)).call(this, options));
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Line is too long.
The 'proto' property is deprecated.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Line is too long.
The 'proto' property is deprecated.


_leaflet2.default.Util.setOptions(_this, iconOptions);
_leaflet2.default.Util.setOptions(_this, options);
Expand Down Expand Up @@ -85,10 +85,10 @@ var Icon = function (_Leaflet$Icon) {
if (options.extraClasses) {
i.classList.add(options.extraClasses);
}
if (options.icon.slice(0, options.prefix.length + 1) === options.prefix + '-') {
i.classList.add(options.icon);
} else {
if (options.prefix) {
i.classList.add(options.prefix + '-' + options.icon);
} else {
i.classList.add(options.icon);
}
if (options.spin && typeof options.spinClass === 'string') {
i.classList.add(options.spinClass);
Expand Down
45 changes: 0 additions & 45 deletions npm-debug.log

This file was deleted.

8 changes: 3 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,15 +24,11 @@
"lint": "eslint ./src",
"lintAndTest": "npm run lint && jest"
},
"dependencies": {
"autoprefixer": "^6.3.7",
"leaflet": "^0.7.0",
"postcss-loader": "^0.9.1"
},
"peerDependencies": {
"leaflet": "^0.7.0"
},
"devDependencies": {
"autoprefixer": "^6.3.7",
"babel-cli": "^6.9.0",
"babel-core": "^6.9.1",
"babel-eslint": "^6.0.4",
Expand All @@ -44,8 +40,10 @@
"eslint": "^2.11.1",
"extract-text-webpack-plugin": "^1.0.1",
"jest-cli": "^12.1.1",
"leaflet": "^0.7.0",
"node-sass": "^3.7.0",
"onchange": "^2.4.0",
"postcss-loader": "^0.9.1",
"sass-loader": "^3.2.0",
"style-loader": "^0.13.1",
"webpack": "^1.13.1",
Expand Down