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

How to contribute #809

Open
ghxstweb opened this issue Apr 25, 2023 · 1 comment
Open

How to contribute #809

ghxstweb opened this issue Apr 25, 2023 · 1 comment

Comments

@ghxstweb
Copy link

Not sure if this is the right place, but are the developer's/ maintainers of the atom minimap available to provide some material on how a user might be able to contribute to minimap development? What parts of the code need to be looked at, how to decipher the code, API, etc. Thanks in advance for your help!

@mzivic7
Copy link
Contributor

mzivic7 commented Oct 27, 2024

Here is what I found after digging through source for some time:

  • To setup your environment:
    First install atom/pulsar
    Install npm
    Using npm install parcel: npm install -g parcel
    Parcel will be used to minify code into files inside dist/ directory (with parcel build --target main ./lib/main.js)
    Install dependencies (run inside project directory):

    • atom: apm install --production
    • pulsar: pulsar -p install --production

    Now parcel would throw "build failed" and hint a solution, so edit:
    node_modules/atom-utils-plus/package.json
    and after line 41 ("dependencies":) add "atom": "^1.40.11",
    Again parcel complains that terser-config-atomic is missing, so just remove .terserrc.js file from project directory

  • The relevant code is inside lib/ directory

  • After changes to code in lib/ are made, to rebuild:
    Use parcel to rebuild minified code in dist/,(run inside project directory):
    parcel build --target main ./lib/main.js

  • To manually add it to atom/pulsar for testing/use:
    Remove old minimap package
    Put project directory in [atom/pulsar-home-dir]/packages
    Restart atom/pulsar to reload packages

I hope this will be useful to future contributors.

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