Merge pull request #2291 from spotify/rugvip/sepmic

microsite: remove from workspace and build independently
This commit is contained in:
Patrik Oldsberg
2020-09-05 12:46:53 +02:00
committed by GitHub
11 changed files with 6752 additions and 1306 deletions
+1 -1
View File
@@ -49,6 +49,6 @@ jobs:
- run: yarn tsc
- name: yarn build
run: yarn build --ignore example-app --ignore example-backend --ignore @techdocs/cli --ignore backstage-microsite
run: yarn build --ignore example-app --ignore example-backend --ignore @techdocs/cli
- name: run E2E test
run: yarn workspace e2e-test start
+1 -1
View File
@@ -64,7 +64,7 @@ jobs:
- run: yarn tsc
- name: yarn build
run: yarn build --ignore example-app --ignore example-backend --ignore @techdocs/cli --ignore backstage-microsite
run: yarn build --ignore example-app --ignore example-backend --ignore @techdocs/cli
- name: run E2E test
run: |
sudo sysctl fs.inotify.max_user_watches=524288
+6 -22
View File
@@ -22,33 +22,17 @@ jobs:
steps:
- uses: actions/checkout@v2
# Beginning of yarn setup, keep in sync between all workflows, see ci.yml
- name: use node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
registry-url: https://registry.npmjs.org/ # Needed for auth
- name: cache all node_modules
id: cache-modules
uses: actions/cache@v2
with:
path: '**/node_modules'
key: ${{ runner.os }}-node_modules-${{ hashFiles('yarn.lock', '**/package.json') }}
- name: find location of global yarn cache
id: yarn-cache
if: steps.cache-modules.outputs.cache-hit != 'true'
run: echo "::set-output name=dir::$(yarn cache dir)"
- name: cache global yarn cache
uses: actions/cache@v2
if: steps.cache-modules.outputs.cache-hit != 'true'
with:
path: ${{ steps.yarn-cache.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
# Skip caching of microsite dependencies, it keeps the global cache size
# smaller, which make Windows builds a lot faster for the rest of the project.
- name: yarn install
run: yarn install --frozen-lockfile
# End of yarn setup
working-directory: microsite
- name: build microsite
run: yarn workspace backstage-microsite build
run: yarn build
working-directory: microsite
@@ -54,8 +54,14 @@ jobs:
run: yarn install --frozen-lockfile
# End of yarn setup
# Previous install was to be able to build storybook, this is for the microsite, and we skip caching
- name: yarn install
run: yarn install --frozen-lockfile
working-directory: microsite
- name: build microsite
run: yarn workspace backstage-microsite build
run: yarn build
working-directory: microsite
- name: build storybook
run: yarn workspace storybook build-storybook
-4
View File
@@ -90,10 +90,6 @@ typings/
.nuxt
dist
# Microsite build output
microsite/build
microsite/i18n
# Gatsby files
.cache/
# Comment in the public line in if your project uses Gatsby and not Next.js
+4
View File
@@ -0,0 +1,4 @@
# Build output
build
i18n
+25 -1
View File
@@ -2,12 +2,36 @@ This website was created with [Docusaurus](https://docusaurus.io/).
# What's In This Document
- [Get Started in 5 Minutes](#get-started-in-5-minutes)
- [Getting Started](#getting-started)
- [Directory Structure](#directory-structure)
- [Editing Content](#editing-content)
- [Adding Content](#adding-content)
- [Full Documentation](#full-documentation)
# Getting Started
## Installation
```
$ yarn install
```
## Local Development
```
$ yarn start
```
This command starts a local development server and open up a browser window. Most changes are reflected live without having to restart the server.
## Build
```
$ yarn build
```
This command generates static content into the `build` directory, which is what will be deployed to GitHub pages from the master branch.
## Directory Structure
Your project file structure should look something like this
+1 -1
View File
@@ -1,5 +1,5 @@
{
"version": "0.1.1-alpha.21",
"version": "0.0.0",
"name": "backstage-microsite",
"license": "Apache-2.0",
"private": true,
+6650
View File
File diff suppressed because it is too large Load Diff
+1 -2
View File
@@ -30,8 +30,7 @@
"workspaces": {
"packages": [
"packages/*",
"plugins/*",
"microsite"
"plugins/*"
]
},
"version": "1.0.0",
+56 -1273
View File
File diff suppressed because it is too large Load Diff