Skip to content

Commit

Permalink
Merge pull request #10 from M-Izadmehr/dev
Browse files Browse the repository at this point in the history
chore(versioning): add semantic version
  • Loading branch information
M-Izadmehr authored Jun 27, 2020
2 parents ace3853 + 137aec5 commit 3429078
Show file tree
Hide file tree
Showing 8 changed files with 5,957 additions and 86 deletions.
3 changes: 2 additions & 1 deletion .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@ module.exports = {
node: true,
commonjs: true,
browser: true,
es6: true
es6: true,
jest: true
},
plugins: ["prettier"],
extends: ["eslint:recommended", "prettier"],
Expand Down
13 changes: 13 additions & 0 deletions .releaser
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"plugins": [
"@semantic-release/commit-analyzer",
"@semantic-release/release-notes-generator",
"@semantic-release/changelog",
"@semantic-release/npm",
["@semantic-release/git", {
"assets": ["package.json", "CHANGELOG.md"],
"message": "chore(release): ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}"
}],
"@semantic-release/github"
]
}
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,4 @@ services:
import:
- .travis/node.yml
- .travis/node-versions.yml
- .travis/semantic-release.yml
3 changes: 0 additions & 3 deletions .travis/node.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,3 @@ cache:
# Retry install on fail to avoid failing a build on network/disk/external errors
install:
- travis_retry npm install

script:
- npm run test
15 changes: 15 additions & 0 deletions .travis/semantic-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
branches:
only:
- master
- next
- beta
- /^\d+\.(\d+|x)(\.x)?$/

jobs:
include:
- stage: release
node_js: lts/*
install:
- travis_retry npm install
script:
- npm run semantic-release
18 changes: 14 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
{
"name": "deadfile",
"version": "0.0.7",
"version": "0.0.0-development",
"description": "Simple util to find deadcode and unused files in any JavaScript project (ES5, ES6, React, Vue, ...)",
"main": "src/index.js",
"homepage": "https://github.com/M-Izadmehr/deadfile",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"docs": "docsify serve ./docs"
"test": "jest",
"docs": "docsify serve ./docs",
"release": "",
"semantic-release": "semantic-release"
},
"bin": {
"deadfile": "src/bin.js"
Expand All @@ -30,12 +32,16 @@
"yargs": "^14.2.0"
},
"devDependencies": {
"@semantic-release/changelog": "^5.0.1",
"@semantic-release/git": "^9.0.0",
"eslint": "^6.6.0",
"eslint-config-prettier": "^6.5.0",
"eslint-plugin-prettier": "^3.1.1",
"husky": "^3.0.9",
"jest": "^26.1.0",
"lint-staged": "^9.4.2",
"prettier": "^1.18.2"
"prettier": "^1.18.2",
"semantic-release": "^17.1.1"
},
"husky": {
"hooks": {
Expand All @@ -47,5 +53,9 @@
"eslint --fix",
"git add"
]
},
"repository": {
"type": "git",
"url": "https://github.com/M-Izadmehr/deadfile.git"
}
}
3 changes: 3 additions & 0 deletions test/basic.spec.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
test("dummy test placeholder", () => {
expect(true).toBe(true);
});
Loading

0 comments on commit 3429078

Please sign in to comment.