Skip to content

Commit

Permalink
Update to [email protected] (#54)
Browse files Browse the repository at this point in the history
* Moved to github actions

* Updated deps

* Fixed deps

* Updated deps

* Added chrome

* Made it work with leaflet v1.8

* Removed dist from git

* Removed dist from git

* Added it to ignored files

* Maybe like that?

* Debugging

* Use tape-run

* eslint?

* Downgraded eslint

* Downgraded eslint

* Downgraded eslint

* Downgraded eslint

* Downgraded eslint

* Downgraded eslint

* Downgraded eslint

* Downgraded eslint

* Cannot run e2e in gh actions

* version bump
  • Loading branch information
w8r authored Jun 21, 2022
1 parent 9c5a25c commit b3fd049
Show file tree
Hide file tree
Showing 20 changed files with 37,459 additions and 15,745 deletions.
24 changes: 12 additions & 12 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -1,7 +1,13 @@
{
"env": {
"browser": true
//"es6": true
},
// "parser": "babel-eslint",
// "parserOptions": {
// "sourceType": "module",
// "allowImportExportEverywhere": true
// },
"globals": {
"L": true
},
Expand All @@ -12,19 +18,13 @@
"comma-style": 2,
"curly": 0,
"dot-notation": 0,
"eqeqeq": [
2,
"allow-null"
],
"eqeqeq": [2, "allow-null"],
"guard-for-in": 2,
"key-spacing": 0,
"new-cap": 2,
"no-bitwise": 2,
"no-caller": 2,
"no-cond-assign": [
2,
"except-parens"
],
"no-cond-assign": [2, "except-parens"],
"no-debugger": 2,
"no-empty": 2,
"no-eval": 2,
Expand All @@ -41,16 +41,16 @@
"no-proto": 2,
"no-script-url": 2,
"no-sequences": 2,
"no-shadow": 2,
"no-shadow": 0,
"no-undef": 2,
"no-underscore-dangle": 0,
"no-unused-vars": [2, {"vars": "all", "args": "none"}],
"no-unused-vars": [2, { "vars": "all", "args": "none" }],
"no-use-before-define": [2, "nofunc"],
"no-with": 2,
"quotes": [2, "single"],
"quotes": 0,
"semi": [2, "always"],
"no-extra-semi": 2, // disallow unnecessary semicolons
"semi-spacing": [1, {"before": false, "after": true}], // enforce spacing before and after semicolons
"semi-spacing": [1, { "before": false, "after": true }], // enforce spacing before and after semicolons
"strict": 0,
"valid-typeof": 2,
"wrap-iife": [2, "inside"]
Expand Down
30 changes: 30 additions & 0 deletions .github/workflows/nodejs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions

name: Node.js CI

on:
push:
branches: [master]
pull_request:
branches: [master]

jobs:
build:
runs-on: ubuntu-latest

strategy:
matrix:
node-version: [14.x]

steps:
- uses: browser-actions/setup-chrome@latest
- run: chrome --version
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- run: chrome --version
- run: npm ci
- run: npm run build --if-present
19 changes: 19 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
on:
push:
tags:
- 'v*.*.*'

jobs:
publish:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v1
- uses: actions/setup-node@v1
with:
node-version: 12
- run: npm ci
- run: npm run build --if-present
- uses: JS-DevTools/npm-publish@v1
with:
token: ${{ secrets.NPM_TOKEN }}
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -29,3 +29,5 @@ node_modules

# IDE
*.iml
.DS_Store
dist
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# L.Path.Drag

[![npm version](https://badge.fury.io/js/leaflet-path-drag.svg)](http://badge.fury.io/js/leaflet-path-drag) [![CircleCI](https://circleci.com/gh/w8r/Leaflet.Path.Drag/tree/master.svg?style=shield)](https://circleci.com/gh/w8r/Leaflet.Path.Drag/tree/master)
[![npm version](https://badge.fury.io/js/leaflet-path-drag.svg)](http://badge.fury.io/js/leaflet-path-drag)

Drag handler for [Leaflet](https://github.com/leaflet/leaflet) vector features.
It adds dragging API and events of `L.Marker` to `L.Polygon` and `L.Polyline`.
Expand Down
3 changes: 0 additions & 3 deletions circle.yml

This file was deleted.

Loading

0 comments on commit b3fd049

Please sign in to comment.