files

package
v0.2.15 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 31, 2023 License: MIT Imports: 12 Imported by: 0

Documentation

Index

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 AddDockerFiles(platform, dir string) error

func CacheDenoDeps

func CacheDenoDeps(dir, file string) error

func Exists

func Exists(path string) bool

func InstallNodeDeps

func InstallNodeDeps(packageManager, dir string) error

func SetupFiles

func SetupFiles(projectName string, template t.Template)

func Untar

func Untar(dst string, r io.Reader) error

func UpdatePackageName

func UpdatePackageName(dir string) error

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL