-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat: migrate from CRA to vite * chore: update dependencies * fix: onValidate in multiple editors * feat: deploy to vercel
- Loading branch information
1 parent
fea0ffc
commit 93e9298
Showing
21 changed files
with
4,631 additions
and
10,932 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
name: Vercel Production Deployment | ||
env: | ||
VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }} | ||
VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID }} | ||
on: | ||
push: | ||
branches: | ||
- main | ||
jobs: | ||
Deploy-Production: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Install Vercel CLI | ||
run: npm install --global vercel@latest | ||
- name: Pull Vercel Environment Information | ||
run: vercel pull --yes --environment=production --token=${{ secrets.VERCEL_TOKEN }} | ||
- name: Build Project Artifacts | ||
run: vercel build --prod --token=${{ secrets.VERCEL_TOKEN }} | ||
- name: Deploy Project Artifacts to Vercel | ||
run: vercel deploy --prebuilt --prod --token=${{ secrets.VERCEL_TOKEN }} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
name: Vercel Preview Deployment | ||
env: | ||
VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }} | ||
VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID }} | ||
on: | ||
push: | ||
branches-ignore: | ||
- main | ||
jobs: | ||
Deploy-Preview: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Install Vercel CLI | ||
run: npm install --global vercel@latest | ||
- name: Pull Vercel Environment Information | ||
run: vercel pull --yes --environment=preview --token=${{ secrets.VERCEL_TOKEN }} | ||
- name: Build Project Artifacts | ||
run: vercel build --token=${{ secrets.VERCEL_TOKEN }} | ||
- name: Deploy Project Artifacts to Vercel | ||
run: vercel deploy --prebuilt --token=${{ secrets.VERCEL_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,14 @@ | ||
{ | ||
"name": "react-json-editor", | ||
"name": "json-studio", | ||
"author": { | ||
"name": "Sujin Lee", | ||
"email": "[email protected]", | ||
"url": "https://sujinlee.me/" | ||
"email": "[email protected]" | ||
}, | ||
"description": "A simple online json editor", | ||
"version": "0.1.0", | ||
"description": "JSON Schema Based Editor", | ||
"version": "0.1.1", | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/sujinleeme/react-json-editor" | ||
"url": "https://github.com/sujinleeme/json-studio" | ||
}, | ||
"keywords": [ | ||
"json", | ||
|
@@ -19,33 +18,48 @@ | |
], | ||
"license": "MIT", | ||
"bugs": { | ||
"url": "https://github.com/sujinleeme/react-json-editor/issues" | ||
"url": "https://github.com/sujinleeme/json-studio/issues" | ||
}, | ||
"homepage": "https://json-studio.vercel.app", | ||
"jest": { | ||
"preset": "ts-jest/presets/js-with-ts", | ||
"testEnvironment": "jest-environment-jsdom", | ||
"moduleNameMapper": { | ||
"\\.(jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$": "<rootDir>/__mocks__/fileMock.js", | ||
"\\.(css|less)$": "<rootDir>/__mocks__/styleMock.js" | ||
}, | ||
"modulePaths": [ | ||
"<rootDir>/src" | ||
] | ||
}, | ||
"homepage": "/react-json-editor/", | ||
"dependencies": { | ||
"@fluentui/react": "^7.158.1", | ||
"@monaco-editor/react": "^4.0.9", | ||
"ajv": "^7.0.3", | ||
"@fluentui/react": "^8.114.0", | ||
"@monaco-editor/react": "^4.6.0", | ||
"@vitejs/plugin-react": "^4.2.1", | ||
"ajv": "^8.12.0", | ||
"browserslist-to-esbuild": "^1.2.0", | ||
"dirty-json": "^0.9.2", | ||
"monaco-editor": "^0.22.3", | ||
"prettier": "^2.2.1", | ||
"react": "^17.0.1", | ||
"react-dom": "^17.0.1", | ||
"react-scripts": "^4.0.2", | ||
"typescript": "^4.0.3", | ||
"uuid": "^8.3.2", | ||
"web-vitals": "^0.2.4" | ||
"monaco-editor": "^0.45.0", | ||
"prettier": "^3.1.1", | ||
"react": "^18.2.0", | ||
"react-dom": "^18.2.0", | ||
"typescript": "^5.3.3", | ||
"uuid": "^9.0.1", | ||
"vite": "^5.0.10", | ||
"vite-tsconfig-paths": "^4.2.2", | ||
"web-vitals": "^3.5.0" | ||
}, | ||
"scripts": { | ||
"start": "react-scripts start", | ||
"build": "react-scripts build", | ||
"test": "CI=true react-scripts test", | ||
"test:coverage": "yarn test --coverage", | ||
"eject": "react-scripts eject", | ||
"start": "vite", | ||
"build": "tsc && vite build", | ||
"test": "jest", | ||
"test:watch": "jest --watch", | ||
"test:coverage": "jest --coverage .", | ||
"test:debug": "jest --inspect-brk --runInBand --no-cache", | ||
"preview": "vite preview", | ||
"format": "prettier --write src/**/*.ts{,x}", | ||
"lint": "tsc --noEmit && eslint src/**/*.ts{,x}", | ||
"predeploy": "yarn build", | ||
"deploy": "gh-pages -d build" | ||
"predeploy": "yarn build" | ||
}, | ||
"husky": { | ||
"hooks": { | ||
|
@@ -67,39 +81,29 @@ | |
"react-app/jest" | ||
] | ||
}, | ||
"browserslist": { | ||
"production": [ | ||
">0.2%", | ||
"not dead", | ||
"not op_mini all" | ||
], | ||
"development": [ | ||
"last 1 chrome version", | ||
"last 1 firefox version", | ||
"last 1 safari version" | ||
] | ||
}, | ||
"devDependencies": { | ||
"@testing-library/dom": "^7.29.4", | ||
"@testing-library/jest-dom": "^5.11.4", | ||
"@testing-library/react": "^11.2.5", | ||
"@testing-library/react-hooks": "^5.0.3", | ||
"@testing-library/user-event": "^12.1.10", | ||
"@types/jest": "^26.0.15", | ||
"@types/node": "^12.0.0", | ||
"@types/react": "^17.0.1", | ||
"@types/react-dom": "^17.0.0", | ||
"@types/uuid": "^8.3.0", | ||
"@typescript-eslint/eslint-plugin": "^4.14.0", | ||
"@typescript-eslint/parser": "^4.14.0", | ||
"eslint": "^7.18.0", | ||
"eslint-config-airbnb-typescript": "^12.0.0", | ||
"eslint-config-airbnb-typescript-prettier": "^4.1.0", | ||
"eslint-config-prettier": "^7.2.0", | ||
"eslint-plugin-import": "^2.22.1", | ||
"eslint-plugin-prettier": "^3.3.1", | ||
"gh-pages": "^3.1.0", | ||
"husky": "^4.3.8", | ||
"lint-staged": "^10.5.3" | ||
"@testing-library/dom": "^9.3.3", | ||
"@testing-library/jest-dom": "^6.1.5", | ||
"@testing-library/react": "^14.1.2", | ||
"@testing-library/react-hooks": "^8.0.1", | ||
"@testing-library/user-event": "^14.5.1", | ||
"@types/jest": "^29.5.11", | ||
"@types/node": "^20.10.5", | ||
"@types/react": "^18.2.45", | ||
"@types/react-dom": "^18.2.18", | ||
"@types/uuid": "^9.0.7", | ||
"@typescript-eslint/eslint-plugin": "^6.15.0", | ||
"@typescript-eslint/parser": "^6.15.0", | ||
"eslint": "^8.56.0", | ||
"eslint-config-airbnb-typescript": "^17.1.0", | ||
"eslint-config-airbnb-typescript-prettier": "^5.0.0", | ||
"eslint-config-prettier": "^9.1.0", | ||
"eslint-plugin-import": "^2.29.1", | ||
"eslint-plugin-prettier": "^5.1.2", | ||
"husky": "^8.0.3", | ||
"jest": "^29.7.0", | ||
"jest-environment-jsdom": "^29.7.0", | ||
"lint-staged": "^15.2.0", | ||
"ts-jest": "^29.1.1" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.