renamed packages to @quri prefix
This commit is contained in:
parent
3449c93bcb
commit
d9b2da1b13
|
@ -1,6 +1,35 @@
|
||||||
# Squiggle Components
|
# Squiggle Components
|
||||||
|
This package contains all the components for squiggle. These can be used either as a library or hosted as a [storybook](https://storybook.js.org/).
|
||||||
|
# Build for development
|
||||||
|
|
||||||
This package contains all the components for squiggle. These can be used either
|
You need to _prepare_ by building and bundling `squiggle-lang`
|
||||||
as a library or hosted as a [storybook](https://storybook.js.org/).
|
``` sh
|
||||||
|
cd ../squiggle-language
|
||||||
|
yarn
|
||||||
|
yarn build
|
||||||
|
yarn bundle
|
||||||
|
```
|
||||||
|
If you've otherwise done this recently you can skip those.
|
||||||
|
|
||||||
To run the storybook, run `yarn` then `yarn storybook`.
|
Then, you can install dependencies
|
||||||
|
``` sh
|
||||||
|
cd packages/components
|
||||||
|
yarn
|
||||||
|
```
|
||||||
|
|
||||||
|
Run a development server
|
||||||
|
|
||||||
|
``` sh
|
||||||
|
yarn start
|
||||||
|
```
|
||||||
|
|
||||||
|
And build artefacts for production,
|
||||||
|
|
||||||
|
``` sh
|
||||||
|
yarn bundle # builds components library
|
||||||
|
yarn build # builds storybook app
|
||||||
|
```
|
||||||
|
|
||||||
|
## TODO: double check if `tsc && webpack` is redundantly equivalent to `webpack`. (Edit job step name in `ci.yaml` if you edit the script).
|
||||||
|
|
||||||
|
## TODO: test coverage for react code
|
||||||
|
|
|
@ -26,10 +26,10 @@
|
||||||
"webpack-cli": "^4.9.2"
|
"webpack-cli": "^4.9.2"
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"storybook": "cross-env REACT_APP_FAST_REFRESH=false && start-storybook -p 6006 -s public",
|
"start": "cross-env REACT_APP_FAST_REFRESH=false && start-storybook -p 6006 -s public",
|
||||||
"build-storybook": "build-storybook -s public",
|
"build": "build-storybook -s public",
|
||||||
"package": "tsc",
|
"bundle": "tsc && webpack",
|
||||||
"ci": "yarn package"
|
"all": "yarn build && yarn bundle"
|
||||||
},
|
},
|
||||||
"eslintConfig": {
|
"eslintConfig": {
|
||||||
"extends": [
|
"extends": [
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
import { FC, useState } from "react"
|
import { FC, useState } from "react"
|
||||||
import { SquiggleChart } from "@squiggle/components"
|
import { SquiggleChart } from "@quri/squiggle-components"
|
||||||
import { CodeEditor } from "./CodeEditor"
|
import { CodeEditor } from "./CodeEditor"
|
||||||
import { Form, Input, Card, Row, Col } from "antd"
|
import { Form, Input, Card, Row, Col } from "antd"
|
||||||
import { css } from '@emotion/react'
|
import { css } from '@emotion/react'
|
||||||
|
|
Loading…
Reference in New Issue
Block a user