@koumoul/vjsf 2.11.3 → 2.12.0-beta.2

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 CHANGED
@@ -1,6 +1,9 @@
1
1
  /node_modules/
2
2
  /lib/utils/json-refs.js
3
3
  /dist
4
+ /test-apps
5
+ /coverage
6
+ /stats.json
4
7
  /doc/.nuxt
5
8
  /doc/dist
6
- /coverage
9
+ /doc/node_modules
package/.eslintrc.js CHANGED
@@ -1,14 +1,18 @@
1
1
  module.exports = {
2
2
  root: true,
3
- parserOptions: {
4
- parser: 'babel-eslint',
5
- sourceType: 'module'
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
- // https://github.com/vuejs/eslint-plugin-vue,
11
- 'plugin:vue/recommended',
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
- // Turn off vuejs rules, not because ther are not good, but mostly because
27
- // they are very present in initial code base.. Maybe we should clean that up someday..
28
- 'vue/max-attributes-per-line': 'off',
29
- 'vue/require-prop-types': 'off',
30
- 'no-new': 'off',
31
- 'vue/no-v-html': 'off'
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
- npm run doc-dev
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
  ![](doc/static/vjsf.gif)
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.
@@ -0,0 +1,4 @@
1
+ module.exports = {
2
+ presets: ['@babel/preset-env'],
3
+ plugins: ['@babel/plugin-transform-runtime']
4
+ }