npm i @omicronenergy/oscd-shell<script type="module">
import '@omicronenergy/oscd-shell/oscd-shell.js';
</script>
<oscd-shell></oscd-shell>To scan the project for linting and formatting errors, run
npm run lintTo automatically fix linting and formatting errors, run
npm run formatLinting and formatting are centralized in
@omicronenergy/oscd-tooling,
which runs ESLint (with @stylistic for formatting) via the oscd CLI.
To execute a single test run:
npm testTo run the tests in interactive watch mode run:
npm run test:watchBuild, lint, test, bundle, and deploy tooling is centralized in
@omicronenergy/oscd-tooling
and run via the oscd CLI (see package.json scripts). This project keeps
its own rollup.config.js and web-test-runner.config.js because its build
has needs (multi-entry bundling, a custom test harness) that diverge from the
shared defaults — oscd automatically prefers a project-local config file of
the same name over its own default.
npm run startTo run a local development server that serves the basic demo located in demo/index.html
This webcomponent follows the open-wc recommendation.
This project is licensed under the Apache License 2.0.
© 2022 OMICRON electronics GmbH