Skip to content

Commit

Permalink
Embed bs-css and bs-css-emotion as packages (#352)
Browse files Browse the repository at this point in the history
* Format bs-css as OCaml

* fix interpolation snippets

* Create bsconfigs for bs-css and bs-css-emotion

* Support mult in calc

* Allow calc with one value

* Add all display properties

* Fix linear-gradient rendering

* Fix linear-gradient rendering

* Fix rendering stop lists

* Support gradiends without angle

* Add side or corner

* Add side or corner in Gradient

* Fix angular color stop

* Fix color gradient

* Add bs-platform

* Use npm instead of yarn in ci

* Remove esy.lock

* Fix gridLengthToJs calc type

* Fix withdeps on rescript e2e test

* Fix withdeps on rescript e2e test v10

* Clean raw_literal and commented tests

* Add <line-width> on bs_css

* Fix demo and add example line-width

* Support justifyContent

* Support justifyItems

* Support alignSelf

* Support alignContent

* Support zIndex

* Update snapshots from reason/rescript

* Support flex

* Support flexwith interp

* Install @emotion/css under e2e/r9

* Port to css the flex fns and fix tests

* Add test for flex and interp

* Add flex tests to typecheck

* Skip test (even when it works in local)

* Support font-palette and update snapshot

* Update supported snapshot

* Specify path

* Build before tests
  • Loading branch information
davesnx authored Jul 25, 2023
1 parent 8d3e09b commit e5318b0
Show file tree
Hide file tree
Showing 126 changed files with 23,567 additions and 20,295 deletions.
19 changes: 5 additions & 14 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -136,26 +136,17 @@ jobs:
- name: Grant permission to run ppx
run: chmod +x _build/default/bin/bin.exe

- name: Get cache directory path
id: yarn-cache-dir-path
- name: Install dependencies
working-directory: ./e2e/rescript-v9-JSX3
run: echo "dir=$(yarn cache dir)" >> $GITHUB_OUTPUT

- name: Load global cache
uses: actions/cache@v3
id: yarn-cache
with:
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
key: yarn-${{ matrix.os }}-${{ hashFiles('./e2e/yarn.lock') }}
restore-keys: yarn-${{ matrix.os }}-
run: npm install --force

- name: Install dependencies
- name: Build
working-directory: ./e2e/rescript-v9-JSX3
run: yarn
run: npm run build

- name: Test
working-directory: ./e2e/rescript-v9-JSX3
run: yarn test
run: npm run test

publish:
name: Publish
Expand Down
8 changes: 8 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -81,10 +81,18 @@ test_typecheck: ## Run Typecheck tests
test_css_support: ## Run CSS Support tests
$(DUNE) build @css_support_test

.PHONY: test_css_support_promote
test_css_support_promote: ## Promote CSS Support snapshots
$(DUNE) build @css_support_test --auto-promote

.PHONY: test_ppx_snapshot
test_ppx_snapshot: ## Run ppx snapshot tests
$(DUNE) build @ppx_snapshot_test

.PHONY: test_ppx_snapshot_promote
test_ppx_snapshot_promote: ## Promote ppx snapshot snapshots
$(DUNE) build @ppx_snapshot_test --auto-promote

.PHONY: test_parser
test_parser: ## Run CSS Parser tests
$(DUNE) build @parser_test
Expand Down
Loading

1 comment on commit e5318b0

@vercel
Copy link

@vercel vercel bot commented on e5318b0 Jul 25, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

styled-ppx – ./

styled-ppx.vercel.app
styled-ppx-git-main-davesnx.vercel.app
styled-ppx-davesnx.vercel.app

Please sign in to comment.