Socket
Socket
Sign inDemoInstall

@astrohaus/freewrite-ui

Package Overview
Dependencies
Maintainers
3
Versions
46
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@astrohaus/freewrite-ui

⌨️ React UI library for Astrohaus Freewrite.


Version published
Maintainers
3
Created
Source

Freewrite UI

React UI library for Astrohaus Freewrite.

🧰 Tech Stack

Core

  • React
  • TypeScript
  • Vanilla-extract
  • Radix

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

Keywords

FAQs

Package last updated on 06 Sep 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc