3.0.0-rc.17 • Published 8 months ago

@astrohaus/freewrite-ui v3.0.0-rc.17

Weekly downloads
-
License
MIT
Repository
-
Last release
8 months ago

Freewrite UI

React UI library for Astrohaus Freewrite.

🧰 Tech Stack

Core

Development

Getting started

The UI Kit comes as an uncompiled TypeScript project. You need to configure your bundler to include @astrohaus/freewrite-ui from node_modules and process it during building.

$ npm i @astrohaus/freewrite-ui
$ npm i -D @vanilla-extract/css @vanilla-extract/css-utils @vanilla-extract/dynamic @vanilla-extract/recipes typescript

You can find an example of setting up a bundler in examples/create-react-app. Basically, you need to setup a bundler to handle Vanilla-extract files and TypeScript files.

Next, you need to add CSS reset and base CSS variables in your root component:

import '@astrohaus/freewrite-ui/src/css/reset.css';
import '@astrohaus/freewrite-ui/src/css/root-theme.css';

// ...

💻 Development

Getting started

$ npm i
$ npm run storybook

Examples

There is an example of using @astrohaus/freewrite-ui in a project bootstrapped with Create React App. Refer to its README to make it up and running.

Scripts

Development

ScriptDescription
npm run storybookStarts Storybook development server.
npm run storybook:buildBuilds Storybook for production.

Testing & Linting

ScriptDescription
npm run typecheckRuns TypeScript and checks typing of source code.
npm run lintRuns ESLint and lints all code.
npm run prettier:formatRuns Prettier and formats all code.
npm run prettier:checkRuns Prettier and checks all code for bad formatting.

Build

ScriptDescription
npm run buildBuilds source code of @astrohaus/freewrite-ui, its types and outputs it to lib folder.
npm run build:srcBuilds source code of @astrohaus/freewrite-ui and outputs it to lib folder.
npm run build:watch-srcWatches source code for changes and builds it on changes.
npm run build:typesBuilds types of source code and outputs them to lib folder.
npm run build:watch-typesWatches source code for changes and builds types on changes.
npm run build:watchRuns build:watch-src and build:watch-types concurrently.
npm run build:cleanRemoves the build output folder (lib).

🚀 Production

Publish

To publish the package, you first need to be signed in and have permissions:

$ npm login --scope=@astrohaus

Then you can publish the package to a registry:

$ npm publish --access public

You can also check what is going to be publish by running dry:

$ npm publish --dry-run
3.0.0-rc.13

9 months ago

3.0.0-rc.12

10 months ago

3.0.0-rc.15

9 months ago

3.0.0-rc.14

9 months ago

3.0.0-rc.17

8 months ago

3.0.0-rc.16

9 months ago

3.0.0-rc.11

10 months ago

3.0.0-rc.10

10 months ago

3.0.0-rc.9

11 months ago

2.1.0-rc.2

1 year ago

2.1.0-rc.4

1 year ago

2.1.0-rc.3

1 year ago

3.0.0-rc.2

1 year ago

3.0.0-rc.1

1 year ago

3.0.0-rc.6

12 months ago

3.0.0-rc.5

12 months ago

3.0.0-rc.4

12 months ago

3.0.0-rc.3

1 year ago

3.0.0-rc.8

12 months ago

3.0.0-rc.7

12 months ago

2.1.0-rc.1

1 year ago

2.0.0

1 year ago

1.2.0-rc.9

1 year ago

1.2.0-rc.8

1 year ago

1.2.0-rc.7

1 year ago

1.2.0-rc.6

1 year ago

1.2.0-rc.2

2 years ago

1.2.0-rc.1

2 years ago

1.2.0-rc.5

1 year ago

1.2.0-rc.4

1 year ago

1.2.0-rc.3

2 years ago

1.1.0

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago

1.0.0-rc.12

2 years ago

1.0.0-rc.9

2 years ago

1.0.0-rc.7

2 years ago

1.0.0-rc.8

2 years ago

1.0.0-rc.5

2 years ago

1.0.0-rc.6

2 years ago

1.0.0-rc.11

2 years ago

1.0.0-rc.10

2 years ago

1.0.0-rc.3

2 years ago

1.0.0-rc.4

2 years ago

1.0.0-rc.2

2 years ago

1.0.0-rc.1

2 years ago