diff --git a/packages/cli/config/tsconfig.json b/packages/cli/config/tsconfig.json new file mode 100644 index 0000000000..abb10087ca --- /dev/null +++ b/packages/cli/config/tsconfig.json @@ -0,0 +1,11 @@ +{ + "extends": "@spotify/web-scripts/config/tsconfig.json", + "exclude": ["**/*.test.*"], + "compilerOptions": { + "allowJs": true, + "noEmit": false, + "declarationMap": true, + "incremental": true, + "module": "es6" + } +} diff --git a/packages/cli/templates/default-app/plugins/welcome/package.json.hbs b/packages/cli/templates/default-app/plugins/welcome/package.json.hbs index 581f5e41ce..9069ce6f8e 100644 --- a/packages/cli/templates/default-app/plugins/welcome/package.json.hbs +++ b/packages/cli/templates/default-app/plugins/welcome/package.json.hbs @@ -1,8 +1,8 @@ { "name": "plugin-welcome", "version": "0.0.0", - "main": "dist/cjs/index.js", - "types": "dist/cjs/index.d.ts", + "main": "dist/index.cjs.js", + "types": "dist/index.d.ts", "private": true, "scripts": { "build": "backstage-cli plugin:build", @@ -11,11 +11,17 @@ }, "devDependencies": { "@backstage/cli": "^{{version}}", + "@testing-library/jest-dom": "^4.2.4", + "@testing-library/react": "^9.3.2", "@types/testing-library__jest-dom": "5.0.2" }, "dependencies": { - "@material-ui/lab": "4.0.0-alpha.45", "@backstage/core": "^{{version}}", - "@backstage/theme": "^{{version}}" + "@backstage/theme": "^{{version}}", + "@material-ui/core": "^4.9.1", + "@material-ui/icons": "^4.9.1", + "react": "16.13.1", + "react-dom": "16.13.1", + "react-router-dom": "5.1.2" } } diff --git a/packages/cli/templates/default-app/plugins/welcome/src/components/WelcomePage/WelcomePage.tsx b/packages/cli/templates/default-app/plugins/welcome/src/components/WelcomePage/WelcomePage.tsx index 19f9ee55e2..d9ef0524c6 100644 --- a/packages/cli/templates/default-app/plugins/welcome/src/components/WelcomePage/WelcomePage.tsx +++ b/packages/cli/templates/default-app/plugins/welcome/src/components/WelcomePage/WelcomePage.tsx @@ -36,7 +36,7 @@ const WelcomePage: FC<{}> = () => { - + You now have a running instance of Backstage! diff --git a/packages/cli/templates/default-app/tsconfig.json b/packages/cli/templates/default-app/tsconfig.json index 25f61cc933..f278b2777d 100644 --- a/packages/cli/templates/default-app/tsconfig.json +++ b/packages/cli/templates/default-app/tsconfig.json @@ -1,10 +1,3 @@ { - "extends": "@spotify/web-scripts/config/tsconfig.json", - "exclude": ["**/*.test.*"], - "compilerOptions": { - "allowJs": true, - "noEmit": false, - "declarationMap": true, - "incremental": true - } + "extends": "@backstage/cli/config/tsconfig.json" } diff --git a/tsconfig.json b/tsconfig.json index abb10087ca..f278b2777d 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,11 +1,3 @@ { - "extends": "@spotify/web-scripts/config/tsconfig.json", - "exclude": ["**/*.test.*"], - "compilerOptions": { - "allowJs": true, - "noEmit": false, - "declarationMap": true, - "incremental": true, - "module": "es6" - } + "extends": "@backstage/cli/config/tsconfig.json" }