-
Notifications
You must be signed in to change notification settings - Fork 145
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
satellite.min.js #80
Comments
You should install
or
and then find Another option is to clone the repository, install dependencies and build it manually (find the results in git clone git@github.com:shashwatak/satellite.js
cd satellite.js
npm install
npm run build |
This was super helpful! Might be worth adding to the readme. Is there a reason why the satellite.js and satellite.min.js files are not included on the releases page or that the dist folder is not shown on github? I don't have a ton of familiarity with npm and yarn, but usually see a dist folder available on other projects. @ezze - you're doing an amazing job keeping this library modern! Not meant to be a complaint. I am asking to help the other idiots like me figure out how it all works. |
@thkruz Thanks for your question, mate! The reason why The source code located in
Back to your question, only Therefore, package managers are here to help. Git is for the sources, npm registry is for the distribution! Nowadays, most of JS developers (backend and frontend) use it to publish and install the packages by a single console command:
or
or even
It's a common practice, as I see. If you are a frontend developer supporting some legacy code the best and simpliest way to use the library is to copy <script src="node_modules/satellite.js/dist/satellite.min.js"></script> but usually it's not how you want to organize the code. It's possible to write frontend source code in ES6+, moreover, some popular frontend libraries (such as React.js) introduce custom language extensions (such as JSX) or improve development experience with TypeScript (by the way, thanks to @kylegmaxwell we have TypeScript definitions for Not sure that we should put everything above in |
@ezze amazing answer. As someone who learned javascript as a hobby, the ES6+ stuff has been in the "I should really get around to learning that stuff" category and I think you just gave me a huge push. I will make the PR this week with some info from here and a link back to the full explanation. Thank you! |
I saw on the readme page that there is support for script tag, but I cant find the satellite.min.js anywhere, does anybody know where to find it or download it?
The text was updated successfully, but these errors were encountered: