File tree Expand file tree Collapse file tree 1 file changed +11
-12
lines changed
pkg/universe.dagger.io/examples/todoapp Expand file tree Collapse file tree 1 file changed +11
-12
lines changed Original file line number Diff line number Diff line change @@ -8,16 +8,15 @@ import (
8
8
" universe.dagger.io/netlify "
9
9
)
10
10
11
- nodeModulesMount : " /src/node_modules " : dagger .#Mount & {
12
- dest : " /src/node_modules "
13
- type : " cache "
14
- contents : dagger .#CacheDir & {
15
- id : " todoapp-modules-cache "
16
- }
17
-
18
- }
19
-
20
11
dagger .#Plan & {
12
+ _nodeModulesMount : " /src/node_modules " : dagger .#Mount & {
13
+ dest : " /src/node_modules "
14
+ type : " cache "
15
+ contents : dagger .#CacheDir & {
16
+ id : " todoapp-modules-cache "
17
+ }
18
+
19
+ }
21
20
client : {
22
21
filesystem : {
23
22
" . " : read : {
@@ -63,7 +62,7 @@ dagger.#Plan & {
63
62
id : " todoapp-yarn-cache "
64
63
}
65
64
}
66
- nodeModulesMount
65
+ _nodeModulesMount
67
66
}
68
67
script : contents : #"""
69
68
yarn config set cache-folder /cache/yarn
@@ -76,7 +75,7 @@ dagger.#Plan & {
76
75
test : bash .#Run & {
77
76
input : deps .output
78
77
workdir : " /src "
79
- mounts : nodeModulesMount
78
+ mounts : _nodeModulesMount
80
79
script : contents : #"""
81
80
yarn run test
82
81
"""#
@@ -85,7 +84,7 @@ dagger.#Plan & {
85
84
build : {
86
85
run : bash .#Run & {
87
86
input : test .output
88
- mounts : nodeModulesMount
87
+ mounts : _nodeModulesMount
89
88
workdir : " /src "
90
89
script : contents : #"""
91
90
yarn run build
You can’t perform that action at this time.
0 commit comments