Merge branch 'master' into shmidt-i/backend-plugins-standalone-builds-fix

This commit is contained in:
Ivan Shmidt
2020-06-17 10:02:42 +02:00
committed by GitHub
28 changed files with 638 additions and 225 deletions
@@ -0,0 +1,23 @@
/*
* Copyright 2020 Spotify AB
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import { buildPackage, Output } from '../../lib/packager';
export default async () => {
await buildPackage({
outputs: new Set([Output.cjs, Output.types]),
});
};
+5
View File
@@ -41,6 +41,11 @@ const main = (argv: string[]) => {
.option('--check', 'Enable type checking and linting')
.action(lazyAction(() => import('./commands/app/serve'), 'default'));
program
.command('backend:build')
.description('Build a backend plugin')
.action(lazyAction(() => import('./commands/backend/build'), 'default'));
program
.command('backend:dev')
.description('Start local development server with HMR for the backend')