Skip to content

asmattic/next-package-design-system

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Turborepo Design System starter

This is an official React design system starter powered by Turborepo.

What's inside?

This Turborepo includes the following packages and apps:

Apps and Packages

  • docs: A placeholder documentation site powered by Next.js
  • @asmattic/core: core React components
  • @asmattic/utils: shared React utilities
  • @asmattic/tsconfig: shared tsconfig.jsons used throughout the monorepo
  • eslint-preset-asmattic: ESLint preset

Each package and app is 100% Typescript.

Utilities

This turborepo has some additional tools already setup for you:

Using this example

We do not have a starter yet in create-turbo for this quite yet. If you want to use this in the interim, you run the following command:

npx degit vercel/turborepo/examples/design-system design-system
cd design-system
yarn install
git init . && git add . && git commit -m "Init"

Changing the NPM organization scope

The NPM organization scope for this design system starter is @asmattic. To change this, it's a bit manual at the moment, but you'll need to do the following:

  • Rename folders in packages/* to replace asmattic with your desired scope
  • Search and replace asmattic with your desired scope
  • Re-run yarn install

Publishing packages

NPM

If you want to publish package to the public NPM registry and make them publicly available, this is already setup for you.

To publish packages to a private NPM organization scope, remove the following from each of the package.json's

- "publishConfig": {
-  "access": "public"
- },

GitHub Package Registry

See Working with the npm registry

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published