
Security News
TypeScript is Porting Its Compiler to Go for 10x Faster Builds
TypeScript is porting its compiler to Go, delivering 10x faster builds, lower memory usage, and improved editor performance for a smoother developer experience.
@astrohaus/freewrite-ui
Advanced tools
React UI library for Astrohaus Freewrite.
The UI Kit comes as an uncompiled TypeScript project. You need to configure your bundler to include
@astrohaus/freewrite-ui
fromnode_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';
// ...
$ npm i
$ npm run storybook
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.
Script | Description |
---|---|
npm run storybook | Starts Storybook development server. |
npm run storybook:build | Builds Storybook for production. |
Script | Description |
---|---|
npm run typecheck | Runs TypeScript and checks typing of source code. |
npm run lint | Runs ESLint and lints all code. |
npm run prettier:format | Runs Prettier and formats all code. |
npm run prettier:check | Runs Prettier and checks all code for bad formatting. |
Script | Description |
---|---|
npm run build | Builds source code of @astrohaus/freewrite-ui , its types and outputs it to lib folder. |
npm run build:src | Builds source code of @astrohaus/freewrite-ui and outputs it to lib folder. |
npm run build:watch-src | Watches source code for changes and builds it on changes. |
npm run build:types | Builds types of source code and outputs them to lib folder. |
npm run build:watch-types | Watches source code for changes and builds types on changes. |
npm run build:watch | Runs build:watch-src and build:watch-types concurrently. |
npm run build:clean | Removes the build output folder (lib ). |
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
FAQs
⌨️ React UI library for Astrohaus Freewrite.
We found that @astrohaus/freewrite-ui demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 open source maintainers collaborating on the project.
Did you know?
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.
Security News
TypeScript is porting its compiler to Go, delivering 10x faster builds, lower memory usage, and improved editor performance for a smoother developer experience.
Research
Security News
The Socket Research Team has discovered six new malicious npm packages linked to North Korea’s Lazarus Group, designed to steal credentials and deploy backdoors.
Security News
Socket CEO Feross Aboukhadijeh discusses the open web, open source security, and how Socket tackles software supply chain attacks on The Pair Program podcast.