Skip to content

Commit

Permalink
chore: pkg.pr.new (#2862)
Browse files Browse the repository at this point in the history
* init

* lock files

* jotai-optics

* @ant-design/icons

* @ant-design/icons

* jotai-optics

* remove .gitignore files in examples

* revert .gitignore files in examples

* revert .gitignore files in examples

* add a new line

* remove git ignore files

* add new lines

---------

Co-authored-by: Daishi Kato <dai-shi@users.noreply.github.com>
  • Loading branch information
Aslemammad and dai-shi authored Dec 16, 2024
1 parent f186166 commit 2c33fec
Show file tree
Hide file tree
Showing 34 changed files with 6,709 additions and 69,385 deletions.
17 changes: 17 additions & 0 deletions .github/workflows/cr.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: Publish Any Commit

on: [push, pull_request]

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: corepack enable
- uses: actions/setup-node@v4
with:
node-version: 20
cache: 'pnpm'
- run: pnpm install
- run: pnpm build
- run: pnpm dlx pkg-pr-new publish './dist' --compact --template './examples/*'
13 changes: 13 additions & 0 deletions examples/hacker_news/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta name="theme-color" content="#000000" />
<title>Jotai Examples | Hacker News</title>
</head>
<body>
<div id="root"></div>
<script type="module" src="/src/index.tsx"></script>
</body>
</html>
41 changes: 14 additions & 27 deletions examples/hacker_news/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,37 +2,24 @@
"name": "hacker_news",
"version": "2.0.0",
"description": "Demonstrate a news articles with jotai, hit next to see more articles.",
"keywords": [],
"main": "src/index.tsx",
"type": "module",
"scripts": {
"dev": "vite",
"build": "tsc && vite build",
"serve": "vite preview"
},
"dependencies": {
"@react-spring/web": "^9.2.3",
"html-react-parser": "^1.2.6",
"jotai": "^2.0.4",
"react": "^17.0.2",
"react-dom": "^17.0.2",
"react-scripts": "^4.0.3"
"react": "^18.2.0",
"react-dom": "^18.2.0"
},
"devDependencies": {
"@types/react": "^17.0.11",
"@types/react-dom": "^17.0.7",
"typescript": "^4.3.2"
},
"eslintConfig": {
"extends": [
"react-app",
"react-app/jest"
]
},
"scripts": {
"start": "SKIP_PREFLIGHT_CHECK=true react-scripts start",
"build": "react-scripts build",
"test": "react-scripts test --env=jsdom",
"eject": "react-scripts eject"
},
"browserslist": [
">0.2%",
"not dead",
"not ie <= 11",
"not op_mini all"
]
"@types/react": "^18.2.0",
"@types/react-dom": "^18.2.0",
"@vitejs/plugin-react": "^4.0.0",
"typescript": "^5.0.0",
"vite": "^4.0.0"
}
}
Loading

0 comments on commit 2c33fec

Please # to comment.