Skip to content

Commit

Permalink
Move vue packages up to be directly contained in packages folder
Browse files Browse the repository at this point in the history
- Move vue packages
- Remove obsolete build:pre and build:after scripts from vue-vanilla package
- Regenerate pnpm lock file and thereby also update dependencies

Fix #2162
  • Loading branch information
lucas-koehler authored and sdirix committed Sep 1, 2023
1 parent c1686c1 commit dab94d0
Show file tree
Hide file tree
Showing 97 changed files with 1,194 additions and 1,105 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ In this case, you can try to clean the repository with `git clean -dfx`. Beware
- Run React Vanilla examples: `cd packages/vanilla && pnpm run dev`
- Run React Material examples: `cd packages/material && pnpm run dev`
- Run Angular Material examples: `cd packages/angular-material && pnpm run dev`
- Run Vue Vanilla dev setup: `cd packages/vue/vue-vanilla && pnpm run serve`
- Run Vue Vanilla dev setup: `cd packages/vue-vanilla && pnpm run serve`

### Dependency & Release management

Expand Down
2 changes: 1 addition & 1 deletion packages/examples-app/prepare-examples-app.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ const examples = {
'react-vanilla': join(packagesDir, 'vanilla-renderers', 'example', 'dist'),
'react-material': join(packagesDir, 'material-renderers', 'example', 'dist'),
'angular-material': join(packagesDir, 'angular-material', 'example', 'dist'),
'vue-vanilla': join(packagesDir, 'vue', 'vue-vanilla', 'example', 'dist'),
'vue-vanilla': join(packagesDir, 'vue-vanilla', 'example', 'dist'),
};

// Clean and recreate dist dir
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -95,15 +95,15 @@ export default defineComponent({
By default the Vanilla Renderers don't apply any CSS at all.
For a quick start you can use `@jsonforms/vue-vanilla/vanilla.css`.

For more information on how JSON Forms can be configured, please see the [README of `@jsonforms/vue`](https://github.com/eclipsesource/jsonforms/blob/master/packages/vue/vue/README.md).
For more information on how JSON Forms can be configured, please see the [README of `@jsonforms/vue`](https://github.com/eclipsesource/jsonforms/blob/master/packages/vue/README.md).

### Styling

Each rendered HTML element specifies a CSS class which can be used to style it.
This process can also be customized so that each element declares user-specified CSS classes.
Therefore JSON Forms Vue Vanilla can be integrated with any CSS-only UI framework quite easily.

You can find the default CSS classes in `[defaultStyles.ts](https://github.com/eclipsesource/jsonforms/blob/master/packages/vue/vue-vanilla/src/styles/defaultStyles.ts).
You can find the default CSS classes in `[defaultStyles.ts](https://github.com/eclipsesource/jsonforms/blob/master/packages/vue-vanilla/src/styles/defaultStyles.ts).

To render your own classes simply `provide` them as `styles`.
These `styles` replace the `defaultStyles`.
Expand Down
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import '../../vanilla.css';
import { JsonFormsI18nState } from '@jsonforms/core';
import { ErrorObject } from 'ajv';
import { getExamples } from '../../../../examples';
import { getExamples } from '../../../examples';
import get from 'lodash/get';
// mergeStyles combines all classes from both styles definitions into one
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,7 @@
],
"scripts": {
"serve": "vue-cli-service serve dev/serve.ts",
"build:pre": "rimraf ../vue/node_modules/@jsonforms/core",
"build:do": "cross-env NODE_ENV=production rollup --config rollup.config.js",
"build": "run-s --continue-on-error build:pre build:do build:after",
"build:after": "symlink-dir ../../core ../vue/node_modules/@jsonforms/core",
"build": "cross-env NODE_ENV=production rollup --config rollup.config.js",
"build:examples-app": "rollup -c rollup.example.config.js",
"clean": "rimraf lib example/dist",
"lint": "eslint .",
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Loading

0 comments on commit dab94d0

Please sign in to comment.