diff --git a/.gitignore b/.gitignore index baa4e68..f87756c 100644 --- a/.gitignore +++ b/.gitignore @@ -3,6 +3,7 @@ node_modules npm-debug.log doc matter-doc-theme +RELEASE.md build/matter-dev.js build/matter-dev.min.js demo/js/lib/matter-dev.js diff --git a/package.json b/package.json index c4f87e6..2aea997 100644 --- a/package.json +++ b/package.json @@ -20,6 +20,7 @@ "rigid body physics" ], "devDependencies": { + "conventional-changelog-cli": "^2.1.1", "eslint": "^6.8.0", "jest": "^25.1.0", "jest-worker": "^24.9.0", @@ -36,13 +37,17 @@ "build-alpha": "webpack --mode=production --env.ALPHA & webpack --mode=production --env.MINIMIZE --env.ALPHA", "build-examples": "webpack --config webpack.examples.config.js --mode=production --env.ALPHA & webpack --config webpack.examples.config.js --mode=production --env.MINIMIZE --env.ALPHA", "lint": "eslint 'src/**/*.js' 'demo/js/Demo.js' 'demo/js/Compare.js' 'examples/*.js' 'webpack.*.js'", - "doc": "gulp doc", + "doc": "yuidoc --config yuidoc.json --project-version $npm_package_version", "test": "npm run test-node", "test-all": "jest", "test-save": "SAVE=true npm run test-node", "test-watch": "npm run test-node -- --watch", "test-node": "jest ./test/Examples.spec.js", - "test-browser": "jest ./test/Browser.spec.js" + "test-browser": "jest ./test/Browser.spec.js", + "changelog": "conventional-changelog -i CHANGELOG.md -s -r", + "release": "npm version --no-git-tag-version", + "preversion": "git checkout -b master && npm run lint && SAVE=true npm run test-all", + "version": "git checkout -b release/$npm_package_version && npm run build" }, "dependencies": {}, "files": [