Other Essential Documents

snapcraft.yaml

Here is an example of the snapcraft.yaml (apt-get packages can go under stage-packages)

name: ei-mms
version: '0.1.1'
summary: ei-mms
description: |
ei-mms
confinement: strict
grade: stable
parts:
ei-mms:
plugin: nodejs
source: .
stage-packages:
- libusb-dev
- libudev-dev
- libusb-1.0-0-dev
apps:
ei-mms:
command: bin/ei-mms
daemon: simple

package.json

Here is an example of the package.json (npm packages can go under dependencies)

{
"name": "ei-mms",
"version": "0.1.1",
"repository": "https://github.com/motebus/ei-mms.git",
"main": "index.js",
"bin": "index.js",
"license": "MIT",
"dependencies": {
"motechat": "^1.5.9",
"node-hid": "^0.7.9"
}
}