Skip to content

Commit

Permalink
feat(tooling): add-scripts-in-each package
Browse files Browse the repository at this point in the history
  • Loading branch information
ShreyasSharma28 committed Oct 10, 2024
1 parent da22acc commit 8a4d0bd
Show file tree
Hide file tree
Showing 104 changed files with 310 additions and 207 deletions.
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,16 @@
"clean:dist": "rimraf \"packages/**/dist/\"",
"clean:transpile": "rimraf \"packages/**/es/\" && rimraf \"packages/**/cjs/\"",
"deploy": "babel-node ./scripts/deploy/index.js",
"jest": "cross-env TZ=utc jest --config=jest.config.json",
"test": "yarn run static-analysis && yarn run jest",
"test:unit": "yarn run jest",
"test:clean": "yarn run clean && yarn run test",
"test:automation": "wdio wdio.conf.js",
"test:automation:smoke": "wdio wdio.conf.js --suite smoke",
"test:automation:space": "wdio wdio.conf.js --suite space",
"test:automation:recents": "wdio wdio.conf.js --suite recents",
"test:tap": "cross-env TAP=true wdio wdio.conf.js --suite tap",
"test:integration": "cross-env INTEGRATION=true wdio wdio.conf.js --suite smoke",
"jest": "cross-env TZ=utc jest --config=jest.config.json",
"static-analysis": "yarn run eslint",
"lint:eslint": "eslint --ignore-path .gitignore $(yarn run --silent lint:eslint:ci-reporter)",
"eslint": "eslint ./",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@
"build:src": "cross-env NODE_ENV=${NODE_ENV:-production} NODE_OPTIONS=--max-old-space-size=2048 yarn run build",
"serve": "yarn run serve:src package private-react-component-example-code",
"serve:src": "cross-env NODE_ENV=${NODE_ENV:-development} babel-node ../../../scripts/start/index.js",
"publish": "cross-env-shell NODE_ENV='' babel-node ../../../scripts/publish/index.js package private-react-component-example-code"
"publish": "cross-env-shell NODE_ENV='' babel-node ../../../scripts/publish/index.js package private-react-component-example-code",
"test:unit": "cd ../../ && yarn run test:unit private-react-component-example-code"
},
"version": "0.211.0"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@
"build:src": "cross-env NODE_ENV=${NODE_ENV:-production} NODE_OPTIONS=--max-old-space-size=2048 yarn run build",
"serve": "yarn run serve:src package private-react-component-space-destination",
"serve:src": "cross-env NODE_ENV=${NODE_ENV:-development} babel-node ../../../scripts/start/index.js",
"publish": "cross-env-shell NODE_ENV='' babel-node ../../../scripts/publish/index.js package private-react-component-space-destination"
"publish": "cross-env-shell NODE_ENV='' babel-node ../../../scripts/publish/index.js package private-react-component-space-destination",
"test:unit": "cd ../../ && yarn run test:unit private-react-component-space-destination"
},
"version": "0.211.0"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@
"build:src": "cross-env NODE_ENV=${NODE_ENV:-production} NODE_OPTIONS=--max-old-space-size=2048 yarn run build",
"serve": "yarn run serve:src package private-react-component-token-input",
"serve:src": "cross-env NODE_ENV=${NODE_ENV:-development} babel-node ../../../scripts/start/index.js",
"publish": "cross-env-shell NODE_ENV='' babel-node ../../../scripts/publish/index.js package private-react-component-token-input"
"publish": "cross-env-shell NODE_ENV='' babel-node ../../../scripts/publish/index.js package private-react-component-token-input",
"test:unit": "cd ../../ && yarn run test:unit private-react-component-token-input"
},
"version": "0.211.0"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@
"build:src": "cross-env NODE_ENV=${NODE_ENV:-production} NODE_OPTIONS=--max-old-space-size=2048 yarn run build",
"serve": "yarn run serve:src package react-component-activity-item-base",
"serve:src": "cross-env NODE_ENV=${NODE_ENV:-development} babel-node ../../../scripts/start/index.js",
"publish": "cross-env-shell NODE_ENV='' babel-node ../../../scripts/publish/index.js package react-component-activity-item-base"
"publish": "cross-env-shell NODE_ENV='' babel-node ../../../scripts/publish/index.js package react-component-activity-item-base",
"test:unit": "cd ../../ && yarn run test:unit react-component-activity-item-base"
},
"version": "0.211.0"
}
}
5 changes: 3 additions & 2 deletions packages/@webex/react-component-activity-item/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,8 @@
"build:src": "cross-env NODE_ENV=${NODE_ENV:-production} NODE_OPTIONS=--max-old-space-size=2048 yarn run build",
"serve": "yarn run serve:src package react-component-activity-item",
"serve:src": "cross-env NODE_ENV=${NODE_ENV:-development} babel-node ../../../scripts/start/index.js",
"publish": "cross-env-shell NODE_ENV='' babel-node ../../../scripts/publish/index.js package react-component-activity-item"
"publish": "cross-env-shell NODE_ENV='' babel-node ../../../scripts/publish/index.js package react-component-activity-item",
"test:unit": "cd ../../ && yarn run test:unit react-component-activity-item"
},
"version": "0.211.0"
}
}
5 changes: 3 additions & 2 deletions packages/@webex/react-component-activity-list/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,8 @@
"build:src": "cross-env NODE_ENV=${NODE_ENV:-production} NODE_OPTIONS=--max-old-space-size=2048 yarn run build",
"serve": "yarn run serve:src package react-component-activity-list",
"serve:src": "cross-env NODE_ENV=${NODE_ENV:-development} babel-node ../../../scripts/start/index.js",
"publish": "cross-env-shell NODE_ENV='' babel-node ../../../scripts/publish/index.js package react-component-activity-list"
"publish": "cross-env-shell NODE_ENV='' babel-node ../../../scripts/publish/index.js package react-component-activity-list",
"test:unit": "cd ../../ && yarn run test:unit react-component-activity-list"
},
"version": "0.211.0"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@
"build:src": "cross-env NODE_ENV=${NODE_ENV:-production} NODE_OPTIONS=--max-old-space-size=2048 yarn run build",
"serve": "yarn run serve:src package react-component-activity-menu-header",
"serve:src": "cross-env NODE_ENV=${NODE_ENV:-development} babel-node ../../../scripts/start/index.js",
"publish": "cross-env-shell NODE_ENV='' babel-node ../../../scripts/publish/index.js package react-component-activity-menu-header"
"publish": "cross-env-shell NODE_ENV='' babel-node ../../../scripts/publish/index.js package react-component-activity-menu-header",
"test:unit": "cd ../../ && yarn run test:unit react-component-activity-menu-header"
},
"version": "0.211.0"
}
}
5 changes: 3 additions & 2 deletions packages/@webex/react-component-activity-menu/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@
"build:src": "cross-env NODE_ENV=${NODE_ENV:-production} NODE_OPTIONS=--max-old-space-size=2048 yarn run build",
"serve": "yarn run serve:src package react-component-activity-menu",
"serve:src": "cross-env NODE_ENV=${NODE_ENV:-development} babel-node ../../../scripts/start/index.js",
"publish": "cross-env-shell NODE_ENV='' babel-node ../../../scripts/publish/index.js package react-component-activity-menu"
"publish": "cross-env-shell NODE_ENV='' babel-node ../../../scripts/publish/index.js package react-component-activity-menu",
"test:unit": "cd ../../ && yarn run test:unit react-component-activity-menu"
},
"version": "0.211.0"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@
"build:src": "cross-env NODE_ENV=${NODE_ENV:-production} NODE_OPTIONS=--max-old-space-size=2048 yarn run build",
"serve": "yarn run serve:src package react-component-activity-post-action",
"serve:src": "cross-env NODE_ENV=${NODE_ENV:-development} babel-node ../../../scripts/start/index.js",
"publish": "cross-env-shell NODE_ENV='' babel-node ../../../scripts/publish/index.js package react-component-activity-post-action"
"publish": "cross-env-shell NODE_ENV='' babel-node ../../../scripts/publish/index.js package react-component-activity-post-action",
"test:unit": "cd ../../ && yarn run test:unit react-component-activity-post-action"
},
"version": "0.211.0"
}
}
5 changes: 3 additions & 2 deletions packages/@webex/react-component-activity-post/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@
"build:src": "cross-env NODE_ENV=${NODE_ENV:-production} NODE_OPTIONS=--max-old-space-size=2048 yarn run build",
"serve": "yarn run serve:src package react-component-activity-post",
"serve:src": "cross-env NODE_ENV=${NODE_ENV:-development} babel-node ../../../scripts/start/index.js",
"publish": "cross-env-shell NODE_ENV='' babel-node ../../../scripts/publish/index.js package react-component-activity-post"
"publish": "cross-env-shell NODE_ENV='' babel-node ../../../scripts/publish/index.js package react-component-activity-post",
"test:unit": "cd ../../ && yarn run test:unit react-component-activity-post"
},
"version": "0.211.0"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@
"build:src": "cross-env NODE_ENV=${NODE_ENV:-production} NODE_OPTIONS=--max-old-space-size=2048 yarn run build",
"serve": "yarn run serve:src package react-component-activity-share-file",
"serve:src": "cross-env NODE_ENV=${NODE_ENV:-development} babel-node ../../../scripts/start/index.js",
"publish": "cross-env-shell NODE_ENV='' babel-node ../../../scripts/publish/index.js package react-component-activity-share-file"
"publish": "cross-env-shell NODE_ENV='' babel-node ../../../scripts/publish/index.js package react-component-activity-share-file",
"test:unit": "cd ../../ && yarn run test:unit react-component-activity-share-file"
},
"version": "0.211.0"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@
"build:src": "cross-env NODE_ENV=${NODE_ENV:-production} NODE_OPTIONS=--max-old-space-size=2048 yarn run build",
"serve": "yarn run serve:src package react-component-activity-share-files",
"serve:src": "cross-env NODE_ENV=${NODE_ENV:-development} babel-node ../../../scripts/start/index.js",
"publish": "cross-env-shell NODE_ENV='' babel-node ../../../scripts/publish/index.js package react-component-activity-share-files"
"publish": "cross-env-shell NODE_ENV='' babel-node ../../../scripts/publish/index.js package react-component-activity-share-files",
"test:unit": "cd ../../ && yarn run test:unit react-component-activity-share-files"
},
"version": "0.211.0"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
"build:src": "cross-env NODE_ENV=${NODE_ENV:-production} NODE_OPTIONS=--max-old-space-size=2048 yarn run build",
"serve": "yarn run serve:src package react-component-activity-share-thumbnail",
"serve:src": "cross-env NODE_ENV=${NODE_ENV:-development} babel-node ../../../scripts/start/index.js",
"publish": "cross-env-shell NODE_ENV='' babel-node ../../../scripts/publish/index.js package react-component-activity-share-thumbnail"
"publish": "cross-env-shell NODE_ENV='' babel-node ../../../scripts/publish/index.js package react-component-activity-share-thumbnail",
"test:unit": "cd ../../ && yarn run test:unit react-component-activity-share-thumbnail"
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
"build:src": "cross-env NODE_ENV=${NODE_ENV:-production} NODE_OPTIONS=--max-old-space-size=2048 yarn run build",
"serve": "yarn run serve:src package react-component-activity-system-message",
"serve:src": "cross-env NODE_ENV=${NODE_ENV:-development} babel-node ../../../scripts/start/index.js",
"publish": "cross-env-shell NODE_ENV='' babel-node ../../../scripts/publish/index.js package react-component-activity-system-message"
"publish": "cross-env-shell NODE_ENV='' babel-node ../../../scripts/publish/index.js package react-component-activity-system-message",
"test:unit": "cd ../../ && yarn run test:unit react-component-activity-system-message"
}
}
}
5 changes: 3 additions & 2 deletions packages/@webex/react-component-activity-text/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
"build:src": "cross-env NODE_ENV=${NODE_ENV:-production} NODE_OPTIONS=--max-old-space-size=2048 yarn run build",
"serve": "yarn run serve:src package react-component-activity-text",
"serve:src": "cross-env NODE_ENV=${NODE_ENV:-development} babel-node ../../../scripts/start/index.js",
"publish": "cross-env-shell NODE_ENV='' babel-node ../../../scripts/publish/index.js package react-component-activity-text"
"publish": "cross-env-shell NODE_ENV='' babel-node ../../../scripts/publish/index.js package react-component-activity-text",
"test:unit": "cd ../../ && yarn run test:unit react-component-activity-text"
}
}
}
5 changes: 3 additions & 2 deletions packages/@webex/react-component-adaptive-card/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
"build:src": "cross-env NODE_ENV=${NODE_ENV:-production} NODE_OPTIONS=--max-old-space-size=2048 yarn run build",
"serve": "yarn run serve:src package react-component-adaptive-card",
"serve:src": "cross-env NODE_ENV=${NODE_ENV:-development} babel-node ../../../scripts/start/index.js",
"publish": "cross-env-shell NODE_ENV='' babel-node ../../../scripts/publish/index.js package react-component-adaptive-card"
"publish": "cross-env-shell NODE_ENV='' babel-node ../../../scripts/publish/index.js package react-component-adaptive-card",
"test:unit": "cd ../../ && yarn run test:unit react-component-adaptive-card"
}
}
}
5 changes: 3 additions & 2 deletions packages/@webex/react-component-add-file-button/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
"build:src": "cross-env NODE_ENV=${NODE_ENV:-production} NODE_OPTIONS=--max-old-space-size=2048 yarn run build",
"serve": "yarn run serve:src package react-component-add-file-button",
"serve:src": "cross-env NODE_ENV=${NODE_ENV:-development} babel-node ../../../scripts/start/index.js",
"publish": "cross-env-shell NODE_ENV='' babel-node ../../../scripts/publish/index.js package react-component-add-file-button"
"publish": "cross-env-shell NODE_ENV='' babel-node ../../../scripts/publish/index.js package react-component-add-file-button",
"test:unit": "cd ../../ && yarn run test:unit react-component-add-file-button"
}
}
}
5 changes: 3 additions & 2 deletions packages/@webex/react-component-audio/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
"build:src": "cross-env NODE_ENV=${NODE_ENV:-production} NODE_OPTIONS=--max-old-space-size=2048 yarn run build",
"serve": "yarn run serve:src package react-component-audio",
"serve:src": "cross-env NODE_ENV=${NODE_ENV:-development} babel-node ../../../scripts/start/index.js",
"publish": "cross-env-shell NODE_ENV='' babel-node ../../../scripts/publish/index.js package react-component-audio"
"publish": "cross-env-shell NODE_ENV='' babel-node ../../../scripts/publish/index.js package react-component-audio",
"test:unit": "cd ../../ && yarn run test:unit react-component-audio"
}
}
}
5 changes: 3 additions & 2 deletions packages/@webex/react-component-avatar/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
"build:src": "cross-env NODE_ENV=${NODE_ENV:-production} NODE_OPTIONS=--max-old-space-size=2048 yarn run build",
"serve": "yarn run serve:src package react-component-avatar",
"serve:src": "cross-env NODE_ENV=${NODE_ENV:-development} babel-node ../../../scripts/start/index.js",
"publish": "cross-env-shell NODE_ENV='' babel-node ../../../scripts/publish/index.js package react-component-avatar"
"publish": "cross-env-shell NODE_ENV='' babel-node ../../../scripts/publish/index.js package react-component-avatar",
"test:unit": "cd ../../ && yarn run test:unit react-component-avatar"
}
}
}
5 changes: 3 additions & 2 deletions packages/@webex/react-component-badge/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
"build:src": "cross-env NODE_ENV=${NODE_ENV:-production} NODE_OPTIONS=--max-old-space-size=2048 yarn run build",
"serve": "yarn run serve:src package react-component-badge",
"serve:src": "cross-env NODE_ENV=${NODE_ENV:-development} babel-node ../../../scripts/start/index.js",
"publish": "cross-env-shell NODE_ENV='' babel-node ../../../scripts/publish/index.js package react-component-badge"
"publish": "cross-env-shell NODE_ENV='' babel-node ../../../scripts/publish/index.js package react-component-badge",
"test:unit": "cd ../../ && yarn run test:unit react-component-badge"
}
}
}
5 changes: 3 additions & 2 deletions packages/@webex/react-component-button-controls/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
"build:src": "cross-env NODE_ENV=${NODE_ENV:-production} NODE_OPTIONS=--max-old-space-size=2048 yarn run build",
"serve": "yarn run serve:src package react-component-button-controls",
"serve:src": "cross-env NODE_ENV=${NODE_ENV:-development} babel-node ../../../scripts/start/index.js",
"publish": "cross-env-shell NODE_ENV='' babel-node ../../../scripts/publish/index.js package react-component-button-controls"
"publish": "cross-env-shell NODE_ENV='' babel-node ../../../scripts/publish/index.js package react-component-button-controls",
"test:unit": "cd ../../ && yarn run test:unit react-component-button-controls"
}
}
}
5 changes: 3 additions & 2 deletions packages/@webex/react-component-button/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
"build:src": "cross-env NODE_ENV=${NODE_ENV:-production} NODE_OPTIONS=--max-old-space-size=2048 yarn run build",
"serve": "yarn run serve:src package react-component-button",
"serve:src": "cross-env NODE_ENV=${NODE_ENV:-development} babel-node ../../../scripts/start/index.js",
"publish": "cross-env-shell NODE_ENV='' babel-node ../../../scripts/publish/index.js package react-component-button"
"publish": "cross-env-shell NODE_ENV='' babel-node ../../../scripts/publish/index.js package react-component-button",
"test:unit": "cd ../../ && yarn run test:unit react-component-button"
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
"build:src": "cross-env NODE_ENV=${NODE_ENV:-production} NODE_OPTIONS=--max-old-space-size=2048 yarn run build",
"serve": "yarn run serve:src package react-component-call-data-activity",
"serve:src": "cross-env NODE_ENV=${NODE_ENV:-development} babel-node ../../../scripts/start/index.js",
"publish": "cross-env-shell NODE_ENV='' babel-node ../../../scripts/publish/index.js package react-component-call-data-activity"
"publish": "cross-env-shell NODE_ENV='' babel-node ../../../scripts/publish/index.js package react-component-call-data-activity",
"test:unit": "cd ../../ && yarn run test:unit react-component-call-data-activity"
}
}
}
5 changes: 3 additions & 2 deletions packages/@webex/react-component-chip-base/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
"build:src": "cross-env NODE_ENV=${NODE_ENV:-production} NODE_OPTIONS=--max-old-space-size=2048 yarn run build",
"serve": "yarn run serve:src package react-component-chip-base",
"serve:src": "cross-env NODE_ENV=${NODE_ENV:-development} babel-node ../../../scripts/start/index.js",
"publish": "cross-env-shell NODE_ENV='' babel-node ../../../scripts/publish/index.js package react-component-chip-base"
"publish": "cross-env-shell NODE_ENV='' babel-node ../../../scripts/publish/index.js package react-component-chip-base",
"test:unit": "cd ../../ && yarn run test:unit react-component-chip-base"
}
}
}
5 changes: 3 additions & 2 deletions packages/@webex/react-component-chip-file/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
"build:src": "cross-env NODE_ENV=${NODE_ENV:-production} NODE_OPTIONS=--max-old-space-size=2048 yarn run build",
"serve": "yarn run serve:src package react-component-chip-file",
"serve:src": "cross-env NODE_ENV=${NODE_ENV:-development} babel-node ../../../scripts/start/index.js",
"publish": "cross-env-shell NODE_ENV='' babel-node ../../../scripts/publish/index.js package react-component-chip-file"
"publish": "cross-env-shell NODE_ENV='' babel-node ../../../scripts/publish/index.js package react-component-chip-file",
"test:unit": "cd ../../ && yarn run test:unit react-component-chip-file"
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
"build:src": "cross-env NODE_ENV=${NODE_ENV:-production} NODE_OPTIONS=--max-old-space-size=2048 yarn run build",
"serve": "yarn run serve:src package react-component-confirmation-modal",
"serve:src": "cross-env NODE_ENV=${NODE_ENV:-development} babel-node ../../../scripts/start/index.js",
"publish": "cross-env-shell NODE_ENV='' babel-node ../../../scripts/publish/index.js package react-component-confirmation-modal"
"publish": "cross-env-shell NODE_ENV='' babel-node ../../../scripts/publish/index.js package react-component-confirmation-modal",
"test:unit": "cd ../../ && yarn run test:unit react-component-confirmation-modal"
}
}
}
5 changes: 3 additions & 2 deletions packages/@webex/react-component-cover/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
"build:src": "cross-env NODE_ENV=${NODE_ENV:-production} NODE_OPTIONS=--max-old-space-size=2048 yarn run build",
"serve": "yarn run serve:src package react-component-cover",
"serve:src": "cross-env NODE_ENV=${NODE_ENV:-development} babel-node ../../../scripts/start/index.js",
"publish": "cross-env-shell NODE_ENV='' babel-node ../../../scripts/publish/index.js package react-component-cover"
"publish": "cross-env-shell NODE_ENV='' babel-node ../../../scripts/publish/index.js package react-component-cover",
"test:unit": "cd ../../ && yarn run test:unit react-component-cover"
}
}
}
Loading

0 comments on commit 8a4d0bd

Please sign in to comment.