mabry1985 / oddball-design-system

astro + turborepo + lit2 web components + Style Dictionary

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Welcome to InineJS

πŸš€ Project Structure

  • βœ… Full Markdown support
  • βœ… Responsive mobile-friendly design
  • βœ… Sidebar navigation
  • βœ… Search (powered by Algolia)
  • βœ… Multi-language i18n
  • βœ… Automatic table of contents
  • βœ… Automatic list of contributors
  • βœ… (and, best of all) dark mode

Primary Tools

Inside of your InlineJS project, you'll see the following folders and files:

/
β”œβ”€β”€ packages/
β”‚   β”œβ”€β”€ inline-config/
β”‚   β”‚   β”œβ”€β”€ src/
β”‚   β”‚   └── index.ts
β”‚   β”œβ”€β”€ inline-tokens/
β”‚   β”‚   β”œβ”€β”€ src/
β”‚   β”‚   └── index.ts
β”œβ”€β”€ public/
β”‚   └── favicon.svg
β”œβ”€β”€ src/
β”‚   β”œβ”€β”€ components/
β”‚   β”‚   └── Card.astro
β”‚   β”œβ”€β”€ layouts/
β”‚   β”‚   └── Layout.astro
β”‚   └── pages/
β”‚       └── index.astro
└── package.json

Astro looks for .astro or .md files in the src/pages/ directory. Each page is exposed as a route based on its file name.

There's nothing special about src/components/, but that's where we like to put any Astro/React/Vue/Svelte/Preact components.

Any static assets, like images, can be placed in the public/ directory.

Any primary Web Component and helper packages intended for publishing to the NPM package repository, and utilized by consumer applications.

🧞 Commands

All commands are run from the root of the project, from a terminal:

Primary Commands

Primary commands consist of the the majority of the most frequently used commands during day to day development of an InlineJS project.

Command Action
yarn install Installs project dependencies
yarn start Starts local dev server at localhost:3000
yarn build Run all build commands using the pattern build:*
yarn clean Run all cleanup commands using the pattern clean:*
yarn reset Run yarn clean followed by commands using the pattern reset:*
yarn build Run all build commands using the pattern build:*

Secondary Commands

Most secondary commands are called by a primary command either directly, or with npm-run-all.

Command Action
yarn dev Alias of yarn start, enabling development mode
yarn prep Does stuff and things
yarn prestart Does stuff and things
yarn prebuild Does stuff and things

πŸ‘€ Want to learn more?

Look for more documentation in the near future!

About

astro + turborepo + lit2 web components + Style Dictionary

License:MIT License


Languages

Language:TypeScript 41.9%Language:CSS 30.5%Language:Astro 22.7%Language:JavaScript 4.9%