Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Do you plan to release this on npm? #38

Open
rememberlenny opened this issue May 12, 2020 · 5 comments
Open

Do you plan to release this on npm? #38

rememberlenny opened this issue May 12, 2020 · 5 comments

Comments

@rememberlenny
Copy link
Contributor

No description provided.

@rememberlenny
Copy link
Contributor Author

More background here. I'm currently using samsa-core installed through package.json and imported in the files accessing the SamsaFont method. Its possible to call the library from a direct github reference, but an npm release would be useful for others.

@Lorp
Copy link
Owner

Lorp commented May 13, 2020

Someone else asked about this a while ago. It’ll happen.

@kontur
Copy link

kontur commented May 23, 2022

🤞

@Lorp
Copy link
Owner

Lorp commented May 26, 2022

Hi @kontur, @rememberlenny: can you advise the best way to make this happen?

@kontur
Copy link

kontur commented May 27, 2022

Hey @Lorp I've only published one package myself, but it's rather straight forward. You need an npm account and the publishing and updating happens straight from the console via npm commands. You already have a package.json, so it's just getting it registered to npm. This should be an exhaustive guide.

That would make installing code to other projects more easy, and doesn't enforce any kind of module or other structure to the package per se. The other day I've tried to use Samsa standalone to parse and extract some SVGs, with moderate success. The standalone sample with the linked files works, but I couldn't get it to work when importing e.g. to a browserify/babel compile pipeline. I'll try that some more next week and report back (in a separate issue) if that yields some other suggestions on how to make your excellent code more reusable — also quite likely I just don't know how to properly set it up :D I do think though that samsa-core has some globals floating around that are then missing when importing the module to projects.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants