Skip to content

Commit 8ef3788

Browse files
authored
Merge pull request #418 from vip-git/universal-schema
feat: universal schema setup for cross framework compilation
2 parents 05a5e9d + 087e33f commit 8ef3788

File tree

371 files changed

+28990
-1063
lines changed

Some content is hidden

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

371 files changed

+28990
-1063
lines changed

.eslintrc.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ module.exports = {
1919
'no-trailing-spaces': 'off',
2020
'react/jsx-indent': 'off',
2121
'no-unused-vars': 'off',
22+
'no-mixed-spaces-and-tabs': 'off',
2223
'react/jsx-indent-props': 'off',
2324
'react/jsx-props-no-spreading': 'off',
2425
'react/prop-types': 'off',
@@ -74,4 +75,7 @@ module.exports = {
7475
'env': {
7576
'jest/globals': true
7677
},
78+
"ignorePatterns": [
79+
"src/types/helpers/TransformSchema.type.ts"
80+
],
7781
};

.github/workflows/node-e2e.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ jobs:
3333
uses: actions/setup-node@v1
3434
with:
3535
node-version: ${{ matrix.node-version }}
36-
- run: rm -rf package.json && mv wdio-package.json package.json && npm install
36+
- run: rm -rf package.json && mv wdio-package.json package.json && npm install && npm run install-react-mui
3737
#- name: "Check if deployment is done"
3838
#env:
3939
# VERCEL_TOKEN: ${{secrets.VERCEL_TOKEN}}

.github/workflows/node.js.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ jobs:
2929
with:
3030
node-version: ${{ matrix.node-version }}
3131
- run: npm install --force
32+
- run: npm run install-react-mui
3233
- run: npm run build
3334
- run: npx jest --env=jsdom --config=jest.config.js --coverage --ci --updateSnapshot --detectOpenHandles --forceExit
3435
- name: Codecov

.github/workflows/prerelease.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ jobs:
1717
with:
1818
node-version: 14
1919
- run: npm install
20+
- run: npm run install-react-mui
2021
- run: npm run build
2122
- run: npx jest --env=jsdom --config=jest.config.js --coverage --ci --updateSnapshot --detectOpenHandles --forceExit
2223

@@ -31,6 +32,7 @@ jobs:
3132
node-version: 14
3233
registry-url: https://registry.npmjs.org/
3334
- run: npm install
35+
- run: npm run install-react-mui
3436
- run: npm run build
3537
- run: npm install -g json
3638
- run: json -I -f package.json -e 'this.scripts.postinstall="echo done"'
@@ -49,6 +51,7 @@ jobs:
4951
node-version: 14
5052
registry-url: https://npm.pkg.github.com/
5153
- run: npm install
54+
- run: npm run install-react-mui
5255
- run: npm run build
5356
- run: npm install -g json
5457
- run: json -I -f package.json -e 'this.name="@vip-git/react-jsonschema-form-material-ui"'

.github/workflows/release.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ jobs:
1717
with:
1818
node-version: 14
1919
- run: npm install
20+
- run: npm run install-react-mui
2021
- run: npm run build
2122
- run: npx jest --env=jsdom --config=jest.config.js --coverage --ci --updateSnapshot --detectOpenHandles --forceExit
2223

@@ -31,6 +32,7 @@ jobs:
3132
node-version: 14
3233
registry-url: https://registry.npmjs.org/
3334
- run: npm install
35+
- run: npm run install-react-mui
3436
- run: npm run build
3537
- run: npx tsc index.js --declaration --allowJs --emitDeclarationOnly --skipLibCheck --outDir .
3638
- run: npm install -g json
@@ -50,6 +52,7 @@ jobs:
5052
node-version: 14
5153
registry-url: https://npm.pkg.github.com/
5254
- run: npm install
55+
- run: npm run install-react-mui
5356
- run: npm run build
5457
- run: npx tsc index.js --declaration --allowJs --emitDeclarationOnly --skipLibCheck --outDir .
5558
- run: npm install -g json

.gitignore

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,15 @@ generator/package.json
1212
coverage
1313
.husky
1414
src/fields/components/**/package-lock.json
15+
src/framework
16+
src/universal-schema/ui-framework.ts
17+
src/universal-schema/types/ui-framework.type.ts
18+
scripts/installer/templates/react/src/ui-framework/index.ts
19+
package-lock.json
20+
temp
21+
scripts/installer/frameworks/**/config
22+
scripts/installer/frameworks/**/helpers
23+
scripts/installer/frameworks/**/universal-schema
24+
scripts/installer/frameworks/**/src/types
25+
scripts/generator/package-lock.json
26+
scripts/generator/package.json

changelog.md

Lines changed: 2 additions & 2 deletions
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)