Add contribution docs

feat/tailwind-v4
Kamran Ahmed 1 week ago
parent c24c069f84
commit d4ac94cf29
  1. 16
      contributing.md
  2. 28
      scripts/generate-renderer-dummy.sh
  3. 9
      scripts/generate-renderer.sh

@ -125,6 +125,22 @@ It's important to add a valid type, this will help us categorize the content and
- PR's that don't follow our style guide, have no description, and a default title.
- Links to your own blog articles.
## Local Development
For local development, you can use the following commands:
```bash
git clone git@github.com:kamranahmedse/developer-roadmap.git --depth 1
cd developer-roadmap
pnpm add @roadmapsh/editor@npm:@roadmapsh/dummy-editor -w
pnpm install
```
Run the development server with:
```bash
pnpm dev
```
***
Have a look at the [License](./license) file.

@ -1,28 +0,0 @@
#!/usr/bin/env bash
set -e
# Remove old editor
rm -rf editor
if [ ! -d ".temp/web-draw" ]; then
git clone ssh://git@github.com/roadmapsh/web-draw.git .temp/web-draw --depth 1
fi
# Make dir
mkdir -p packages/editor
mkdir -p packages/editor/dist
# Copy the editor dist, package.json
cp -rf .temp/web-draw/packages/dummy-editor/dist packages/editor
cp -rf .temp/web-draw/packages/dummy-editor/package.json packages/editor
# replace the @roadmapsh/dummy-editor with @roadmapsh/editor
sed -i '' 's/@roadmapsh\/dummy-editor/@roadmapsh\/editor/g' packages/editor/package.json
# Remove temp directory
rm -rf .temp
# Reinstall so that the editor which was setup gets used
rm -rf node_modules
pnpm install

@ -20,15 +20,6 @@ cp -rf .temp/web-draw/packages/editor/package.json packages/editor
# Remove temp directory
rm -rf .temp
editor_changed_files=$(git ls-files -m packages/editor)
echo "editor_changed_files: $editor_changed_files"
for file in $editor_changed_files; do
echo "Assuming $file is unchanged"
git update-index --assume-unchanged $file
done
# Reinstall so that the editor which was setup gets used
rm -rf node_modules
pnpm install

Loading…
Cancel
Save