Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add task build_dist #32

Open
MartinKavik opened this issue Sep 8, 2020 · 0 comments
Open

Add task build_dist #32

MartinKavik opened this issue Sep 8, 2020 · 0 comments

Comments

@MartinKavik
Copy link
Member

Example:

[tasks.build_dist]
description = "Build with wasm-pack in release mode and move important files to dist folder"
dependencies = ["build_release"]
script = [
'''
#!@duckscript
rm -r dist
mkdir dist
cp public dist
cp netlify.toml dist/netlify.toml
cp index.html dist/index.html
cp pkg/package.js dist/pkg/package.js
cp pkg/package_bg.wasm dist/pkg/package_bg.wasm
'''
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant