Skip to content

Commit

Permalink
Missing tasks.py
Browse files Browse the repository at this point in the history
This is why the build was failing.
  • Loading branch information
YaelDillies committed Nov 14, 2023
1 parent f699b5a commit 5a3f0c7
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions tasks.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
import os
import shutil
import subprocess
from pathlib import Path
from invoke import run, task

from blueprint.tasks import web, bp, print_bp, serve

ROOT = Path(__file__).parent

@task(bp, web)
def all(ctx):
shutil.rmtree(ROOT/'docs'/'blueprint', ignore_errors=True)
shutil.copytree(ROOT/'blueprint'/'web', ROOT/'docs'/'blueprint')
shutil.copy2(ROOT/'blueprint'/'print'/'print.pdf', ROOT/'docs'/'blueprint.pdf')

@task(web)
def html(ctx):
shutil.rmtree(ROOT/'docs'/'blueprint', ignore_errors=True)
shutil.copytree(ROOT/'blueprint'/'web', ROOT/'docs'/'blueprint')

0 comments on commit 5a3f0c7

Please sign in to comment.