Skip to content

Commit 0a8be4f

Browse files
authored
Merge pull request #3125 from epam/deprecate-cra-tempate
chore: depreate cra template
2 parents 7cde5a9 + 85acb38 commit 0a8be4f

14 files changed

Lines changed: 36 additions & 7022 deletions

File tree

.github/workflows/release.yml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -72,15 +72,11 @@ jobs:
7272
# npm 11.x, which properly exchanges the GitHub OIDC token for a publish token.
7373
#
7474
# npm 11 ignores publishConfig.directory when called directly, so we pass ./build as
75-
# the explicit directory argument. cra-template-uui has no build step and publishes from
76-
# root — it is handled in a separate lerna exec call to avoid shell nesting issues.
75+
# the explicit directory argument.
7776
run: |
7877
npx lerna exec --sort --stream \
7978
--ignore=@epam/app --ignore=@epam/uui-e2e-tests --ignore=@epam/cra-template-uui \
8079
-- npm stage publish ./build --provenance --access public --tag "$DIST_TAG" --ignore-scripts
81-
npx lerna exec --sort --stream \
82-
--scope=@epam/cra-template-uui \
83-
-- npm stage publish --provenance --access public --tag "$DIST_TAG" --ignore-scripts
8480
env:
8581
DIST_TAG: ${{ inputs.dist_tag || 'latest' }}
8682

AGENTS.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
- `@epam/uui-docs` — Utilities for docs site (DocBuilder, demo data, Property Explorer contexts). Needed when working on documentation
2424
- `@epam/uui-build` — Build scripts, linting config, npm scripts
2525
- `@epam/uui-db` — Client-side relational state cache
26-
- `templates/` — Project templates (CRA, Next.js, Vite)
26+
- `templates/` — Project templates: `uui-vite-template` and `uui-nextjs-template`; `uui-cra-template` deprecated — kept only for the `trackBundleSize` CI pipeline
2727
- `next-demo/` — Next.js demo apps for integration testing
2828

2929
## 2) Development Environment

