Skip to content

Commit

Permalink
fix: added semantic-release
Browse files Browse the repository at this point in the history
  • Loading branch information
jdx committed Jan 11, 2018
1 parent 66deca9 commit cf35289
Show file tree
Hide file tree
Showing 7 changed files with 4,672 additions and 4 deletions.
34 changes: 34 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
---
version: 2
jobs:
release:
docker:
- image: node:latest
working_directory: ~/cli
steps:
- checkout
- restore_cache: &restore_cache
keys:
- v0-yarn-{{ .Environment.CIRCLE_JOB }}-{{checksum ".circleci/config.yml"}}-{{ .Branch }}-{{checksum "yarn.lock"}}
- v0-yarn-{{ .Environment.CIRCLE_JOB }}-{{checksum ".circleci/config.yml"}}-{{ .Branch }}-
- v0-yarn-{{ .Environment.CIRCLE_JOB }}-{{checksum ".circleci/config.yml"}}-master
- run: yarn
- run: npx semantic-release
- save_cache: &save_cache
key: v0-yarn-{{ .Environment.CIRCLE_JOB }}-{{checksum ".circleci/config.yml"}}-{{ .Branch }}-{{checksum "yarn.lock"}}
paths:
- ~/cli/node_modules
- ~/cli/test/fixtures/jest/node_modules
- /usr/local/share/.cache/yarn
- /usr/local/share/.config/yarn
- /usr/bin/shellcheck

workflows:
version: 2
test:
jobs:
- release:
context: org-global
filters:
branches: {only: master}

10 changes: 10 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
root = true

[*]
indent_style = space
indent_size = 2
tab_width = 2
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/node_modules
14 changes: 14 additions & 0 deletions .releaserc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
module.exports = {
verifyConditions: [
'@semantic-release/changelog',
'@semantic-release/npm',
'@semantic-release/git',
'@semantic-release/github',
],
publish: [
'@semantic-release/changelog',
'@semantic-release/npm',
'@semantic-release/git',
'@semantic-release/github',
],
}
17 changes: 17 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
module.exports = {
extends: [
'eslint:recommended',
'xo-space',
'plugin:node/recommended',
'plugin:unicorn/recommended',
],
plugins: [
'node',
'unicorn',
],
rules: {
'comma-dangle': ['error', 'always-multiline'],
semi: ['error', 'never'],
quotes: ['error', 'single'],
},
}
41 changes: 37 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,41 @@
{
"name": "@dxcli/lint",
"name": "eslint-config-dxcli",
"description": "eslint config for dxcli",
"version": "0.0.0",
"description": "linting rules for dxcli",
"repository": "dxcli/lint",
"author": "Jeff Dickey @jdxcode",
"license": "MIT"
"config": {
"commitizen": {
"path": "cz-conventional-changelog"
}
},
"dependencies": {
"eslint-config-xo-space": "^0.17.0",
"eslint-plugin-node": "^5.2.1",
"eslint-plugin-unicorn": "^3.0.1"
},
"devDependencies": {
"@commitlint/cli": "^6.0.1",
"@commitlint/config-conventional": "^5.2.3",
"@semantic-release/changelog": "^1.0.0",
"@semantic-release/git": "^2.0.1",
"@semantic-release/github": "^3.0.1",
"@semantic-release/npm": "^2.6.1",
"commitizen": "^2.9.6",
"cz-conventional-changelog": "^2.1.0",
"eslint": "^4.15.0",
"husky": "^0.14.3",
"semantic-release": "^11.0.2"
},
"engines": {
"node": ">= 8.0.0"
},
"files": [
"/index.js"
],
"license": "MIT",
"main": "index.js",
"repository": "dxcli/eslint-config-lint",
"scripts": {
"commitmsg": "commitlint -x @commitlint/config-conventional -e $GIT_PARAMS"
}
}
Loading

0 comments on commit cf35289

Please sign in to comment.