Skip to content

Commit

Permalink
Clean old files before build (#777)
Browse files Browse the repository at this point in the history
  • Loading branch information
prprabhu-ms authored Sep 20, 2021
1 parent 2ca7a93 commit 696a74a
Show file tree
Hide file tree
Showing 25 changed files with 132 additions and 28 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"type": "none",
"comment": "Clean old files before build",
"packageName": "@internal/acs-ui-common",
"email": "[email protected]",
"dependentChangeType": "none"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"type": "none",
"comment": "Clean old files before build",
"packageName": "@internal/calling-component-bindings",
"email": "[email protected]",
"dependentChangeType": "none"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"type": "none",
"comment": "Clean old files before build",
"packageName": "@internal/calling-stateful-client",
"email": "[email protected]",
"dependentChangeType": "none"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"type": "none",
"comment": "Clean old files before build",
"packageName": "@internal/chat-component-bindings",
"email": "[email protected]",
"dependentChangeType": "none"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"type": "none",
"comment": "Clean old files before build",
"packageName": "@internal/chat-stateful-client",
"email": "[email protected]",
"dependentChangeType": "none"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"type": "none",
"comment": "Clean old files before build",
"packageName": "@internal/react-components",
"email": "[email protected]",
"dependentChangeType": "none"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"type": "none",
"comment": "Clean old files before build",
"packageName": "@internal/react-composites",
"email": "[email protected]",
"dependentChangeType": "none"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"type": "none",
"comment": "Clean all build files",
"packageName": "@internal/storybook",
"email": "[email protected]",
"dependentChangeType": "none"
}
1 change: 1 addition & 0 deletions common/config/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
"lint": "",
"lint:fix": "",
"build": "",
"clean": "",
"test": "",
"prettier": "",
"prettier:check": ""
Expand Down
9 changes: 9 additions & 0 deletions common/config/rush/command-line.json
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,15 @@
"ignoreDependencyOrder": true,
"incremental": false,
"safeForSimultaneousRushProcesses": true
},
{
"commandKind": "bulk",
"name": "clean",
"summary": "Delete build artifacts in each project.",
"description": "Delete build artifacts in each project.",
"enableParallelism": true,
"allowWarningsInSuccessfulBuild": true,
"safeForSimultaneousRushProcesses": true
}
],
"parameters": []
Expand Down
42 changes: 27 additions & 15 deletions common/config/rush/pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion packages/acs-ui-common/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,11 @@
"main": "dist/dist-cjs/index.js",
"types": "dist/acs-ui-common.d.ts",
"scripts": {
"build": "rushx build:esm && rushx build:cjs && api-extractor run --local",
"build": "rushx clean && rushx build:esm && rushx build:cjs && api-extractor run --local",
"build:esm": "tsc",
"build:cjs": "rollup -c --silent --failAfterWarnings",
"build:watch": "rushx build",
"clean": "rimraf dist",
"prettier": "prettier --no-error-on-unmatched-pattern --write --config ../../.prettierrc --ignore-path=../../.prettierignore \"**/*.js\" \"**/*.jsx\" \"**/*.ts\" \"**/*.tsx\"",
"prettier:check": "prettier --no-error-on-unmatched-pattern --check --config ../../.prettierrc --ignore-path=../../.prettierignore \"**/*.js\" \"**/*.jsx\" \"**/*.ts\" \"**/*.tsx\"",
"test": "jest",
Expand Down Expand Up @@ -38,6 +39,7 @@
"eslint": "^7.7.0",
"jest": "26.6.0",
"prettier": "2.3.1",
"rimraf": "^2.6.2",
"rollup": "~2.42.4",
"ts-jest": "^26.4.4",
"typescript": "4.3.5"
Expand Down
4 changes: 3 additions & 1 deletion packages/calling-component-bindings/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,11 @@
"main": "dist/dist-cjs/index.js",
"types": "dist/calling-component-bindings.d.ts",
"scripts": {
"build": "rushx build:esm && rushx build:cjs && api-extractor run --local",
"build": "rushx clean && rushx build:esm && rushx build:cjs && api-extractor run --local",
"build:esm": "tsc",
"build:cjs": "rollup -c --silent --failAfterWarnings",
"build:watch": "rushx build",
"clean": "rimraf dist",
"prettier": "prettier --no-error-on-unmatched-pattern --write --config ../../.prettierrc --ignore-path=../../.prettierignore \"**/*.js\" \"**/*.jsx\" \"**/*.ts\" \"**/*.tsx\"",
"prettier:check": "prettier --no-error-on-unmatched-pattern --check --config ../../.prettierrc --ignore-path=../../.prettierignore \"**/*.js\" \"**/*.jsx\" \"**/*.ts\" \"**/*.tsx\"",
"test": "jest --passWithNoTests",
Expand Down Expand Up @@ -48,6 +49,7 @@
"jest": "26.6.0",
"prettier": "2.3.1",
"react": "~16.14.0",
"rimraf": "^2.6.2",
"rollup": "~2.42.4",
"typescript": "4.3.5",
"ts-jest": "^26.4.4",
Expand Down
4 changes: 3 additions & 1 deletion packages/calling-stateful-client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,11 @@
"main": "dist/dist-cjs/index.js",
"types": "dist/calling-stateful-client.d.ts",
"scripts": {
"build": "rushx build:esm && rushx build:cjs && api-extractor run --local",
"build": "rushx clean && rushx build:esm && rushx build:cjs && api-extractor run --local",
"build:esm": "tsc",
"build:cjs": "rollup -c --silent --failAfterWarnings",
"build:watch": "rushx build",
"clean": "rimraf dist",
"prettier": "prettier --no-error-on-unmatched-pattern --write --config ../../.prettierrc --ignore-path=../../.prettierignore \"**/*.js\" \"**/*.jsx\" \"**/*.ts\" \"**/*.tsx\"",
"prettier:check": "prettier --no-error-on-unmatched-pattern --check --config ../../.prettierrc --ignore-path=../../.prettierignore \"**/*.js\" \"**/*.jsx\" \"**/*.ts\" \"**/*.tsx\"",
"test": "jest",
Expand Down Expand Up @@ -41,6 +42,7 @@
"eslint-plugin-prettier": "^3.1.4",
"eslint": "^7.7.0",
"jest": "26.6.0",
"rimraf": "^2.6.2",
"rollup": "~2.42.4",
"prettier": "2.3.1",
"ts-jest": "^26.4.4",
Expand Down
4 changes: 3 additions & 1 deletion packages/chat-component-bindings/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,11 @@
"main": "dist/dist-cjs/index.js",
"types": "dist/chat-component-bindings.d.ts",
"scripts": {
"build": "rushx build:esm && rushx build:cjs && api-extractor run --local",
"build": "rushx clean && rushx build:esm && rushx build:cjs && api-extractor run --local",
"build:esm": "tsc",
"build:cjs": "rollup -c --silent --failAfterWarnings",
"build:watch": "rushx build",
"clean": "rimraf dist",
"prettier": "prettier --no-error-on-unmatched-pattern --write --config ../../.prettierrc --ignore-path=../../.prettierignore \"**/*.js\" \"**/*.jsx\" \"**/*.ts\" \"**/*.tsx\"",
"prettier:check": "prettier --no-error-on-unmatched-pattern --check --config ../../.prettierrc --ignore-path=../../.prettierignore \"**/*.js\" \"**/*.jsx\" \"**/*.ts\" \"**/*.tsx\"",
"test": "jest",
Expand Down Expand Up @@ -47,6 +48,7 @@
"eslint-plugin-import": "~2.22.1",
"prettier": "2.3.1",
"react": "~16.14.0",
"rimraf": "^2.6.2",
"rollup": "~2.42.4",
"typescript": "4.3.5",
"jest": "26.6.0",
Expand Down
Loading

0 comments on commit 696a74a

Please sign in to comment.