unkit icon indicating copy to clipboard operation
unkit copied to clipboard

feat: nuxt module

Open ineshbose opened this issue 2 years ago • 5 comments

https://github.com/ineshbose/nuxt-unjs-module/issues/4

(Let me know if you were thinking to convert to monorepo with unkit/nuxt as a separate package)

ineshbose avatar Feb 01 '23 14:02 ineshbose

@pi0 - seeking advice on how to approach the build for this! (Please check my message on Discord)

ineshbose avatar Feb 07 '23 14:02 ineshbose

Thanks for PR dear @ineshbose. Sorry i am busy till weekend. Will check ASAP.

pi0 avatar Feb 08 '23 12:02 pi0

Lately I've been thinking of composables like useScule('camelCase', 'my-string'), with the first argument as function name and second (onwards) as input. This may not be good for variable argument sizes unfortunately.

ineshbose avatar Mar 07 '23 11:03 ineshbose

The idea I think I should sit on:

  1. Use star-imports for module instead, like:
addImports({ name: '*', as: 'scule', from: 'scule' })

// then it would be used as
scule.camelCase('hello-world')

removing a lot of unnecessary complexities. Usage would be documented into the README.

  1. Keep nuxt-module code in nuxt/ rather than src/nuxt/ as I'm unsure how to configure unbuild (with the usage of nuxt-module-builder)

I'll rework the PR at the earliest (est. ~6th May; have a lot going at the moment) 🙂

ineshbose avatar Apr 17 '23 19:04 ineshbose

I see there is a $ prefix defined.

Could you update the readme to show the usage please?

atinux avatar May 19 '23 08:05 atinux

(closing this, we can definitely discuss this at a much better/easier time)

ineshbose avatar May 30 '24 18:05 ineshbose