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

Publishing Basil.js to npm and Github Package Registry #360

Open
ff6347 opened this issue Mar 30, 2020 · 6 comments
Open

Publishing Basil.js to npm and Github Package Registry #360

ff6347 opened this issue Mar 30, 2020 · 6 comments

Comments

@ff6347
Copy link
Member

ff6347 commented Mar 30, 2020

Dear @basiljs/owners
I would love to publish basil.js to npm/gh registry under a scoped package @basiljs/basil.js

Pros:

  • install via npm will not pull all devDependencies (takes quite long)

Any objections?

@ff6347 ff6347 changed the title Publishing Basil.js to npm adn Github Package Registry Publishing Basil.js to npm and Github Package Registry Mar 30, 2020
@trych
Copy link
Contributor

trych commented Mar 30, 2020

What exactly is the purpose of this? Could you explain what the npm/gh registry is and what it is used for? (I know what npm is, but what is the /gh part about?)

@ff6347
Copy link
Member Author

ff6347 commented Mar 30, 2020

but what is the /gh part about?

github has its own package registry now. I think it is a good idea to publish to both. So we can provide alternative installation sources.

Publishing should be done by running a github action on release.

I was playing today with building a yo generator for basil and noted that a npm install basiljs/basil.js#develop -D installs all the development stuff. What we actually need is the basil.js file that's it. With a proper .npmignore we can manage that and don't create clutter.

Also we can run npm install @basiljs/[email protected] which is better then just installing the develop branch.

@trych
Copy link
Contributor

trych commented Mar 30, 2020

Sorry, I still don't understand what I can do with it? Is it an alternative to using git clone or downloading the zip here?

What's a yo generator?

I think for the actual end users we should just provide a download link for the basil.js file on the finished basil site.

@ff6347
Copy link
Member Author

ff6347 commented Mar 30, 2020

Is it an alternative to using git clone or downloading the zip here?

  • It is easier for the build process of the site to install specific versions
  • We can define postinstall scripts
  • We can remove all the development stuff from the installed package
  • We can define prepublish process that does the bundling.

I think for the actual end users we should just provide a download link for the basil.js file on the finished basil site.

It is aimed at pro users who want to do keep track of their used software with proper versioning. We still can provide a link to the latest version from the site but what if someone wants a different version then the latest?

What's a yo generator?

A command line tool that scaffolds projects see --> not important for basil. It's my own thing.

@trych
Copy link
Contributor

trych commented Mar 30, 2020

It is aimed at pro users who want to do keep track of their used software with proper versioning.

Ok, I still don't understand it 100%, but as long as I can keep my current workflows and this is just an alternative with different options, sure, no objections from my side.

@ff6347
Copy link
Member Author

ff6347 commented Mar 31, 2020

Great. The only thing that might change is that we tag a new version more often. :)

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

2 participants