Skip to content
Draft
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
10 changes: 9 additions & 1 deletion .github/workflows/pr-demo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,20 @@ jobs:
- name: Use Node.js
uses: ./.github/actions/setup-node

- name: Cache Turbo
uses: actions/cache@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.3
with:
path: .turbo
key: turbo-${{ runner.os }}-${{ hashFiles('yarn.lock') }}-${{ hashFiles('turbo.json') }}
restore-keys: |
turbo-${{ runner.os }}-${{ hashFiles('yarn.lock') }}-${{ hashFiles('turbo.json') }}

- name: Install
working-directory: ./
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
run: yarn install --frozen-lockfile

- name: Build Demo
run: yarn test:demo

Expand Down
12 changes: 11 additions & 1 deletion .github/workflows/pr-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,21 @@ jobs:
- name: Use Node.js
uses: ./.github/actions/setup-node

- name: Cache Turbo
uses: actions/cache@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.3
with:
path: .turbo
key: turbo-${{ runner.os }}-${{ hashFiles('yarn.lock') }}-${{ hashFiles('turbo.json') }}
restore-keys: |
turbo-${{ runner.os }}-${{ hashFiles('yarn.lock') }}-${{ hashFiles('turbo.json') }}


- name: Install
run: yarn install --frozen-lockfile


- name: Test
run: yarn test --coverage --coverageReporters json-summary
run: yarn test:cov

- name: Jest Coverage Comment
uses: MishaKav/jest-coverage-comment@d74238813c33e6ea20530ff91b5ea37953d11c91 #1.0.27
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
/.static
# Log files #
*.log
.turbo

