Mercurial > code > home > repos > light9
comparison makefile @ 2036:00afa5ec081a
restore more of the stats widget including the cpu/mem spinner
author | drewp@bigasterisk.com |
---|---|
date | Sat, 09 Apr 2022 11:44:57 -0700 |
parents | 0cd765253fde |
children | 5154f5a23e85 |
comparison
equal
deleted
inserted
replaced
2035:f9faa2ec824f | 2036:00afa5ec081a |
---|---|
19 | 19 |
20 npm_install: | 20 npm_install: |
21 pnpm install | 21 pnpm install |
22 | 22 |
23 node_modules/n3/n3-browser.js: | 23 node_modules/n3/n3-browser.js: |
24 (cd node_modules/n3; nodejs ../browserify/bin/cmd.js --standalone N3 --require n3 -o n3-browser.js) | 24 (cd node_modules/n3; pnpx browserify --standalone N3 --require n3 -o n3-browser.js) |
25 | 25 |
26 light9/web/lib/debug/debug-build.js: | 26 light9/web/lib/debug/debug-build.js: |
27 node_modules/browserify/bin/cmd.js light9/web/lib/debug/src/browser.js -o light9/web/lib/debug/debug-build.js --standalone debug | 27 pnpx browserify light9/web/lib/debug/src/browser.js -o light9/web/lib/debug/debug-build.js --standalone debug |
28 | 28 |
29 light9/web/lib/debug/debug-build-es6.js: | 29 light9/web/lib/debug/debug-build-es6.js: |
30 node_modules/browserify/bin/cmd.js light9/web/lib/debug/src/browser.js -o light9/web/lib/debug/debug-build-es6.js --standalone debug | 30 pnpx browserify light9/web/lib/debug/src/browser.js -o light9/web/lib/debug/debug-build-es6.js --standalone debug |
31 echo "\nexport default window.debug;" >> light9/web/lib/debug/debug-build-es6.js | 31 echo "\nexport default window.debug;" >> light9/web/lib/debug/debug-build-es6.js |
32 | 32 |
33 lit_fix: | 33 lit_fix: |
34 perl -pi -e "s,'lit-html,'/node_modules/lit-html,; s,lit-html',lit-html/lit-html.js'," node_modules/lit-element/lit-element.js | 34 perl -pi -e "s,'lit-html,'/node_modules/lit-html,; s,lit-html',lit-html/lit-html.js'," node_modules/lit-element/lit-element.js |
35 | 35 |
56 | 56 |
57 ### build ### | 57 ### build ### |
58 | 58 |
59 coffee: | 59 coffee: |
60 zsh -c 'cd light9/web; ../../node_modules/coffeescript/bin/coffee --map -cw {.,live,timeline,paint,effects}/*.coffee' | 60 zsh -c 'cd light9/web; ../../node_modules/coffeescript/bin/coffee --map -cw {.,live,timeline,paint,effects}/*.coffee' |
61 | |
62 mypy: | |
63 inv mypy | |
64 | |
65 reformat: | |
66 inv reformat | |
67 | 61 |
68 ### show ### | 62 ### show ### |
69 | 63 |
70 qlc_artnet_dmx_proxy: | 64 qlc_artnet_dmx_proxy: |
71 qlcplus --open cur/qlc.qxw | 65 qlcplus --open cur/qlc.qxw |
100 ### testing ### | 94 ### testing ### |
101 | 95 |
102 NOSEARGS="--no-path-adjustment light9.rdfdb.rdflibpatch light9.rdfdb.patch light9.effecteval.test_effect light9.collector light9.rdfdb.graphfile_test light9.paint light9.effect" | 96 NOSEARGS="--no-path-adjustment light9.rdfdb.rdflibpatch light9.rdfdb.patch light9.effecteval.test_effect light9.collector light9.rdfdb.graphfile_test light9.paint light9.effect" |
103 | 97 |
104 tests: | 98 tests: |
105 eval env/bin/nosetests -x $(NOSEARGS) | 99 eval pdm run nosetests -x $(NOSEARGS) |
106 | 100 |
107 tests_watch: | 101 tests_watch: |
108 eval env/bin/nosetests --with-watcher $(NOSEARGS) | 102 eval pdm run nosetests --with-watcher $(NOSEARGS) |
109 | 103 |
110 | 104 |
111 tests_coverage: | 105 tests_coverage: |
112 eval env/bin/nosetests --with-coverage --cover-erase --cover-html --cover-html-dir=/tmp/light9-cov/ --cover-package=light9 --cover-branches $(NOSEARGS) | 106 eval pdm run nosetests --with-coverage --cover-erase --cover-html --cover-html-dir=/tmp/light9-cov/ --cover-package=light9 --cover-branches $(NOSEARGS) |
113 | 107 |
114 test_js_init: | 108 test_js_init: |
115 npm install | 109 npm install |
116 | 110 |
117 test_js: | 111 test_js: |
118 node_modules/coffeescript/bin/coffee -c light9/web/*.coffee | 112 pnpx coffee -c light9/web/*.coffee |
119 node_modules/mocha/bin/mocha --compilers coffee:coffee-script/register --globals window,N3 light9/web/graph_test.coffee | 113 pnpx mocha --compilers coffee:coffee-script/register --globals window,N3 light9/web/graph_test.coffee |
120 | 114 |
121 test_js_watch: | 115 test_js_watch: |
122 # have coffee continuously running | 116 # have coffee continuously running |
123 watch -c node_modules/mocha/bin/mocha --compilers coffee:coffee-script/register --globals window,N3 light9/web/graph_test.coffee --colors | 117 watch -c pnpx mocha --compilers coffee:coffee-script/register --globals window,N3 light9/web/graph_test.coffee --colors |
124 | 118 |
125 profile_seq: | 119 profile_seq: |
126 echo in lib, get https://github.com/uber/pyflame.git and https://github.com/brendangregg/FlameGraph.git | 120 echo in lib, get https://github.com/uber/pyflame.git and https://github.com/brendangregg/FlameGraph.git |
127 sudo lib/pyflame/src/pyflame -s 10 -p `pgrep -f effectsequencer` | perl -lpe 's,/home/drewp/projects-local/light9/,,g; s,env/local/lib/python2.7/site-packages/,,g;' | lib/FlameGraph/flamegraph.pl --width 2500 > /tmp/fl.svg | 121 sudo lib/pyflame/src/pyflame -s 10 -p `pgrep -f effectsequencer` | perl -lpe 's,/home/drewp/projects-local/light9/,,g; s,env/local/lib/python2.7/site-packages/,,g;' | lib/FlameGraph/flamegraph.pl --width 2500 > /tmp/fl.svg |