stdlib: dagger.io/js/react
Signed-off-by: Solomon Hykes <sh.github.6811@hykes.org>
This commit is contained in:
39
tests/stdlib/js/react/react.cue
Normal file
39
tests/stdlib/js/react/react.cue
Normal file
@@ -0,0 +1,39 @@
|
||||
package react
|
||||
|
||||
import (
|
||||
"dagger.io/dagger"
|
||||
"dagger.io/js/react"
|
||||
"dagger.io/alpine"
|
||||
"dagger.io/docker"
|
||||
)
|
||||
|
||||
TestData: dagger.#Artifact
|
||||
|
||||
TestReact: {
|
||||
app: react.#App & {
|
||||
source: TestData
|
||||
}
|
||||
|
||||
test: docker.#Container & {
|
||||
image: alpine.#Image & {
|
||||
package: bash: "=5.1.0-r0"
|
||||
}
|
||||
volume: build: {
|
||||
from: app.build
|
||||
dest: "/build"
|
||||
}
|
||||
command: """
|
||||
test "$(cat /build/test)" = "output"
|
||||
"""
|
||||
shell: {
|
||||
path: "/bin/bash"
|
||||
args: [
|
||||
"--noprofile",
|
||||
"--norc",
|
||||
"-eo",
|
||||
"pipefail",
|
||||
"-c",
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
11
tests/stdlib/js/react/testdata/package.json
vendored
Normal file
11
tests/stdlib/js/react/testdata/package.json
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
{
|
||||
"name": "test",
|
||||
"main": "index.js",
|
||||
"license": {
|
||||
"type": "Apache-2.0",
|
||||
"url": "https://opensource.org/licenses/apache2.0.php"
|
||||
},
|
||||
"scripts": {
|
||||
"build": "mkdir -p ./build && echo output > ./build/test && touch .env && cp .env ./build/"
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user