This repo acts as a submodule and hosts gulp files shared by many other IoT sample repos.
Перейти к файлу
ZhijunZhao d9eea6a2d0 Enforce camel case naming rule (#41)
* Enforce camel case naming rule

* more cleanup
2016-10-14 13:26:06 +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 initial commit 2016-09-19 09:48:17 +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 Enforce camel case naming rule (#41) 2016-10-14 13:26:06 +08:00
arduino-adafruit-samd-feather-m0.js Zims rebased ssh plus config support (#40) 2016-10-14 10:52:41 +08:00
arduino-adafruit.js add rule to disallow sapce after ; (#38) 2016-10-13 16:37:39 +08:00
arduino-edison.js Zims rebased ssh plus config support (#40) 2016-10-14 10:52:41 +08:00
arduino-esp8266-huzzah.js Zims rebased ssh plus config support (#40) 2016-10-14 10:52:41 +08:00
arduino-esp8266-thingdev.js Zims rebased ssh plus config support (#40) 2016-10-14 10:52:41 +08:00
arduino-esp8266.js add rule to disallow sapce after ; (#38) 2016-10-13 16:37:39 +08:00
arduino-headless.sh initial commit 2016-09-19 09:48:17 +08:00
arduino.js Enforce camel case naming rule (#41) 2016-10-14 13:26:06 +08:00
biHelper.js Enablelint1 (#24) 2016-10-13 13:13:03 +08:00
index.js Zims rebased ssh plus config support (#40) 2016-10-14 10:52:41 +08:00
package.json Enablelint1 (#24) 2016-10-13 13:13:03 +08:00
raspberrypi-c.js Enforce camel case naming rule (#41) 2016-10-14 13:26:06 +08:00
raspberrypi-node.js Enforce camel case naming rule (#41) 2016-10-14 13:26:06 +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