From 4ae6245f2256685293a89efec214401586814209 Mon Sep 17 00:00:00 2001 From: devbucket Date: Sat, 15 Jun 2019 13:45:35 -0500 Subject: [PATCH] Added publish scripts. --- .npmignore | 11 +++++++++++ package.json | 6 ++++-- 2 files changed, 15 insertions(+), 2 deletions(-) create mode 100644 .npmignore diff --git a/.npmignore b/.npmignore new file mode 100644 index 0000000..e2cafe7 --- /dev/null +++ b/.npmignore @@ -0,0 +1,11 @@ +coverage/ +tests/ +src/ +.git/ +.vscode/ +.idea/ +.nyc_output/ +.eslintignore +.eslintrc.js +.travis.yml +babel.config.js diff --git a/package.json b/package.json index ab30de5..e5aee24 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@virtuous/react-store", - "version": "1.0.0", + "version": "0.0.0", "description": "A state container for React applications.", "main": "index.js", "repository": "git@github.com:bevirtuous/react-store.git", @@ -13,7 +13,9 @@ "test:watch": "jest --watchAll", "cover": "jest --coverage", "cover:serve": "yarn cover && http-server ./coverage/lcov-report -g", - "clean": "rm -rf ./node_modules && rm -rf ./.cache-loader && rm -rf ./.cache && rm -rf ./dist && npm i" + "preversion": "yarn test && yarn lint", + "version": "make build && git add -A", + "postversion": "git push && git push --tags && npm publish ./dist/ --access public" }, "devDependencies": { "@babel/cli": "^7.4.4",