Skip to content

Commit d8bd3c0

Browse files
authored
ci: added concurrently to build and deploy jobs (#501)
1 parent 68e42ac commit d8bd3c0

File tree

6 files changed

+147
-15
lines changed

6 files changed

+147
-15
lines changed

package-lock.json

Lines changed: 137 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10,19 +10,17 @@
1010
"packages/*"
1111
],
1212
"scripts": {
13-
"build": "npm run lint && mtc && npm run build -w packages/skin && npm run build -w packages/ebayui-core && npm run build -w packages/evo-marko && npm run build -w packages/ebayui-core-react",
14-
"build:ci": "CI=true npm run build -w packages/skin && npm run build -w packages/ebayui-core && npm run build -w packages/evo-marko && npm run build -w packages/ebayui-core-react && npm run build -w packages/evo-react",
13+
"build": "npm run lint && npm run build -w packages/skin && concurrently --kill-others-on-fail \"mtc\" \"npm run build -w packages/ebayui-core\" \"npm run build -w packages/evo-marko\" \"npm run build -w packages/ebayui-core-react\"",
14+
"build:ci": "CI=true && npm run build",
1515
"change": "changeset add",
16-
"copy:coreui-site": "npm run deploy --ws",
17-
"copy:skin-site": "npm run deploy --ws",
18-
"deploy": "copyfiles src/data/component-metadata.json public/ -u 2 && BASE_URL=/evo-web/ marko-run build -o ./_site && npm run deploy:copy-site",
19-
"deploy:copy-site": "npm run deploy --ws && copyfiles packages/skin/_site/public _site/public/skin-storybook -u 4 && copyfiles packages/ebayui-core/_site _site/public/ebayui-core -u 3 && copyfiles packages/ebayui-core-react/_site _site/public/ebayui-core-react -u 3",
20-
"deploy:storybook": "npm run deploy --ws",
16+
"deploy": "copyfiles src/data/component-metadata.json public/ -u 2 && npm run deploy:build && npm run deploy:copy-site",
17+
"deploy:build": "concurrently --kill-others-on-fail \"BASE_URL=/evo-web/ marko-run build -o ./_site\" \"npm run deploy -w packages/skin\" \"npm run deploy -w packages/ebayui-core\" \"npm run deploy -w packages/ebayui-core-react\"",
18+
"deploy:copy-site": "copyfiles packages/skin/_site/public _site/public/skin-storybook -u 4 && copyfiles packages/ebayui-core/_site _site/public/ebayui-core -u 3 && copyfiles packages/ebayui-core-react/_site _site/public/ebayui-core-react -u 3",
2119
"postinstall": "npx playwright install --with-deps chromium",
2220
"lint": "stylelint src --config .stylelintrc",
2321
"prepare": "husky",
2422
"release": "npm run release --ws --if-present && changeset publish",
25-
"start": "marko-run",
23+
"start": "concurrently --kill-others-on-fail \"marko-run\" \"npm start -w packages/ebayui-core\" \"npm start -w packages/ebayui-core-react\"",
2624
"test": "npm run test --ws",
2725
"update-snapshots": "npm run update-snapshots --ws --if-present",
2826
"version": "npm run version --ws --if-present && changeset version && npm i --package-lock-only && git add -A packages"
@@ -98,6 +96,7 @@
9896
"cldr-core": "^48.0.0",
9997
"cldr-dates-full": "^48.0.0",
10098
"clean-css": "^5",
99+
"concurrently": "^9.1.2",
101100
"coveralls": "^3.1.1",
102101
"cssnano": "^7.1.2",
103102
"dedent": "^1.7.1",

packages/ebayui-core-react/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
}
2727
},
2828
"scripts": {
29-
"build": "npm run clean && npm run type:check && npm run test && vite build && npm run copy && npm run smoke-test",
29+
"build": "npm run clean && npm run type:check && vitest run && vite build && npm run copy && npm run smoke-test",
3030
"build:storybook": "storybook build",
3131
"clean": "node scripts/clean",
3232
"generate-locale-info": "node scripts/generate-locale-info.js",
@@ -37,7 +37,7 @@
3737
"format": "eslint . --fix 'src/**/*.{ts,tsx}' && prettier . --write --log-level=warn",
3838
"lint": "eslint . --ext .ts,.tsx && prettier . --check --log-level=warn",
3939
"release": "vite build && npm run copy",
40-
"smoke-test": "npm run smoke-test:react-16 && npm run smoke-test:react-18 && npm run smoke-test:react-19",
40+
"smoke-test": "concurrently --kill-others-on-fail \"npm run smoke-test:react-16\" \"npm run smoke-test:react-18\" \"npm run smoke-test:react-19\"",
4141
"smoke-test:react-16": "cd ./smoke-tests/react-16 && npm ci && npm run test",
4242
"smoke-test:react-18": "cd ./smoke-tests/react-18 && npm ci && npm run test",
4343
"smoke-test:react-19": "cd ./smoke-tests/react-19 && npm ci && npm run test",

packages/ebayui-core/package.json

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,8 @@
2323
"!**/{,*.}stories-ignore.*"
2424
],
2525
"scripts": {
26-
"build": "rm -rf dist && mtc && npm run lint && node scripts/check-postpublish && npm test",
27-
"build:ci": "CI=true npm run build && npm run build:storybook",
26+
"build": "rm -rf dist && concurrently --kill-others-on-fail \"mtc\" \"npm run lint\" \"node scripts/check-postpublish\" \"npm test\"",
2827
"build:readme": "node scripts/add-ds-version",
29-
"build:storybook": "storybook build -o ./_site",
3028
"coverage": "vitest run --browser.headless --coverage",
3129
"deploy": "storybook build -o ./_site",
3230
"importSVG": "node scripts/import-svg && prettier \"{./src/components/ebay-{icon,flag,star-rating,image-placeholder}/**/*,**/*.{js,ts,json,MD}}\" --write --log-level=warn",

src/data/components.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,6 @@ export function getMetadataFromUrl(url: string) {
106106
const currentIndex = componentKeys.indexOf(componentName);
107107
const prevKey = componentKeys[currentIndex - 1];
108108
const nextKey = componentKeys[currentIndex + 1];
109-
console.log(currentTab, componentName)
110109

111110
return {
112111
...componentData,

src/tags/a11y-docs-list.marko

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import { urls, a11yDocs, a11yList, components, basePath, getMetadataFromUrl } from "../data";
22
<const/{name, currentTab}=getMetadataFromUrl($global.url.pathname)>
3-
<log=name>
43
<for|key| of=a11yList>
54
<const/data=a11yDocs[key]>
65
<li>

0 commit comments

Comments
 (0)