Skip to content

Commit fd15540

Browse files
jycouettechniq
andauthored
monorepo & create-svelte-ux (#119)
* ♻️ MOVE: all files to packages/svelte-ux * 🚧 NEW: packages create & eslint * ♻️ UPDATE: move back changeset * 🚸 UPDATE: rootpart * add lock * 🎨 UPDATE: prettier * 🚸 UPDATE: tentative * 🚸 NEW: few tips * 🚧 RENAME: oups! * 🚧 RENAME: oups! * 💥 REMOVE: eslint for now * Refine README for pnpm * Fix URL and refine build script name * Refine intro name * Rename "demo-light" template to "basic" * Add changeset * Use actions/setup-node * Setup pnpm for github CI aciton * Add packageManager to package.json for `pnpm/action-setup` github action * Simplify basic template * Tweak create-svelte-ux README * ".gitignore" in templates is not copied in npm, Renames to .meta.gitignore and rename on copy process * clean hardcoded version👍 * Add startup template * Improve about page * Rename basic template to minimal * Change svelte-ux package version in create-svelte-ux to use "workspace:*" instead of explicit version * Use "latest" instead of "workspace:*" for version to allow using with SvelteLab/StackBlitz/etc --------- Co-authored-by: Sean Lynch <techniq35@gmail.com>
1 parent 52c262e commit fd15540

499 files changed

Lines changed: 13000 additions & 12462 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.changeset/tall-weeks-shout.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'svelte-ux': minor
3+
---
4+
5+
Setup as monorepo using pnpm workspace and add `create-svelte-ux` package (`npm create svelte-ux`)

.gitattributes

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
* text=auto

.github/workflows/ci.yml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,12 @@ jobs:
2020

2121
steps:
2222
- uses: actions/checkout@v3
23-
- name: Use Node.js ${{ matrix.node-version }}
24-
uses: actions/setup-node@v3
23+
- uses: pnpm/action-setup@v2.2.4
24+
- uses: actions/setup-node@v3
2525
with:
2626
node-version: ${{ matrix.node-version }}
27-
cache: 'npm'
28-
- run: npm ci
29-
- run: npm run test:unit
27+
cache: pnpm
28+
- run: pnpm install --frozen-lockfile
29+
- run: pnpm test:unit
30+
env:
31+
CI: true

.gitignore

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
1-
.DS_Store
2-
node_modules
3-
/build
4-
/.svelte-kit
5-
/package
6-
/dist
7-
/.vercel
1+
node_modules/
2+
dist/
3+
tsconfig.tsbuildinfo
4+
coverage/
5+
.next/
6+
.idea/
7+
.svelte-kit/
8+
.env
9+
10+
test-*

.npmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
engine-strict=true

LICENSE

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
The MIT License (MIT)
2-
31
Copyright (c) 2021 Sean Lynch
42

53
Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -18,4 +16,4 @@ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
1816
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
1917
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
2018
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21-
THE SOFTWARE.
19+
THE SOFTWARE.

README.md

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,48 @@ The components are built using Tailwind with extensibility and customization in
1414

1515
See also [LayerChart](https://layerchart.com) for a large collection of composable chart components to build a wide range of visualizations.
1616

17+
## Contributing
18+
19+
### Install dependencies
20+
21+
```
22+
pnpm i
23+
```
24+
25+
### Run dev server for `svelte-ux` package
26+
27+
```
28+
cd packages/svelte-ux
29+
pnpm dev
30+
```
31+
32+
### Run test for `svelte-ux` package
33+
34+
```
35+
cd packages/svelte-ux
36+
pnpm test:unit
37+
```
38+
39+
### Run tests for all packages
40+
41+
```
42+
pnpm -r test:unit
43+
```
44+
45+
### Run a script from the root
46+
47+
```
48+
pnpm -F svelte-ux dev
49+
```
50+
1751
## Publishing
1852

1953
- `npm run changeset` for each changelog worthy change
2054
- `npm run version` to bump `package.json` version based on changesets, materialize changesets into CHANGELOG.md
2155
- Commit as `Version bump to x.y.z` (TODO: automate)
2256
- `npm run publish` to publish version to npm
2357
- `git push --tags` to publish tags to Github
58+
59+
```
60+
61+
```

0 commit comments

Comments
 (0)