mirror of
https://github.com/harttle/liquidjs.git
synced 2026-09-15 04:10:40 -07:00
chore(CI): enable semantic release
This commit is contained in:
+23
-7
@@ -3,10 +3,26 @@ node_js:
|
||||
- "8"
|
||||
- "6"
|
||||
- "4"
|
||||
before_script:
|
||||
- npm install -g mocha
|
||||
script:
|
||||
- if (( $TRAVIS_NODE_VERSION >= 6 )); then npm run test; fi
|
||||
- npm run e2e
|
||||
after_success:
|
||||
- if (( $TRAVIS_NODE_VERSION >= 6 )); then npm run coveralls; fi
|
||||
jobs:
|
||||
include:
|
||||
- stage: test
|
||||
- name: 'Linting'
|
||||
script: npm run lint
|
||||
- name: 'Unit Test'
|
||||
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?type=dev)
|
||||
[](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/>
|
||||
|
||||
@@ -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)
|
||||
* [Operators](https://github.com/harttle/liquidjs/wiki/Operators)
|
||||
* [Whitespace Control](https://github.com/harttle/liquidjs/wiki/Whitespace-Control)
|
||||
* [Contribute Guidelines](#contribute-guidelines)
|
||||
|
||||
## Render from String
|
||||
|
||||
@@ -249,6 +252,13 @@ Plugin List:
|
||||
|
||||
* 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/
|
||||
[liquid-node]: https://github.com/sirlantis/liquid-node
|
||||
[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": {
|
||||
"lint": "eslint src/ test/ *.js",
|
||||
"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",
|
||||
"test": "npm run lint && npm run unit && npm run e2e",
|
||||
"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:nodejs": "node ./demo/nodejs/index.js",
|
||||
"demo:express": "cd ./demo/express/ && npm start",
|
||||
"preversion": "npm run lint && npm test",
|
||||
"version": "npm run dist && git add -A dist",
|
||||
"preversion": "npm test",
|
||||
"version": "npm run build && git add -A dist",
|
||||
"postversion": "git push --tags"
|
||||
},
|
||||
"repository": {
|
||||
@@ -71,10 +72,14 @@
|
||||
"rollup-plugin-node-resolve": "^3.3.0",
|
||||
"rollup-plugin-shim": "^1.0.0",
|
||||
"rollup-plugin-uglify": "^4.0.0",
|
||||
"semantic-release": "^15.13.3",
|
||||
"sinon": "^6.1.4",
|
||||
"sinon-chai": "^3.2.0",
|
||||
"supertest": "^3.0.0"
|
||||
},
|
||||
"release": {
|
||||
"branch": "master"
|
||||
},
|
||||
"nyc": {
|
||||
"require": [
|
||||
"babel-core/register"
|
||||
|
||||
Reference in New Issue
Block a user