diff --git a/.github/dependabot.yml b/.github/dependabot.yml
index 9c9c86c3..53e50bd6 100644
--- a/.github/dependabot.yml
+++ b/.github/dependabot.yml
@@ -8,6 +8,6 @@ updates:
- package-ecosystem: "npm" # See documentation for possible values
directory: "/" # Location of package manifests
schedule:
- interval: "daily"
+ interval: "weekly"
commit-message:
prefix: "⬆️"
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index acd96119..94e5c796 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -68,6 +68,8 @@ jobs:
working-directory: packages/squiggle-lang
steps:
- uses: actions/checkout@v2
+ with:
+ fetch-depth: 2
- name: Install dependencies from monorepo level
run: cd ../../ && yarn
- name: Build rescript codebase
@@ -98,7 +100,7 @@ jobs:
uses: creyD/prettier_action@v4.2
with:
dry: true
- prettier_options: --check packages/components
+ prettier_options: --check packages/components --ignore-path packages/components/.prettierignore
components-bundle-build:
name: Components bundle and build
@@ -152,5 +154,7 @@ jobs:
run: cd ../../ && yarn
- name: Build rescript in squiggle-lang
run: cd ../squiggle-lang && yarn build
+ - name: Build components
+ run: cd ../components && yarn build
- name: Build website assets
run: yarn build
diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml
index 2aef3ae3..450e2ab7 100644
--- a/.github/workflows/codeql-analysis.yml
+++ b/.github/workflows/codeql-analysis.yml
@@ -12,12 +12,6 @@
name: "CodeQL"
on:
- push:
- branches:
- - master
- - production
- - staging
- - develop
schedule:
- cron: "42 19 * * 0"
diff --git a/.prettierignore b/.prettierignore
index 54df33a4..903390ad 100644
--- a/.prettierignore
+++ b/.prettierignore
@@ -11,3 +11,4 @@ packages/squiggle-lang/.nyc_output/
packages/squiggle-lang/coverage/
packages/squiggle-lang/.cache/
packages/website/build/
+packages/squiggle-lang/src/rescript/Reducer/Reducer_Peggy/Reducer_Peggy_GeneratedParser.js
diff --git a/README.md b/README.md
index 137fb1cb..dafdc4cc 100644
--- a/README.md
+++ b/README.md
@@ -40,8 +40,6 @@ the packages can be found in `packages`.
- `packages/website` is the main descriptive website for squiggle,
it is hosted at `squiggle-language.com`.
-The playground depends on the components library which then depends on the language. This means that if you wish to work on the components library, you will need to build (no need to bundle) the language, and as of this writing playground doesn't really work.
-
# Develop
For any project in the repo, begin by running `yarn` in the top level
diff --git a/packages/components/.prettierignore b/packages/components/.prettierignore
index 5e03c80e..6639ced4 100644
--- a/packages/components/.prettierignore
+++ b/packages/components/.prettierignore
@@ -1,2 +1,3 @@
dist/
storybook-static
+src/styles/base.css
diff --git a/packages/components/.storybook/preview.js b/packages/components/.storybook/preview.js
index f089c7f9..a128782c 100644
--- a/packages/components/.storybook/preview.js
+++ b/packages/components/.storybook/preview.js
@@ -1,3 +1,15 @@
+import "../src/styles/main.css";
+import "!style-loader!css-loader!postcss-loader!../src/styles/main.css";
+import { SquiggleContainer } from "../src/components/SquiggleContainer";
+
+export const decorators = [
+ (Story) => (
+
{children}
+); + +function InputItem