Add docs and enable cookiecutter to support other templates
This commit is contained in:
@@ -8,6 +8,16 @@ Backstage is an open platform for building developer portals.
|
||||
|
||||
## Getting started
|
||||
|
||||
## Plugins
|
||||
|
||||
### Creating a Plugin
|
||||
|
||||
Run the following:
|
||||
|
||||
```terminal
|
||||
$ ./tools/cookiecutter/init.sh frontend/packages/plugins/_template --output-dir frontend/packages/plugins
|
||||
```
|
||||
|
||||
## Documentation
|
||||
|
||||
## License
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
FROM python:3.8-slim
|
||||
|
||||
RUN pip install cookiecutter==1.7.0 --index-url https://pypi.python.org/simple
|
||||
|
||||
ENTRYPOINT [ "cookiecutter" ]
|
||||
Executable
+10
@@ -0,0 +1,10 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
set -e
|
||||
|
||||
# Build the container
|
||||
docker build $(pwd)/tools/cookiecutter -t backstage/tools/cookiecutter --quiet
|
||||
|
||||
# Run cookiecutter with our arguments
|
||||
COOKIECUTTER_FLAGS=${@:-""}
|
||||
docker run -it -v $(pwd):/app -w /app backstage/tools/cookiecutter $COOKIECUTTER_FLAGS
|
||||
Reference in New Issue
Block a user