Skip to content

Commit 64a65fa

Browse files
nilbuildarikchakma
andauthored
Migrate to Tailwind 4 + Editor Upgrade (nilbuild#8465)
* wip * fix: roadmap editor * fix: padding * wip * fix: remove editor package * wip * fix: update pnpm lock * Add contribution docs * UI changes for TW4 * Update deployment workflow --------- Co-authored-by: Arik Chakma <arikchangma@gmail.com>
1 parent 09d8c70 commit 64a65fa

239 files changed

Lines changed: 1167 additions & 1171 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/cloudfront-api-cache.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: Clears API Cloudfront Cache
22
on:
33
workflow_dispatch:
44
jobs:
5-
aws_costs:
5+
cloudfront_api_cache:
66
runs-on: ubuntu-latest
77
steps:
88
- name: Clear Cloudfront Caching

.github/workflows/cloudfront-fe-cache.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: Clears Frontend Cloudfront Cache
22
on:
33
workflow_dispatch:
44
jobs:
5-
aws_costs:
5+
cloudfront_fe_cache:
66
runs-on: ubuntu-latest
77
steps:
88
- name: Clear Cloudfront Caching

.github/workflows/deployment.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,8 @@ jobs:
3838
- name: Generate Production Build
3939
run: |
4040
git clone https://${{ secrets.GH_PAT }}@github.com/roadmapsh/web-draw.git .temp/web-draw --depth 1
41-
# npm run compress:images
41+
npm run generate-renderer
42+
npm run compress:images
4243
npm run build
4344
4445
# --------------------

.github/workflows/greetings.yml

Lines changed: 0 additions & 23 deletions
This file was deleted.

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,4 +30,4 @@ pnpm-debug.log*
3030
tests-examples
3131
*.csveditor/
3232

33-
editor/
33+
packages/editor

astro.config.mjs

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
// https://astro.build/config
22
import sitemap from '@astrojs/sitemap';
3-
import tailwind from '@astrojs/tailwind';
43
import node from '@astrojs/node';
54
import { defineConfig } from 'astro/config';
65
import rehypeExternalLinks from 'rehype-external-links';
76
import { serializeSitemap, shouldIndexPage } from './sitemap.mjs';
7+
import tailwindcss from '@tailwindcss/vite';
88

99
import react from '@astrojs/react';
1010

@@ -61,18 +61,14 @@ export default defineConfig({
6161
}),
6262
trailingSlash: 'never',
6363
integrations: [
64-
tailwind({
65-
config: {
66-
applyBaseStyles: false,
67-
},
68-
}),
6964
sitemap({
7065
filter: shouldIndexPage,
7166
serialize: serializeSitemap,
7267
}),
7368
react(),
7469
],
7570
vite: {
71+
plugins: [tailwindcss()],
7672
ssr: {
7773
noExternal: [/^@roadmapsh\/editor.*$/],
7874
},

contributing.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,22 @@ It's important to add a valid type, this will help us categorize the content and
125125
- PR's that don't follow our style guide, have no description, and a default title.
126126
- Links to your own blog articles.
127127

128+
## Local Development
129+
130+
For local development, you can use the following commands:
131+
132+
```bash
133+
git clone git@github.com:kamranahmedse/developer-roadmap.git --depth 1
134+
cd developer-roadmap
135+
pnpm add @roadmapsh/editor@npm:@roadmapsh/dummy-editor -w
136+
pnpm install
137+
```
138+
Run the development server with:
139+
140+
```bash
141+
pnpm dev
142+
```
143+
128144
***
129145

130146
Have a look at the [License](./license) file.

editor/.gitignore

Lines changed: 0 additions & 38 deletions
This file was deleted.

editor/package.json

Lines changed: 0 additions & 81 deletions
This file was deleted.

editor/postcss.config.mjs

Lines changed: 0 additions & 12 deletions
This file was deleted.

0 commit comments

Comments
 (0)