stdlib: dagger.io/js/react

Signed-off-by: Solomon Hykes <sh.github.6811@hykes.org>
This commit is contained in:
Solomon Hykes
2021-04-07 16:57:39 +00:00
parent cfde22b69d
commit ee621590ff
9 changed files with 112 additions and 110 deletions

View File

@@ -0,0 +1 @@
../../../../stdlib

View File

@@ -2,7 +2,7 @@ package main
import (
"dagger.io/netlify"
"dagger.io/yarn"
"dagger.io/js/react"
"dagger.io/git"
)
@@ -19,14 +19,9 @@ www: netlify.#Site & {
// Deploy the output of yarn build
// (Netlify build feature is not used, to avoid extra cost).
contents: build
contents: app.build
}
// Build the application with Yarn
build: yarn.#Script & {
// What to build
app: react.#App & {
source: repo
// How to build it (name of yarn script)
run: "build"
}