# Mac OS index files #
.DS_Store
Expand Down
3 changes: 1 addition & 2 deletions fork/bootstrap-sass/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,7 @@
"scripts": {
"build": "echo nothing to build in bootsrap-sass",
"test": "echo nothing to test in bootsrap-sass",
"test:update": "echo nothing to test in bootsrap-sass",
"test:cov": "echo nothing to test in bootsrap-sass"
"test:update": "echo nothing to test in bootsrap-sass"
},
"files": [
"assets",
Expand Down
1 change: 1 addition & 0 deletions fork/json-schema-form-core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
"scripts": {
"build:lib": "rimraf dist && talend-scripts build --umd",
"build:lib:esm": "talend-scripts build --esm",
"clean": "rimraf dist lib-esm",
"watch": "webpack --watch",
"dist-untested": "webpack --config webpack.config.dist.js",
"test:cov": "npm run test",
Expand Down
3 changes: 2 additions & 1 deletion fork/react-bootstrap/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,12 @@
}
},
"scripts": {
"build:lib": "talend-scripts build",
"build:dev": "talend-scripts build --umd --dev",
"build:prod": "talend-scripts build --umd --prod",
"build:lib:esm": "talend-scripts build --esm",
"clean": "rimraf lib dist",
"pre-release": "yarn build:dev && yarn build:prod",
"build:lib": "talend-scripts build",
"lint": "talend-scripts lint",
"test": "talend-scripts test",
"storybook": "start-storybook -p 6006",
Expand Down
18 changes: 13 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,21 +13,29 @@
"lint-staged": "^15.5.2",
"prettier": "^3.6.2",
"rimraf": "^5.0.10",
"turbo": "2.5.5",
"typescript": "^5.8.3"
},
"packageManager": "[email protected]",
"scripts": {
"postinstall": "talend-yarn-workspace run build:lib && talend-yarn-workspace run build:lib:esm",
"pre-release": "talend-yarn-workspace run pre-release",
"clean": "yarn clean:build && yarn clean:docs && yarn clean:cache",
"clean:build": "talend-yarn-workspace run clean",
"clean:docs": "rimraf */*/jsdoc */*/storybook-static",
"clean:cache": "rimraf */*/.turbo .turbo */*/node_modules/.cache node_modules/.cache */*/coverage",
"postinstall": "yarn build:lib && yarn build:lib:esm",
"build:lib": "turbo run build:lib",
"build:lib:esm": "turbo run build:lib:esm",
"pre-release": "turbo run pre-release",
"start": "yarn workspace @talend/ui-playground run start",
"start-storybook": "yarn workspace @talend/ui-storybook-one run start",
"release": "yarn pre-release && yarn changeset publish",
"lint-staged": "lint-staged",
"lint": "cross-env WORKSPACE_RUN_FAIL=no-bail talend-yarn-workspace run lint",
"lint-merge-report": "talend-scripts lint-merge-report",
"test": "cross-env TZ=UTC talend-yarn-workspace run test --silent",
"test": "cross-env TZ=UTC turbo run test",
"test:update": "cross-env TZ=UTC talend-yarn-workspace run test --silent -u",
"test:cov": "cross-env TZ=UTC talend-yarn-workspace run test:cov",
"test:demo": "talend-yarn-workspace run test:demo",
"test:cov": "cross-env TZ=UTC turbo run test:cov",
"test:demo": "turbo run test:demo",
"test:cron": "talend-yarn-workspace run test:cron",
"start-components": "yarn workspace @talend/react-components run start",
"start-containers": "yarn workspace @talend/react-containers run start",
Expand Down
1 change: 1 addition & 0 deletions packages/a11y/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
}
},
"scripts": {
"clean": "rimraf lib lib-esm",
"build:lib": "talend-scripts build",
"build:lib:esm": "talend-scripts build --esm",
"test": "talend-scripts test",
Expand Down
3 changes: 2 additions & 1 deletion packages/assets-api/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,11 @@
"pre-release": "talend-scripts build --umd && talend-scripts build --umd --dev",
"build:lib": "talend-scripts build",
"build:lib:esm": "talend-scripts build --esm",
"clean": "rimraf lib lib-esm dist",
"start": "echo nothing to start",
"test": "talend-scripts test",
"test:watch": "talend-scripts test --watch",
"test:cov": "talend-scripts test --coverage",
"test:cov": "talend-scripts test --coverage --coverageReporters json-summary",
"lint": "talend-scripts lint"
},
"keywords": [
Expand Down
3 changes: 2 additions & 1 deletion packages/cmf-cqrs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,15 @@
"mainSrc": "src/index.ts",
"types": "lib/index.d.ts",
"scripts": {
"clean": "rimraf lib lib-esm dist",
"build:dev": "talend-scripts build --umd --dev",
"build:prod": "talend-scripts build --umd --prod",
"pre-release": "yarn build:dev && yarn build:prod",
"build:lib": "talend-scripts build",
"start": "echo nothing to start",
"test": "talend-scripts test",
"test:watch": "talend-scripts test --watch",
"test:cov": "talend-scripts test --coverage",
"test:cov": "talend-scripts test --coverage --coverageReporters json-summary",
"lint": "talend-scripts lint"
},
"repository": {
Expand Down
3 changes: 2 additions & 1 deletion packages/cmf-router/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
"author": "Talend Frontend <[email protected]> (http://www.talend.com)",
"license": "Apache-2.0",
"scripts": {
"clean": "rimraf lib lib-esm dist",
"build:dev": "talend-scripts build --umd --dev",
"build:prod": "talend-scripts build --umd --prod",
"build:lib:esm": "talend-scripts build --esm",
Expand All @@ -21,7 +22,7 @@
"start": "echo nothing to start",
"test": "talend-scripts test",
"test:watch": "talend-scripts test --watch",
"test:cov": "talend-scripts test --coverage",
"test:cov": "talend-scripts test --coverage --coverageReporters json-summary",
"lint": "talend-scripts lint"
},
"dependencies": {
Expand Down
3 changes: 2 additions & 1 deletion packages/cmf/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
}
},
"scripts": {
"clean": "rimraf lib lib-esm dist",
"build:dev": "talend-scripts build --umd --dev",
"build:prod": "talend-scripts build --umd --prod",
"build:lib:esm": "talend-scripts build --esm",
Expand All @@ -24,7 +25,7 @@
"start": "echo nothing to start",
"test": "talend-scripts test",
"test:watch": "talend-scripts test --watch",
"test:cov": "talend-scripts test --coverage",
"test:cov": "talend-scripts test --coverage --coverageReporters json-summary",
"test:demo": "yarn jsdoc -c ./docs.json",
"lint": "talend-scripts lint"
},
Expand Down
3 changes: 2 additions & 1 deletion packages/components/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
},
"license": "Apache-2.0",
"scripts": {
"clean": "rimraf lib lib-esm dist",
"build:dev": "talend-scripts build --umd --dev",
"build:prod": "talend-scripts build --umd --prod",
"pre-release": "yarn build:dev && yarn build:prod",
Expand All @@ -24,7 +25,7 @@
"tsc": "tsc --emitDeclarationOnly --project ./tsconfig.json --outDir ./types",
"test": "cross-env TZ=UTC talend-scripts test",
"test:watch": "cross-env TZ=UTC talend-scripts test --watch",
"test:cov": "cross-env TZ=UTC talend-scripts test --coverage",
"test:cov": "cross-env TZ=UTC talend-scripts test --coverage --coverageReporters json-summary",
"lint": "talend-scripts lint",
"start": "talend-scripts start -p 6006",
"extract-i18n": "i18next-scanner --config i18next-scanner.config.js"
Expand Down
3 changes: 2 additions & 1 deletion packages/containers/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
},
"license": "Apache-2.0",
"scripts": {
"clean": "rimraf lib lib-esm dist",
"build:dev": "talend-scripts build --umd --dev",
"build:prod": "talend-scripts build --umd --prod",
"pre-release": "yarn build:dev && yarn build:prod",
Expand All @@ -24,7 +25,7 @@
"start": "talend-scripts start-storybook -p 6007",
"test": "talend-scripts test",
"test:watch": "talend-scripts test --watch",
"test:cov": "talend-scripts test --coverage",
"test:cov": "talend-scripts test --coverage --coverageReporters json-summary",
"test:demo": "talend-scripts build-storybook --quiet",
"lint": "talend-scripts lint",
"extract-i18n": "i18next-scanner --config i18next-scanner.config.js"
Expand Down
3 changes: 2 additions & 1 deletion packages/dataviz/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
},
"license": "Apache-2.0",
"scripts": {
"clean": "rimraf lib lib-esm dist",
"pre-release": "yarn build:umd:dev && yarn build:umd:prod",
"build:umd:dev": "talend-scripts build --umd --dev",
"build:umd:prod": "talend-scripts build --umd",
Expand All @@ -24,7 +25,7 @@
"start": "talend-scripts start-storybook -p 6006",
"test": "cross-env TZ=UTC talend-scripts test",
"test:watch": "cross-env TZ=UTC talend-scripts test --watch",
"test:cov": "cross-env TZ=UTC talend-scripts test --coverage"
"test:cov": "cross-env TZ=UTC talend-scripts test --coverage --coverageReporters json-summary"
},
"keywords": [
"react",
Expand Down
6 changes: 3 additions & 3 deletions packages/design-docs/.storybook/main.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import path from 'path';
import { packageDirectorySync } from 'pkg-dir';

const iconConfig = require('@talend/icons/.storybook/main.js');
// const iconConfig = require('@talend/icons/.storybook/main.js');
const rootPath = packageDirectorySync();
const {
getJSAndTSLoader,
Expand Down Expand Up @@ -30,8 +30,8 @@ const STORIES = [

export default {
stories: STORIES,
webpackFinal: async originalConfig => {
const config = await iconConfig.webpackFinal(originalConfig);
webpackFinal: async config => {
// const config = await iconConfig.webpackFinal(originalConfig);
// weird, replace the loader of the current storybook which do not support mono repo
const rules = [
...config.module.rules.filter(rule => {
Expand Down
1 change: 1 addition & 0 deletions packages/design-system/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
}
},
"scripts": {
"clean": "rimraf lib lib-esm dist",
"build:lib": "talend-scripts build",
"build:lib:umd": "talend-scripts build --umd --dev",
"build:lib:umd:min": "talend-scripts build --umd --prod",
Expand Down
1 change: 1 addition & 0 deletions packages/design-tokens/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
}
},
"scripts": {
"clean": "rimraf lib lib-esm dist",
"pre-release": "echo nothing",
"build:umd:dev": "talend-scripts build --umd --dev",
"build:umd:prod": "talend-scripts build --umd",
Expand Down
3 changes: 2 additions & 1 deletion packages/faceted-search-query-client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,15 @@
},
"license": "Apache-2.0",
"scripts": {
"clean": "rimraf lib lib-esm dist",
"build:dev": "talend-scripts build --umd --dev",
"build:prod": "talend-scripts build --umd --prod",
"pre-release": "yarn build:dev && yarn build:prod",
"build:lib": "talend-scripts build",
"build:lib:esm": "talend-scripts build --esm",
"test": "cross-env TZ=UTC talend-scripts test",
"test:watch": "cross-env TZ=UTC talend-scripts test --watch",
"test:cov": "cross-env TZ=UTC talend-scripts test --coverage",
"test:cov": "cross-env TZ=UTC talend-scripts test --coverage --coverageReporters json-summary",
"lint": "talend-scripts lint ./src/**/*.js ./stories/**/*.js ./.storybook/**/*.js",
"extract-i18n": "i18next-scanner --config i18next-scanner.config.js"
},
Expand Down
3 changes: 2 additions & 1 deletion packages/faceted-search/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,15 @@
},
"license": "Apache-2.0",
"scripts": {
"clean": "rimraf lib lib-esm dist",
"build:dev": "talend-scripts build --umd --dev",
"build:prod": "talend-scripts build --umd --prod",
"pre-release": "yarn build:dev && yarn build:prod",
"build:lib": "talend-scripts build",
"build:lib:esm": "talend-scripts build --esm",
"test": "cross-env TZ=UTC talend-scripts test",
"test:watch": "cross-env TZ=UTC talend-scripts test --watch",
"test:cov": "cross-env TZ=UTC talend-scripts test --coverage",
"test:cov": "cross-env TZ=UTC talend-scripts test --coverage --coverageReporters json-summary",
"test:demo": "talend-scripts build-storybook --quiet --docs",
"lint": "talend-scripts lint ./src/**/*.js ./stories/**/*.js ./.storybook/**/*.js",
"start": "talend-scripts start-storybook -p 6006",
Expand Down
1 change: 1 addition & 0 deletions packages/flow-designer/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
"main": "lib/index.js",
"mainSrc": "src/index.js",
"scripts": {
"clean": "rimraf lib dist",
"build:lib": "talend-scripts build",
"lint": "talend-scripts lint",
"test": "talend-scripts test",
Expand Down
3 changes: 2 additions & 1 deletion packages/forms/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
},
"license": "Apache-2.0",
"scripts": {
"clean": "rimraf lib lib-esm dist",
"build:dev": "talend-scripts build --umd --dev",
"build:prod": "talend-scripts build --umd --prod",
"build:lib:esm": "talend-scripts build --esm",
Expand All @@ -24,7 +25,7 @@
"build:lib": "talend-scripts build",
"test": "cross-env TZ=UTC talend-scripts test",
"test:watch": "talend-scripts test --watch",
"test:cov": "talend-scripts test --coverage",
"test:cov": "talend-scripts test --coverage --coverageReporters json-summary",
"lint": "talend-scripts lint",
"start": "talend-scripts start-storybook -p 6008",
"extract-i18n": "i18next-scanner --config i18next-scanner.config.js"
Expand Down
1 change: 1 addition & 0 deletions packages/http/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
"main": "lib/index.js",
"mainSrc": "src/index.ts",
"scripts": {
"clean": "rimraf lib dist",
"build:lib": "talend-scripts build",
"build:dev": "talend-scripts build --umd --dev",
"build:prod": "talend-scripts build --umd --prod",
Expand Down
2 changes: 1 addition & 1 deletion packages/icons/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
},
"license": "Apache-2.0",
"scripts": {
"clean": "rimraf lib lib-esm dist",
"build-umd": "webpack --config webpack.umd.js && webpack --config webpack.umd.js --env production",
"build-ts": "tsc",
"build-react": "node scripts/react.js",
Expand All @@ -30,7 +31,6 @@
"build:lib:esm": "talend-scripts build --esm",
"ts:types": "node scripts/typescript.js",
"test": "echo no test",
"test:cov": "echo no test",
"start-storybook": "talend-scripts start-storybook",
"build-storybook": "talend-scripts build-storybook",
"start": "talend-scripts start-storybook -p 6010",
Expand Down
1 change: 1 addition & 0 deletions packages/playground-vite/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
"type": "module",
"main": "app/index.js",
"scripts": {
"clean": "rimraf dist",
"build": "cross-env BASENAME='/playground' talend-scripts build",
"test": "echo nothing to test in playground",
"test:demo:umd": "cross-env BASENAME='/playground/' INITIATOR_URL='/playground/inject.js' talend-scripts build --prod",
Expand Down
1 change: 1 addition & 0 deletions packages/playground/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"private": true,
"main": "app/index.js",
"scripts": {
"clean": "rimraf dist",
"build": "cross-env BASENAME='/playground' talend-scripts build",
"test": "echo nothing to test in playground",
"test:demo:umd": "cross-env BASENAME='/playground/' INITIATOR_URL='/playground/inject.js' talend-scripts build --prod",
Expand Down
1 change: 1 addition & 0 deletions packages/router-bridge/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"description": "Bridge on top of cmf-router or react-router v5 + connected-react-router",
"main": "lib/index.js",
"scripts": {
"clean": "rimraf lib dist",
"build:dev": "talend-scripts build --umd --dev",
"build:prod": "talend-scripts build --umd --prod",
"pre-release": "yarn build:dev && yarn build:prod",
Expand Down
Loading
Loading