Skip to content

Commit 937843b

Browse files
Merge branch 'master' into web-images
2 parents 28341f0 + a934701 commit 937843b

File tree

92 files changed

+19510
-31466
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

92 files changed

+19510
-31466
lines changed
Lines changed: 25 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,32 @@
11
module.exports = {
2-
'extends': 'airbnb',
3-
'env': {
4-
'mocha': true,
5-
'browser': true,
6-
'worker': true,
7-
'node': true
2+
extends: 'airbnb-base',
3+
env: {
4+
mocha: true,
5+
browser: true,
6+
worker: true,
7+
node: true,
88
},
9-
'rules': {
9+
ignorePatterns: [
10+
'test/lib/**/*',
11+
],
12+
parserOptions: {
13+
ecmaVersion: 'latest',
14+
sourceType: 'module',
15+
},
16+
rules: {
1017
'no-underscore-dangle': 0,
1118
'class-methods-use-this': 0,
1219
'no-plusplus': 0,
1320
'no-loop-func': 0,
1421
'no-mixed-operators': [
1522
'error', {
16-
'allowSamePrecedence': true
17-
}
23+
allowSamePrecedence: true,
24+
},
1825
],
1926
'no-param-reassign': [
2027
'error', {
21-
'props': false
22-
}
28+
props: false,
29+
},
2330
],
2431
'no-prototype-builtins': 0,
2532
'no-restricted-syntax': [
@@ -30,16 +37,18 @@ module.exports = {
3037
'no-console': 0,
3138
'no-bitwise': 0,
3239
'max-classes-per-file': 0,
40+
'max-len': ['error', { code: 130 }],
3341
'import/prefer-default-export': 0,
42+
'import/extensions': ['error', 'always'],
3443
'prefer-default-export': 0,
3544
'func-names': 0,
3645
'arrow-body-style': 0,
3746
'function-paren-newline': 0,
3847
'object-curly-newline': 0,
3948
'no-await-in-loop': 0,
40-
'prefer-destructuring': ['error', { 'object': true, 'array': false }],
41-
'curly': ['error', 'all'],
42-
'brace-style': ['error', '1tbs', { 'allowSingleLine': false }],
43-
'no-else-return': 0
44-
}
49+
'prefer-destructuring': ['error', { object: true, array: false }],
50+
curly: ['error', 'all'],
51+
'brace-style': ['error', '1tbs', { allowSingleLine: false }],
52+
'no-else-return': 0,
53+
},
4554
};

.github/workflows/ci.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Node.js CI
2+
3+
on:
4+
push:
5+
branches: [ master ]
6+
pull_request:
7+
branches: [ master ]
8+
9+
jobs:
10+
ci:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v2
14+
- run: -|
15+
docker pull osgeo/gdal:ubuntu-small-latest ;
16+
docker run -i --rm -v `pwd`/test/data:/data osgeo/gdal:ubuntu-small-latest bash -c "apt-get update && apt-get -y install imagemagick libtiff-tools wget && cd /data && ./setup_data.sh"
17+
- name: Use Node.js ${{ matrix.node-version }}
18+
uses: actions/setup-node@v1
19+
with:
20+
node-version: 14.x
21+
- run: npm ci
22+
- run: npm run build
23+
- run: npm test
24+
- name: action-slack
25+
uses: 8398a7/[email protected]
26+
with:
27+
status: ${{ job.status }}
28+
fields: repo,message,commit,author,action,eventName,ref,workflow,job,took
29+
env:
30+
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
31+
if: ${{ github.event_name != 'pull_request'}}

.github/workflows/docs.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: Documentation
2+
3+
on:
4+
push:
5+
branches: [ master ]
6+
7+
jobs:
8+
docs:
9+
name: Build and publish Documentation
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Checkout code
13+
uses: actions/checkout@v2
14+
- name: Use Node.js ${{ matrix.node-version }}
15+
uses: actions/setup-node@v1
16+
with:
17+
node-version: ${{ matrix.node-version }}
18+
- run: npm ci
19+
- run: npm run docs
20+
- name: Deploy pages
21+
uses: JamesIves/[email protected]
22+
with:
23+
branch: gh-pages
24+
folder: docs/
25+
- name: action-slack
26+
uses: 8398a7/[email protected]
27+
with:
28+
status: ${{ job.status }}
29+
fields: repo,message,commit,author,action,eventName,ref,workflow,job,took
30+
env:
31+
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
32+
if: always()

.github/workflows/release.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: Release
2+
3+
on:
4+
push:
5+
tags:
6+
- v*
7+
8+
jobs:
9+
release:
10+
name: Create Release
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: Checkout code
14+
uses: actions/checkout@v2
15+
- run: npm install
16+
- run: npm run docs
17+
- uses: JS-DevTools/npm-publish@v1
18+
with:
19+
token: ${{ secrets.NPM_TOKEN }}
20+
- name: Create Release
21+
id: create_release
22+
uses: actions/create-release@v1
23+
env:
24+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
25+
with:
26+
tag_name: ${{ github.ref }}
27+
release_name: Release ${{ github.ref }}
28+
body: ""
29+
draft: true
30+
prerelease: false
31+
- name: action-slack
32+
uses: 8398a7/[email protected]
33+
with:
34+
status: ${{ job.status }}
35+
fields: repo,message,commit,author,action,eventName,ref,workflow,job,took
36+
env:
37+
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
38+
if: always()

.gitignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,6 @@ node_modules
33
dist
44
dist-node
55
dist-browser
6-
.DS_Store
6+
dist-module
7+
docs
8+
.DS_Store

.npmignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,4 @@
11
docs
2-
test
2+
test
3+
src
4+
scripts

.travis.yml

Lines changed: 0 additions & 37 deletions
This file was deleted.

COMMUNITY.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,5 @@
22

33
Here is a list of community packages that use or extend the functionality of the core geotiff library.
44
- [geotiff-stats](https://github.com/geotiff/geotiff-stats): JavaScript package for computing basic statistics (e.g., min and max) for geotiffs, especially in a low-memory environment.
5-
- [geotiff-palette](https://github.com/GeoTIFF/geotiff-palette): JavaScript package for getting the palette (aka Color Map) for a geotiff
5+
- [geotiff-palette](https://github.com/GeoTIFF/geotiff-palette): JavaScript package for getting the palette (aka Color Map) for a geotiff.
6+
- [geotiff-geokeys-to-proj4](https://github.com/matafokka/geotiff-geokeys-to-proj4): JavaScript package for converting GeoTIFF's geokeys to Proj4 string, so images could be reprojected and consumed correctly.

0 commit comments

Comments
 (0)