Add rollup for plugin build

This commit is contained in:
nikek
2020-03-20 16:24:35 +01:00
parent 638baa1f86
commit f28cfcf7d1
14 changed files with 478 additions and 74 deletions
+17 -9
View File
@@ -1,9 +1,15 @@
{
"name": "@backstage/plugin-home-page",
"version": "0.1.1-alpha.0",
"main": "dist/cjs/index.js",
"types": "dist/cjs/index.d.ts",
"private": true,
"module": "build/index.esm.js",
"types": "build/index.d.ts",
"license": "Apache-2.0",
"private": false,
"scripts": {
"build": "backstage-cli build-cache -- backstage-cli plugin:build",
"lint": "backstage-cli lint",
"test": "backstage-cli test"
},
"devDependencies": {
"@backstage/cli": "^0.1.1-alpha.0",
"@backstage/core": "^0.1.1-alpha.0",
@@ -18,10 +24,12 @@
"react": "^16.12.0",
"react-dom": "^16.12.0"
},
"scripts": {
"build": "backstage-cli build-cache -- backstage-cli plugin:build",
"lint": "backstage-cli lint",
"test": "backstage-cli test"
},
"license": "Apache-2.0"
"peerDependencies": {
"@material-ui/core": "^4.9.1",
"@material-ui/icons": "^4.9.1",
"@material-ui/lab": "4.0.0-alpha.45",
"@backstage/core": "^0.1.0",
"react": "16.13.1",
"react-dom": "16.13.1"
}
}
+4 -1
View File
@@ -1,4 +1,7 @@
{
"extends": "../../tsconfig.json",
"include": ["src"]
"include": ["src"],
"compilerOptions": {
"module": "es6"
}
}
+16 -5
View File
@@ -1,10 +1,10 @@
{
"name": "@backstage/plugin-welcome",
"version": "0.1.1-alpha.0",
"main": "dist/cjs/index.js",
"types": "dist/cjs/index.d.ts",
"module": "build/index.esm.js",
"types": "build/index.d.ts",
"license": "Apache-2.0",
"private": true,
"private": false,
"scripts": {
"build": "backstage-cli build-cache -- backstage-cli plugin:build",
"lint": "backstage-cli lint",
@@ -13,9 +13,20 @@
"devDependencies": {
"@backstage/cli": "^0.1.1-alpha.0",
"@backstage/core": "^0.1.1-alpha.0",
"@testing-library/jest-dom": "^4.2.4",
"@testing-library/react": "^9.3.2",
"@testing-library/user-event": "^7.1.2",
"@types/jest": "^24.0.0",
"@types/node": "^12.0.0",
"@types/testing-library__jest-dom": "5.0.2"
},
"dependencies": {
"@material-ui/lab": "4.0.0-alpha.45"
"peerDependencies": {
"@material-ui/core": "^4.9.1",
"@material-ui/icons": "^4.9.1",
"@material-ui/lab": "4.0.0-alpha.45",
"@backstage/core": "^0.1.0",
"react": "16.13.1",
"react-dom": "16.13.1",
"react-router-dom": "5.1.2"
}
}
+4 -1
View File
@@ -1,4 +1,7 @@
{
"extends": "../../tsconfig.json",
"include": ["src"]
"include": ["src"],
"compilerOptions": {
"module": "es6"
}
}