Skip to content

Commit

Permalink
Convert Lexical Playground from CRA to Vite (facebook#1463)
Browse files Browse the repository at this point in the history
Convert Lexical Playground from CRA to Vite (facebook#1463)
  • Loading branch information
trueadm authored and acywatson committed Apr 9, 2022
1 parent 7c7c95f commit 1d19597
Show file tree
Hide file tree
Showing 130 changed files with 22,862 additions and 34,593 deletions.
6 changes: 5 additions & 1 deletion .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,11 @@ module.exports = {
{
// We apply these settings to the source files that get compiled.
// They can use all features including JSX (but shouldn't use `var`).
files: ['packages/*/src/**/*.js', 'packages/*/src/**/*.jsx'],
files: [
'packages/*/src/**/*.js',
'packages/*/__tests__/**/*.js',
'packages/*/src/**/*.jsx',
],
parser: 'babel-eslint',
parserOptions: {
ecmaVersion: 8,
Expand Down
4 changes: 1 addition & 3 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
---
name: "🐛 Bug Report"
name: '🐛 Bug Report'
about: Report a reproducible bug or regression.
title: 'Bug: '
labels: 'Status: Unconfirmed'

---

<!--
Expand Down Expand Up @@ -37,5 +36,4 @@ Link to code example:

## The current behavior


## The expected behavior
5 changes: 1 addition & 4 deletions .github/ISSUE_TEMPLATE/feature_request.md
Original file line number Diff line number Diff line change
@@ -1,21 +1,18 @@
---
name: "🚀 Feature Request"
name: '🚀 Feature Request'
about: Submit a proposal/request for a new Lexical feature.
title: 'Feature: '
labels: 'enhancement'

---

<!--
Please provide a clear and concise description of the feature proposal and outline the motivation for the proposal. Is your feature request related to a specific problem? e.g., *"I'm working on X and would like Y to be possible"*. If this is related to another GitHub issue, please link here too.
-->


<!--
A description of the alternative solutions or features you've considered, if any.
-->


<!--
Add any other context or screenshots about the feature request.
-->
6 changes: 0 additions & 6 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,6 @@ jobs:
- name: Install dependencies
if: steps.cache.outputs.cache-hit != 'true'
run: npm ci
- run: npm run build
- run: npm run test-e2e-ci:${{ matrix.browser }}

e2e-linux:
Expand Down Expand Up @@ -126,7 +125,6 @@ jobs:
- name: Install dependencies
if: steps.cache.outputs.cache-hit != 'true'
run: npm ci
- run: npm run build
- run: npm run test-e2e-ci:${{ matrix.browser }}

e2e-windows:
Expand Down Expand Up @@ -157,7 +155,6 @@ jobs:
# - name: Install dependencies
# if: steps.cache.outputs.cache-hit != 'true'
- run: npm ci
- run: npm run build
- run: npm run test-e2e-ci:${{ matrix.browser }}

e2e-collab-mac:
Expand All @@ -184,7 +181,6 @@ jobs:
- name: Install dependencies
if: steps.cache.outputs.cache-hit != 'true'
run: npm ci
- run: npm run build
- run: npm run test-e2e-collab-ci:${{ matrix.browser }}

e2e-collab-linux:
Expand Down Expand Up @@ -215,7 +211,6 @@ jobs:
- name: Install dependencies
if: steps.cache.outputs.cache-hit != 'true'
run: npm ci
- run: npm run build
- run: npm run test-e2e-collab-ci:${{ matrix.browser }}

e2e-collab-windows:
Expand All @@ -242,5 +237,4 @@ jobs:
# - name: Install dependencies
# if: steps.cache.outputs.cache-hit != 'true'
- run: npm ci
- run: npm run build
- run: npm run test-e2e-collab-ci:${{ matrix.browser }}
2 changes: 1 addition & 1 deletion .prettierignore
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
# NOTE: In general this should be kept in sync with .eslintignore

packages/**/dist/*.js
packages/**/build/*.js
packages/**/config/*.js
packages/playwright
packages/playwright-core
packages/babel-plugin-transform-stylex
packages/eslint-plugin-stylex
packages/stylex
packages/**/vite.config.js
**/node_modules
flow-typed
2 changes: 1 addition & 1 deletion jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ module.exports = {
'^@lexical/react/LexicalComposerContext$':
'<rootDir>/packages/lexical-react/src/LexicalComposerContext.js',
'^@lexical/react/LexicalContentEditable$':
'<rootDir>/packages/lexical-react/src/LexicalContentEditable.js',
'<rootDir>/packages/lexical-react/src/LexicalContentEditable.jsx',
'^@lexical/react/LexicalLinkPlugin$':
'<rootDir>/packages/lexical-react/src/LexicalLinkPlugin.js',
'^@lexical/react/LexicalListPlugin$':
Expand Down
Loading

0 comments on commit 1d19597

Please sign in to comment.