From 1ff2312a0c77e551773553914234a01e0adc8e18 Mon Sep 17 00:00:00 2001 From: Arik Chakma Date: Fri, 20 Oct 2023 02:18:51 +0600 Subject: [PATCH] Add editor to gitignore --- .gitignore | 5 ++++- package.json | 1 + scripts/generate-renderer.sh | 2 +- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index 3e61d48a8..dc70778c2 100644 --- a/.gitignore +++ b/.gitignore @@ -27,4 +27,7 @@ pnpm-debug.log* /playwright-report/ /playwright/.cache/ tests-examples -*.csv \ No newline at end of file +*.csv + +/editor/* +!/editor/readonly-editor.tsx \ No newline at end of file diff --git a/package.json b/package.json index c487a765d..0b50fa472 100644 --- a/package.json +++ b/package.json @@ -16,6 +16,7 @@ "roadmap-links": "node scripts/roadmap-links.cjs", "roadmap-dirs": "node scripts/roadmap-dirs.cjs", "roadmap-content": "node scripts/roadmap-content.cjs", + "generate-renderer": "sh scripts/generate-renderer.sh", "best-practice-dirs": "node scripts/best-practice-dirs.cjs", "best-practice-content": "node scripts/best-practice-content.cjs", "test:e2e": "playwright test" diff --git a/scripts/generate-renderer.sh b/scripts/generate-renderer.sh index 86921de20..e620d1526 100644 --- a/scripts/generate-renderer.sh +++ b/scripts/generate-renderer.sh @@ -29,4 +29,4 @@ done # ignore the worktree changes for the editor directory -git update-index --skip-worktree editor/* \ No newline at end of file +git update-index --no-assume-unchanged editor/readonly-editor.tsx \ No newline at end of file