feat(scaffolder): use swr, pretty template mocks, move out grid item

This commit is contained in:
Ivan Shmidt
2020-06-20 13:55:22 +02:00
parent 78531b9be1
commit 2808d8aa06
6 changed files with 78 additions and 64 deletions
@@ -4,7 +4,9 @@ metadata:
name: react-ssr-template
title: React SSR Template
description: Next.js application skeleton for creating isomorphic web applications.
annotations:
tags: Recommended,React
spec:
type: cookiecutter
processor: cookiecutter
type: website
path: '.'
@@ -0,0 +1,12 @@
apiVersion: backstage.io/v1alpha1
kind: Template
metadata:
name: springboot-template
title: Spring Boot Service
description: Standard Spring Boot (Java) microservice with recommended configuration.
annotations:
tags: Recommended,Java
spec:
processor: cookiecutter
type: service
path: '.'
+10 -6
View File
@@ -1,8 +1,12 @@
#!/usr/bin/env bash
curl \
--location \
--request POST 'localhost:7000/catalog/locations' \
--header 'Content-Type: application/json' \
--data-raw "{\"type\": \"file\", \"target\": \"$(pwd)/sample-templates/react-ssr-template/template.yaml\"}"
for URL in \
'react-ssr-template' \
'springboot-template' \
; do \
curl \
--location \
--request POST 'localhost:7000/catalog/locations' \
--header 'Content-Type: application/json' \
--data-raw "{\"type\": \"file\", \"target\": \"$(pwd)/sample-templates/${URL}/template.yaml\"}"
done