Mercurial > code > home > repos > streamed-graph
diff tasks.py @ 32:db0e9cbf52e5
WIP converting to the package system that i found can work
author | drewp@bigasterisk.com |
---|---|
date | Tue, 24 Dec 2019 18:37:03 -0800 |
parents | 86270a59ae7b |
children |
line wrap: on
line diff
--- a/tasks.py Sun Dec 15 12:38:11 2019 -0800 +++ b/tasks.py Tue Dec 24 18:37:03 2019 -0800 @@ -3,24 +3,21 @@ @task def setup_npm(ctx): - ctx.run('yarn install') + ctx.run('npm install') + @task def serve_demo(ctx): - ctx.run('yarn webpack-dev-server --config webpack-dev.config.ts --port 8082') + ctx.run('npm run webpack-dev-server') + @task def build(ctx): - ctx.run(f'yarn run webpack-cli --config webpack.config.js --mode production') # --debug --display-error-details - ctx.run(f'cp build/streamed-graph.bundle.js /my/site/homepage/www/rdf/streamed-graph.bundle.js') + ctx.run(f'npm run webpack-build') + ctx.run(f'cp build/bundle.js /my/site/homepage/www/rdf/streamed-graph.bundle.js') ctx.run(f'cp streamed-graph.css /my/site/homepage/www/rdf/streamed-graph.css') + @task def test(ctx): - ctx.run(f'node_modules/.bin/webpack-cli --config webpack-test.config.ts') - ctx.run(f'node_modules/.bin/ts-node node_modules/.bin/jasmine --config=jasmine.json') - -# one time per machine: -# yarn policies set-version v2 -# in vscode, ctrl-p then: ext install ark120202.vscode-typescript-pnp-plugin -# or see https://next.yarnpkg.com/advanced/pnpify for a compatibility runner. + ctx.run(f'npm test')