@zywave/attachments-widget
v1.0.15
Published
A custom web component for minor attachments functionality through a widget
Downloads
27
Maintainers
Readme
Attachments Widget
https://zywave.gitlab.io/ams-pc/productivity-workflow/attachments/attachments-widget/
Setup
Install dependencies:
npm i
Build
The build uses the TypeScript compiler (tsc) to produce JavaScript that runs in modern browsers.
To build the JavaScript version of your component:
npm run build
To watch files and rebuild when the files are modified, run the following command in a separate shell:
npm run build:watch
Linting
Linting of TypeScript files is provided by ESLint and TypeScript ESLint. In addition, lit-analyzer is used to type-check and lint lit-html templates with the same engine and rules as lit-plugin.
The rules are mostly the recommended rules from each project, but some have been turned off to make LitElement usage easier.
To lint the project run:
npm run lint
Formatting
Prettier is used for code formatting and has been pre-configured according to the Polymer Project's style. Prettier config can be found in .prettierrc.json
.