-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
24 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,5 +16,6 @@ | |
}, | ||
"peerDependencies": { | ||
"vite": "*" | ||
} | ||
}, | ||
"packageManager": "[email protected]+sha512.a6b2f7906b721bba3d67d4aff083df04dad64c399707841b7acf00f6b133b7ac24255f2652fa22ae3534329dc6180534e98d17432037ff6fd140556e2bb3137e" | ||
} |