Skip to content

Commit

Permalink
♻️ Refactor: Moves to semantic-release
Browse files Browse the repository at this point in the history
BREAKING CHANGE: The move to semantic release forced us to require a node version >= 10.18. The
engine field was updated. If you're using node LTS beyond this version, no changes are required.
  • Loading branch information
thecodedrift committed Feb 10, 2020
1 parent fc1f273 commit 4fa7f91
Show file tree
Hide file tree
Showing 5 changed files with 2,637 additions and 648 deletions.
40 changes: 25 additions & 15 deletions .czrc
Original file line number Diff line number Diff line change
Expand Up @@ -2,44 +2,54 @@
"path": "emoji-cz",
"emoji-cz": {
"types": {
"Feat": {},
"Fix": {},
"Feat": {
"release": "minor"
},
"Fix": {
"release": "patch"
},
"Docs": {
"emoji": "📝",
"description": "Documentation only changes"
"description": "Documentation only changes",
"release": "patch"
},
"Style": {
"release": "patch"
},
"Style": {},
"Refactor": {
"emoji": "♻️ ",
"description": "A code change that neither fixes a bug nor adds a feature"
"description": "A code change that neither fixes a bug nor adds a feature",
"release": "patch"
},
"Perf": {
"emoji": "⚡️",
"description": "A code change that strictly improves performance"
"description": "A code change that strictly improves performance",
"release": "minor"
},
"Test": {
"emoji": "✅",
"description": "Adding, correcting, or fixing tests"
},
"Convo": {
"emoji": "💬",
"description": "Work focused exclusively on an Aibex conversation (text and literals)"
"description": "Adding, correcting, or fixing tests",
"release": "patch"
},
"Upgrade": {
"emoji": "⬆️ ",
"description": "Upgrading dependencies"
"description": "Upgrading dependencies",
"release": "patch"
},
"Downgrade": {
"emoji": "⬇️ ",
"description": "Downgrading dependencies"
"description": "Downgrading dependencies",
"release": "patch"
},
"Pin": {
"emoji": "📌",
"description": "Pin a dependency to a specific version"
"description": "Pin a dependency to a specific version",
"release": "patch"
},
"Chore": {
"emoji": "❓",
"description": "Other changes that don't modify src or test files"
"description": "Other changes that don't modify src or test files",
"release": false
}
}
}
Expand Down
1 change: 1 addition & 0 deletions .node-version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
12.14.1
8 changes: 6 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@
"repository": "github:aibexhq/botscript",
"author": "Aibex, Inc <oss@aibex.com>",
"license": "Apache-2.0",
"engines": {
"node": ">=10.18.0 <11 || >=12.14.0 <13 || >=13.5.0"
},
"main": "index.js",
"browser": "dist/botscripten.umd.js",
"scripts": {
Expand All @@ -14,7 +17,7 @@
"buildAll": "yarn clean:dist && concurrently \"npm:build:*\" && yarn examples",
"tweego": "TWEEGO_PATH=./dist/Twine2 tweego",
"ci": "pretty-quick --check && yarn build && jest",
"release": "release-it",
"release": "semantic-release",
"____________________": "echo \"The following sub-commands are used to serve the main commands above\"",
"build:twine": "rollup -c -m inline && node scripts/createTwine",
"build:node": "rm -rf dist/node/* && babel src/node --out-dir dist/npm/node && babel src/common --out-dir dist/npm/common",
Expand Down Expand Up @@ -54,19 +57,20 @@
"@babel/preset-env": "7.8.4",
"commitizen": "^4.0.3",
"concurrently": "^5.0.2",
"conventional-changelog-conventionalcommits": "^4.2.3",
"emoji-cz": "^0.3.0",
"extwee": "^1.5.0",
"fs-extra": "^8.1.0",
"husky": "^4.2.1",
"nodemon": "^2.0.2",
"prettier": "1.19.1",
"pretty-quick": "^2.0.0",
"release-it": "^12.3.5",
"rollup": "^1.27.14",
"rollup-plugin-babel": "^4.2.0",
"rollup-plugin-commonjs": "^10.1.0",
"rollup-plugin-json": "^4.0.0",
"rollup-plugin-node-resolve": "^5.2.0",
"semantic-release": "^17.0.2",
"static-server": "^2.2.1"
},
"browserslist": {
Expand Down
Empty file added release.config.js
Empty file.
Loading

0 comments on commit 4fa7f91

Please sign in to comment.