Merge pull request #152 from spotify/rugvip/plugin-template-ts

cli/templates: update plugin template to use separate build
This commit is contained in:
Patrik Oldsberg
2020-03-04 12:59:33 +01:00
committed by GitHub
3 changed files with 8 additions and 5 deletions
@@ -212,8 +212,7 @@ const buildPlugin = async (pluginFolder: string) => {
const prom_exec = promisify(exec);
// const commands = ['yarn', 'yarn build'];
const commands = ['yarn'];
const commands = ['yarn', 'yarn build'];
for (const command of commands) {
process.stdout.write(chalk.green(` executing\t${chalk.cyan(command)}`));
try {
@@ -1,16 +1,16 @@
{
"name": "@spotify-backstage/plugin-{{id}}",
"version": "0.0.0",
"main": "src/index.ts",
"main:src": "src/index.ts",
"main": "dist/cjs",
"license": "Apache-2.0",
"private": false,
"scripts": {
"build": "web-scripts build",
"build": "tsc --outDir dist/cjs --noEmit false --module CommonJS",
"lint": "web-scripts lint",
"test": "web-scripts test"
},
"devDependencies": {
"@spotify-backstage/cli": "^1.2.0",
"@spotify/web-scripts": "^6.0.0"
},
"dependencies": {
@@ -0,0 +1,4 @@
{
"extends": "../../../tsconfig.json",
"include": ["src"]
}