Skip to content

Commit

Permalink
added publish next script in package.json
Browse files Browse the repository at this point in the history
  • Loading branch information
nmetulev committed Dec 1, 2020
1 parent 5b5d616 commit fc1fa5a
Show file tree
Hide file tree
Showing 9 changed files with 18 additions and 17 deletions.
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,8 @@
"storybook:dev": "npm run build:compile && npm run storybook:bundle && wca analyze packages --format json --outFile custom-elements.json",
"storybook:build": "npm run storybook:dev && build-storybook -s assets && cpx .storybook/CNAME storybook-static",
"storybook:deploy": "npm run storybook:build && storybook-to-ghpages -e storybook-static",
"storybook:bundle": "rollup -c ./.storybook/rollup.config.js"
"storybook:bundle": "rollup -c ./.storybook/rollup.config.js",
"publish:next": "lerna run publish:next --scope @microsoft/*"
},
"storybook-deployer": {
"gitUsername": "@microsoft/mgt",
Expand Down
4 changes: 2 additions & 2 deletions packages/mgt-components/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,11 @@
"compile": "tsc -b",
"compile:watch": "tsc -w",
"lint": "tslint -c ../../tslint.json 'src/**/*.ts'",
"prepack": "shx rm -rf *.tgz && npm run build",
"postpack": "cpx *.tgz ../../artifacts",
"sass": "gulp sass --cwd .",
"sass:watch": "gulp watchSass --cwd .",
"setLicense": "gulp setLicense --cwd ."
"setLicense": "gulp setLicense --cwd .",
"publish:next": "npm publish --tag next"
},
"dependencies": {
"@microsoft/microsoft-graph-types": "^1.22.0",
Expand Down
4 changes: 2 additions & 2 deletions packages/mgt-element/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"src"
],
"scripts": {
"build": "npm run clean && npm run build:compile",
"build": "npm run setVersion && npm run clean && npm run build:compile",
"build:compile": "npm run compile",
"build:watch": "npm run compile:watch",
"clean": "shx rm -rf ./dist && shx rm -rf ./tsconfig.tsbuildinfo",
Expand All @@ -30,7 +30,7 @@
"setVersion": "gulp setVersion --cwd .",
"setLicense": "gulp setLicense --cwd .",
"postpack": "cpx *.tgz ../../artifacts",
"prepack": "shx rm -rf *.tgz && npm run setVersion && npm run build"
"publish:next": "npm publish --tag next"
},
"dependencies": {
"@microsoft/microsoft-graph-client": "^2.0.0",
Expand Down
4 changes: 2 additions & 2 deletions packages/mgt-react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@
"scripts": {
"build": "npm run clean && npm run generate && tsc",
"clean": "node ./scripts/clean.js",
"prepack": "shx rm -rf *.tgz && npm run build",
"postpack": "cpx *.tgz ../../artifacts",
"generate": "wca analyze ../mgt-components/src --format json --outFile temp/web-components.json && node ./scripts/generate.js"
"generate": "wca analyze ../mgt-components/src --format json --outFile temp/web-components.json && node ./scripts/generate.js",
"publish:next": "npm publish --tag next"
},
"dependencies": {
"@microsoft/mgt": "*",
Expand Down
4 changes: 2 additions & 2 deletions packages/mgt/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,14 +35,14 @@
"copy:loader": "cpx src/bundle/mgt-loader.js dist/bundle",
"copy:wc": "cpx ../../node_modules/@webcomponents/webcomponentsjs/bundles/**/* dist/bundle/wc/bundles && cpx ../../node_modules/@webcomponents/webcomponentsjs/webcomponents-loader.js dist/bundle/wc",
"lint": "tslint -c ../../tslint.json 'src/**/*.ts'",
"prepack": "shx rm -rf *.tgz && npm run build",
"postpack": "cpx *.tgz ../../artifacts",
"rollup": "rollup -c",
"sass": "gulp sass --cwd .",
"sass:watch": "gulp watchSass --cwd .",
"setLicense": "gulp setLicense --cwd .",
"test": "jest",
"test:watch": "jest --watch"
"test:watch": "jest --watch",
"publish:next": "npm publish --tag next"
},
"dependencies": {
"@microsoft/mgt-element": "*",
Expand Down
4 changes: 2 additions & 2 deletions packages/providers/mgt-msal-provider/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@
"compile:watch": "tsc -w",
"lint": "tslint -c ../../../tslint.json 'src/**/*.ts'",
"setLicense": "gulp setLicense --cwd .",
"prepack": "shx rm -rf *.tgz && npm run build",
"postpack": "cpx *.tgz ../../../artifacts"
"postpack": "cpx *.tgz ../../../artifacts",
"publish:next": "npm publish --tag next"
},
"dependencies": {
"@microsoft/mgt-element": "*",
Expand Down
4 changes: 2 additions & 2 deletions packages/providers/mgt-proxy-provider/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@
"compile:watch": "tsc -w",
"lint": "tslint -c ../../../tslint.json 'src/**/*.ts'",
"setLicense": "gulp setLicense --cwd .",
"prepack": "shx rm -rf *.tgz && npm run build",
"postpack": "cpx *.tgz ../../../artifacts"
"postpack": "cpx *.tgz ../../../artifacts",
"publish:next": "npm publish --tag next"
},
"dependencies": {
"@microsoft/mgt-element": "*"
Expand Down
4 changes: 2 additions & 2 deletions packages/providers/mgt-sharepoint-provider/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@
"compile:watch": "tsc -w",
"lint": "tslint -c ../../../tslint.json 'src/**/*.ts'",
"setLicense": "gulp setLicense --cwd .",
"prepack": "shx rm -rf *.tgz && npm run build",
"postpack": "cpx *.tgz ../../../artifacts"
"postpack": "cpx *.tgz ../../../artifacts",
"publish:next": "npm publish --tag next"
},
"dependencies": {
"@microsoft/mgt-element": "*"
Expand Down
4 changes: 2 additions & 2 deletions packages/providers/mgt-teams-provider/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@
"compile:watch": "tsc -w",
"lint": "tslint -c ../../../tslint.json 'src/**/*.ts'",
"setLicense": "gulp setLicense --cwd .",
"prepack": "shx rm -rf *.tgz && npm run build",
"postpack": "cpx *.tgz ../../../artifacts"
"postpack": "cpx *.tgz ../../../artifacts",
"publish:next": "npm publish --tag next"
},
"dependencies": {
"@microsoft/mgt-element": "*",
Expand Down

0 comments on commit fc1fa5a

Please sign in to comment.