This repo acts as a submodule and hosts gulp files shared by many other IoT sample repos.
Перейти к файлу
Yuwei Zhou e9a2d75cf9 New adafruit board defination should install arduino samd package (#130) 2017-04-11 10:30:49 +08:00
test/functest Add functional testing for gulp common 2016-10-24 16:25:17 +08:00
.eslintrc Enforce camel case naming rule (#41) 2016-10-14 13:26:06 +08:00
.gitattributes initial commit 2016-09-19 09:48:17 +08:00
.gitignore upgrade to az-iot-bi@0.1.9 (#58) 2016-10-28 10:24:18 +08:00
.travis.yml add .travis.yml file, to enable auto lint through travis CI (#35) 2016-10-13 14:00:46 +08:00
LICENSE added 'use strict' and license 2016-09-24 06:47:03 +08:00
README.md Added stuff to readme file 2016-09-25 08:57:07 +08:00
all.js Add arguments configurable for device and install BME sensor driver when install-tools (#122) 2017-02-09 14:04:41 +08:00
arduino-adafruit-samd-feather-m0.js Fix config issue for M0 board. (#72) 2016-11-07 09:52:28 +08:00
arduino-adafruit.js Remove unnecessary libraries for m0 (#127) 2017-03-06 16:00:34 +08:00
arduino-edison.js Zims rebased ssh plus config support (#40) 2016-10-14 10:52:41 +08:00
arduino-esp8266-huzzah.js Fix gulp common issues for Arduino HUZZAH ESP8266 board. 2016-10-31 16:22:22 +08:00
arduino-esp8266-thingdev.js Fix gulp common issues for Arduino HUZZAH ESP8266 board. 2016-10-31 16:22:22 +08:00
arduino-esp8266.js keep some gulp task for ESP8266 (#121) 2017-01-19 16:40:59 +08:00
arduino.js New adafruit board defination should install arduino samd package (#130) 2017-04-11 10:30:49 +08:00
biHelper.js convert error object to string (#101) 2016-12-02 13:41:41 +08:00
edison-c.js use new azure iot sdk repo for edison (#117) 2016-12-16 16:16:12 +08:00
edison-node.js add X.509 certificate support for Edison (#89) 2016-11-22 17:14:15 +08:00
gateway.js add gateway compile part (#118) 2016-12-26 16:13:23 +08:00
index.js Improve the way of passing params to device app for edison board (#81) 2016-11-16 16:43:13 +08:00
orangepi-c.js Add gulp tasks for Orange Pi (#119) 2016-12-28 14:46:45 +08:00
orangepi-node.js rpi should only check node's least compatible version (#123) 2017-02-20 12:04:16 +08:00
package.json New adafruit board defination should install arduino samd package (#130) 2017-04-11 10:30:49 +08:00
raspberrypi-c-on-device.js Add arguments configurable for device and install BME sensor driver when install-tools (#122) 2017-02-09 14:04:41 +08:00
raspberrypi-c.js fixed rpi c experience bugs (#42) 2016-10-17 15:56:43 +08:00
raspberrypi-node.js rpi should only check node's least compatible version (#123) 2017-02-20 12:04:16 +08:00

README.md

Gulp Common

Introduction

Gulp Common is a helper module providing supporting gulp tasks for building and deployment of applications for various hardware platforms.

Including Gulp Toolchain in an application.

Including gulp tools in sample code directory requires very minimal effort from developer.

First of all appropriate references need to be included in package.json:

    "gulp": "^3.9.1",
    "gulp-common": "Azure/gulp-common.git#release-1.0.11"

Secondly, gulpfile.js shall be created with following content:

    require('gulp-common')(require('gulp'), '<board identifier>');

Currently supported board identifiers:

  • arduino-esp8266-huzzah
  • arduino-esp8266-thingdev
  • arduino-adafruit-samd-feather-m0
  • arduino-edison
  • raspberry-pi-c
  • raspberry-pi-node

Commands Provided by Gulp

Installing Tools

Following command will install tools on either developer's machine and the board.

$ gulp install-tools

In the future it will be possible to specify additional options, for example:

$ gulp install-tools docker

Building Code

Following command will build sample code:

$ gulp build

Command is not applicable to Node.js.

Deploying Code / Binary

Following command will deploy Node.js source code or C/C++ executable to the board:

$ gulp deploy

Command is not applicable to Node.js.

Running Code

Following command will execute Node.js application or C/C++ executable:

$ gulp run

Command can be executed with debug parameter to start applicatin in debugging mode:

$ gulp run debug