StarLederer / windblade

UnoCSS preset based on Tailwind with multiple improvements
https://starlederer.github.io/windblade
MIT License
14 stars 2 forks source link

can't install your preset #3

Closed jojojojojoj5564656465465 closed 1 year ago

jojojojojoj5564656465465 commented 1 year ago

 ERR_PNPM_FETCH_404  GET https://registry.npmjs.org/unocss-preset-windblade: Not Found - 404

This error happened while installing a direct dependency of /home/manjaro/DEV/astro uno/uno

unocss-preset-windblade is not in the npm registry, or you have no permission to fetch it.

No authorization header was set for the request. Progress: resolved 3, reused 3, downloaded 0, added 0

StarLederer commented 1 year ago

2023-02-17 Update

The preset was released on NPM today! 🎉 You can now follow the regular installation instructions.

Original reply

Thank you for your interest in my preset! It is not done yet and therefore not published on NPM that's why it is giving you the 404 error.

You can still install it in other ways if you want to test it out. I recommend adding it as a git submodule. Here is how you can do it

  1. Remove Windblade from package.json npm remove unocss-preset-windblade
  2. Add this repo as git submodule git submodule add https://github.com/StarLederer/windblade.git or git submodule add https://github.com/StarLederer/windblade.git ./CUSTOM/PATH/TO/windblade

From here you can either build the preset and reference it as a package or add use it buildless.

if you want to use buildless:

  1. Install dependencies of Windblade pnpm add -D typescript ts-extras
  2. Reference the preset by the src path import windblade from './PATH/TO/windblade/unocss/src'
  3. If you want to update, synchronize the submodule to the master branch cd './PATH/TO/windblade' and git pull

If you want to build:

  1. Navigate to the submodule cd './PATH/TO/windblade'
  2. Navigate to the preset directory cd unocss
  3. Install dependencies using pnpm (npm might also work) pnpm i
  4. Build pnpm run build
  5. Reference the preset by the package path import windblade from './PATH/TO/windblade/unocss'
  6. If you want to update, synchronize the submodule to the master branch and rebuild cd './PATH/TO/windblade', git pull and execute steps 2 - 5

I am planning to publish this on NPM this month but would really appreciate you helping me test this preset before that. Please try it out using the steps above and feel free to open new issues if you find bugs or missing features.

StarLederer commented 1 year ago

Please note that after v2.0.0-alpha there is an additional dependencies that you also need to install into your project if you are using Windblade buildless. At this point it is hard to recommend this method

jojojojojoj5564656465465 commented 1 year ago

Would you be abble to add this to Windblade ;

image

StarLederer commented 1 year ago

Please open new issues for new feature requests. I moved this one to #6 and will hide your comment.

StarLederer commented 1 year ago

For those who have been referred to this issue for pre-release installation: You do not need these instructions anymore because the preset is now available on NPM.