Skip to content

Latest commit

 

History

History
30 lines (20 loc) · 1.27 KB

README.md

File metadata and controls

30 lines (20 loc) · 1.27 KB

NJWDS Web Components

Key concepts

  • Yarn: This project uses yarn - creators of the starter kit said it solves dependencies better, it has more functions that npm does not have and is used in other projects. The commands are very similar, don't worry if you haven't seen yarn yet.
  • lit-plugin Is a syntax highlighting, type checking and code completion for lit in VS Code.
  • Vite is a build tool that aims to provide a faster and leaner development experience for modern web projects. See vite.config.ts for build configuration.

Components

  • Button (src/nj-button.ts)
  • Icon (src/nj-icon.ts)

🚀 Dev setup

Note: This repo is forked from the Lit Simple Starter Kit.

Requirements

Local setup

  1. Clone repo
  2. yarn install
  3. yarn build - compiles TS files into JS files in dist/ folder
  4. yarn dev - hosts index.html in web server for live testing
  5. yarn test - runs automated tests