Skip to content

Commit

Permalink
fix #14
Browse files Browse the repository at this point in the history
  • Loading branch information
pagoru committed Sep 16, 2024
1 parent 92cada3 commit ab739f8
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 6 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,9 @@ jobs:

- run: yarn build

- name: Publish package
run: npx jsr publish --allow-dirty

- run: npm publish --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
19 changes: 14 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,23 @@

## Use in a project with vite

## Link vite-tulip to the vite library
### JSR
1. Add a file `.npmrc` with `@jsr:registry=https://npm.jsr.io`
2. And add to the `package.json` -> `"@tu/vite-tulip-plugin": "npm:@jsr/tu__vite-tulip-plugin@latest"`
3. Run `yarn` on the project

### NPM
1. Run `yarn add @tulib/tulip` on the project

## Development use of vite-tulip-plugin

### Link vite-tulip to the vite library
1. `yarn` the project
2. `yarn link` the project
3. Go to the `tulipjs/tulip` project
4. Run `yarn link "@tulib/vite-tulip"`

## Build project
4. Run `yarn link "@tulib/vite-tulip-plugin"`

### Build project
1. `yarn install --frozen-lockfile` the project
2. `yarn install -g esbuild`
3. `yarn build`
3. `yarn build`
5 changes: 5 additions & 0 deletions jsr.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"name": "@tu/vite-tulip-plugin",
"version": "0.0.0",
"exports": "./plugin.ts"
}
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,6 @@
},
"peerDependencies": {
"vite": "*"
}
},
"packageManager": "[email protected]+sha512.a6b2f7906b721bba3d67d4aff083df04dad64c399707841b7acf00f6b133b7ac24255f2652fa22ae3534329dc6180534e98d17432037ff6fd140556e2bb3137e"
}

0 comments on commit ab739f8

Please sign in to comment.