README.md

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -27,18 +27,14 @@ Check out [UUI website](https://uui.epam.com) for [demo](https://uui.epam.com/de
2727
## Getting started
2828
To add UUI into an existing project, check out our [Getting Started](https://uui.epam.com/documents?id=gettingStarted&theme=electric) guide.
2929

30-
For the new projects we recommend to use our custom [CRA](https://github.com/epam/UUI/tree/main/templates/uui-cra-template), [Vite](https://github.com/epam/UUI/tree/main/templates/uui-vite-template) or [Next.js](https://github.com/epam/UUI/tree/main/templates/uui-nextjs-template) app templates for quick start
31-
30+
For new projects we recommend our [Vite](https://github.com/epam/UUI/tree/main/templates/uui-vite-template) or [Next.js](https://github.com/epam/UUI/tree/main/templates/uui-nextjs-template) app templates for quick start
3231

3332
```sh
34-
#CRA
35-
npx create-react-app my-app --template @epam/uui
36-
3733
# Vite
3834
npx -- degit@latest https://github.com/epam/UUI/templates/uui-vite-template my-app
3935

4036
# Next.js
41-
npx create-next-app --example "https://github.com/epam/UUI/tree/main/templates/uui-nextjs-template/template" my-app
37+
npx -- degit@latest https://github.com/epam/UUI/templates/uui-nextjs-template/template my-app
4238
```
4339
## Quick Try
4440

app/src/docs/pages/gettingStarted.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
"examples": [
55
{ "descriptionPath": "gettingStarted-intro" },
66
{ "name": "Starting a new Vite project", "descriptionPath": "gettingStarted-configuring from scratch vite" },
7-
{ "name": "Starting a new CRA-based project", "descriptionPath": "gettingStarted-configuring from scratch" },
87
{ "name": "Starting a new Next.js project", "descriptionPath": "gettingStarted-configuring from scratch nextjs" },
98
{ "name": "Adding UUI to existing project", "descriptionPath": "Configuring-into-existing-project" }
109
]

changelog.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# 6.5.xx - xx.xx.2026
22
**What's New**
3+
* Remove support of deprecated `@epam/cra-template-uui` package. Create React App has been [officially deprecated](https://react.dev/blog/2025/02/14/sunsetting-create-react-app) by the React team. The package will no longer receive new updates or releases. Use the [Vite](https://github.com/epam/UUI/tree/main/templates/uui-vite-template) or [Next.js](https://github.com/epam/UUI/tree/main/templates/uui-nextjs-template) templates instead.
34

45
**What's Fixed**
56
* [RadioInput]: fixed the checked-state dot rendering off-center and with fractional pixel sizes at fractional browser/OS zoom levels.

dev-docs/overview.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ However, for building modules for release and for production environments, each
1313
├── epam-electric # @epam/electric package. Skin for Electric theme.
1414
├── public # static files for uui.epam.com site (example contents, images, doc gen artifacts). Usually this folder is used by the UUI server.
1515
├── server # Node.js server for uui.epam.com site. Serves docs content, demo API, UUI MCP.
16-
├── templates # templates of uui project for CRA, Next.js and Vite
16+
├── templates # project templates: uui-vite-template and uui-nextjs-template; uui-cra-template is deprecated — kept only for the trackBundleSize CI pipeline
1717
├── test-utils # @epam/uui-test-utils package. Common utils for writing tests with UUI components.
1818
├── uui # @epam/uui package. Ready-to-use, themeable UUI components for default and custom themes.
1919
├── uui-build # epam/uui-build package. Utils and scripts to build UUI repo and packages, linting configuration and some npm scripts.

dev-docs/release-workflow-setup.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,11 @@ For each of the 13 published packages, add a Trusted Publisher on npmjs.org:
1717

1818
CI will run the full publish cycle (OIDC auth, build, lerna publish from-git), but packages will land in a staged state and won't be visible to consumers until a maintainer promotes them on npmjs.com. This provides an extra review gate after the automated publish.
1919

20-
Packages to configure (15 total):
20+
Packages to configure (14 total):
2121

22-
`@epam/uui`, `@epam/uui-core`, `@epam/uui-components`, `@epam/loveship`, `@epam/promo`, `@epam/electric`, `@epam/assets`, `@epam/uui-editor`, `@epam/uui-timeline`, `@epam/uui-docs`, `@epam/uui-db`, `@epam/uui-test-utils`, `@epam/uui-build`, `@epam/uui-extra`, `@epam/cra-template-uui`
22+
`@epam/uui`, `@epam/uui-core`, `@epam/uui-components`, `@epam/loveship`, `@epam/promo`, `@epam/electric`, `@epam/assets`, `@epam/uui-editor`, `@epam/uui-timeline`, `@epam/uui-docs`, `@epam/uui-db`, `@epam/uui-test-utils`, `@epam/uui-build`, `@epam/uui-extra`
2323

24-
**Deprecated packages** — these names exist on npmjs.com but are no longer published from this repository and should be ignored: `@epam/edu-core-routing`, `@epam/internal`, `@epam/draft-rte`.
24+
**Deprecated packages** — these names exist on npmjs.com but are no longer published from this repository and should be ignored: `@epam/edu-core-routing`, `@epam/internal`, `@epam/draft-rte`, `@epam/cra-template-uui`.
2525

2626
#### 2. Create a GitHub Environment
2727

package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,7 @@
6363
"uui-db",
6464
"uui-docs",
6565
"uui-editor",
66-
"uui-timeline",
67-
"templates/uui-cra-template"
66+
"uui-timeline"
6867
]
6968
},
7069
"author": "",

public/docs/content/coreConcepts.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -799,10 +799,10 @@
799799
},
800800
{
801801
"data": {
802-
"url": "https://github.com/epam/UUI/blob/main/templates/uui-cra-template/template/src/index.tsx#L19"
802+
"url": "https://github.com/epam/UUI/blob/main/templates/uui-vite-template/src/index.tsx#L25"
803803
},
804804
"type": "link",
805-
"url": "https://github.com/epam/UUI/blob/main/templates/uui-cra-template/template/src/index.tsx#L19",
805+
"url": "https://github.com/epam/UUI/blob/main/templates/uui-vite-template/src/index.tsx#L25",
806806
"children": [
807807
{
808808
"text": "template"
Lines changed: 13 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,15 @@
11
# cra-template-uui
22

3-
This is the official [UUI](https://uui.epam.com/) template for [Create React App](https://github.com/facebook/create-react-app).
4-
5-
To use this template, add `--template @epam/uui` when creating a new app.
6-
7-
For example:
8-
9-
```sh
10-
npx create-react-app my-app --template @epam/uui
11-
12-
# or
13-
14-
yarn create react-app my-app --template @epam/uui
15-
```
16-
17-
For more information, please refer to:
18-
19-
- [Getting Started](https://create-react-app.dev/docs/getting-started) – How to create a new app.
20-
- [User Guide](https://create-react-app.dev) – How to develop apps bootstrapped with Create React App.
21-
- [UUI docs](https://uui.epam.com/) – UUI library official documentation.
3+
> **Deprecated**: This package is no longer published to npm and is not recommended for new projects.
4+
> It is kept in the repository solely for use by the internal `trackBundleSize` CI pipeline.
5+
>
6+
> For new projects, use the [Vite template](../uui-vite-template) or [Next.js template](../uui-nextjs-template) instead:
7+
> ```sh
8+
> # Vite
9+
> npx -- degit@latest https://github.com/epam/UUI/templates/uui-vite-template my-app
10+
>
11+
> # Next.js
12+
> npx -- degit@latest https://github.com/epam/UUI/templates/uui-nextjs-template/template my-app
13+
> ```
14+
15+
This was the official [UUI](https://uui.epam.com/) template for [Create React App](https://github.com/facebook/create-react-app).

0 commit comments

Comments
 (0)