@koumoul/vjsf 2.11.2 → 2.12.0-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.eslintignore +4 -1
- package/.eslintrc.js +17 -12
- package/CONTRIBUTE.md +21 -1
- package/README.md +0 -9
- package/babel.config.js +4 -0
- package/dist/main.js +2 -1
- package/dist/main.js.LICENSE.txt +10 -0
- package/dist/third-party.js +4 -12
- package/dist/third-party.js.LICENSE.txt +8 -0
- package/lib/VJsfNoDeps.js +15 -5
- package/lib/deps/third-party.js +1 -1
- package/lib/mixins/EditableArray.js +6 -5
- package/lib/mixins/ObjectContainer.js +2 -2
- package/lib/mixins/SelectProperty.js +7 -7
- package/lib/utils/expr-eval-parser.js +21 -0
- package/lib/utils/options.js +14 -7
- package/lib/utils/select.js +31 -0
- package/package.json +30 -37
- package/test-apps/compiled/README.me +10 -0
- package/test-apps/compiled/index.html +85 -0
- package/test-apps/compiled/package-lock.json +37386 -0
- package/test-apps/compiled/package.json +7 -0
- package/webpack.config.js +6 -13
- package/.babelrc +0 -4
package/.eslintignore
CHANGED
package/.eslintrc.js
CHANGED
|
@@ -1,14 +1,18 @@
|
|
|
1
1
|
module.exports = {
|
|
2
2
|
root: true,
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
3
|
+
env: {
|
|
4
|
+
browser: true
|
|
5
|
+
},
|
|
6
|
+
"globals": {
|
|
7
|
+
"expect": true
|
|
6
8
|
},
|
|
7
9
|
extends: [
|
|
8
10
|
// https://github.com/feross/standard/blob/master/RULES.md#javascript-standard-style
|
|
9
11
|
'standard',
|
|
10
|
-
|
|
11
|
-
|
|
12
|
+
"plugin:vue/essential",
|
|
13
|
+
"eslint:recommended",
|
|
14
|
+
"standard",
|
|
15
|
+
"plugin:vue/recommended",
|
|
12
16
|
'plugin:jest/recommended',
|
|
13
17
|
'plugin:jest/style'
|
|
14
18
|
],
|
|
@@ -23,11 +27,12 @@ module.exports = {
|
|
|
23
27
|
'no-debugger': process.env.NODE_ENV === 'production' ? 2 : 0,
|
|
24
28
|
// This rule is required because atom vue-format package remove the space
|
|
25
29
|
'space-before-function-paren': 0,
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
30
|
+
"vue/no-v-html": "off",
|
|
31
|
+
"vue/multi-word-component-names": "off",
|
|
32
|
+
"node/no-deprecated-api": "off",
|
|
33
|
+
"vue/no-mutating-props": "off",
|
|
34
|
+
"vue/require-prop-types": "off",
|
|
35
|
+
"vue/no-useless-template-attributes": "off",
|
|
36
|
+
"vue/singleline-html-element-content-newline": "off"
|
|
32
37
|
}
|
|
33
|
-
}
|
|
38
|
+
}
|
package/CONTRIBUTE.md
CHANGED
|
@@ -18,7 +18,9 @@ Check all rules:
|
|
|
18
18
|
|
|
19
19
|
Run a local development server:
|
|
20
20
|
|
|
21
|
-
|
|
21
|
+
cd doc
|
|
22
|
+
npm install
|
|
23
|
+
npm run dev
|
|
22
24
|
|
|
23
25
|
This simply opens the documentation site in a local web server that will watch your edits to the source code both of the library and of the documentation and its examples.
|
|
24
26
|
|
|
@@ -39,3 +41,21 @@ To increase efficiency test cases and documented examples are the same thing in
|
|
|
39
41
|
When running tests each example is rendered and a HTML snapshot is extracted and compared to a previous one. When the tests fail because of a snapshot diff, you should check that it is a valid change, then run `npm run test-update`.
|
|
40
42
|
|
|
41
43
|
You can also write additionnal test assertions in the examples themselves, see [_resolved-schema.js](./doc/examples/_resolved-schema.js) for example.
|
|
44
|
+
|
|
45
|
+
## Publishing
|
|
46
|
+
|
|
47
|
+
Release and publish usin npm:
|
|
48
|
+
|
|
49
|
+
```
|
|
50
|
+
npm version minor
|
|
51
|
+
npm publish
|
|
52
|
+
git push && git push --tags
|
|
53
|
+
```
|
|
54
|
+
|
|
55
|
+
To publish a beta version, use prerelease versioning with a npm tag:
|
|
56
|
+
|
|
57
|
+
```
|
|
58
|
+
npm version preminor --preid=beta # use prerelease instead of preminor to increment
|
|
59
|
+
npm publish --tag=beta
|
|
60
|
+
git push && git push --tags
|
|
61
|
+
```
|
package/README.md
CHANGED
|
@@ -10,15 +10,6 @@ See [the documentation](https://koumoul-dev.github.io/vuetify-jsonschema-form/la
|
|
|
10
10
|
|
|
11
11
|

|
|
12
12
|
|
|
13
|
-
## Development server
|
|
14
|
-
|
|
15
|
-
The documentation serves as development server too.
|
|
16
|
-
|
|
17
|
-
```
|
|
18
|
-
npm install
|
|
19
|
-
npm run doc-dev
|
|
20
|
-
```
|
|
21
|
-
|
|
22
13
|
## Bug reports
|
|
23
14
|
|
|
24
15
|
Bug reports are created using github issues. The examples in the documentation include codepen links, as much as possible please save a duplicate codepen with the minimal schema/config to reproduce your problem.
|
package/babel.config.js
ADDED