Skip to content

Commit 33d6e72

Browse files
authored
Merge pull request #1 from jsrepojs/initial
2 parents b479def + f5a5bc3 commit 33d6e72

File tree

91 files changed

+7497
-2
lines changed

Some content is hidden

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

91 files changed

+7497
-2
lines changed

.changeset/config.json

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
"$schema": "https://unpkg.com/@changesets/config@3.1.1/schema.json",
3+
"changelog": [
4+
"@svitejs/changesets-changelog-github-compact",
5+
{ "repo": "jsrepojs/example-marketplace" }
6+
],
7+
"commit": false,
8+
"fixed": [],
9+
"linked": [],
10+
"access": "restricted",
11+
"baseBranch": "main",
12+
"updateInternalDependencies": "patch",
13+
"ignore": []
14+
}

.changeset/flat-carpets-bow.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'example-marketplace': patch
3+
---
4+
5+
initial release

.github/workflows/ci.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: CI
2+
3+
on:
4+
pull_request:
5+
branches: [main]
6+
7+
jobs:
8+
CI:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v4
12+
- uses: pnpm/action-setup@v4
13+
- uses: actions/setup-node@v4
14+
with:
15+
node-version: '20'
16+
17+
- name: Install dependencies
18+
run: pnpm install
19+
20+
- name: Lint
21+
run: pnpm lint
22+
23+
- name: Check
24+
run: pnpm check
25+
26+
- name: Build Registry
27+
run: pnpm build:registry

.github/workflows/publish.yml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: Publish
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
concurrency: ${{ github.workflow }}-${{ github.ref }}
9+
10+
jobs:
11+
release:
12+
name: Build & Publish Release
13+
if: github.repository == 'ieedan/shadcn-svelte-extras'
14+
runs-on: ubuntu-latest
15+
16+
steps:
17+
- uses: actions/checkout@v4
18+
- uses: pnpm/action-setup@v4
19+
- uses: actions/setup-node@v4
20+
with:
21+
node-version: '20'
22+
cache: pnpm
23+
24+
- name: Install dependencies
25+
run: pnpm install
26+
27+
- name: Kit Sync
28+
run: pnpm sync
29+
30+
- name: Create Release Pull Request or Publish
31+
id: changesets
32+
uses: changesets/action@v1
33+
with:
34+
commit: 'chore(release): version package'
35+
title: 'chore(release): version package'
36+
publish: pnpm ci:release
37+
env:
38+
JSREPO_TOKEN: ${{ secrets.JSREPO_TOKEN }}
39+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
40+
NODE_ENV: production

.gitignore

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
node_modules
2+
3+
# Output
4+
.output
5+
.vercel
6+
.netlify
7+
.wrangler
8+
/.svelte-kit
9+
/build
10+
11+
# OS
12+
.DS_Store
13+
Thumbs.db
14+
15+
# Env
16+
.env
17+
.env.*
18+
!.env.example
19+
!.env.test
20+
21+
# Vite
22+
vite.config.js.timestamp-*
23+
vite.config.ts.timestamp-*

.npmrc

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

.prettierignore

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# Package Managers
2+
package-lock.json
3+
pnpm-lock.yaml
4+
yarn.lock
5+
bun.lock
6+
bun.lockb

.prettierrc

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{
2+
"useTabs": true,
3+
"singleQuote": true,
4+
"trailingComma": "none",
5+
"printWidth": 100,
6+
"plugins": ["prettier-plugin-svelte", "prettier-plugin-tailwindcss"],
7+
"overrides": [
8+
{
9+
"files": "*.svelte",
10+
"options": {
11+
"parser": "svelte"
12+
}
13+
}
14+
]
15+
}

README.md

Lines changed: 35 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,35 @@
1-
# example-marketplace
2-
An example of how to monetize your components on the jsrepo.com marketplace.
1+
# @example/marketplace
2+
3+
> Don't purchase this as it is just an example. Unless of course you want to support jsrepo.com ❤️
4+
5+
This is an example of how you might monetize a jsrepo registry on the [jsrepo.com](https://www.jsrepo.com) marketplace.
6+
7+
## Getting Started
8+
9+
1. Create an account on [jsrepo.com](https://www.jsrepo.com/login)
10+
11+
2. Link your account on Stripe Connect by navigating to your [account settings](https://www.jsrepo.com/account/settings) and clicking on `Connect Account`
12+
13+
3. Create an [access token](https://www.jsrepo.com/account/access-tokens) or authenticate to the CLI
14+
15+
```sh
16+
jsrepo auth
17+
```
18+
19+
4. Update your build config with the `access` key set to `marketplace`
20+
21+
```json
22+
{
23+
"access": "marketplace"
24+
}
25+
```
26+
27+
5. Publish to jsrepo.com
28+
29+
```sh
30+
jsrepo publish
31+
```
32+
33+
5. Setup pricing for your registry under the `pricing` tab.
34+
35+
6. List your registry on the marketplace by switching `List on Marketplace` on in the settings for your registry.

components.json

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{
2+
"$schema": "https://next.shadcn-svelte.com/schema.json",
3+
"tailwind": {
4+
"css": "src/app.css",
5+
"baseColor": "zinc"
6+
},
7+
"aliases": {
8+
"components": "$lib/components",
9+
"utils": "$lib/utils/utils",
10+
"ui": "$lib/components/ui",
11+
"hooks": "$lib/hooks",
12+
"lib": "$lib"
13+
},
14+
"typescript": true,
15+
"registry": "https://next.shadcn-svelte.com/registry"
16+
}

0 commit comments

Comments
 (0)