Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/zcaudate/legacy.build-jotai
Build Jotai and Valtio as Scripts
https://github.com/zcaudate/legacy.build-jotai
Last synced: 30 days ago
JSON representation
Build Jotai and Valtio as Scripts
- Host: GitHub
- URL: https://github.com/zcaudate/legacy.build-jotai
- Owner: zcaudate
- Created: 2021-05-12T09:38:22.000Z (almost 4 years ago)
- Default Branch: master
- Last Pushed: 2021-05-13T05:00:04.000Z (almost 4 years ago)
- Last Synced: 2024-11-14T12:47:42.122Z (3 months ago)
- Language: JavaScript
- Size: 76.2 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Jotai and Valtio
Steps to reconstruct this repo
1. clone jotai and valtio repos
2. pnpm i - to generate esm artifacts
3. copy the .js files over to src/jotai and src/valio folders
4. change the require(….) statements so that files match up
5. run browserify . -d -o bundle.js
6. This is super dumb but gives the outputs I need### Dev
``` javascript
const valtio = require('./valtio')
const valtioUtils = require('./valtio/utils')
const jotai = require('./jotai')
const jotaiUtils = require('./jotai/utils')
const jotaiValtio = require('./jotai/valtio')window.valtio = valtio
window.valtioUtils = valtioUtils
window.jotai = jotai
window.jotaiUtils = jotaiUtils
window.jotaiValtio = jotaiValtio
```