Plugin Development


#1

Hi

I am new to Atom but really like it so far.

I am interested in creating a simple package to start.

Is there a way to run a terminal command when creating a package?
For example, just execute a command on the terminal from the current directory.

I want to make something where you click a button and it will zip the project folder
but any command would do just to get started.

Thanks,
Chris


#2

This is the official tutorial for package creation:

https://atom.io/docs/latest/hacking-atom-package-word-count


#3

See https://github.com/nathanjohnson320/run-command2/blob/master/lib/command-runner.coffee or similar packages. You want to use the BufferedProcess.