Skip to content

Commit

Permalink
release preparation
Browse files Browse the repository at this point in the history
  • Loading branch information
manuelbieh committed May 23, 2019
1 parent a94320d commit 91fe5a7
Show file tree
Hide file tree
Showing 8 changed files with 3,082 additions and 104 deletions.
2 changes: 1 addition & 1 deletion .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
max_line_length = 100
max_line_length = 80

[*.md]
trim_trailing_whitespace = false
Expand Down
12 changes: 5 additions & 7 deletions .lintstagedrc
Original file line number Diff line number Diff line change
@@ -1,15 +1,13 @@
{
"linters": {
"*.{js,ts,md}": [
"src/*.{js,ts}": [
"prettier --write",
"yarn lint --fix",
"yarn test --passWithNoTests",
"git add"
],
"*.{js,ts}": [
"yarn tsc"
],
"*.{js,ts}": [
"yarn lint:js --fix",
"git add"
"src/*.ts": [
"yarn typecheck"
]
}
}
33 changes: 33 additions & 0 deletions .releaserc
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
{
"verifyConditions": [
"@semantic-release/npm",
"@semantic-release/git"
],
"prepare": [
"@semantic-release/npm",
{
"path": "@semantic-release/git",
"assets": ["package.json"],
"message": "Release <%= nextRelease.version %> - <%= new Date().toISOString() %> [skip ci]"
}
],
"analyzeCommits": {
"path": "semantic-release-conventional-commits",
"majorTypes": [
"major",
"breaking"
],
"minorTypes": [
"feat",
"feature",
"minor"
],
"patchTypes": [
"fix",
"chore",
"patch"
],
"mergePattern": "/^Merge pull request #(\\d+) from (.*)$/",
"mergeCorrespondence": "['id', 'source']"
}
}
21 changes: 21 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2018 Manuel Bieh

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
2 changes: 1 addition & 1 deletion lib/index.js

Large diffs are not rendered by default.

23 changes: 18 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@
"description": "",
"main": "lib/index.js",
"module": "es/index.js",
"publishConfig": {
"tag": "next"
},
"repository": {
"type": "git",
"url": "git+https://github.com/manuelbieh/geolib.git"
Expand All @@ -15,19 +18,25 @@
},
"homepage": "https://github.com/manuelbieh/geolib#readme",
"scripts": {
"test": "jest",
"lint": "eslint src/**/*.{js,ts}",
"typescript": "tsc --noEmit",
"build": "babel --minified --ignore **/*.test.js,**/*.test.ts --out-dir es --extensions .ts,.js --no-comments src",
"babel": "babel",
"build": "rimraf es && build:es && build:types && build:umd",
"build:es": "babel --minified --ignore **/*.test.js,**/*.test.ts --out-dir es --extensions .ts,.js --no-comments src",
"build:types": "tsc --outDir es --emitDeclarationOnly --noEmit false --declaration",
"babel": "babel"
"build:umd": "webpack-cli --config webpack.config.js",
"lint": "eslint src/**/*.{js,ts}",
"release": "semantic-release",
"postrelease": "git push origin master --follow-tags",
"test": "jest",
"typecheck": "tsc --noEmit"
},
"dependencies": {},
"devDependencies": {
"@babel/cli": "^7.4.4",
"@babel/core": "^7.4.4",
"@babel/preset-env": "^7.4.4",
"@babel/preset-typescript": "^7.3.3",
"@semantic-release/git": "^7.0.8",
"@semantic-release/npm": "^5.1.7",
"@types/jest": "^24.0.12",
"@types/node": "^12.0.0",
"@typescript-eslint/eslint-plugin": "^1.7.0",
Expand All @@ -46,9 +55,13 @@
"eslint-plugin-react-hooks": "^1.6.0",
"eslint-plugin-security": "^1.4.0",
"eslint-plugin-unicorn": "^8.0.2",
"husky": "^2.2.0",
"jest": "^24.8.0",
"lint-staged": "^8.1.6",
"prettier": "^1.17.0",
"rimraf": "^2.6.3",
"semantic-release": "^15.13.12",
"semantic-release-conventional-commits": "^2.0.1",
"typescript": "^3.4.5",
"webpack": "^4.30.0",
"webpack-cli": "^3.3.2"
Expand Down
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ export {
export { default as getSpeed } from './getSpeed';
export { default as isDecimal } from './isDecimal';
export { default as isPointInLine } from './isPointInLine';
export { default as isPointInPolygon } from './isPointInPolygon';
export { default as isPointNearLine } from './isPointNearLine';
export { default as IsPointInPolygon } from './IsPointInPolygon';
export { default as isSexagesimal } from './isSexagesimal';
export { default as isValidCoordinate } from './isValidCoordinate';
export { default as isValidLatitude } from './isValidLatitude';
Expand Down
Loading

0 comments on commit 91fe5a7

Please sign in to comment.