Split up packages (#1)
* add drawio
* more tweaking of editor load
* more work on packaging
* linting, remove trace of mxgraph submodule
* clean up empty file rendering
* add some missing images
* don't reinitialize url after every show
* some css sugar
* belt and suspenders ui theme
* some more params
* add export
* working on logo
* more logo work
* full in-place round-tripping of svg, png, html
* use icons on documents
* clean up some untitled files
* first pass at schema
* start settings integration
* more work on settings
* fix ref
* work on url params
* some more tweaks to load behavior
* move submodule
* clean up some packaging stuff
* jlpm
* resolve yarn
* fix iframe url
* bump to newest drawio release
* brinf back the stencils
* html doesn't really work
* add more images
* move more things from code into config defaults
* rework settings some more
* fix new view, still working on click-to-activate
* fix capitalization on compressXml
* give up on formatting xml
* more work on round-trip, styling
* linting
* more missing images
* more config reloading
* drawio v13.1.8
* bump drawio files
* update notebook
* upgrade typescript
* more submodule shenanigans, binder env
* regenerate again, was missing stencils
* try adding server proxy
* update path
* fix schema
* pin node
* hoist jupyter_notebook_config.json
* some more work on export
* more x
* add some more demo tools
* use apt, some status
* apt deps, get back icons
* some more apt work
* more apt work
* better programmatic example
* more status work
* more docs
* add some more text
* some more notes
* some more status work, notes
* add jinja example
* more work on notebook
* move notebook
* add some deps
* more deps for pandas, pdf
* use local drawio assets
* stop servers harder
* Create Data-Driven Decks.ipynb
* Update drawio_export_demo.py
* Create template deck.dio
* fix up some chores
* some notebook tweaks
* more work on demo
* try another labextension spot
* notebooks
* store composite drawio in pdf
* use file:// for drawio static
* drawio v13.3.5
* remove even more unused code
* bump drawio, remove more tornado junk
* clean up xml pattern
* add notebook, because why not
* add ipynb example to decks
* add png, svg to composite
* add video chat for giggles
* drawio v13.3.8
* add plugins
* more work on plugin stuff
* drawio v13.3.9
* drawio v13.4.7
* resolve yarn.lock
* add sourcemaps
* drawio v13.4.9
* start patching towards rtc
* add plugin path to patches
* add a mess of plugins
* turn down the plugins
* drawio v13.5.3
* re-solve static
* get rid of all the high unicode in schema
* use utf-8 encoding explicitly
* Update package.json
* Update _static.ts
* drawio v13.5.4
* resolve static
* drawio v13.5.8
* move notebooks
* start moving things around
* add dodo.py
* more moving
* more moving
* more moving and naming
* moving
* move static
* fix up static path
* update more ids, locations
* skeleton docs
* start doing it
* start linting in anger
* passing eslint
* add prebuild
* yet more linting
* back to ts building
* packing
* hoist tarball
* clean up static generation
* apply lint in anger
* more work on static
* remove videochat for now, more ignoring
* tune up ci, binder
* use smaller env for now
* underspecify python in ci, don't url-encode [p]lugins
* gah windows
* some win debugging
* do some roadmap work
* work on roadmap while debugging
* do per-platform shell commands
* linting, url param
* look harder for npm
* start thinking about versions
* version bumping, more windows work
* remove patterns from schema
* add all task
* more encoding, linting
* rebuild static with iife
* try another import template
* versions in changelog
* more work on alernate asset loading
* revert menu investigations
* paths for windows
2020-08-08 13:45:27 +00:00
|
|
|
import shutil
|
|
|
|
import subprocess
|
|
|
|
|
|
|
|
from doit.action import CmdAction
|
|
|
|
from doit.tools import PythonInteractiveAction, config_changed
|
|
|
|
|
|
|
|
import scripts.project as P
|
|
|
|
|
|
|
|
DOIT_CONFIG = dict(
|
|
|
|
backend="sqlite3",
|
|
|
|
verbosity=2,
|
|
|
|
par_type="thread",
|
2020-08-10 01:54:30 +00:00
|
|
|
default_tasks=["setup", "lab_build:extensions"],
|
Split up packages (#1)
* add drawio
* more tweaking of editor load
* more work on packaging
* linting, remove trace of mxgraph submodule
* clean up empty file rendering
* add some missing images
* don't reinitialize url after every show
* some css sugar
* belt and suspenders ui theme
* some more params
* add export
* working on logo
* more logo work
* full in-place round-tripping of svg, png, html
* use icons on documents
* clean up some untitled files
* first pass at schema
* start settings integration
* more work on settings
* fix ref
* work on url params
* some more tweaks to load behavior
* move submodule
* clean up some packaging stuff
* jlpm
* resolve yarn
* fix iframe url
* bump to newest drawio release
* brinf back the stencils
* html doesn't really work
* add more images
* move more things from code into config defaults
* rework settings some more
* fix new view, still working on click-to-activate
* fix capitalization on compressXml
* give up on formatting xml
* more work on round-trip, styling
* linting
* more missing images
* more config reloading
* drawio v13.1.8
* bump drawio files
* update notebook
* upgrade typescript
* more submodule shenanigans, binder env
* regenerate again, was missing stencils
* try adding server proxy
* update path
* fix schema
* pin node
* hoist jupyter_notebook_config.json
* some more work on export
* more x
* add some more demo tools
* use apt, some status
* apt deps, get back icons
* some more apt work
* more apt work
* better programmatic example
* more status work
* more docs
* add some more text
* some more notes
* some more status work, notes
* add jinja example
* more work on notebook
* move notebook
* add some deps
* more deps for pandas, pdf
* use local drawio assets
* stop servers harder
* Create Data-Driven Decks.ipynb
* Update drawio_export_demo.py
* Create template deck.dio
* fix up some chores
* some notebook tweaks
* more work on demo
* try another labextension spot
* notebooks
* store composite drawio in pdf
* use file:// for drawio static
* drawio v13.3.5
* remove even more unused code
* bump drawio, remove more tornado junk
* clean up xml pattern
* add notebook, because why not
* add ipynb example to decks
* add png, svg to composite
* add video chat for giggles
* drawio v13.3.8
* add plugins
* more work on plugin stuff
* drawio v13.3.9
* drawio v13.4.7
* resolve yarn.lock
* add sourcemaps
* drawio v13.4.9
* start patching towards rtc
* add plugin path to patches
* add a mess of plugins
* turn down the plugins
* drawio v13.5.3
* re-solve static
* get rid of all the high unicode in schema
* use utf-8 encoding explicitly
* Update package.json
* Update _static.ts
* drawio v13.5.4
* resolve static
* drawio v13.5.8
* move notebooks
* start moving things around
* add dodo.py
* more moving
* more moving
* more moving and naming
* moving
* move static
* fix up static path
* update more ids, locations
* skeleton docs
* start doing it
* start linting in anger
* passing eslint
* add prebuild
* yet more linting
* back to ts building
* packing
* hoist tarball
* clean up static generation
* apply lint in anger
* more work on static
* remove videochat for now, more ignoring
* tune up ci, binder
* use smaller env for now
* underspecify python in ci, don't url-encode [p]lugins
* gah windows
* some win debugging
* do some roadmap work
* work on roadmap while debugging
* do per-platform shell commands
* linting, url param
* look harder for npm
* start thinking about versions
* version bumping, more windows work
* remove patterns from schema
* add all task
* more encoding, linting
* rebuild static with iife
* try another import template
* versions in changelog
* more work on alernate asset loading
* revert menu investigations
* paths for windows
2020-08-08 13:45:27 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
def task_submodules():
|
|
|
|
""" ensure submodules are available
|
|
|
|
"""
|
|
|
|
subs = subprocess.check_output(["git", "submodule"]).decode("utf-8").splitlines()
|
|
|
|
|
|
|
|
def _clean():
|
|
|
|
""" clean drawio, as it gets patched in-place
|
|
|
|
"""
|
|
|
|
if any([x.startswith("-") for x in subs]) and P.DRAWIO.exists():
|
|
|
|
shutil.rmtree(P.DRAWIO)
|
|
|
|
|
|
|
|
return _ok(
|
|
|
|
dict(
|
|
|
|
uptodate=[config_changed({"subs": subs})],
|
|
|
|
actions=[_clean, ["git", "submodule", "update", "--init", "--recursive"]],
|
|
|
|
),
|
|
|
|
P.OK_SUBMODULES,
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
def task_setup():
|
|
|
|
yield dict(
|
|
|
|
name="js",
|
|
|
|
file_dep=[P.YARN_LOCK, P.PACKAGE, P.OK_SUBMODULES],
|
|
|
|
actions=[
|
|
|
|
[*P.JLPM, "--ignore-optional", "--prefer-offline"],
|
|
|
|
[*P.JLPM, "lerna", "bootstrap"],
|
|
|
|
],
|
|
|
|
targets=[P.YARN_INTEGRITY],
|
|
|
|
)
|
|
|
|
|
2020-08-10 01:54:30 +00:00
|
|
|
for pkg, pkg_setup in P.PY_SETUP.items():
|
|
|
|
yield _ok(
|
|
|
|
dict(
|
|
|
|
name=f"py:{pkg}",
|
|
|
|
file_dep=[pkg_setup, P.PY_SETUP_CFG[pkg]],
|
|
|
|
actions=[
|
|
|
|
CmdAction(
|
|
|
|
[
|
|
|
|
"python",
|
|
|
|
"-m",
|
|
|
|
"pip",
|
|
|
|
"install",
|
|
|
|
"-e",
|
|
|
|
".",
|
|
|
|
"--no-deps",
|
|
|
|
"-vv",
|
|
|
|
],
|
|
|
|
shell=False,
|
|
|
|
cwd=pkg_setup.parent,
|
|
|
|
),
|
|
|
|
["python", "-m", "pip", "check"],
|
|
|
|
],
|
|
|
|
),
|
|
|
|
P.OK_PYSETUP[pkg],
|
|
|
|
)
|
|
|
|
|
|
|
|
for ext, ext_py in P.SERVER_EXT.items():
|
|
|
|
yield _ok(
|
|
|
|
dict(
|
|
|
|
name=f"ext:{ext}",
|
|
|
|
file_dep=[ext_py, P.OK_PYSETUP[ext]],
|
|
|
|
actions=[
|
|
|
|
[
|
|
|
|
"jupyter",
|
|
|
|
"serverextension",
|
|
|
|
"enable",
|
|
|
|
"--py",
|
|
|
|
"jupyter_drawio_export",
|
|
|
|
"--sys-prefix",
|
|
|
|
],
|
|
|
|
["jupyter", "serverextension", "list"],
|
|
|
|
],
|
|
|
|
),
|
|
|
|
P.OK_SERVEREXT[ext],
|
|
|
|
)
|
|
|
|
|
Split up packages (#1)
* add drawio
* more tweaking of editor load
* more work on packaging
* linting, remove trace of mxgraph submodule
* clean up empty file rendering
* add some missing images
* don't reinitialize url after every show
* some css sugar
* belt and suspenders ui theme
* some more params
* add export
* working on logo
* more logo work
* full in-place round-tripping of svg, png, html
* use icons on documents
* clean up some untitled files
* first pass at schema
* start settings integration
* more work on settings
* fix ref
* work on url params
* some more tweaks to load behavior
* move submodule
* clean up some packaging stuff
* jlpm
* resolve yarn
* fix iframe url
* bump to newest drawio release
* brinf back the stencils
* html doesn't really work
* add more images
* move more things from code into config defaults
* rework settings some more
* fix new view, still working on click-to-activate
* fix capitalization on compressXml
* give up on formatting xml
* more work on round-trip, styling
* linting
* more missing images
* more config reloading
* drawio v13.1.8
* bump drawio files
* update notebook
* upgrade typescript
* more submodule shenanigans, binder env
* regenerate again, was missing stencils
* try adding server proxy
* update path
* fix schema
* pin node
* hoist jupyter_notebook_config.json
* some more work on export
* more x
* add some more demo tools
* use apt, some status
* apt deps, get back icons
* some more apt work
* more apt work
* better programmatic example
* more status work
* more docs
* add some more text
* some more notes
* some more status work, notes
* add jinja example
* more work on notebook
* move notebook
* add some deps
* more deps for pandas, pdf
* use local drawio assets
* stop servers harder
* Create Data-Driven Decks.ipynb
* Update drawio_export_demo.py
* Create template deck.dio
* fix up some chores
* some notebook tweaks
* more work on demo
* try another labextension spot
* notebooks
* store composite drawio in pdf
* use file:// for drawio static
* drawio v13.3.5
* remove even more unused code
* bump drawio, remove more tornado junk
* clean up xml pattern
* add notebook, because why not
* add ipynb example to decks
* add png, svg to composite
* add video chat for giggles
* drawio v13.3.8
* add plugins
* more work on plugin stuff
* drawio v13.3.9
* drawio v13.4.7
* resolve yarn.lock
* add sourcemaps
* drawio v13.4.9
* start patching towards rtc
* add plugin path to patches
* add a mess of plugins
* turn down the plugins
* drawio v13.5.3
* re-solve static
* get rid of all the high unicode in schema
* use utf-8 encoding explicitly
* Update package.json
* Update _static.ts
* drawio v13.5.4
* resolve static
* drawio v13.5.8
* move notebooks
* start moving things around
* add dodo.py
* more moving
* more moving
* more moving and naming
* moving
* move static
* fix up static path
* update more ids, locations
* skeleton docs
* start doing it
* start linting in anger
* passing eslint
* add prebuild
* yet more linting
* back to ts building
* packing
* hoist tarball
* clean up static generation
* apply lint in anger
* more work on static
* remove videochat for now, more ignoring
* tune up ci, binder
* use smaller env for now
* underspecify python in ci, don't url-encode [p]lugins
* gah windows
* some win debugging
* do some roadmap work
* work on roadmap while debugging
* do per-platform shell commands
* linting, url param
* look harder for npm
* start thinking about versions
* version bumping, more windows work
* remove patterns from schema
* add all task
* more encoding, linting
* rebuild static with iife
* try another import template
* versions in changelog
* more work on alernate asset loading
* revert menu investigations
* paths for windows
2020-08-08 13:45:27 +00:00
|
|
|
|
|
|
|
def task_lint():
|
|
|
|
""" format all source files
|
|
|
|
"""
|
|
|
|
|
|
|
|
yield _ok(
|
|
|
|
dict(
|
|
|
|
name="isort", file_dep=[*P.ALL_PY], actions=[["isort", "-rc", *P.ALL_PY]],
|
|
|
|
),
|
|
|
|
P.OK_ISORT,
|
|
|
|
)
|
|
|
|
yield _ok(
|
|
|
|
dict(
|
|
|
|
name="black",
|
|
|
|
file_dep=[*P.ALL_PY, P.OK_ISORT],
|
|
|
|
actions=[["black", "--quiet", *P.ALL_PY]],
|
|
|
|
),
|
|
|
|
P.OK_BLACK,
|
|
|
|
)
|
|
|
|
yield _ok(
|
|
|
|
dict(
|
|
|
|
name="flake8",
|
|
|
|
file_dep=[*P.ALL_PY, P.OK_BLACK],
|
|
|
|
actions=[["flake8", *P.ALL_PY]],
|
|
|
|
),
|
|
|
|
P.OK_FLAKE8,
|
|
|
|
)
|
|
|
|
yield _ok(
|
|
|
|
dict(
|
|
|
|
name="pyflakes",
|
|
|
|
file_dep=[*P.ALL_PY, P.OK_BLACK],
|
|
|
|
actions=[["pyflakes", *P.ALL_PY]],
|
|
|
|
),
|
|
|
|
P.OK_PYFLAKES,
|
|
|
|
)
|
|
|
|
yield _ok(
|
|
|
|
dict(
|
|
|
|
name="prettier",
|
|
|
|
file_dep=[P.YARN_INTEGRITY, *P.ALL_PRETTIER],
|
2020-08-16 20:33:33 +00:00
|
|
|
actions=[
|
|
|
|
["jlpm", "prettier", "--list-different", "--write", *P.ALL_PRETTIER]
|
|
|
|
],
|
Split up packages (#1)
* add drawio
* more tweaking of editor load
* more work on packaging
* linting, remove trace of mxgraph submodule
* clean up empty file rendering
* add some missing images
* don't reinitialize url after every show
* some css sugar
* belt and suspenders ui theme
* some more params
* add export
* working on logo
* more logo work
* full in-place round-tripping of svg, png, html
* use icons on documents
* clean up some untitled files
* first pass at schema
* start settings integration
* more work on settings
* fix ref
* work on url params
* some more tweaks to load behavior
* move submodule
* clean up some packaging stuff
* jlpm
* resolve yarn
* fix iframe url
* bump to newest drawio release
* brinf back the stencils
* html doesn't really work
* add more images
* move more things from code into config defaults
* rework settings some more
* fix new view, still working on click-to-activate
* fix capitalization on compressXml
* give up on formatting xml
* more work on round-trip, styling
* linting
* more missing images
* more config reloading
* drawio v13.1.8
* bump drawio files
* update notebook
* upgrade typescript
* more submodule shenanigans, binder env
* regenerate again, was missing stencils
* try adding server proxy
* update path
* fix schema
* pin node
* hoist jupyter_notebook_config.json
* some more work on export
* more x
* add some more demo tools
* use apt, some status
* apt deps, get back icons
* some more apt work
* more apt work
* better programmatic example
* more status work
* more docs
* add some more text
* some more notes
* some more status work, notes
* add jinja example
* more work on notebook
* move notebook
* add some deps
* more deps for pandas, pdf
* use local drawio assets
* stop servers harder
* Create Data-Driven Decks.ipynb
* Update drawio_export_demo.py
* Create template deck.dio
* fix up some chores
* some notebook tweaks
* more work on demo
* try another labextension spot
* notebooks
* store composite drawio in pdf
* use file:// for drawio static
* drawio v13.3.5
* remove even more unused code
* bump drawio, remove more tornado junk
* clean up xml pattern
* add notebook, because why not
* add ipynb example to decks
* add png, svg to composite
* add video chat for giggles
* drawio v13.3.8
* add plugins
* more work on plugin stuff
* drawio v13.3.9
* drawio v13.4.7
* resolve yarn.lock
* add sourcemaps
* drawio v13.4.9
* start patching towards rtc
* add plugin path to patches
* add a mess of plugins
* turn down the plugins
* drawio v13.5.3
* re-solve static
* get rid of all the high unicode in schema
* use utf-8 encoding explicitly
* Update package.json
* Update _static.ts
* drawio v13.5.4
* resolve static
* drawio v13.5.8
* move notebooks
* start moving things around
* add dodo.py
* more moving
* more moving
* more moving and naming
* moving
* move static
* fix up static path
* update more ids, locations
* skeleton docs
* start doing it
* start linting in anger
* passing eslint
* add prebuild
* yet more linting
* back to ts building
* packing
* hoist tarball
* clean up static generation
* apply lint in anger
* more work on static
* remove videochat for now, more ignoring
* tune up ci, binder
* use smaller env for now
* underspecify python in ci, don't url-encode [p]lugins
* gah windows
* some win debugging
* do some roadmap work
* work on roadmap while debugging
* do per-platform shell commands
* linting, url param
* look harder for npm
* start thinking about versions
* version bumping, more windows work
* remove patterns from schema
* add all task
* more encoding, linting
* rebuild static with iife
* try another import template
* versions in changelog
* more work on alernate asset loading
* revert menu investigations
* paths for windows
2020-08-08 13:45:27 +00:00
|
|
|
),
|
|
|
|
P.OK_PRETTIER,
|
|
|
|
)
|
|
|
|
yield _ok(
|
|
|
|
dict(
|
|
|
|
name="eslint",
|
2020-08-10 01:54:30 +00:00
|
|
|
file_dep=[P.YARN_INTEGRITY, *P.ALL_TS, P.OK_PRETTIER],
|
Split up packages (#1)
* add drawio
* more tweaking of editor load
* more work on packaging
* linting, remove trace of mxgraph submodule
* clean up empty file rendering
* add some missing images
* don't reinitialize url after every show
* some css sugar
* belt and suspenders ui theme
* some more params
* add export
* working on logo
* more logo work
* full in-place round-tripping of svg, png, html
* use icons on documents
* clean up some untitled files
* first pass at schema
* start settings integration
* more work on settings
* fix ref
* work on url params
* some more tweaks to load behavior
* move submodule
* clean up some packaging stuff
* jlpm
* resolve yarn
* fix iframe url
* bump to newest drawio release
* brinf back the stencils
* html doesn't really work
* add more images
* move more things from code into config defaults
* rework settings some more
* fix new view, still working on click-to-activate
* fix capitalization on compressXml
* give up on formatting xml
* more work on round-trip, styling
* linting
* more missing images
* more config reloading
* drawio v13.1.8
* bump drawio files
* update notebook
* upgrade typescript
* more submodule shenanigans, binder env
* regenerate again, was missing stencils
* try adding server proxy
* update path
* fix schema
* pin node
* hoist jupyter_notebook_config.json
* some more work on export
* more x
* add some more demo tools
* use apt, some status
* apt deps, get back icons
* some more apt work
* more apt work
* better programmatic example
* more status work
* more docs
* add some more text
* some more notes
* some more status work, notes
* add jinja example
* more work on notebook
* move notebook
* add some deps
* more deps for pandas, pdf
* use local drawio assets
* stop servers harder
* Create Data-Driven Decks.ipynb
* Update drawio_export_demo.py
* Create template deck.dio
* fix up some chores
* some notebook tweaks
* more work on demo
* try another labextension spot
* notebooks
* store composite drawio in pdf
* use file:// for drawio static
* drawio v13.3.5
* remove even more unused code
* bump drawio, remove more tornado junk
* clean up xml pattern
* add notebook, because why not
* add ipynb example to decks
* add png, svg to composite
* add video chat for giggles
* drawio v13.3.8
* add plugins
* more work on plugin stuff
* drawio v13.3.9
* drawio v13.4.7
* resolve yarn.lock
* add sourcemaps
* drawio v13.4.9
* start patching towards rtc
* add plugin path to patches
* add a mess of plugins
* turn down the plugins
* drawio v13.5.3
* re-solve static
* get rid of all the high unicode in schema
* use utf-8 encoding explicitly
* Update package.json
* Update _static.ts
* drawio v13.5.4
* resolve static
* drawio v13.5.8
* move notebooks
* start moving things around
* add dodo.py
* more moving
* more moving
* more moving and naming
* moving
* move static
* fix up static path
* update more ids, locations
* skeleton docs
* start doing it
* start linting in anger
* passing eslint
* add prebuild
* yet more linting
* back to ts building
* packing
* hoist tarball
* clean up static generation
* apply lint in anger
* more work on static
* remove videochat for now, more ignoring
* tune up ci, binder
* use smaller env for now
* underspecify python in ci, don't url-encode [p]lugins
* gah windows
* some win debugging
* do some roadmap work
* work on roadmap while debugging
* do per-platform shell commands
* linting, url param
* look harder for npm
* start thinking about versions
* version bumping, more windows work
* remove patterns from schema
* add all task
* more encoding, linting
* rebuild static with iife
* try another import template
* versions in changelog
* more work on alernate asset loading
* revert menu investigations
* paths for windows
2020-08-08 13:45:27 +00:00
|
|
|
actions=[["jlpm", "eslint"]],
|
|
|
|
),
|
|
|
|
P.OK_ESLINT,
|
|
|
|
)
|
|
|
|
yield _ok(
|
|
|
|
dict(
|
|
|
|
name="all",
|
|
|
|
actions=[_echo_ok("all ok")],
|
|
|
|
file_dep=[
|
|
|
|
P.OK_BLACK,
|
|
|
|
P.OK_FLAKE8,
|
|
|
|
P.OK_ISORT,
|
|
|
|
P.OK_PRETTIER,
|
|
|
|
P.OK_PYFLAKES,
|
|
|
|
],
|
|
|
|
),
|
|
|
|
P.OK_LINT,
|
|
|
|
)
|
|
|
|
|
2020-08-16 20:33:33 +00:00
|
|
|
yield _ok(
|
|
|
|
dict(
|
|
|
|
name="robot:tidy",
|
|
|
|
file_dep=P.ALL_ROBOT,
|
|
|
|
actions=[[*P.PYM, "robot.tidy", "--inplace", *P.ALL_ROBOT]],
|
|
|
|
),
|
|
|
|
P.OK_ROBOTIDY,
|
|
|
|
)
|
|
|
|
|
|
|
|
yield _ok(
|
|
|
|
dict(
|
|
|
|
name="robot:lint",
|
|
|
|
file_dep=[*P.ALL_ROBOT, P.OK_ROBOTIDY],
|
|
|
|
actions=[["rflint", *P.RFLINT_OPTS, *P.ALL_ROBOT]],
|
|
|
|
),
|
|
|
|
P.OK_RFLINT,
|
|
|
|
)
|
|
|
|
|
|
|
|
yield _ok(
|
|
|
|
dict(
|
|
|
|
name="robot:dryrun",
|
|
|
|
file_dep=[*P.ALL_ROBOT, P.OK_RFLINT],
|
|
|
|
actions=[[*P.PYM, "scripts.atest", "--dryrun"]],
|
|
|
|
),
|
|
|
|
P.OK_ROBOT_DRYRUN,
|
|
|
|
)
|
|
|
|
|
Split up packages (#1)
* add drawio
* more tweaking of editor load
* more work on packaging
* linting, remove trace of mxgraph submodule
* clean up empty file rendering
* add some missing images
* don't reinitialize url after every show
* some css sugar
* belt and suspenders ui theme
* some more params
* add export
* working on logo
* more logo work
* full in-place round-tripping of svg, png, html
* use icons on documents
* clean up some untitled files
* first pass at schema
* start settings integration
* more work on settings
* fix ref
* work on url params
* some more tweaks to load behavior
* move submodule
* clean up some packaging stuff
* jlpm
* resolve yarn
* fix iframe url
* bump to newest drawio release
* brinf back the stencils
* html doesn't really work
* add more images
* move more things from code into config defaults
* rework settings some more
* fix new view, still working on click-to-activate
* fix capitalization on compressXml
* give up on formatting xml
* more work on round-trip, styling
* linting
* more missing images
* more config reloading
* drawio v13.1.8
* bump drawio files
* update notebook
* upgrade typescript
* more submodule shenanigans, binder env
* regenerate again, was missing stencils
* try adding server proxy
* update path
* fix schema
* pin node
* hoist jupyter_notebook_config.json
* some more work on export
* more x
* add some more demo tools
* use apt, some status
* apt deps, get back icons
* some more apt work
* more apt work
* better programmatic example
* more status work
* more docs
* add some more text
* some more notes
* some more status work, notes
* add jinja example
* more work on notebook
* move notebook
* add some deps
* more deps for pandas, pdf
* use local drawio assets
* stop servers harder
* Create Data-Driven Decks.ipynb
* Update drawio_export_demo.py
* Create template deck.dio
* fix up some chores
* some notebook tweaks
* more work on demo
* try another labextension spot
* notebooks
* store composite drawio in pdf
* use file:// for drawio static
* drawio v13.3.5
* remove even more unused code
* bump drawio, remove more tornado junk
* clean up xml pattern
* add notebook, because why not
* add ipynb example to decks
* add png, svg to composite
* add video chat for giggles
* drawio v13.3.8
* add plugins
* more work on plugin stuff
* drawio v13.3.9
* drawio v13.4.7
* resolve yarn.lock
* add sourcemaps
* drawio v13.4.9
* start patching towards rtc
* add plugin path to patches
* add a mess of plugins
* turn down the plugins
* drawio v13.5.3
* re-solve static
* get rid of all the high unicode in schema
* use utf-8 encoding explicitly
* Update package.json
* Update _static.ts
* drawio v13.5.4
* resolve static
* drawio v13.5.8
* move notebooks
* start moving things around
* add dodo.py
* more moving
* more moving
* more moving and naming
* moving
* move static
* fix up static path
* update more ids, locations
* skeleton docs
* start doing it
* start linting in anger
* passing eslint
* add prebuild
* yet more linting
* back to ts building
* packing
* hoist tarball
* clean up static generation
* apply lint in anger
* more work on static
* remove videochat for now, more ignoring
* tune up ci, binder
* use smaller env for now
* underspecify python in ci, don't url-encode [p]lugins
* gah windows
* some win debugging
* do some roadmap work
* work on roadmap while debugging
* do per-platform shell commands
* linting, url param
* look harder for npm
* start thinking about versions
* version bumping, more windows work
* remove patterns from schema
* add all task
* more encoding, linting
* rebuild static with iife
* try another import template
* versions in changelog
* more work on alernate asset loading
* revert menu investigations
* paths for windows
2020-08-08 13:45:27 +00:00
|
|
|
|
|
|
|
def task_build():
|
|
|
|
yield _ok(
|
|
|
|
dict(
|
|
|
|
name="js:pre",
|
|
|
|
file_dep=[P.YARN_INTEGRITY, P.JDW_IGNORE, P.OK_SUBMODULES],
|
|
|
|
actions=[[*P.JLPM, "lerna", "run", "build:pre"]],
|
|
|
|
targets=[P.JDW_APP],
|
|
|
|
),
|
|
|
|
P.OK_JS_BUILD_PRE,
|
|
|
|
)
|
|
|
|
|
|
|
|
yield _ok(
|
|
|
|
dict(
|
|
|
|
name="js",
|
|
|
|
file_dep=[P.YARN_INTEGRITY, P.OK_JS_BUILD_PRE, *P.ALL_TS, *P.ALL_CSS],
|
|
|
|
actions=[[*P.JLPM, "lerna", "run", "build"]],
|
2020-08-10 01:54:30 +00:00
|
|
|
targets=sorted(P.JS_TSBUILDINFO.values()),
|
Split up packages (#1)
* add drawio
* more tweaking of editor load
* more work on packaging
* linting, remove trace of mxgraph submodule
* clean up empty file rendering
* add some missing images
* don't reinitialize url after every show
* some css sugar
* belt and suspenders ui theme
* some more params
* add export
* working on logo
* more logo work
* full in-place round-tripping of svg, png, html
* use icons on documents
* clean up some untitled files
* first pass at schema
* start settings integration
* more work on settings
* fix ref
* work on url params
* some more tweaks to load behavior
* move submodule
* clean up some packaging stuff
* jlpm
* resolve yarn
* fix iframe url
* bump to newest drawio release
* brinf back the stencils
* html doesn't really work
* add more images
* move more things from code into config defaults
* rework settings some more
* fix new view, still working on click-to-activate
* fix capitalization on compressXml
* give up on formatting xml
* more work on round-trip, styling
* linting
* more missing images
* more config reloading
* drawio v13.1.8
* bump drawio files
* update notebook
* upgrade typescript
* more submodule shenanigans, binder env
* regenerate again, was missing stencils
* try adding server proxy
* update path
* fix schema
* pin node
* hoist jupyter_notebook_config.json
* some more work on export
* more x
* add some more demo tools
* use apt, some status
* apt deps, get back icons
* some more apt work
* more apt work
* better programmatic example
* more status work
* more docs
* add some more text
* some more notes
* some more status work, notes
* add jinja example
* more work on notebook
* move notebook
* add some deps
* more deps for pandas, pdf
* use local drawio assets
* stop servers harder
* Create Data-Driven Decks.ipynb
* Update drawio_export_demo.py
* Create template deck.dio
* fix up some chores
* some notebook tweaks
* more work on demo
* try another labextension spot
* notebooks
* store composite drawio in pdf
* use file:// for drawio static
* drawio v13.3.5
* remove even more unused code
* bump drawio, remove more tornado junk
* clean up xml pattern
* add notebook, because why not
* add ipynb example to decks
* add png, svg to composite
* add video chat for giggles
* drawio v13.3.8
* add plugins
* more work on plugin stuff
* drawio v13.3.9
* drawio v13.4.7
* resolve yarn.lock
* add sourcemaps
* drawio v13.4.9
* start patching towards rtc
* add plugin path to patches
* add a mess of plugins
* turn down the plugins
* drawio v13.5.3
* re-solve static
* get rid of all the high unicode in schema
* use utf-8 encoding explicitly
* Update package.json
* Update _static.ts
* drawio v13.5.4
* resolve static
* drawio v13.5.8
* move notebooks
* start moving things around
* add dodo.py
* more moving
* more moving
* more moving and naming
* moving
* move static
* fix up static path
* update more ids, locations
* skeleton docs
* start doing it
* start linting in anger
* passing eslint
* add prebuild
* yet more linting
* back to ts building
* packing
* hoist tarball
* clean up static generation
* apply lint in anger
* more work on static
* remove videochat for now, more ignoring
* tune up ci, binder
* use smaller env for now
* underspecify python in ci, don't url-encode [p]lugins
* gah windows
* some win debugging
* do some roadmap work
* work on roadmap while debugging
* do per-platform shell commands
* linting, url param
* look harder for npm
* start thinking about versions
* version bumping, more windows work
* remove patterns from schema
* add all task
* more encoding, linting
* rebuild static with iife
* try another import template
* versions in changelog
* more work on alernate asset loading
* revert menu investigations
* paths for windows
2020-08-08 13:45:27 +00:00
|
|
|
),
|
|
|
|
P.OK_JS_BUILD,
|
|
|
|
)
|
|
|
|
|
2020-08-10 01:54:30 +00:00
|
|
|
for pkg, (file_dep, targets) in P.JS_PKG_PACK.items():
|
Split up packages (#1)
* add drawio
* more tweaking of editor load
* more work on packaging
* linting, remove trace of mxgraph submodule
* clean up empty file rendering
* add some missing images
* don't reinitialize url after every show
* some css sugar
* belt and suspenders ui theme
* some more params
* add export
* working on logo
* more logo work
* full in-place round-tripping of svg, png, html
* use icons on documents
* clean up some untitled files
* first pass at schema
* start settings integration
* more work on settings
* fix ref
* work on url params
* some more tweaks to load behavior
* move submodule
* clean up some packaging stuff
* jlpm
* resolve yarn
* fix iframe url
* bump to newest drawio release
* brinf back the stencils
* html doesn't really work
* add more images
* move more things from code into config defaults
* rework settings some more
* fix new view, still working on click-to-activate
* fix capitalization on compressXml
* give up on formatting xml
* more work on round-trip, styling
* linting
* more missing images
* more config reloading
* drawio v13.1.8
* bump drawio files
* update notebook
* upgrade typescript
* more submodule shenanigans, binder env
* regenerate again, was missing stencils
* try adding server proxy
* update path
* fix schema
* pin node
* hoist jupyter_notebook_config.json
* some more work on export
* more x
* add some more demo tools
* use apt, some status
* apt deps, get back icons
* some more apt work
* more apt work
* better programmatic example
* more status work
* more docs
* add some more text
* some more notes
* some more status work, notes
* add jinja example
* more work on notebook
* move notebook
* add some deps
* more deps for pandas, pdf
* use local drawio assets
* stop servers harder
* Create Data-Driven Decks.ipynb
* Update drawio_export_demo.py
* Create template deck.dio
* fix up some chores
* some notebook tweaks
* more work on demo
* try another labextension spot
* notebooks
* store composite drawio in pdf
* use file:// for drawio static
* drawio v13.3.5
* remove even more unused code
* bump drawio, remove more tornado junk
* clean up xml pattern
* add notebook, because why not
* add ipynb example to decks
* add png, svg to composite
* add video chat for giggles
* drawio v13.3.8
* add plugins
* more work on plugin stuff
* drawio v13.3.9
* drawio v13.4.7
* resolve yarn.lock
* add sourcemaps
* drawio v13.4.9
* start patching towards rtc
* add plugin path to patches
* add a mess of plugins
* turn down the plugins
* drawio v13.5.3
* re-solve static
* get rid of all the high unicode in schema
* use utf-8 encoding explicitly
* Update package.json
* Update _static.ts
* drawio v13.5.4
* resolve static
* drawio v13.5.8
* move notebooks
* start moving things around
* add dodo.py
* more moving
* more moving
* more moving and naming
* moving
* move static
* fix up static path
* update more ids, locations
* skeleton docs
* start doing it
* start linting in anger
* passing eslint
* add prebuild
* yet more linting
* back to ts building
* packing
* hoist tarball
* clean up static generation
* apply lint in anger
* more work on static
* remove videochat for now, more ignoring
* tune up ci, binder
* use smaller env for now
* underspecify python in ci, don't url-encode [p]lugins
* gah windows
* some win debugging
* do some roadmap work
* work on roadmap while debugging
* do per-platform shell commands
* linting, url param
* look harder for npm
* start thinking about versions
* version bumping, more windows work
* remove patterns from schema
* add all task
* more encoding, linting
* rebuild static with iife
* try another import template
* versions in changelog
* more work on alernate asset loading
* revert menu investigations
* paths for windows
2020-08-08 13:45:27 +00:00
|
|
|
yield dict(
|
2020-08-10 01:54:30 +00:00
|
|
|
name=f"pack:{pkg}",
|
Split up packages (#1)
* add drawio
* more tweaking of editor load
* more work on packaging
* linting, remove trace of mxgraph submodule
* clean up empty file rendering
* add some missing images
* don't reinitialize url after every show
* some css sugar
* belt and suspenders ui theme
* some more params
* add export
* working on logo
* more logo work
* full in-place round-tripping of svg, png, html
* use icons on documents
* clean up some untitled files
* first pass at schema
* start settings integration
* more work on settings
* fix ref
* work on url params
* some more tweaks to load behavior
* move submodule
* clean up some packaging stuff
* jlpm
* resolve yarn
* fix iframe url
* bump to newest drawio release
* brinf back the stencils
* html doesn't really work
* add more images
* move more things from code into config defaults
* rework settings some more
* fix new view, still working on click-to-activate
* fix capitalization on compressXml
* give up on formatting xml
* more work on round-trip, styling
* linting
* more missing images
* more config reloading
* drawio v13.1.8
* bump drawio files
* update notebook
* upgrade typescript
* more submodule shenanigans, binder env
* regenerate again, was missing stencils
* try adding server proxy
* update path
* fix schema
* pin node
* hoist jupyter_notebook_config.json
* some more work on export
* more x
* add some more demo tools
* use apt, some status
* apt deps, get back icons
* some more apt work
* more apt work
* better programmatic example
* more status work
* more docs
* add some more text
* some more notes
* some more status work, notes
* add jinja example
* more work on notebook
* move notebook
* add some deps
* more deps for pandas, pdf
* use local drawio assets
* stop servers harder
* Create Data-Driven Decks.ipynb
* Update drawio_export_demo.py
* Create template deck.dio
* fix up some chores
* some notebook tweaks
* more work on demo
* try another labextension spot
* notebooks
* store composite drawio in pdf
* use file:// for drawio static
* drawio v13.3.5
* remove even more unused code
* bump drawio, remove more tornado junk
* clean up xml pattern
* add notebook, because why not
* add ipynb example to decks
* add png, svg to composite
* add video chat for giggles
* drawio v13.3.8
* add plugins
* more work on plugin stuff
* drawio v13.3.9
* drawio v13.4.7
* resolve yarn.lock
* add sourcemaps
* drawio v13.4.9
* start patching towards rtc
* add plugin path to patches
* add a mess of plugins
* turn down the plugins
* drawio v13.5.3
* re-solve static
* get rid of all the high unicode in schema
* use utf-8 encoding explicitly
* Update package.json
* Update _static.ts
* drawio v13.5.4
* resolve static
* drawio v13.5.8
* move notebooks
* start moving things around
* add dodo.py
* more moving
* more moving
* more moving and naming
* moving
* move static
* fix up static path
* update more ids, locations
* skeleton docs
* start doing it
* start linting in anger
* passing eslint
* add prebuild
* yet more linting
* back to ts building
* packing
* hoist tarball
* clean up static generation
* apply lint in anger
* more work on static
* remove videochat for now, more ignoring
* tune up ci, binder
* use smaller env for now
* underspecify python in ci, don't url-encode [p]lugins
* gah windows
* some win debugging
* do some roadmap work
* work on roadmap while debugging
* do per-platform shell commands
* linting, url param
* look harder for npm
* start thinking about versions
* version bumping, more windows work
* remove patterns from schema
* add all task
* more encoding, linting
* rebuild static with iife
* try another import template
* versions in changelog
* more work on alernate asset loading
* revert menu investigations
* paths for windows
2020-08-08 13:45:27 +00:00
|
|
|
file_dep=file_dep,
|
2020-08-10 01:54:30 +00:00
|
|
|
actions=[
|
|
|
|
CmdAction([P.NPM, "pack", "."], cwd=str(targets[0].parent), shell=False)
|
|
|
|
],
|
|
|
|
targets=targets,
|
|
|
|
)
|
|
|
|
|
|
|
|
for py_pkg, py_setup in P.PY_SETUP.items():
|
2020-08-10 02:24:55 +00:00
|
|
|
file_dep = [py_setup, *P.PY_SRC[py_pkg], P.OK_SUBMODULES]
|
2020-08-10 01:54:30 +00:00
|
|
|
yield dict(
|
|
|
|
name=f"sdist:{py_pkg}",
|
|
|
|
file_dep=file_dep,
|
|
|
|
actions=[
|
|
|
|
CmdAction(
|
|
|
|
["python", "setup.py", "sdist"],
|
|
|
|
shell=False,
|
|
|
|
cwd=str(py_setup.parent),
|
|
|
|
),
|
|
|
|
],
|
|
|
|
targets=[P.PY_SDIST[py_pkg]],
|
|
|
|
)
|
|
|
|
yield dict(
|
|
|
|
name=f"whl:{py_pkg}",
|
|
|
|
file_dep=file_dep,
|
|
|
|
actions=[
|
|
|
|
CmdAction(
|
|
|
|
["python", "setup.py", "bdist_wheel"],
|
|
|
|
shell=False,
|
|
|
|
cwd=str(py_setup.parent),
|
|
|
|
),
|
|
|
|
],
|
|
|
|
targets=[P.PY_WHEEL[py_pkg]],
|
Split up packages (#1)
* add drawio
* more tweaking of editor load
* more work on packaging
* linting, remove trace of mxgraph submodule
* clean up empty file rendering
* add some missing images
* don't reinitialize url after every show
* some css sugar
* belt and suspenders ui theme
* some more params
* add export
* working on logo
* more logo work
* full in-place round-tripping of svg, png, html
* use icons on documents
* clean up some untitled files
* first pass at schema
* start settings integration
* more work on settings
* fix ref
* work on url params
* some more tweaks to load behavior
* move submodule
* clean up some packaging stuff
* jlpm
* resolve yarn
* fix iframe url
* bump to newest drawio release
* brinf back the stencils
* html doesn't really work
* add more images
* move more things from code into config defaults
* rework settings some more
* fix new view, still working on click-to-activate
* fix capitalization on compressXml
* give up on formatting xml
* more work on round-trip, styling
* linting
* more missing images
* more config reloading
* drawio v13.1.8
* bump drawio files
* update notebook
* upgrade typescript
* more submodule shenanigans, binder env
* regenerate again, was missing stencils
* try adding server proxy
* update path
* fix schema
* pin node
* hoist jupyter_notebook_config.json
* some more work on export
* more x
* add some more demo tools
* use apt, some status
* apt deps, get back icons
* some more apt work
* more apt work
* better programmatic example
* more status work
* more docs
* add some more text
* some more notes
* some more status work, notes
* add jinja example
* more work on notebook
* move notebook
* add some deps
* more deps for pandas, pdf
* use local drawio assets
* stop servers harder
* Create Data-Driven Decks.ipynb
* Update drawio_export_demo.py
* Create template deck.dio
* fix up some chores
* some notebook tweaks
* more work on demo
* try another labextension spot
* notebooks
* store composite drawio in pdf
* use file:// for drawio static
* drawio v13.3.5
* remove even more unused code
* bump drawio, remove more tornado junk
* clean up xml pattern
* add notebook, because why not
* add ipynb example to decks
* add png, svg to composite
* add video chat for giggles
* drawio v13.3.8
* add plugins
* more work on plugin stuff
* drawio v13.3.9
* drawio v13.4.7
* resolve yarn.lock
* add sourcemaps
* drawio v13.4.9
* start patching towards rtc
* add plugin path to patches
* add a mess of plugins
* turn down the plugins
* drawio v13.5.3
* re-solve static
* get rid of all the high unicode in schema
* use utf-8 encoding explicitly
* Update package.json
* Update _static.ts
* drawio v13.5.4
* resolve static
* drawio v13.5.8
* move notebooks
* start moving things around
* add dodo.py
* more moving
* more moving
* more moving and naming
* moving
* move static
* fix up static path
* update more ids, locations
* skeleton docs
* start doing it
* start linting in anger
* passing eslint
* add prebuild
* yet more linting
* back to ts building
* packing
* hoist tarball
* clean up static generation
* apply lint in anger
* more work on static
* remove videochat for now, more ignoring
* tune up ci, binder
* use smaller env for now
* underspecify python in ci, don't url-encode [p]lugins
* gah windows
* some win debugging
* do some roadmap work
* work on roadmap while debugging
* do per-platform shell commands
* linting, url param
* look harder for npm
* start thinking about versions
* version bumping, more windows work
* remove patterns from schema
* add all task
* more encoding, linting
* rebuild static with iife
* try another import template
* versions in changelog
* more work on alernate asset loading
* revert menu investigations
* paths for windows
2020-08-08 13:45:27 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
def task_lab_build():
|
|
|
|
""" do a "production" build of lab
|
|
|
|
"""
|
|
|
|
|
2020-08-10 01:54:30 +00:00
|
|
|
file_dep = sorted(P.JS_TARBALL.values())
|
Split up packages (#1)
* add drawio
* more tweaking of editor load
* more work on packaging
* linting, remove trace of mxgraph submodule
* clean up empty file rendering
* add some missing images
* don't reinitialize url after every show
* some css sugar
* belt and suspenders ui theme
* some more params
* add export
* working on logo
* more logo work
* full in-place round-tripping of svg, png, html
* use icons on documents
* clean up some untitled files
* first pass at schema
* start settings integration
* more work on settings
* fix ref
* work on url params
* some more tweaks to load behavior
* move submodule
* clean up some packaging stuff
* jlpm
* resolve yarn
* fix iframe url
* bump to newest drawio release
* brinf back the stencils
* html doesn't really work
* add more images
* move more things from code into config defaults
* rework settings some more
* fix new view, still working on click-to-activate
* fix capitalization on compressXml
* give up on formatting xml
* more work on round-trip, styling
* linting
* more missing images
* more config reloading
* drawio v13.1.8
* bump drawio files
* update notebook
* upgrade typescript
* more submodule shenanigans, binder env
* regenerate again, was missing stencils
* try adding server proxy
* update path
* fix schema
* pin node
* hoist jupyter_notebook_config.json
* some more work on export
* more x
* add some more demo tools
* use apt, some status
* apt deps, get back icons
* some more apt work
* more apt work
* better programmatic example
* more status work
* more docs
* add some more text
* some more notes
* some more status work, notes
* add jinja example
* more work on notebook
* move notebook
* add some deps
* more deps for pandas, pdf
* use local drawio assets
* stop servers harder
* Create Data-Driven Decks.ipynb
* Update drawio_export_demo.py
* Create template deck.dio
* fix up some chores
* some notebook tweaks
* more work on demo
* try another labextension spot
* notebooks
* store composite drawio in pdf
* use file:// for drawio static
* drawio v13.3.5
* remove even more unused code
* bump drawio, remove more tornado junk
* clean up xml pattern
* add notebook, because why not
* add ipynb example to decks
* add png, svg to composite
* add video chat for giggles
* drawio v13.3.8
* add plugins
* more work on plugin stuff
* drawio v13.3.9
* drawio v13.4.7
* resolve yarn.lock
* add sourcemaps
* drawio v13.4.9
* start patching towards rtc
* add plugin path to patches
* add a mess of plugins
* turn down the plugins
* drawio v13.5.3
* re-solve static
* get rid of all the high unicode in schema
* use utf-8 encoding explicitly
* Update package.json
* Update _static.ts
* drawio v13.5.4
* resolve static
* drawio v13.5.8
* move notebooks
* start moving things around
* add dodo.py
* more moving
* more moving
* more moving and naming
* moving
* move static
* fix up static path
* update more ids, locations
* skeleton docs
* start doing it
* start linting in anger
* passing eslint
* add prebuild
* yet more linting
* back to ts building
* packing
* hoist tarball
* clean up static generation
* apply lint in anger
* more work on static
* remove videochat for now, more ignoring
* tune up ci, binder
* use smaller env for now
* underspecify python in ci, don't url-encode [p]lugins
* gah windows
* some win debugging
* do some roadmap work
* work on roadmap while debugging
* do per-platform shell commands
* linting, url param
* look harder for npm
* start thinking about versions
* version bumping, more windows work
* remove patterns from schema
* add all task
* more encoding, linting
* rebuild static with iife
* try another import template
* versions in changelog
* more work on alernate asset loading
* revert menu investigations
* paths for windows
2020-08-08 13:45:27 +00:00
|
|
|
|
|
|
|
build_args = ["--dev-build=False", "--minimize=True"]
|
|
|
|
if P.WIN:
|
|
|
|
build_args = []
|
|
|
|
|
|
|
|
yield dict(
|
|
|
|
name="extensions",
|
2020-08-16 20:33:33 +00:00
|
|
|
file_dep=[*file_dep, P.OVERRIDES],
|
Split up packages (#1)
* add drawio
* more tweaking of editor load
* more work on packaging
* linting, remove trace of mxgraph submodule
* clean up empty file rendering
* add some missing images
* don't reinitialize url after every show
* some css sugar
* belt and suspenders ui theme
* some more params
* add export
* working on logo
* more logo work
* full in-place round-tripping of svg, png, html
* use icons on documents
* clean up some untitled files
* first pass at schema
* start settings integration
* more work on settings
* fix ref
* work on url params
* some more tweaks to load behavior
* move submodule
* clean up some packaging stuff
* jlpm
* resolve yarn
* fix iframe url
* bump to newest drawio release
* brinf back the stencils
* html doesn't really work
* add more images
* move more things from code into config defaults
* rework settings some more
* fix new view, still working on click-to-activate
* fix capitalization on compressXml
* give up on formatting xml
* more work on round-trip, styling
* linting
* more missing images
* more config reloading
* drawio v13.1.8
* bump drawio files
* update notebook
* upgrade typescript
* more submodule shenanigans, binder env
* regenerate again, was missing stencils
* try adding server proxy
* update path
* fix schema
* pin node
* hoist jupyter_notebook_config.json
* some more work on export
* more x
* add some more demo tools
* use apt, some status
* apt deps, get back icons
* some more apt work
* more apt work
* better programmatic example
* more status work
* more docs
* add some more text
* some more notes
* some more status work, notes
* add jinja example
* more work on notebook
* move notebook
* add some deps
* more deps for pandas, pdf
* use local drawio assets
* stop servers harder
* Create Data-Driven Decks.ipynb
* Update drawio_export_demo.py
* Create template deck.dio
* fix up some chores
* some notebook tweaks
* more work on demo
* try another labextension spot
* notebooks
* store composite drawio in pdf
* use file:// for drawio static
* drawio v13.3.5
* remove even more unused code
* bump drawio, remove more tornado junk
* clean up xml pattern
* add notebook, because why not
* add ipynb example to decks
* add png, svg to composite
* add video chat for giggles
* drawio v13.3.8
* add plugins
* more work on plugin stuff
* drawio v13.3.9
* drawio v13.4.7
* resolve yarn.lock
* add sourcemaps
* drawio v13.4.9
* start patching towards rtc
* add plugin path to patches
* add a mess of plugins
* turn down the plugins
* drawio v13.5.3
* re-solve static
* get rid of all the high unicode in schema
* use utf-8 encoding explicitly
* Update package.json
* Update _static.ts
* drawio v13.5.4
* resolve static
* drawio v13.5.8
* move notebooks
* start moving things around
* add dodo.py
* more moving
* more moving
* more moving and naming
* moving
* move static
* fix up static path
* update more ids, locations
* skeleton docs
* start doing it
* start linting in anger
* passing eslint
* add prebuild
* yet more linting
* back to ts building
* packing
* hoist tarball
* clean up static generation
* apply lint in anger
* more work on static
* remove videochat for now, more ignoring
* tune up ci, binder
* use smaller env for now
* underspecify python in ci, don't url-encode [p]lugins
* gah windows
* some win debugging
* do some roadmap work
* work on roadmap while debugging
* do per-platform shell commands
* linting, url param
* look harder for npm
* start thinking about versions
* version bumping, more windows work
* remove patterns from schema
* add all task
* more encoding, linting
* rebuild static with iife
* try another import template
* versions in changelog
* more work on alernate asset loading
* revert menu investigations
* paths for windows
2020-08-08 13:45:27 +00:00
|
|
|
uptodate=[config_changed({"exts": P.EXTENSIONS})],
|
|
|
|
actions=[
|
2020-08-10 01:54:30 +00:00
|
|
|
P.CMD_DISABLE_EXTENSIONS,
|
|
|
|
P.CMD_INSTALL_ALL_EXTENSIONS,
|
|
|
|
P.CMD_LIST_EXTENSIONS,
|
2020-08-16 20:33:33 +00:00
|
|
|
P._override_lab,
|
2020-08-10 01:54:30 +00:00
|
|
|
[*P.CMD_BUILD, *build_args],
|
|
|
|
P.CMD_LIST_EXTENSIONS,
|
Split up packages (#1)
* add drawio
* more tweaking of editor load
* more work on packaging
* linting, remove trace of mxgraph submodule
* clean up empty file rendering
* add some missing images
* don't reinitialize url after every show
* some css sugar
* belt and suspenders ui theme
* some more params
* add export
* working on logo
* more logo work
* full in-place round-tripping of svg, png, html
* use icons on documents
* clean up some untitled files
* first pass at schema
* start settings integration
* more work on settings
* fix ref
* work on url params
* some more tweaks to load behavior
* move submodule
* clean up some packaging stuff
* jlpm
* resolve yarn
* fix iframe url
* bump to newest drawio release
* brinf back the stencils
* html doesn't really work
* add more images
* move more things from code into config defaults
* rework settings some more
* fix new view, still working on click-to-activate
* fix capitalization on compressXml
* give up on formatting xml
* more work on round-trip, styling
* linting
* more missing images
* more config reloading
* drawio v13.1.8
* bump drawio files
* update notebook
* upgrade typescript
* more submodule shenanigans, binder env
* regenerate again, was missing stencils
* try adding server proxy
* update path
* fix schema
* pin node
* hoist jupyter_notebook_config.json
* some more work on export
* more x
* add some more demo tools
* use apt, some status
* apt deps, get back icons
* some more apt work
* more apt work
* better programmatic example
* more status work
* more docs
* add some more text
* some more notes
* some more status work, notes
* add jinja example
* more work on notebook
* move notebook
* add some deps
* more deps for pandas, pdf
* use local drawio assets
* stop servers harder
* Create Data-Driven Decks.ipynb
* Update drawio_export_demo.py
* Create template deck.dio
* fix up some chores
* some notebook tweaks
* more work on demo
* try another labextension spot
* notebooks
* store composite drawio in pdf
* use file:// for drawio static
* drawio v13.3.5
* remove even more unused code
* bump drawio, remove more tornado junk
* clean up xml pattern
* add notebook, because why not
* add ipynb example to decks
* add png, svg to composite
* add video chat for giggles
* drawio v13.3.8
* add plugins
* more work on plugin stuff
* drawio v13.3.9
* drawio v13.4.7
* resolve yarn.lock
* add sourcemaps
* drawio v13.4.9
* start patching towards rtc
* add plugin path to patches
* add a mess of plugins
* turn down the plugins
* drawio v13.5.3
* re-solve static
* get rid of all the high unicode in schema
* use utf-8 encoding explicitly
* Update package.json
* Update _static.ts
* drawio v13.5.4
* resolve static
* drawio v13.5.8
* move notebooks
* start moving things around
* add dodo.py
* more moving
* more moving
* more moving and naming
* moving
* move static
* fix up static path
* update more ids, locations
* skeleton docs
* start doing it
* start linting in anger
* passing eslint
* add prebuild
* yet more linting
* back to ts building
* packing
* hoist tarball
* clean up static generation
* apply lint in anger
* more work on static
* remove videochat for now, more ignoring
* tune up ci, binder
* use smaller env for now
* underspecify python in ci, don't url-encode [p]lugins
* gah windows
* some win debugging
* do some roadmap work
* work on roadmap while debugging
* do per-platform shell commands
* linting, url param
* look harder for npm
* start thinking about versions
* version bumping, more windows work
* remove patterns from schema
* add all task
* more encoding, linting
* rebuild static with iife
* try another import template
* versions in changelog
* more work on alernate asset loading
* revert menu investigations
* paths for windows
2020-08-08 13:45:27 +00:00
|
|
|
],
|
2020-08-16 20:33:33 +00:00
|
|
|
targets=[P.LAB_INDEX, P.LAB_OVERRIDES, P.LAB_LOCK],
|
Split up packages (#1)
* add drawio
* more tweaking of editor load
* more work on packaging
* linting, remove trace of mxgraph submodule
* clean up empty file rendering
* add some missing images
* don't reinitialize url after every show
* some css sugar
* belt and suspenders ui theme
* some more params
* add export
* working on logo
* more logo work
* full in-place round-tripping of svg, png, html
* use icons on documents
* clean up some untitled files
* first pass at schema
* start settings integration
* more work on settings
* fix ref
* work on url params
* some more tweaks to load behavior
* move submodule
* clean up some packaging stuff
* jlpm
* resolve yarn
* fix iframe url
* bump to newest drawio release
* brinf back the stencils
* html doesn't really work
* add more images
* move more things from code into config defaults
* rework settings some more
* fix new view, still working on click-to-activate
* fix capitalization on compressXml
* give up on formatting xml
* more work on round-trip, styling
* linting
* more missing images
* more config reloading
* drawio v13.1.8
* bump drawio files
* update notebook
* upgrade typescript
* more submodule shenanigans, binder env
* regenerate again, was missing stencils
* try adding server proxy
* update path
* fix schema
* pin node
* hoist jupyter_notebook_config.json
* some more work on export
* more x
* add some more demo tools
* use apt, some status
* apt deps, get back icons
* some more apt work
* more apt work
* better programmatic example
* more status work
* more docs
* add some more text
* some more notes
* some more status work, notes
* add jinja example
* more work on notebook
* move notebook
* add some deps
* more deps for pandas, pdf
* use local drawio assets
* stop servers harder
* Create Data-Driven Decks.ipynb
* Update drawio_export_demo.py
* Create template deck.dio
* fix up some chores
* some notebook tweaks
* more work on demo
* try another labextension spot
* notebooks
* store composite drawio in pdf
* use file:// for drawio static
* drawio v13.3.5
* remove even more unused code
* bump drawio, remove more tornado junk
* clean up xml pattern
* add notebook, because why not
* add ipynb example to decks
* add png, svg to composite
* add video chat for giggles
* drawio v13.3.8
* add plugins
* more work on plugin stuff
* drawio v13.3.9
* drawio v13.4.7
* resolve yarn.lock
* add sourcemaps
* drawio v13.4.9
* start patching towards rtc
* add plugin path to patches
* add a mess of plugins
* turn down the plugins
* drawio v13.5.3
* re-solve static
* get rid of all the high unicode in schema
* use utf-8 encoding explicitly
* Update package.json
* Update _static.ts
* drawio v13.5.4
* resolve static
* drawio v13.5.8
* move notebooks
* start moving things around
* add dodo.py
* more moving
* more moving
* more moving and naming
* moving
* move static
* fix up static path
* update more ids, locations
* skeleton docs
* start doing it
* start linting in anger
* passing eslint
* add prebuild
* yet more linting
* back to ts building
* packing
* hoist tarball
* clean up static generation
* apply lint in anger
* more work on static
* remove videochat for now, more ignoring
* tune up ci, binder
* use smaller env for now
* underspecify python in ci, don't url-encode [p]lugins
* gah windows
* some win debugging
* do some roadmap work
* work on roadmap while debugging
* do per-platform shell commands
* linting, url param
* look harder for npm
* start thinking about versions
* version bumping, more windows work
* remove patterns from schema
* add all task
* more encoding, linting
* rebuild static with iife
* try another import template
* versions in changelog
* more work on alernate asset loading
* revert menu investigations
* paths for windows
2020-08-08 13:45:27 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
def task_lab():
|
|
|
|
""" run JupyterLab "normally" (not watching sources)
|
|
|
|
"""
|
|
|
|
|
|
|
|
def lab():
|
2020-08-10 01:54:30 +00:00
|
|
|
proc = subprocess.Popen(P.CMD_LAB, stdin=subprocess.PIPE)
|
Split up packages (#1)
* add drawio
* more tweaking of editor load
* more work on packaging
* linting, remove trace of mxgraph submodule
* clean up empty file rendering
* add some missing images
* don't reinitialize url after every show
* some css sugar
* belt and suspenders ui theme
* some more params
* add export
* working on logo
* more logo work
* full in-place round-tripping of svg, png, html
* use icons on documents
* clean up some untitled files
* first pass at schema
* start settings integration
* more work on settings
* fix ref
* work on url params
* some more tweaks to load behavior
* move submodule
* clean up some packaging stuff
* jlpm
* resolve yarn
* fix iframe url
* bump to newest drawio release
* brinf back the stencils
* html doesn't really work
* add more images
* move more things from code into config defaults
* rework settings some more
* fix new view, still working on click-to-activate
* fix capitalization on compressXml
* give up on formatting xml
* more work on round-trip, styling
* linting
* more missing images
* more config reloading
* drawio v13.1.8
* bump drawio files
* update notebook
* upgrade typescript
* more submodule shenanigans, binder env
* regenerate again, was missing stencils
* try adding server proxy
* update path
* fix schema
* pin node
* hoist jupyter_notebook_config.json
* some more work on export
* more x
* add some more demo tools
* use apt, some status
* apt deps, get back icons
* some more apt work
* more apt work
* better programmatic example
* more status work
* more docs
* add some more text
* some more notes
* some more status work, notes
* add jinja example
* more work on notebook
* move notebook
* add some deps
* more deps for pandas, pdf
* use local drawio assets
* stop servers harder
* Create Data-Driven Decks.ipynb
* Update drawio_export_demo.py
* Create template deck.dio
* fix up some chores
* some notebook tweaks
* more work on demo
* try another labextension spot
* notebooks
* store composite drawio in pdf
* use file:// for drawio static
* drawio v13.3.5
* remove even more unused code
* bump drawio, remove more tornado junk
* clean up xml pattern
* add notebook, because why not
* add ipynb example to decks
* add png, svg to composite
* add video chat for giggles
* drawio v13.3.8
* add plugins
* more work on plugin stuff
* drawio v13.3.9
* drawio v13.4.7
* resolve yarn.lock
* add sourcemaps
* drawio v13.4.9
* start patching towards rtc
* add plugin path to patches
* add a mess of plugins
* turn down the plugins
* drawio v13.5.3
* re-solve static
* get rid of all the high unicode in schema
* use utf-8 encoding explicitly
* Update package.json
* Update _static.ts
* drawio v13.5.4
* resolve static
* drawio v13.5.8
* move notebooks
* start moving things around
* add dodo.py
* more moving
* more moving
* more moving and naming
* moving
* move static
* fix up static path
* update more ids, locations
* skeleton docs
* start doing it
* start linting in anger
* passing eslint
* add prebuild
* yet more linting
* back to ts building
* packing
* hoist tarball
* clean up static generation
* apply lint in anger
* more work on static
* remove videochat for now, more ignoring
* tune up ci, binder
* use smaller env for now
* underspecify python in ci, don't url-encode [p]lugins
* gah windows
* some win debugging
* do some roadmap work
* work on roadmap while debugging
* do per-platform shell commands
* linting, url param
* look harder for npm
* start thinking about versions
* version bumping, more windows work
* remove patterns from schema
* add all task
* more encoding, linting
* rebuild static with iife
* try another import template
* versions in changelog
* more work on alernate asset loading
* revert menu investigations
* paths for windows
2020-08-08 13:45:27 +00:00
|
|
|
|
|
|
|
try:
|
|
|
|
proc.wait()
|
|
|
|
except KeyboardInterrupt:
|
|
|
|
print("attempting to stop lab, you may want to check your process monitor")
|
|
|
|
proc.terminate()
|
|
|
|
proc.communicate(b"y\n")
|
|
|
|
|
|
|
|
proc.wait()
|
|
|
|
|
|
|
|
return dict(
|
|
|
|
uptodate=[lambda: False],
|
2020-08-10 01:54:30 +00:00
|
|
|
file_dep=[P.LAB_INDEX, *P.OK_SERVEREXT.values()],
|
Split up packages (#1)
* add drawio
* more tweaking of editor load
* more work on packaging
* linting, remove trace of mxgraph submodule
* clean up empty file rendering
* add some missing images
* don't reinitialize url after every show
* some css sugar
* belt and suspenders ui theme
* some more params
* add export
* working on logo
* more logo work
* full in-place round-tripping of svg, png, html
* use icons on documents
* clean up some untitled files
* first pass at schema
* start settings integration
* more work on settings
* fix ref
* work on url params
* some more tweaks to load behavior
* move submodule
* clean up some packaging stuff
* jlpm
* resolve yarn
* fix iframe url
* bump to newest drawio release
* brinf back the stencils
* html doesn't really work
* add more images
* move more things from code into config defaults
* rework settings some more
* fix new view, still working on click-to-activate
* fix capitalization on compressXml
* give up on formatting xml
* more work on round-trip, styling
* linting
* more missing images
* more config reloading
* drawio v13.1.8
* bump drawio files
* update notebook
* upgrade typescript
* more submodule shenanigans, binder env
* regenerate again, was missing stencils
* try adding server proxy
* update path
* fix schema
* pin node
* hoist jupyter_notebook_config.json
* some more work on export
* more x
* add some more demo tools
* use apt, some status
* apt deps, get back icons
* some more apt work
* more apt work
* better programmatic example
* more status work
* more docs
* add some more text
* some more notes
* some more status work, notes
* add jinja example
* more work on notebook
* move notebook
* add some deps
* more deps for pandas, pdf
* use local drawio assets
* stop servers harder
* Create Data-Driven Decks.ipynb
* Update drawio_export_demo.py
* Create template deck.dio
* fix up some chores
* some notebook tweaks
* more work on demo
* try another labextension spot
* notebooks
* store composite drawio in pdf
* use file:// for drawio static
* drawio v13.3.5
* remove even more unused code
* bump drawio, remove more tornado junk
* clean up xml pattern
* add notebook, because why not
* add ipynb example to decks
* add png, svg to composite
* add video chat for giggles
* drawio v13.3.8
* add plugins
* more work on plugin stuff
* drawio v13.3.9
* drawio v13.4.7
* resolve yarn.lock
* add sourcemaps
* drawio v13.4.9
* start patching towards rtc
* add plugin path to patches
* add a mess of plugins
* turn down the plugins
* drawio v13.5.3
* re-solve static
* get rid of all the high unicode in schema
* use utf-8 encoding explicitly
* Update package.json
* Update _static.ts
* drawio v13.5.4
* resolve static
* drawio v13.5.8
* move notebooks
* start moving things around
* add dodo.py
* more moving
* more moving
* more moving and naming
* moving
* move static
* fix up static path
* update more ids, locations
* skeleton docs
* start doing it
* start linting in anger
* passing eslint
* add prebuild
* yet more linting
* back to ts building
* packing
* hoist tarball
* clean up static generation
* apply lint in anger
* more work on static
* remove videochat for now, more ignoring
* tune up ci, binder
* use smaller env for now
* underspecify python in ci, don't url-encode [p]lugins
* gah windows
* some win debugging
* do some roadmap work
* work on roadmap while debugging
* do per-platform shell commands
* linting, url param
* look harder for npm
* start thinking about versions
* version bumping, more windows work
* remove patterns from schema
* add all task
* more encoding, linting
* rebuild static with iife
* try another import template
* versions in changelog
* more work on alernate asset loading
* revert menu investigations
* paths for windows
2020-08-08 13:45:27 +00:00
|
|
|
actions=[PythonInteractiveAction(lab)],
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
def task_watch():
|
|
|
|
def watch():
|
2020-08-10 01:54:30 +00:00
|
|
|
shutil.rmtree(P.LAB_STATIC, ignore_errors=True)
|
|
|
|
subprocess.check_call(["jupyter", "lab", "build"])
|
|
|
|
|
|
|
|
for sub_ns in (P.LAB_STAGING / "node_modules" / f"@{P.JS_NS}").glob(
|
|
|
|
f"*/node_modules/@{P.JS_NS}"
|
|
|
|
):
|
|
|
|
print(f"Deleting {sub_ns.relative_to(P.LAB_STAGING)}", flush=True)
|
|
|
|
shutil.rmtree(sub_ns)
|
|
|
|
else:
|
|
|
|
print(f"Nothing deleted in {P.LAB_STAGING}!", flush=True)
|
|
|
|
|
|
|
|
jlpm_proc = subprocess.Popen(
|
|
|
|
["jlpm", "lerna", "run", "--parallel", "--stream", "watch"]
|
Split up packages (#1)
* add drawio
* more tweaking of editor load
* more work on packaging
* linting, remove trace of mxgraph submodule
* clean up empty file rendering
* add some missing images
* don't reinitialize url after every show
* some css sugar
* belt and suspenders ui theme
* some more params
* add export
* working on logo
* more logo work
* full in-place round-tripping of svg, png, html
* use icons on documents
* clean up some untitled files
* first pass at schema
* start settings integration
* more work on settings
* fix ref
* work on url params
* some more tweaks to load behavior
* move submodule
* clean up some packaging stuff
* jlpm
* resolve yarn
* fix iframe url
* bump to newest drawio release
* brinf back the stencils
* html doesn't really work
* add more images
* move more things from code into config defaults
* rework settings some more
* fix new view, still working on click-to-activate
* fix capitalization on compressXml
* give up on formatting xml
* more work on round-trip, styling
* linting
* more missing images
* more config reloading
* drawio v13.1.8
* bump drawio files
* update notebook
* upgrade typescript
* more submodule shenanigans, binder env
* regenerate again, was missing stencils
* try adding server proxy
* update path
* fix schema
* pin node
* hoist jupyter_notebook_config.json
* some more work on export
* more x
* add some more demo tools
* use apt, some status
* apt deps, get back icons
* some more apt work
* more apt work
* better programmatic example
* more status work
* more docs
* add some more text
* some more notes
* some more status work, notes
* add jinja example
* more work on notebook
* move notebook
* add some deps
* more deps for pandas, pdf
* use local drawio assets
* stop servers harder
* Create Data-Driven Decks.ipynb
* Update drawio_export_demo.py
* Create template deck.dio
* fix up some chores
* some notebook tweaks
* more work on demo
* try another labextension spot
* notebooks
* store composite drawio in pdf
* use file:// for drawio static
* drawio v13.3.5
* remove even more unused code
* bump drawio, remove more tornado junk
* clean up xml pattern
* add notebook, because why not
* add ipynb example to decks
* add png, svg to composite
* add video chat for giggles
* drawio v13.3.8
* add plugins
* more work on plugin stuff
* drawio v13.3.9
* drawio v13.4.7
* resolve yarn.lock
* add sourcemaps
* drawio v13.4.9
* start patching towards rtc
* add plugin path to patches
* add a mess of plugins
* turn down the plugins
* drawio v13.5.3
* re-solve static
* get rid of all the high unicode in schema
* use utf-8 encoding explicitly
* Update package.json
* Update _static.ts
* drawio v13.5.4
* resolve static
* drawio v13.5.8
* move notebooks
* start moving things around
* add dodo.py
* more moving
* more moving
* more moving and naming
* moving
* move static
* fix up static path
* update more ids, locations
* skeleton docs
* start doing it
* start linting in anger
* passing eslint
* add prebuild
* yet more linting
* back to ts building
* packing
* hoist tarball
* clean up static generation
* apply lint in anger
* more work on static
* remove videochat for now, more ignoring
* tune up ci, binder
* use smaller env for now
* underspecify python in ci, don't url-encode [p]lugins
* gah windows
* some win debugging
* do some roadmap work
* work on roadmap while debugging
* do per-platform shell commands
* linting, url param
* look harder for npm
* start thinking about versions
* version bumping, more windows work
* remove patterns from schema
* add all task
* more encoding, linting
* rebuild static with iife
* try another import template
* versions in changelog
* more work on alernate asset loading
* revert menu investigations
* paths for windows
2020-08-08 13:45:27 +00:00
|
|
|
)
|
|
|
|
|
2020-08-10 01:54:30 +00:00
|
|
|
build_proc = subprocess.Popen(["jlpm", "watch"], cwd=P.LAB_STAGING)
|
|
|
|
|
|
|
|
lab_proc = subprocess.Popen(P.CMD_LAB, stdin=subprocess.PIPE)
|
|
|
|
|
Split up packages (#1)
* add drawio
* more tweaking of editor load
* more work on packaging
* linting, remove trace of mxgraph submodule
* clean up empty file rendering
* add some missing images
* don't reinitialize url after every show
* some css sugar
* belt and suspenders ui theme
* some more params
* add export
* working on logo
* more logo work
* full in-place round-tripping of svg, png, html
* use icons on documents
* clean up some untitled files
* first pass at schema
* start settings integration
* more work on settings
* fix ref
* work on url params
* some more tweaks to load behavior
* move submodule
* clean up some packaging stuff
* jlpm
* resolve yarn
* fix iframe url
* bump to newest drawio release
* brinf back the stencils
* html doesn't really work
* add more images
* move more things from code into config defaults
* rework settings some more
* fix new view, still working on click-to-activate
* fix capitalization on compressXml
* give up on formatting xml
* more work on round-trip, styling
* linting
* more missing images
* more config reloading
* drawio v13.1.8
* bump drawio files
* update notebook
* upgrade typescript
* more submodule shenanigans, binder env
* regenerate again, was missing stencils
* try adding server proxy
* update path
* fix schema
* pin node
* hoist jupyter_notebook_config.json
* some more work on export
* more x
* add some more demo tools
* use apt, some status
* apt deps, get back icons
* some more apt work
* more apt work
* better programmatic example
* more status work
* more docs
* add some more text
* some more notes
* some more status work, notes
* add jinja example
* more work on notebook
* move notebook
* add some deps
* more deps for pandas, pdf
* use local drawio assets
* stop servers harder
* Create Data-Driven Decks.ipynb
* Update drawio_export_demo.py
* Create template deck.dio
* fix up some chores
* some notebook tweaks
* more work on demo
* try another labextension spot
* notebooks
* store composite drawio in pdf
* use file:// for drawio static
* drawio v13.3.5
* remove even more unused code
* bump drawio, remove more tornado junk
* clean up xml pattern
* add notebook, because why not
* add ipynb example to decks
* add png, svg to composite
* add video chat for giggles
* drawio v13.3.8
* add plugins
* more work on plugin stuff
* drawio v13.3.9
* drawio v13.4.7
* resolve yarn.lock
* add sourcemaps
* drawio v13.4.9
* start patching towards rtc
* add plugin path to patches
* add a mess of plugins
* turn down the plugins
* drawio v13.5.3
* re-solve static
* get rid of all the high unicode in schema
* use utf-8 encoding explicitly
* Update package.json
* Update _static.ts
* drawio v13.5.4
* resolve static
* drawio v13.5.8
* move notebooks
* start moving things around
* add dodo.py
* more moving
* more moving
* more moving and naming
* moving
* move static
* fix up static path
* update more ids, locations
* skeleton docs
* start doing it
* start linting in anger
* passing eslint
* add prebuild
* yet more linting
* back to ts building
* packing
* hoist tarball
* clean up static generation
* apply lint in anger
* more work on static
* remove videochat for now, more ignoring
* tune up ci, binder
* use smaller env for now
* underspecify python in ci, don't url-encode [p]lugins
* gah windows
* some win debugging
* do some roadmap work
* work on roadmap while debugging
* do per-platform shell commands
* linting, url param
* look harder for npm
* start thinking about versions
* version bumping, more windows work
* remove patterns from schema
* add all task
* more encoding, linting
* rebuild static with iife
* try another import template
* versions in changelog
* more work on alernate asset loading
* revert menu investigations
* paths for windows
2020-08-08 13:45:27 +00:00
|
|
|
try:
|
|
|
|
lab_proc.wait()
|
|
|
|
except KeyboardInterrupt:
|
|
|
|
print("attempting to stop lab, you may want to check your process monitor")
|
|
|
|
lab_proc.terminate()
|
|
|
|
lab_proc.communicate(b"y\n")
|
|
|
|
finally:
|
|
|
|
jlpm_proc.terminate()
|
2020-08-10 01:54:30 +00:00
|
|
|
build_proc.terminate()
|
Split up packages (#1)
* add drawio
* more tweaking of editor load
* more work on packaging
* linting, remove trace of mxgraph submodule
* clean up empty file rendering
* add some missing images
* don't reinitialize url after every show
* some css sugar
* belt and suspenders ui theme
* some more params
* add export
* working on logo
* more logo work
* full in-place round-tripping of svg, png, html
* use icons on documents
* clean up some untitled files
* first pass at schema
* start settings integration
* more work on settings
* fix ref
* work on url params
* some more tweaks to load behavior
* move submodule
* clean up some packaging stuff
* jlpm
* resolve yarn
* fix iframe url
* bump to newest drawio release
* brinf back the stencils
* html doesn't really work
* add more images
* move more things from code into config defaults
* rework settings some more
* fix new view, still working on click-to-activate
* fix capitalization on compressXml
* give up on formatting xml
* more work on round-trip, styling
* linting
* more missing images
* more config reloading
* drawio v13.1.8
* bump drawio files
* update notebook
* upgrade typescript
* more submodule shenanigans, binder env
* regenerate again, was missing stencils
* try adding server proxy
* update path
* fix schema
* pin node
* hoist jupyter_notebook_config.json
* some more work on export
* more x
* add some more demo tools
* use apt, some status
* apt deps, get back icons
* some more apt work
* more apt work
* better programmatic example
* more status work
* more docs
* add some more text
* some more notes
* some more status work, notes
* add jinja example
* more work on notebook
* move notebook
* add some deps
* more deps for pandas, pdf
* use local drawio assets
* stop servers harder
* Create Data-Driven Decks.ipynb
* Update drawio_export_demo.py
* Create template deck.dio
* fix up some chores
* some notebook tweaks
* more work on demo
* try another labextension spot
* notebooks
* store composite drawio in pdf
* use file:// for drawio static
* drawio v13.3.5
* remove even more unused code
* bump drawio, remove more tornado junk
* clean up xml pattern
* add notebook, because why not
* add ipynb example to decks
* add png, svg to composite
* add video chat for giggles
* drawio v13.3.8
* add plugins
* more work on plugin stuff
* drawio v13.3.9
* drawio v13.4.7
* resolve yarn.lock
* add sourcemaps
* drawio v13.4.9
* start patching towards rtc
* add plugin path to patches
* add a mess of plugins
* turn down the plugins
* drawio v13.5.3
* re-solve static
* get rid of all the high unicode in schema
* use utf-8 encoding explicitly
* Update package.json
* Update _static.ts
* drawio v13.5.4
* resolve static
* drawio v13.5.8
* move notebooks
* start moving things around
* add dodo.py
* more moving
* more moving
* more moving and naming
* moving
* move static
* fix up static path
* update more ids, locations
* skeleton docs
* start doing it
* start linting in anger
* passing eslint
* add prebuild
* yet more linting
* back to ts building
* packing
* hoist tarball
* clean up static generation
* apply lint in anger
* more work on static
* remove videochat for now, more ignoring
* tune up ci, binder
* use smaller env for now
* underspecify python in ci, don't url-encode [p]lugins
* gah windows
* some win debugging
* do some roadmap work
* work on roadmap while debugging
* do per-platform shell commands
* linting, url param
* look harder for npm
* start thinking about versions
* version bumping, more windows work
* remove patterns from schema
* add all task
* more encoding, linting
* rebuild static with iife
* try another import template
* versions in changelog
* more work on alernate asset loading
* revert menu investigations
* paths for windows
2020-08-08 13:45:27 +00:00
|
|
|
|
|
|
|
lab_proc.wait()
|
|
|
|
jlpm_proc.wait()
|
2020-08-10 01:54:30 +00:00
|
|
|
build_proc.wait()
|
Split up packages (#1)
* add drawio
* more tweaking of editor load
* more work on packaging
* linting, remove trace of mxgraph submodule
* clean up empty file rendering
* add some missing images
* don't reinitialize url after every show
* some css sugar
* belt and suspenders ui theme
* some more params
* add export
* working on logo
* more logo work
* full in-place round-tripping of svg, png, html
* use icons on documents
* clean up some untitled files
* first pass at schema
* start settings integration
* more work on settings
* fix ref
* work on url params
* some more tweaks to load behavior
* move submodule
* clean up some packaging stuff
* jlpm
* resolve yarn
* fix iframe url
* bump to newest drawio release
* brinf back the stencils
* html doesn't really work
* add more images
* move more things from code into config defaults
* rework settings some more
* fix new view, still working on click-to-activate
* fix capitalization on compressXml
* give up on formatting xml
* more work on round-trip, styling
* linting
* more missing images
* more config reloading
* drawio v13.1.8
* bump drawio files
* update notebook
* upgrade typescript
* more submodule shenanigans, binder env
* regenerate again, was missing stencils
* try adding server proxy
* update path
* fix schema
* pin node
* hoist jupyter_notebook_config.json
* some more work on export
* more x
* add some more demo tools
* use apt, some status
* apt deps, get back icons
* some more apt work
* more apt work
* better programmatic example
* more status work
* more docs
* add some more text
* some more notes
* some more status work, notes
* add jinja example
* more work on notebook
* move notebook
* add some deps
* more deps for pandas, pdf
* use local drawio assets
* stop servers harder
* Create Data-Driven Decks.ipynb
* Update drawio_export_demo.py
* Create template deck.dio
* fix up some chores
* some notebook tweaks
* more work on demo
* try another labextension spot
* notebooks
* store composite drawio in pdf
* use file:// for drawio static
* drawio v13.3.5
* remove even more unused code
* bump drawio, remove more tornado junk
* clean up xml pattern
* add notebook, because why not
* add ipynb example to decks
* add png, svg to composite
* add video chat for giggles
* drawio v13.3.8
* add plugins
* more work on plugin stuff
* drawio v13.3.9
* drawio v13.4.7
* resolve yarn.lock
* add sourcemaps
* drawio v13.4.9
* start patching towards rtc
* add plugin path to patches
* add a mess of plugins
* turn down the plugins
* drawio v13.5.3
* re-solve static
* get rid of all the high unicode in schema
* use utf-8 encoding explicitly
* Update package.json
* Update _static.ts
* drawio v13.5.4
* resolve static
* drawio v13.5.8
* move notebooks
* start moving things around
* add dodo.py
* more moving
* more moving
* more moving and naming
* moving
* move static
* fix up static path
* update more ids, locations
* skeleton docs
* start doing it
* start linting in anger
* passing eslint
* add prebuild
* yet more linting
* back to ts building
* packing
* hoist tarball
* clean up static generation
* apply lint in anger
* more work on static
* remove videochat for now, more ignoring
* tune up ci, binder
* use smaller env for now
* underspecify python in ci, don't url-encode [p]lugins
* gah windows
* some win debugging
* do some roadmap work
* work on roadmap while debugging
* do per-platform shell commands
* linting, url param
* look harder for npm
* start thinking about versions
* version bumping, more windows work
* remove patterns from schema
* add all task
* more encoding, linting
* rebuild static with iife
* try another import template
* versions in changelog
* more work on alernate asset loading
* revert menu investigations
* paths for windows
2020-08-08 13:45:27 +00:00
|
|
|
|
|
|
|
return dict(
|
|
|
|
uptodate=[lambda: False],
|
2020-08-10 01:54:30 +00:00
|
|
|
file_dep=[*P.JS_TARBALL.values(), *P.OK_SERVEREXT.values()],
|
|
|
|
actions=[
|
|
|
|
P.CMD_LIST_EXTENSIONS,
|
|
|
|
P.CMD_LINK_EXTENSIONS,
|
|
|
|
P.CMD_LIST_EXTENSIONS,
|
|
|
|
P.CMD_INSTALL_EXTENSIONS,
|
|
|
|
P.CMD_DISABLE_EXTENSIONS,
|
2020-08-16 20:33:33 +00:00
|
|
|
P._override_lab,
|
2020-08-10 01:54:30 +00:00
|
|
|
P.CMD_LIST_EXTENSIONS,
|
|
|
|
PythonInteractiveAction(watch),
|
|
|
|
],
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
def task_provision():
|
|
|
|
return _ok(
|
|
|
|
dict(
|
|
|
|
file_dep=[*P.OK_SERVEREXT.values()],
|
|
|
|
actions=[
|
|
|
|
["jupyter", "drawio-export", "--version"],
|
|
|
|
["jupyter", "drawio-export", "provision"],
|
|
|
|
],
|
|
|
|
),
|
|
|
|
P.OK_PROVISION,
|
Split up packages (#1)
* add drawio
* more tweaking of editor load
* more work on packaging
* linting, remove trace of mxgraph submodule
* clean up empty file rendering
* add some missing images
* don't reinitialize url after every show
* some css sugar
* belt and suspenders ui theme
* some more params
* add export
* working on logo
* more logo work
* full in-place round-tripping of svg, png, html
* use icons on documents
* clean up some untitled files
* first pass at schema
* start settings integration
* more work on settings
* fix ref
* work on url params
* some more tweaks to load behavior
* move submodule
* clean up some packaging stuff
* jlpm
* resolve yarn
* fix iframe url
* bump to newest drawio release
* brinf back the stencils
* html doesn't really work
* add more images
* move more things from code into config defaults
* rework settings some more
* fix new view, still working on click-to-activate
* fix capitalization on compressXml
* give up on formatting xml
* more work on round-trip, styling
* linting
* more missing images
* more config reloading
* drawio v13.1.8
* bump drawio files
* update notebook
* upgrade typescript
* more submodule shenanigans, binder env
* regenerate again, was missing stencils
* try adding server proxy
* update path
* fix schema
* pin node
* hoist jupyter_notebook_config.json
* some more work on export
* more x
* add some more demo tools
* use apt, some status
* apt deps, get back icons
* some more apt work
* more apt work
* better programmatic example
* more status work
* more docs
* add some more text
* some more notes
* some more status work, notes
* add jinja example
* more work on notebook
* move notebook
* add some deps
* more deps for pandas, pdf
* use local drawio assets
* stop servers harder
* Create Data-Driven Decks.ipynb
* Update drawio_export_demo.py
* Create template deck.dio
* fix up some chores
* some notebook tweaks
* more work on demo
* try another labextension spot
* notebooks
* store composite drawio in pdf
* use file:// for drawio static
* drawio v13.3.5
* remove even more unused code
* bump drawio, remove more tornado junk
* clean up xml pattern
* add notebook, because why not
* add ipynb example to decks
* add png, svg to composite
* add video chat for giggles
* drawio v13.3.8
* add plugins
* more work on plugin stuff
* drawio v13.3.9
* drawio v13.4.7
* resolve yarn.lock
* add sourcemaps
* drawio v13.4.9
* start patching towards rtc
* add plugin path to patches
* add a mess of plugins
* turn down the plugins
* drawio v13.5.3
* re-solve static
* get rid of all the high unicode in schema
* use utf-8 encoding explicitly
* Update package.json
* Update _static.ts
* drawio v13.5.4
* resolve static
* drawio v13.5.8
* move notebooks
* start moving things around
* add dodo.py
* more moving
* more moving
* more moving and naming
* moving
* move static
* fix up static path
* update more ids, locations
* skeleton docs
* start doing it
* start linting in anger
* passing eslint
* add prebuild
* yet more linting
* back to ts building
* packing
* hoist tarball
* clean up static generation
* apply lint in anger
* more work on static
* remove videochat for now, more ignoring
* tune up ci, binder
* use smaller env for now
* underspecify python in ci, don't url-encode [p]lugins
* gah windows
* some win debugging
* do some roadmap work
* work on roadmap while debugging
* do per-platform shell commands
* linting, url param
* look harder for npm
* start thinking about versions
* version bumping, more windows work
* remove patterns from schema
* add all task
* more encoding, linting
* rebuild static with iife
* try another import template
* versions in changelog
* more work on alernate asset loading
* revert menu investigations
* paths for windows
2020-08-08 13:45:27 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
def task_all():
|
|
|
|
return dict(
|
2020-08-16 20:33:33 +00:00
|
|
|
file_dep=[P.OK_INTEGRITY, P.OK_PROVISION, P.OK_ATEST, *P.OK_PYTEST.values()],
|
Split up packages (#1)
* add drawio
* more tweaking of editor load
* more work on packaging
* linting, remove trace of mxgraph submodule
* clean up empty file rendering
* add some missing images
* don't reinitialize url after every show
* some css sugar
* belt and suspenders ui theme
* some more params
* add export
* working on logo
* more logo work
* full in-place round-tripping of svg, png, html
* use icons on documents
* clean up some untitled files
* first pass at schema
* start settings integration
* more work on settings
* fix ref
* work on url params
* some more tweaks to load behavior
* move submodule
* clean up some packaging stuff
* jlpm
* resolve yarn
* fix iframe url
* bump to newest drawio release
* brinf back the stencils
* html doesn't really work
* add more images
* move more things from code into config defaults
* rework settings some more
* fix new view, still working on click-to-activate
* fix capitalization on compressXml
* give up on formatting xml
* more work on round-trip, styling
* linting
* more missing images
* more config reloading
* drawio v13.1.8
* bump drawio files
* update notebook
* upgrade typescript
* more submodule shenanigans, binder env
* regenerate again, was missing stencils
* try adding server proxy
* update path
* fix schema
* pin node
* hoist jupyter_notebook_config.json
* some more work on export
* more x
* add some more demo tools
* use apt, some status
* apt deps, get back icons
* some more apt work
* more apt work
* better programmatic example
* more status work
* more docs
* add some more text
* some more notes
* some more status work, notes
* add jinja example
* more work on notebook
* move notebook
* add some deps
* more deps for pandas, pdf
* use local drawio assets
* stop servers harder
* Create Data-Driven Decks.ipynb
* Update drawio_export_demo.py
* Create template deck.dio
* fix up some chores
* some notebook tweaks
* more work on demo
* try another labextension spot
* notebooks
* store composite drawio in pdf
* use file:// for drawio static
* drawio v13.3.5
* remove even more unused code
* bump drawio, remove more tornado junk
* clean up xml pattern
* add notebook, because why not
* add ipynb example to decks
* add png, svg to composite
* add video chat for giggles
* drawio v13.3.8
* add plugins
* more work on plugin stuff
* drawio v13.3.9
* drawio v13.4.7
* resolve yarn.lock
* add sourcemaps
* drawio v13.4.9
* start patching towards rtc
* add plugin path to patches
* add a mess of plugins
* turn down the plugins
* drawio v13.5.3
* re-solve static
* get rid of all the high unicode in schema
* use utf-8 encoding explicitly
* Update package.json
* Update _static.ts
* drawio v13.5.4
* resolve static
* drawio v13.5.8
* move notebooks
* start moving things around
* add dodo.py
* more moving
* more moving
* more moving and naming
* moving
* move static
* fix up static path
* update more ids, locations
* skeleton docs
* start doing it
* start linting in anger
* passing eslint
* add prebuild
* yet more linting
* back to ts building
* packing
* hoist tarball
* clean up static generation
* apply lint in anger
* more work on static
* remove videochat for now, more ignoring
* tune up ci, binder
* use smaller env for now
* underspecify python in ci, don't url-encode [p]lugins
* gah windows
* some win debugging
* do some roadmap work
* work on roadmap while debugging
* do per-platform shell commands
* linting, url param
* look harder for npm
* start thinking about versions
* version bumping, more windows work
* remove patterns from schema
* add all task
* more encoding, linting
* rebuild static with iife
* try another import template
* versions in changelog
* more work on alernate asset loading
* revert menu investigations
* paths for windows
2020-08-08 13:45:27 +00:00
|
|
|
actions=[lambda: [print("nothing left to do"), True][1]],
|
|
|
|
)
|
|
|
|
|
|
|
|
|
2020-08-16 20:33:33 +00:00
|
|
|
def _pytest(setup_py):
|
|
|
|
def _test():
|
|
|
|
subprocess.check_call([*P.PYM, "pytest"], shell=False, cwd=str(setup_py.parent))
|
|
|
|
|
|
|
|
return _test
|
|
|
|
|
|
|
|
|
|
|
|
def task_test():
|
|
|
|
yield _ok(
|
2020-08-10 01:54:30 +00:00
|
|
|
dict(
|
2020-08-16 20:33:33 +00:00
|
|
|
name="integrity",
|
2020-08-10 01:54:30 +00:00
|
|
|
file_dep=[
|
|
|
|
P.SCRIPTS / "integrity.py",
|
|
|
|
P.LAB_INDEX,
|
|
|
|
P.OK_LINT,
|
|
|
|
*[*P.OK_SERVEREXT.values()],
|
|
|
|
*[*P.PY_WHEEL.values()],
|
|
|
|
*[*P.PY_SDIST.values()],
|
|
|
|
],
|
|
|
|
actions=[
|
|
|
|
["python", "-m", "pytest", "--pyargs", "scripts.integrity", "-vv"]
|
|
|
|
],
|
|
|
|
),
|
|
|
|
P.OK_INTEGRITY,
|
|
|
|
)
|
|
|
|
|
2020-08-16 20:33:33 +00:00
|
|
|
for pkg, setup in P.PY_SETUP.items():
|
|
|
|
yield _ok(
|
|
|
|
dict(
|
|
|
|
name=f"pytest:{pkg}",
|
|
|
|
file_dep=[
|
|
|
|
*P.PY_SRC[pkg],
|
|
|
|
P.OK_PYSETUP[pkg],
|
|
|
|
*P.PY_TEST_DEP.get(pkg, []),
|
|
|
|
],
|
|
|
|
actions=[PythonInteractiveAction(_pytest(setup))],
|
|
|
|
),
|
|
|
|
P.OK_PYTEST[pkg],
|
|
|
|
)
|
|
|
|
|
|
|
|
yield _ok(
|
|
|
|
dict(
|
|
|
|
name="robot",
|
|
|
|
file_dep=[
|
|
|
|
*P.ALL_ROBOT,
|
|
|
|
P.LAB_INDEX,
|
|
|
|
P.LAB_OVERRIDES,
|
|
|
|
P.OK_PROVISION,
|
|
|
|
P.OK_ROBOT_DRYRUN,
|
|
|
|
P.SCRIPTS / "atest.py",
|
|
|
|
],
|
|
|
|
actions=[["python", "-m", "scripts.atest"]],
|
|
|
|
),
|
|
|
|
P.OK_ATEST,
|
|
|
|
)
|
|
|
|
|
2020-08-10 01:54:30 +00:00
|
|
|
|
Split up packages (#1)
* add drawio
* more tweaking of editor load
* more work on packaging
* linting, remove trace of mxgraph submodule
* clean up empty file rendering
* add some missing images
* don't reinitialize url after every show
* some css sugar
* belt and suspenders ui theme
* some more params
* add export
* working on logo
* more logo work
* full in-place round-tripping of svg, png, html
* use icons on documents
* clean up some untitled files
* first pass at schema
* start settings integration
* more work on settings
* fix ref
* work on url params
* some more tweaks to load behavior
* move submodule
* clean up some packaging stuff
* jlpm
* resolve yarn
* fix iframe url
* bump to newest drawio release
* brinf back the stencils
* html doesn't really work
* add more images
* move more things from code into config defaults
* rework settings some more
* fix new view, still working on click-to-activate
* fix capitalization on compressXml
* give up on formatting xml
* more work on round-trip, styling
* linting
* more missing images
* more config reloading
* drawio v13.1.8
* bump drawio files
* update notebook
* upgrade typescript
* more submodule shenanigans, binder env
* regenerate again, was missing stencils
* try adding server proxy
* update path
* fix schema
* pin node
* hoist jupyter_notebook_config.json
* some more work on export
* more x
* add some more demo tools
* use apt, some status
* apt deps, get back icons
* some more apt work
* more apt work
* better programmatic example
* more status work
* more docs
* add some more text
* some more notes
* some more status work, notes
* add jinja example
* more work on notebook
* move notebook
* add some deps
* more deps for pandas, pdf
* use local drawio assets
* stop servers harder
* Create Data-Driven Decks.ipynb
* Update drawio_export_demo.py
* Create template deck.dio
* fix up some chores
* some notebook tweaks
* more work on demo
* try another labextension spot
* notebooks
* store composite drawio in pdf
* use file:// for drawio static
* drawio v13.3.5
* remove even more unused code
* bump drawio, remove more tornado junk
* clean up xml pattern
* add notebook, because why not
* add ipynb example to decks
* add png, svg to composite
* add video chat for giggles
* drawio v13.3.8
* add plugins
* more work on plugin stuff
* drawio v13.3.9
* drawio v13.4.7
* resolve yarn.lock
* add sourcemaps
* drawio v13.4.9
* start patching towards rtc
* add plugin path to patches
* add a mess of plugins
* turn down the plugins
* drawio v13.5.3
* re-solve static
* get rid of all the high unicode in schema
* use utf-8 encoding explicitly
* Update package.json
* Update _static.ts
* drawio v13.5.4
* resolve static
* drawio v13.5.8
* move notebooks
* start moving things around
* add dodo.py
* more moving
* more moving
* more moving and naming
* moving
* move static
* fix up static path
* update more ids, locations
* skeleton docs
* start doing it
* start linting in anger
* passing eslint
* add prebuild
* yet more linting
* back to ts building
* packing
* hoist tarball
* clean up static generation
* apply lint in anger
* more work on static
* remove videochat for now, more ignoring
* tune up ci, binder
* use smaller env for now
* underspecify python in ci, don't url-encode [p]lugins
* gah windows
* some win debugging
* do some roadmap work
* work on roadmap while debugging
* do per-platform shell commands
* linting, url param
* look harder for npm
* start thinking about versions
* version bumping, more windows work
* remove patterns from schema
* add all task
* more encoding, linting
* rebuild static with iife
* try another import template
* versions in changelog
* more work on alernate asset loading
* revert menu investigations
* paths for windows
2020-08-08 13:45:27 +00:00
|
|
|
# utilities
|
|
|
|
def _echo_ok(msg):
|
|
|
|
def _echo():
|
|
|
|
print(msg, flush=True)
|
|
|
|
return True
|
|
|
|
|
|
|
|
return _echo
|
|
|
|
|
|
|
|
|
|
|
|
def _ok(task, ok):
|
|
|
|
task.setdefault("targets", []).append(ok)
|
|
|
|
task["actions"] = [
|
|
|
|
lambda: [ok.exists() and ok.unlink(), True][-1],
|
|
|
|
*task["actions"],
|
|
|
|
lambda: [ok.parent.mkdir(exist_ok=True), ok.write_text("ok"), True][-1],
|
|
|
|
]
|
|
|
|
return task
|