mirror of
https://github.com/harttle/liquidjs.git
synced 2026-09-20 06:50:47 -07:00
chore(CI): enable semantic release
This commit is contained in:
+23
-7
@@ -3,10 +3,26 @@ node_js:
|
|||||||
- "8"
|
- "8"
|
||||||
- "6"
|
- "6"
|
||||||
- "4"
|
- "4"
|
||||||
before_script:
|
jobs:
|
||||||
- npm install -g mocha
|
include:
|
||||||
script:
|
- stage: test
|
||||||
- if (( $TRAVIS_NODE_VERSION >= 6 )); then npm run test; fi
|
- name: 'Linting'
|
||||||
- npm run e2e
|
script: npm run lint
|
||||||
after_success:
|
- name: 'Unit Test'
|
||||||
- if (( $TRAVIS_NODE_VERSION >= 6 )); then npm run coveralls; fi
|
script: if (( $TRAVIS_NODE_VERSION >= 6 )); then npm run unit; fi
|
||||||
|
- name: 'E2E Test'
|
||||||
|
script: npm run e2e
|
||||||
|
- name: 'Test Coverage'
|
||||||
|
script: if (( $TRAVIS_NODE_VERSION >= 6 )); then npm run coveralls; fi
|
||||||
|
|
||||||
|
- stage: build
|
||||||
|
script: npm run build
|
||||||
|
|
||||||
|
- stage: release
|
||||||
|
if: branch = master
|
||||||
|
node_js: "8"
|
||||||
|
script: skip
|
||||||
|
deploy:
|
||||||
|
provider: script
|
||||||
|
skip_cleanup: true
|
||||||
|
script: npx semantic-release
|
||||||
|
|||||||
@@ -9,6 +9,8 @@
|
|||||||
[](https://david-dm.org/harttle/liquidjs)
|
[](https://david-dm.org/harttle/liquidjs)
|
||||||
[](https://david-dm.org/harttle/liquidjs?type=dev)
|
[](https://david-dm.org/harttle/liquidjs?type=dev)
|
||||||
[](https://github.com/harttle/liquidjs/blob/master/LICENSE)
|
[](https://github.com/harttle/liquidjs/blob/master/LICENSE)
|
||||||
|
[](http://github.com/harttle/liquidjs)
|
||||||
|
[](https://github.com/harttle/liquidjs)
|
||||||
|
|
||||||
This is a liquid implementation for both Node.js and browsers. Website: <http://harttle.github.io/liquidjs/>, Live Demo: <https://jsfiddle.net/6u40xbzs/>
|
This is a liquid implementation for both Node.js and browsers. Website: <http://harttle.github.io/liquidjs/>, Live Demo: <https://jsfiddle.net/6u40xbzs/>
|
||||||
|
|
||||||
@@ -42,6 +44,7 @@ Though being compatible with [Ruby Liquid](https://github.com/shopify/liquid) is
|
|||||||
* [Register Tags](#register-tags), [Builtin Tags](https://github.com/harttle/liquidjs/wiki/Builtin-Tags)
|
* [Register Tags](#register-tags), [Builtin Tags](https://github.com/harttle/liquidjs/wiki/Builtin-Tags)
|
||||||
* [Operators](https://github.com/harttle/liquidjs/wiki/Operators)
|
* [Operators](https://github.com/harttle/liquidjs/wiki/Operators)
|
||||||
* [Whitespace Control](https://github.com/harttle/liquidjs/wiki/Whitespace-Control)
|
* [Whitespace Control](https://github.com/harttle/liquidjs/wiki/Whitespace-Control)
|
||||||
|
* [Contribute Guidelines](#contribute-guidelines)
|
||||||
|
|
||||||
## Render from String
|
## Render from String
|
||||||
|
|
||||||
@@ -249,6 +252,13 @@ Plugin List:
|
|||||||
|
|
||||||
* To add your plugin, contact me or simply send a PR.
|
* To add your plugin, contact me or simply send a PR.
|
||||||
|
|
||||||
|
## Contribute Guidelines
|
||||||
|
|
||||||
|
This repo uses [eslint](https://eslint.org/) to check code style, [semantic-release](https://github.com/semantic-release/semantic-release) to generate changelog and publish to npm and Github Releases.
|
||||||
|
|
||||||
|
* Code Style: <https://github.com/standard/eslint-config-standard>, `npm run lint` to check locally.
|
||||||
|
* Commit Message: <https://github.com/angular/angular.js/blob/master/DEVELOPERS.md#commits>
|
||||||
|
|
||||||
[nunjucks]: http://mozilla.github.io/nunjucks/
|
[nunjucks]: http://mozilla.github.io/nunjucks/
|
||||||
[liquid-node]: https://github.com/sirlantis/liquid-node
|
[liquid-node]: https://github.com/sirlantis/liquid-node
|
||||||
[shopify/liquid]: https://shopify.github.io/liquid/
|
[shopify/liquid]: https://shopify.github.io/liquid/
|
||||||
|
|||||||
Generated
+6308
-1103
File diff suppressed because it is too large
Load Diff
+9
-4
@@ -9,15 +9,16 @@
|
|||||||
"scripts": {
|
"scripts": {
|
||||||
"lint": "eslint src/ test/ *.js",
|
"lint": "eslint src/ test/ *.js",
|
||||||
"dev": "mocha test/unit",
|
"dev": "mocha test/unit",
|
||||||
"test": "cross-env NODE_ENV=test nyc --reporter=html mocha test/unit",
|
"unit": "cross-env NODE_ENV=test nyc --reporter=html mocha test/unit",
|
||||||
"e2e": "mocha test/e2e",
|
"e2e": "mocha test/e2e",
|
||||||
|
"test": "npm run lint && npm run unit && npm run e2e",
|
||||||
"coveralls": "nyc report --reporter=text-lcov | coveralls",
|
"coveralls": "nyc report --reporter=text-lcov | coveralls",
|
||||||
"dist": "rollup -c && ls -lh dist",
|
"build": "rollup -c && ls -lh dist",
|
||||||
"demo:browser": "echo open http://localhost:8080/demo/browser && http-server -c-1",
|
"demo:browser": "echo open http://localhost:8080/demo/browser && http-server -c-1",
|
||||||
"demo:nodejs": "node ./demo/nodejs/index.js",
|
"demo:nodejs": "node ./demo/nodejs/index.js",
|
||||||
"demo:express": "cd ./demo/express/ && npm start",
|
"demo:express": "cd ./demo/express/ && npm start",
|
||||||
"preversion": "npm run lint && npm test",
|
"preversion": "npm test",
|
||||||
"version": "npm run dist && git add -A dist",
|
"version": "npm run build && git add -A dist",
|
||||||
"postversion": "git push --tags"
|
"postversion": "git push --tags"
|
||||||
},
|
},
|
||||||
"repository": {
|
"repository": {
|
||||||
@@ -71,10 +72,14 @@
|
|||||||
"rollup-plugin-node-resolve": "^3.3.0",
|
"rollup-plugin-node-resolve": "^3.3.0",
|
||||||
"rollup-plugin-shim": "^1.0.0",
|
"rollup-plugin-shim": "^1.0.0",
|
||||||
"rollup-plugin-uglify": "^4.0.0",
|
"rollup-plugin-uglify": "^4.0.0",
|
||||||
|
"semantic-release": "^15.13.3",
|
||||||
"sinon": "^6.1.4",
|
"sinon": "^6.1.4",
|
||||||
"sinon-chai": "^3.2.0",
|
"sinon-chai": "^3.2.0",
|
||||||
"supertest": "^3.0.0"
|
"supertest": "^3.0.0"
|
||||||
},
|
},
|
||||||
|
"release": {
|
||||||
|
"branch": "master"
|
||||||
|
},
|
||||||
"nyc": {
|
"nyc": {
|
||||||
"require": [
|
"require": [
|
||||||
"babel-core/register"
|
"babel-core/register"
|
||||||
|
|||||||
Reference in New Issue
Block a user