Documentation ¶
Index ¶
- Variables
- func AddDockerFiles(platform, dir string) error
- func CacheDenoDeps(dir, file string) error
- func Exists(path string) bool
- func InstallNodeDeps(packageManager, dir string) error
- func SetupFiles(projectName string, template t.Template)
- func Untar(dst string, r io.Reader) error
- func UpdatePackageName(dir string) error
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Deno_Dockerfile = []byte(`FROM denoland/deno RUN mkdir -p /app WORKDIR /app USER deno COPY . /app RUN deno cache src/mod.ts CMD ["run", "--unstable", "--allow-all", "src/mod.ts"]`) Node_Dockerfile = []byte(`FROM node:lts-alpine RUN mkdir -p /app WORKDIR /app COPY package.json /app/ RUN npm install COPY . /app RUN npm run build CMD ["node", "dist/index.js"]`) Node_DockerIgnore = []byte(`node_modules build dist dest`) )
Functions ¶
func AddDockerFiles ¶
func CacheDenoDeps ¶
func InstallNodeDeps ¶
func SetupFiles ¶
func UpdatePackageName ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.