mindsphere / mindconnect-nodejs

NodeJS Library for Industrial IoT Connectivity - TypeScript SDK for Industrial IoT - Command Line Interface - Development Proxy - typescript-sdk is waiting for your contributions!
https://developer.siemens.com/industrial-iot-open-source/index.html
MIT License
68 stars 23 forks source link

feat: provide binary versions of the command line interface for windows macos and linux #185

Closed sn0wcat closed 4 years ago

sn0wcat commented 4 years ago

If you have never contributed to open source here is your chance: 😸

[0] Comment on this issue that you will take care of this feature impementation ;) [1] fork the repository (click on the Fork button) [2] Clone it to your local system and install the dependencies by running npm install in the cloned directory. (you will need nodejs in your development environment) [3] Implement the feature

Run npm install pkg --save-dev to install packaging tool in dev environment or add following entry to devDependencies in package.json file:

"pkg": "^4.4.9",

add following entry in package.json at the end of the file:

 "pkg": {
        "assets": "dist/**/*"
    }

add following line in scripts section in package.json

"pkg": "npm run prepare && pkg .",

Add following lines to the end of the .gitignore and and .npmignore file

# pkg files
mindconnect-nodejs-linux
mindconnect-nodejs-macos
mindconnect-nodejs-win.exe

You are done. 🎉 🎶 😸 👍

if you run npm run pkg

the script will produce 3 binaries for linux, macos and windows with command line interface for MindSphere.

[4] Push the changes back to your repository [5] Click the Compare & pull request button. [6] Click Create pull request to open a new pull request.

See also:

https://opensource.com/article/19/7/create-pull-request-github

Hacktoberfest

https://hacktoberfest.digitalocean.com/

Issue-03 commented 4 years ago

Hey @sn0wcat , I would like to work on this. Can you assign it to me?

sn0wcat commented 4 years ago

@Issue-03 sure :)

sn0wcat commented 4 years ago

Excellent job :)