@vidispine/cra-template-vdt 22.3.0 → 22.4.0-pre.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/package.json CHANGED
@@ -1,8 +1,7 @@
1
1
  {
2
2
  "name": "@vidispine/cra-template-vdt",
3
- "version": "22.3.0",
3
+ "version": "22.4.0-pre.1",
4
4
  "license": "SEE LICENSE IN LICENSE.md",
5
- "private": false,
6
5
  "publishConfig": {
7
6
  "access": "public"
8
7
  },
@@ -14,26 +13,28 @@
14
13
  "directory": "packages/cra-template-vdt"
15
14
  },
16
15
  "scripts": {
17
- "lint": "eslint \"{template/**/*,*}.{js,md}\"",
18
- "lint:fix": "yarn lint --fix"
16
+ "lint": "eslint . --ext js,md,mdx"
19
17
  },
20
18
  "files": [
21
19
  "template",
22
20
  "template.json"
23
21
  ],
24
22
  "devDependencies": {
25
- "@vidispine/eslint-config": "22.3.0",
26
- "@vidispine/prettier-config": "22.3.0"
23
+ "@vidispine/eslint-config": "22.4.0-pre.1",
24
+ "@vidispine/eslint-config-mdx": "22.4.0-pre.1",
25
+ "@vidispine/prettier-config": "22.4.0-pre.1",
26
+ "eslint": "8.23.1",
27
+ "prettier": "2.7.1"
27
28
  },
28
29
  "eslintConfig": {
29
30
  "extends": [
30
- "@vidispine"
31
+ "@vidispine",
32
+ "@vidispine/eslint-config-mdx"
31
33
  ],
32
34
  "rules": {
33
35
  "import/no-extraneous-dependencies": "off",
34
36
  "import/no-unresolved": "off"
35
37
  }
36
38
  },
37
- "prettier": "@vidispine/prettier-config",
38
- "gitHead": "bf53eaf85f596bc3cc70b490d18dbf3c59045350"
39
- }
39
+ "prettier": "@vidispine/prettier-config"
40
+ }
@@ -1,27 +1,13 @@
1
1
  {
2
- "editor.defaultFormatter": "esbenp.prettier-vscode",
3
2
  "[html]": {
4
3
  "editor.formatOnSave": true
5
4
  },
6
5
  "[json]": {
7
- "editor.formatOnSave": true,
8
- "editor.defaultFormatter": "vscode.json-language-features"
6
+ "editor.formatOnSave": true
9
7
  },
10
8
  "editor.codeActionsOnSave": {
11
9
  "source.fixAll.eslint": true
12
10
  },
13
- "eslint.options": {
14
- "extensions": [
15
- ".js",
16
- ".jsx",
17
- ".md",
18
- ]
19
- },
20
- "eslint.validate": [
21
- "javascript",
22
- "javascriptreact",
23
- "markdown",
24
- ],
25
11
  "editor.rulers": [
26
12
  100
27
13
  ],
@@ -130,7 +130,7 @@ Inside the newly created project, you can run some yarn/npm commands:
130
130
 
131
131
  Runs the app in development mode. Open http://localhost:3000 to view it in the browser.
132
132
 
133
- The page will automatically reload if you make changes to the code. You will see the build errors and lint warnings in the console.
133
+ The page will automatically reload modules (hmr) or page if you make changes to the code. You will see the build errors and lint warnings in the console.
134
134
 
135
135
  #### `yarn build` or `npm run build`
136
136
 
@@ -142,8 +142,7 @@ Your app is ready to be deployed.
142
142
 
143
143
  #### `yarn lint` or `npm run lint`
144
144
 
145
- Run eslint (with prettier formatting) for all .js and .md files in "src/" and "/"
146
- You can also run `lint:fix` to let eslint attempt to fix lint/format errors automatically.
145
+ Run eslint (with prettier formatting)
147
146
 
148
147
  #### `yarn test` or `npm test`
149
148
 
@@ -1,16 +1,19 @@
1
1
  <!DOCTYPE html>
2
+
2
3
  <html lang="en">
3
- <head>
4
- <meta charset="utf-8" />
5
- <link rel="icon" href="%PUBLIC_URL%/favicon.ico" />
6
- <meta name="viewport" content="width=device-width, initial-scale=1" />
7
- <meta name="theme-color" content="#000000" />
8
- <meta name="description" content="<VDT TEMPLATE>" />
9
- </head>
10
- <body>
11
- <noscript>You need to enable JavaScript to run this app.</noscript>
12
- <div id="root"></div>
13
- <!--
4
+
5
+ <head>
6
+ <meta charset="utf-8" />
7
+ <link rel="icon" href="%PUBLIC_URL%/favicon.ico" />
8
+ <meta name="viewport" content="width=device-width, initial-scale=1" />
9
+ <meta name="theme-color" content="#000000" />
10
+ <meta name="description" content="<VDT TEMPLATE>" />
11
+ </head>
12
+
13
+ <body>
14
+ <noscript>You need to enable JavaScript to run this app.</noscript>
15
+ <div id="root"></div>
16
+ <!--
14
17
  This HTML file is a template.
15
18
  If you open it directly in the browser, you will see an empty page.
16
19
 
@@ -20,5 +23,6 @@
20
23
  To begin the development, run `npm start` or `yarn start`.
21
24
  To create a production bundle, use `npm run build` or `yarn build`.
22
25
  -->
23
- </body>
24
- </html>
26
+ </body>
27
+
28
+ </html>
package/template.json CHANGED
@@ -1,16 +1,15 @@
1
1
  {
2
2
  "package": {
3
3
  "scripts": {
4
- "lint": "eslint \"{src/**/*,*}.{js,md}\"",
5
- "lint:fix": "yarn lint --fix"
4
+ "lint": "eslint . --ext js"
6
5
  },
7
6
  "dependencies": {
8
7
  "@material-ui/core": "^4.12.4",
9
8
  "@material-ui/icons": "^4.11.3",
10
9
  "@material-ui/lab": "^4.0.0-alpha.61",
11
- "@vidispine/vdt-api": "22.3.0",
12
- "@vidispine/vdt-materialui": "22.3.0",
13
- "@vidispine/vdt-react": "22.3.0",
10
+ "@vidispine/vdt-api": "22.4.0-pre.1",
11
+ "@vidispine/vdt-materialui": "22.4.0-pre.1",
12
+ "@vidispine/vdt-react": "22.4.0-pre.1",
14
13
  "clsx": "^1.2.1",
15
14
  "react": "^17.0.2",
16
15
  "react-dom": "^17.0.2",
@@ -19,8 +18,8 @@
19
18
  "typeface-roboto": "^1.1.13"
20
19
  },
21
20
  "devDependencies": {
22
- "@vidispine/eslint-config": "22.3.0",
23
- "@vidispine/prettier-config": "22.3.0",
21
+ "@vidispine/eslint-config": "22.4.0-pre.1",
22
+ "@vidispine/prettier-config": "22.4.0-pre.1",
24
23
  "http-proxy-middleware": "^2.0.6",
25
24
  "prettier": "^2.7.1"
26
25
  },