fuwari icon indicating copy to clipboard operation
fuwari copied to clipboard

I want to enable `bunx(or npx, pnpm create, yarn create) create-fuwari`.

Open L4Ph opened this issue 1 year ago • 7 comments

So I decided to create it. It will probably become a boilerplate with even higher freedom of degree once it's completed.

I'm still in the process of making it, but I'd like to complete it someday.

https://github.com/L4Ph/create-fuwari

L4Ph avatar Oct 28 '24 13:10 L4Ph

The create-fuwari package has been experimentally released. Please test its functionality with npm create fuwari@latest and so on.

https://www.npmjs.com/package/create-fuwari

L4Ph avatar Nov 05 '24 13:11 L4Ph

Thank you for your effort!

I failed to get this to work on my device. I'm unfamiliar with this, so your help might be needed to determine the problem.🥲

saica@DESKTOP-573IMD5:~$ pnpm create fuwari@latest
.local/share/pnpm/store/v3/tmp/dlx-1570  |   +2 +
.local/share/pnpm/store/v3/tmp/dlx-1570  | Progress: resolved 2, reused 2, downloaded 0, added 2, done
✔ Please enter the project name: fuwari
✔ Please enter the site title: Fuwari
✔ Please enter the site subtitle: Demo Site
✔ Please select the language of the site. en
✔ Install Dependencies? yes
Error downloading template: Tarball not found: /home/saica/.cache/giget/gh/saicaca-fuwari/main.tar.gz (offline: true)
Error: Tarball not found: /home/saica/.cache/giget/gh/saicaca-fuwari/main.tar.gz (offline: true)
    at r1 (file:///home/saica/.local/share/pnpm/store/v3/tmp/dlx-1570/node_modules/.pnpm/[email protected][email protected]/node_modules/create-fuwari/dist/index.mjs:38:14007)
    at async n1 (file:///home/saica/.local/share/pnpm/store/v3/tmp/dlx-1570/node_modules/.pnpm/[email protected][email protected]/node_modules/create-fuwari/dist/index.mjs:38:14722)
    at async file:///home/saica/.local/share/pnpm/store/v3/tmp/dlx-1570/node_modules/.pnpm/[email protected][email protected]/node_modules/create-fuwari/dist/index.mjs:38:15291
node:internal/fs/promises:633
  return new FileHandle(await PromisePrototypeThen(
                        ^

Error: ENOENT: no such file or directory, open 'undefined/src/config.ts'
    at async open (node:internal/fs/promises:633:25)
    at async Object.readFile (node:internal/fs/promises:1242:14)
    at async file:///home/saica/.local/share/pnpm/store/v3/tmp/dlx-1570/node_modules/.pnpm/[email protected][email protected]/node_modules/create-fuwari/dist/index.mjs:38:15335 {
  errno: -2,
  code: 'ENOENT',
  syscall: 'open',
  path: 'undefined/src/config.ts'
}

Node.js v21.6.2

saicaca avatar Nov 15 '24 14:11 saicaca

I'm investigating the same issue, but I don't know why it's happening...

It's working fine, so I think it's probably a dependency issue, but I don't know what the problem is...

https://github.com/L4Ph/create-fuwari/issues/1

L4Ph avatar Nov 15 '24 21:11 L4Ph

@saicaca

There was a bug related to tsup (or rather esbuild). I've switched to rslib, so please clone and run the following commands:

git clone https://github.com/L4Ph/create-fuwari.git
cd create-fuwari
pnpm i
pnpm run build
node ./bin/cli.mjs //shebang

and let me know the result.

L4Ph avatar Nov 20 '24 12:11 L4Ph

https://www.npmjs.com/package/create-fuwari

L4Ph avatar Dec 02 '24 11:12 L4Ph

Now that this is somewhat complete, I would like to switch to using create-fuwari as my main project.

Is it okay to modify the document(README.md)? @saicaca

I'd also like to add you as a collaborator, and if necessary, we'd be happy to transfer the repository to you so you could contribute primarily there.

L4Ph avatar Jan 13 '25 12:01 L4Ph

Sorry for the late reply, and thank you so much for your efforts!

I'll update the README later and include this as one of the installation methods. Also, please feel free to add me as a collaborator. Thanks again!

saicaca avatar Jan 16 '25 18:01 saicaca