Skip to content
Merged
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
18 changes: 18 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -254,6 +254,24 @@ updates:

- package-ecosystem: "npm"
directory: "/examples/react-grid-live-data"
schedule:
interval: "daily"
groups:
kendo-dependencies:
patterns:
- '@progress/kendo-*'
allow:
- dependency-name: '@progress/kendo-*'
commit-message:
prefix: "chore:"
reviewers:
- "telerik/kendo-react-devs"
- "telerik/kendo-react-support"
labels:
- "Dependencies"

- package-ecosystem: "npm"
directory: "/examples/kendo-react-tailwind"
schedule:
interval: "daily"
groups:
Expand Down
9 changes: 9 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,8 @@ jobs:
- 'examples/react-coffee-warehouse/**'
react-grid-live-data:
- 'examples/react-grid-live-data/**'
kendo-react-tailwind:
- 'examples/kendo-react-tailwind/**'

- name: Build Coffee warehouse nextjs app
working-directory: ./examples/coffee-warehouse-nextjs
Expand Down Expand Up @@ -189,6 +191,13 @@ jobs:
- name: Build React Grid Live Data app
working-directory: ./examples/react-grid-live-data
if: steps.changes.outputs.react-grid-live-data == 'true'
run: |
npm ci
npm run build

- name: Build Kendo React Tailwind app
working-directory: ./examples/kendo-react-tailwind
if: steps.changes.outputs.kendo-react-tailwind == 'true'
run: |
npm ci
npm run build
24 changes: 24 additions & 0 deletions examples/kendo-react-tailwind/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
pnpm-debug.log*
lerna-debug.log*

node_modules
dist
dist-ssr
*.local

# Editor directories and files
.vscode/*
!.vscode/extensions.json
.idea
.DS_Store
*.suo
*.ntvs*
*.njsproj
*.sln
*.sw?
3 changes: 3 additions & 0 deletions examples/kendo-react-tailwind/.prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Add files here to ignore them from prettier formatting
/dist
/coverage
6 changes: 6 additions & 0 deletions examples/kendo-react-tailwind/.prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"printWidth": 120,
"tabWidth": 4,
"singleQuote": true,
"trailingComma": "none"
}
94 changes: 94 additions & 0 deletions examples/kendo-react-tailwind/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,94 @@
# KendoReact + TailwindCSS + Vite

This project is a React application built with TypeScript, Vite, and TailwindCSS. It also integrates KendoReact components for enterprise-grade UI functionality.

## Getting Started

### Prerequisites

Ensure you have the following installed:

- [Node.js](https://nodejs.org/) (version 16 or higher)
- [npm](https://www.npmjs.com/) or [yarn](https://yarnpkg.com/)

### Installation

1. Install dependencies:
```bash
npm install
```

### Development

Start the development server with hot module replacement:

```bash
npm run dev
```

The application will be available at [http://localhost:5173](http://localhost:5173).

### Build

To create a production build:

```bash
npm run build
```

The build output will be in the `dist` directory.

### Preview

To preview the production build:

```bash
npm run preview
```

## Project Structure

- **`src/`**: Contains the source code.
- **`components/`**: Reusable React components.
- **`App.tsx`**: Main application component.
- **`main.tsx`**: Entry point for the React application.
- **`index.css`**: TailwindCSS and custom styles.
- **`public/`**: Static assets.
- **`vite.config.ts`**: Vite configuration file.
- **`tsconfig.*.json`**: TypeScript configuration files.

## Styling

This project uses TailwindCSS for styling. Custom styles and variables are defined in `src/index.css`. KendoReact components are styled using the Kendo Default Theme, with some overrides for Tailwind compatibility.

## Linting and Formatting

- Run ESLint:

```bash
npm run lint
```

- Prettier is configured to format code automatically. You can customize the rules in `.prettierrc`.

## Dependencies

### Main Dependencies

- `react` and `react-dom`: Core React libraries.
- `@progress/kendo-react-*`: KendoReact components and themes.
- `tailwindcss`: Utility-first CSS framework.

### Dev Dependencies

- `vite`: Build tool.
- `typescript`: TypeScript support.
- `eslint`: Linter for JavaScript and TypeScript.
- `prettier`: Code formatter.

## Learn More

- [Vite Documentation](https://vitejs.dev/)
- [React Documentation](https://reactjs.org/)
- [TailwindCSS Documentation](https://tailwindcss.com/)
- [KendoReact Documentation](https://www.telerik.com/kendo-react-ui/)
28 changes: 28 additions & 0 deletions examples/kendo-react-tailwind/eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
import js from '@eslint/js'
import globals from 'globals'
import reactHooks from 'eslint-plugin-react-hooks'
import reactRefresh from 'eslint-plugin-react-refresh'
import tseslint from 'typescript-eslint'

export default tseslint.config(
{ ignores: ['dist'] },
{
extends: [js.configs.recommended, ...tseslint.configs.recommended],
files: ['**/*.{ts,tsx}'],
languageOptions: {
ecmaVersion: 2020,
globals: globals.browser,
},
plugins: {
'react-hooks': reactHooks,
'react-refresh': reactRefresh,
},
rules: {
...reactHooks.configs.recommended.rules,
'react-refresh/only-export-components': [
'warn',
{ allowConstantExport: true },
],
},
},
)
13 changes: 13 additions & 0 deletions examples/kendo-react-tailwind/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Vite + React + TS</title>
</head>
<body>
<div id="root"></div>
<script type="module" src="/src/main.tsx"></script>
</body>
</html>
Loading