tree: e2dfb40e1b15fd631c028953af0cb237f42e5db1 [path history] [tgz]
  1. cmd/
  2. content/
  3. internal/
  4. .eslintrc.json
  5. .gitignore
  6. .prettierrc.json
  7. .stylelintrc.json
  8. content.go
  9. go.mod
  10. go.sum
  11. npm
  12. npx
  13. package-lock.json
  14. package.json
  15. README.md
godev/README.md

TypeScript Support

TypeScript files served from content directories are transformed into JavaScript. Reference .ts files in html templates as module code.

<script type="module" src="/filename.ts">

Linting & Formatting

This repository uses eslint to format TS files, stylelint to format CSS files, and prettier to format TS, CSS, Markdown, and YAML files.

See the style guides:

It is encouraged that all TS and CSS code be run through formatters before submitting a change. However, it is not a strict requirement enforced by CI.

Installing npm Dependencies:

  1. Install docker
  2. Run ./npm install

Run ESLint, Stylelint, & Prettier

./npm run all