Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(release): central cc widgets #342

Open
wants to merge 1 commit into
base: ccwidgets
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 40 additions & 0 deletions packages/contact-center/central-widgets/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
{
"name": "@webex/cc-widgets",
"description": "Webex Contact Center Widgets",
"version": "1.28.0-ccwidgets.1",
"main": "dist/index.js",
"publishConfig": {
"access": "public"
},
"files": [
"dist/",
"package.json"
],
"scripts": {
"build": "yarn run -T tsc",
"build:src": "webpack && yarn run build"
},
"devDependencies": {
"@webex/cc-store": "workspace:*",
"@webex/cc-station-login": "workspace:*",
"@webex/cc-user-state": "workspace:*",
"@babel/core": "7.25.2",
"@babel/preset-env": "7.25.4",
"@babel/preset-react": "7.24.7",
"@babel/preset-typescript": "7.25.9",
"@testing-library/dom": "10.4.0",
"@testing-library/jest-dom": "6.6.2",
"@testing-library/react": "16.0.1",
"@types/jest": "29.5.14",
"@types/react-test-renderer": "18",
"babel-jest": "29.7.0",
"babel-loader": "9.2.1",
"file-loader": "6.2.0",
"ts-loader": "9.5.1",
"typescript": "5.6.3",
"webpack": "5.94.0",
"webpack-cli": "5.1.4",
"webpack-merge": "6.0.1"
},
"stableVersion": "1.0.0"
}
11 changes: 11 additions & 0 deletions packages/contact-center/central-widgets/src/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import store from '@webex/cc-store'
import {StationLogin, WebStationLogin} from '@webex/cc-station-login';
import {UserState, WebUserState} from '@webex/cc-user-state';

export {
store,
StationLogin,
WebStationLogin,
UserState,
WebUserState
}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export * from '@webex/cc-station-login';
1 change: 1 addition & 0 deletions packages/contact-center/central-widgets/src/store.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export * from '@webex/cc-store';
1 change: 1 addition & 0 deletions packages/contact-center/central-widgets/src/user-state.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export * from '@webex/cc-user-state';
11 changes: 11 additions & 0 deletions packages/contact-center/central-widgets/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"extends": "../../../tsconfig.json",
"include": [
"./src"
],
"compilerOptions": {
"outDir": "./dist",
"declaration": true,
"declarationDir": "./dist/types"
},
}
12 changes: 12 additions & 0 deletions packages/contact-center/central-widgets/webpack.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
const {merge} = require('webpack-merge');
const path = require('path');

const baseConfig = require('../../../webpack.config');

module.exports = merge(baseConfig, {
output: {
path: path.resolve(__dirname, 'dist'),
filename: 'index.js', // Set the output filename to index.js
libraryTarget: 'commonjs2',
}
});
4 changes: 1 addition & 3 deletions packages/contact-center/station-login/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,7 @@
"description": "Webex Contact Center Widgets: Station Login",
"version": "1.28.0-ccwidgets.1",
"main": "dist/index.js",
"publishConfig": {
"access": "public"
},
"private": true,
"files": [
"dist/",
"package.json"
Expand Down
4 changes: 1 addition & 3 deletions packages/contact-center/store/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,7 @@
"version": "1.28.0-ccwidgets.1",
"main": "dist/index.js",
"license": "MIT",
"publishConfig": {
"access": "public"
},
"private": true,
"files": [
"dist/",
"package.json"
Expand Down
4 changes: 1 addition & 3 deletions packages/contact-center/user-state/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,7 @@
"description": "Webex Contact Center Widgets: User State",
"version": "1.28.0-ccwidgets.1",
"main": "dist/index.js",
"publishConfig": {
"access": "public"
},
"private": true,
"files": [
"dist/",
"package.json"
Expand Down
3 changes: 3 additions & 0 deletions tooling/src/publish.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,9 @@ function versionAndPublish() {
try {
const packageJsonPath = path.join(contactCenterPath, dirent.name, 'package.json');
const packageData = JSON.parse(fs.readFileSync(packageJsonPath, 'utf-8'));
if(packageData.private){
return;
}

console.log(`Removing stable version from package.json for ${dirent.name}`);
removeStableVersion(packageJsonPath, packageData);
Expand Down