-
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
14 changed files
with
147 additions
and
63 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
{ | ||
"env": { | ||
"browser": true, | ||
"es6": true, | ||
"amd": true, | ||
"commonjs": true | ||
}, | ||
"extends": "eslint:recommended", | ||
"rules": { | ||
"indent": ["error", 2], | ||
"quotes": ["error", "single"], | ||
"no-extra-semi": "off" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
ko_fi: surunzi | ||
open_collective: eruda |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
name: CI | ||
|
||
on: | ||
workflow_dispatch: | ||
push: | ||
branches: | ||
- 'master' | ||
paths: | ||
- 'src/**/*' | ||
|
||
jobs: | ||
ci: | ||
|
||
runs-on: ubuntu-latest | ||
|
||
strategy: | ||
matrix: | ||
node-version: [16.x] | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Use Node.js ${{ matrix.node-version }} | ||
uses: actions/setup-node@v2 | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
- run: npm i | ||
- run: npm run ci |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
name: Publish to NPM | ||
|
||
on: | ||
workflow_dispatch: | ||
release: | ||
types: [created] | ||
|
||
jobs: | ||
publish: | ||
|
||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
- name: Setup Node | ||
uses: actions/setup-node@v2 | ||
with: | ||
node-version: '18.x' | ||
registry-url: 'https://registry.npmjs.org' | ||
- name: Build eruda-orientation | ||
run: | | ||
npm i | ||
npm run build | ||
- name: Publish package on NPM | ||
run: npm publish | ||
env: | ||
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"singleQuote": true, | ||
"tabWidth": 2, | ||
"semi": false | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,7 @@ | ||
## v2.1.0 (7 Aug 2024) | ||
|
||
* fix: safari not working | ||
|
||
## v2.0.0 (3 Jan 2019) | ||
|
||
* feat: theme support |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,35 +1,36 @@ | ||
{ | ||
"name": "eruda-orientation", | ||
"version": "2.0.0", | ||
"version": "2.1.0", | ||
"main": "eruda-orientation.js", | ||
"description": "Eruda plugin for testing orientation api", | ||
"files": [ | ||
"eruda-orientation.js", | ||
"eruda-orientation.min.js" | ||
], | ||
"scripts": { | ||
"build": "uglifyjs eruda-orientation.js -o eruda-orientation.min.js --mangle", | ||
"lint": "eslint eruda-orientation.js", | ||
"ci": "npm run lint && npm run build", | ||
"dev": "nws -p 3000", | ||
"format": "prettier *.js .eslintrc.js --write" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/liriliri/eruda-orientation.git" | ||
"ci": "npm run lint && npm run build && npm run es5", | ||
"dev": "http-server", | ||
"format": "lsla prettier \"*.{js,json}\" --write", | ||
"es5": "es-check es5 eruda-orientation.js" | ||
}, | ||
"keywords": [ | ||
"eruda", | ||
"orientation", | ||
"plugin" | ||
], | ||
"author": "redhoodsu", | ||
"author": "surunzi", | ||
"license": "MIT", | ||
"bugs": { | ||
"url": "https://github.com/liriliri/eruda-orientation/issues" | ||
}, | ||
"homepage": "https://github.com/liriliri/eruda-orientation#readme", | ||
"devDependencies": { | ||
"eruda": "^2.0.0", | ||
"eslint": "^4.12.1", | ||
"nws": "^1.1.1", | ||
"prettier": "^1.14.2", | ||
"uglify-js": "^3.2.0" | ||
"eruda": "^3.2.0", | ||
"es-check": "^7.2.1", | ||
"eslint": "^8.36.0", | ||
"http-server": "^14.1.1", | ||
"uglify-js": "^3.19.0" | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.