Skip to content
This repository was archived by the owner on Jun 27, 2023. It is now read-only.

Commit 13a697e

Browse files
committed
feat(build): changed build system to rollup
BREAKING CHANGE: changes the way the library is build from vue-cli to rollup
1 parent ca2b28a commit 13a697e

Some content is hidden

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

58 files changed

+3607
-23493
lines changed

dev/typescript/App.vue

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,20 +31,19 @@ import { defineComponent, onMounted, reactive, ref } from 'vue';
3131
import {
3232
TextInput,
3333
SelectInput,
34-
DynamicForm,
3534
EmailInput,
3635
FormValidation,
3736
PasswordInput,
3837
TextAreaInput,
39-
} from '../../dist/as-dynamic-forms.common';
38+
} from '../../dist/as-dynamic-forms.esm';
4039
import { email, pattern } from '@/core/utils';
4140
4241
export default defineComponent({
4342
name: 'app',
4443
setup() {
4544
const title = ref('Vue Dynamic Forms');
4645
const formValues = reactive({});
47-
const form = reactive<DynamicForm>({
46+
const form = reactive<any>({
4847
id: 'example-form',
4948
fields: [
5049
new TextInput({

dev/typescript/main.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { createApp } from 'vue';
33
import App from './App.vue';
44
import './styles/main.scss';
55

6-
import { createDynamicForms } from '../../dist/as-dynamic-forms.common';
6+
import { createDynamicForms } from '../../dist/as-dynamic-forms.esm';
77

88
const VueDynamicForms = createDynamicForms({
99
theme: 'material',

dev/typescript/shims-vue.d.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
declare module '*.vue' {
2+
import { defineComponent } from 'vue';
3+
const component: ReturnType<typeof defineComponent>;
4+
export default component;
5+
}

dev/vue/.eslintignore

Lines changed: 0 additions & 1 deletion
This file was deleted.

dev/vue/.gitignore

Lines changed: 0 additions & 23 deletions
This file was deleted.

dev/vue/.prettierignore

Lines changed: 0 additions & 1 deletion
This file was deleted.

dev/vue/.prettierrc

Lines changed: 0 additions & 4 deletions
This file was deleted.

dev/vue2/App.vue renamed to dev/vue/App.vue

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -27,24 +27,23 @@
2727
</template>
2828

2929
<script lang="ts">
30-
import { defineComponent, onMounted, reactive, ref } from 'vue';
30+
import { defineComponent, reactive, ref } from 'vue';
3131
import {
3232
TextInput,
3333
SelectInput,
34-
DynamicForm,
3534
EmailInput,
3635
FormValidation,
3736
PasswordInput,
3837
TextAreaInput,
39-
} from '../../dist/as-dynamic-forms.common';
38+
} from '../../dist/as-dynamic-forms.esm';
4039
import { email, pattern } from '@/core/utils';
4140
4241
export default defineComponent({
4342
name: 'app',
4443
setup() {
4544
const title = ref('Vue Dynamic Forms');
4645
const formValues = reactive({});
47-
const form = reactive<DynamicForm>({
46+
const form = reactive({
4847
id: 'example-form',
4948
fields: [
5049
new TextInput({
@@ -101,12 +100,7 @@ export default defineComponent({
101100
// eslint-disable-next-line no-undef
102101
alert(errors);
103102
}
104-
onMounted(() =>
105-
setTimeout(() => {
106-
form.fields[0].label = 'RockNRoll';
107-
form.fields[0].value = 'James Bond';
108-
}, 2000),
109-
);
103+
110104
return {
111105
title,
112106
form,

dev/vue/README.md

Lines changed: 0 additions & 24 deletions
This file was deleted.
File renamed without changes.

0 commit comments

Comments
 (0)