@vidispine/cra-template-vdt 23.1.0 → 23.2.0-pre.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vidispine/cra-template-vdt",
3
- "version": "23.1.0",
3
+ "version": "23.2.0-pre.2",
4
4
  "license": "SEE LICENSE IN LICENSE.md",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -13,16 +13,17 @@
13
13
  "directory": "packages/cra-template-vdt"
14
14
  },
15
15
  "scripts": {
16
- "lint": "eslint . --ext js,md,mdx"
16
+ "format": "prettier . --check",
17
+ "lint": "eslint . --max-warnings=0 --ext .js,.jsx,.ts,.tsx,.md,.mdx"
17
18
  },
18
19
  "files": [
19
20
  "template",
20
21
  "template.json"
21
22
  ],
22
23
  "devDependencies": {
23
- "@vidispine/eslint-config": "23.1.0",
24
- "@vidispine/eslint-config-mdx": "23.1.0",
25
- "@vidispine/prettier-config": "23.1.0",
24
+ "@vidispine/eslint-config": "23.2.0-pre.2",
25
+ "@vidispine/eslint-config-mdx": "23.2.0-pre.2",
26
+ "@vidispine/prettier-config": "23.2.0-pre.2",
26
27
  "eslint": "8.34.0",
27
28
  "prettier": "2.8.4"
28
29
  },
@@ -2,10 +2,7 @@
2
2
  // See https://go.microsoft.com/fwlink/?LinkId=827846 to learn about workspace recommendations.
3
3
  // Extension identifier format: ${publisher}.${name}. Example: vscode.csharp
4
4
  // List of extensions which should be recommended for users of this workspace.
5
- "recommendations": [
6
- "dbaeumer.vscode-eslint",
7
- "esbenp.prettier-vscode"
8
- ],
5
+ "recommendations": ["dbaeumer.vscode-eslint", "esbenp.prettier-vscode"],
9
6
  // List of extensions recommended by VS Code that should not be recommended for users of this workspace.
10
7
  "unwantedRecommendations": []
11
- }
8
+ }
@@ -8,7 +8,5 @@
8
8
  "editor.codeActionsOnSave": {
9
9
  "source.fixAll.eslint": true
10
10
  },
11
- "editor.rulers": [
12
- 100
13
- ],
14
- }
11
+ "editor.rulers": [100]
12
+ }
@@ -0,0 +1,16 @@
1
+ module.exports = {
2
+ webpack: {
3
+ configure: {
4
+ module: {
5
+ rules: [
6
+ {
7
+ test: /\.m?js$/,
8
+ resolve: {
9
+ fullySpecified: false,
10
+ },
11
+ },
12
+ ],
13
+ },
14
+ },
15
+ },
16
+ };
@@ -1,19 +1,18 @@
1
1
  <!DOCTYPE html>
2
2
 
3
3
  <html lang="en">
4
+ <head>
5
+ <meta charset="utf-8" />
6
+ <link rel="icon" href="%PUBLIC_URL%/favicon.ico" />
7
+ <meta name="viewport" content="width=device-width, initial-scale=1" />
8
+ <meta name="theme-color" content="#000000" />
9
+ <meta name="description" content="<VDT TEMPLATE>" />
10
+ </head>
4
11
 
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
- <!--
12
+ <body>
13
+ <noscript>You need to enable JavaScript to run this app.</noscript>
14
+ <div id="root"></div>
15
+ <!--
17
16
  This HTML file is a template.
18
17
  If you open it directly in the browser, you will see an empty page.
19
18
 
@@ -23,6 +22,5 @@
23
22
  To begin the development, run `npm start` or `yarn start`.
24
23
  To create a production bundle, use `npm run build` or `yarn build`.
25
24
  -->
26
- </body>
27
-
28
- </html>
25
+ </body>
26
+ </html>
@@ -6,8 +6,7 @@ import {
6
6
  ListItemText,
7
7
  Drawer as MUIDrawer,
8
8
  } from '@material-ui/core';
9
- import CollectionsIcon from '@material-ui/icons/Collections';
10
- import WebAssetIcon from '@material-ui/icons/WebAsset';
9
+ import { Collections as CollectionsIcon, WebAsset as WebAssetIcon } from '@material-ui/icons';
11
10
  import clsx from 'clsx';
12
11
  import { NavLink } from 'react-router-dom';
13
12
 
@@ -1,5 +1,5 @@
1
1
  import { withStyles, IconButton, Typography, Toolbar, AppBar } from '@material-ui/core';
2
- import MenuIcon from '@material-ui/icons/Menu';
2
+ import { Menu as MenuIcon } from '@material-ui/icons';
3
3
 
4
4
  import { UserAvatarButton } from '@vidispine/vdt-materialui';
5
5
  import { useAuthContext } from '@vidispine/vdt-react';
@@ -1,5 +1,4 @@
1
- import indigo from '@material-ui/core/colors/indigo';
2
- import { createTheme } from '@material-ui/core/styles';
1
+ import { createTheme, indigo } from '@material-ui/core';
3
2
 
4
3
  import 'typeface-roboto';
5
4
 
package/template.json CHANGED
@@ -1,15 +1,20 @@
1
1
  {
2
2
  "package": {
3
3
  "scripts": {
4
- "lint": "eslint . --ext js"
4
+ "start": "craco start",
5
+ "build": "craco build",
6
+ "test": "craco test",
7
+ "format": "prettier . --check",
8
+ "lint": "eslint . --max-warnings=0 --ext .js,.jsx,.ts,.tsx"
5
9
  },
6
10
  "dependencies": {
11
+ "@craco/craco": "7.1.0",
7
12
  "@material-ui/core": "^4.12.4",
8
13
  "@material-ui/icons": "^4.11.3",
9
14
  "@material-ui/lab": "^4.0.0-alpha.61",
10
- "@vidispine/vdt-api": "23.1.0",
11
- "@vidispine/vdt-materialui": "23.1.0",
12
- "@vidispine/vdt-react": "23.1.0",
15
+ "@vidispine/vdt-api": "23.2.0-pre.2",
16
+ "@vidispine/vdt-materialui": "23.2.0-pre.2",
17
+ "@vidispine/vdt-react": "23.2.0-pre.2",
13
18
  "clsx": "^1.2.1",
14
19
  "react": "^17.0.2",
15
20
  "react-dom": "^17.0.2",
@@ -18,8 +23,8 @@
18
23
  "typeface-roboto": "^1.1.13"
19
24
  },
20
25
  "devDependencies": {
21
- "@vidispine/eslint-config": "23.1.0",
22
- "@vidispine/prettier-config": "23.1.0",
26
+ "@vidispine/eslint-config": "23.2.0-pre.2",
27
+ "@vidispine/prettier-config": "23.2.0-pre.2",
23
28
  "eslint": "^8.25.0",
24
29
  "http-proxy-middleware": "^2.0.6",
25
30
  "prettier": "^2.7.1"