summaryrefslogtreecommitdiffstats
path: root/templates/machine/dragonboard-410c/50_local.conf.inc
diff options
context:
space:
mode:
Diffstat (limited to 'templates/machine/dragonboard-410c/50_local.conf.inc')
-rw-r--r--templates/machine/dragonboard-410c/50_local.conf.inc1
1 files changed, 1 insertions, 0 deletions
diff --git a/templates/machine/dragonboard-410c/50_local.conf.inc b/templates/machine/dragonboard-410c/50_local.conf.inc
new file mode 100644
index 000000000..472592c1f
--- /dev/null
+++ b/templates/machine/dragonboard-410c/50_local.conf.inc
@@ -0,0 +1 @@
+MACHINE = "dragonboard-410c"
/ .highlight .kc { color: #008800; font-weight: bold } /* Keyword.Constant */ .highlight .kd { color: #008800; font-weight: bold } /* Keyword.Declaration */ .highlight .kn { color: #008800; font-weight: bold } /* Keyword.Namespace */ .highlight .kp { color: #008800 } /* Keyword.Pseudo */ .highlight .kr { color: #008800; font-weight: bold } /* Keyword.Reserved */ .highlight .kt { color: #888888; font-weight: bold } /* Keyword.Type */ .highlight .m { color: #0000DD; font-weight: bold } /* Literal.Number */ .highlight .s { color: #dd2200; background-color: #fff0f0 } /* Literal.String */ .highlight .na { color: #336699 } /* Name.Attribute */ .highlight .nb { color: #003388 } /* Name.Builtin */ .highlight .nc { color: #bb0066; font-weight: bold } /* Name.Class */ .highlight .no { color: #003366; font-weight: bold } /* Name.Constant */ .highlight .nd { color: #555555 } /* Name.Decorator */ .highlight .ne { color: #bb0066; font-weight: bold } /* Name.Exception */ .highlight .nf { color: #0066bb; font-weight: bold } /* Name.Function */ .highlight .nl { color: #336699; font-style: italic } /* Name.Label */ .highlight .nn { color: #bb0066; font-weight: bold } /* Name.Namespace */ .highlight .py { color: #336699; font-weight: bold } /* Name.Property */ .highlight .nt { color: #bb0066; font-weight: bold } /* Name.Tag */ .highlight .nv { color: #336699 } /* Name.Variable */ .highlight .ow { color: #008800 } /* Operator.Word */ .highlight .w { color: #bbbbbb } /* Text.Whitespace */ .highlight .mb { color: #0000DD; font-weight: bold } /* Literal.Number.Bin */ .highlight .mf { color: #0000DD; font-weight: bold } /* Literal.Number.Float */ .highlight .mh { color: #0000DD; font-weight: bold } /* Literal.Number.Hex */ .highlight .mi { color: #0000DD; font-weight: bold } /* Literal.Number.Integer */ .highlight .mo { color: #0000DD; font-weight: bold } /* Literal.Number.Oct */ .highlight .sa { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Affix */ .highlight .sb { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Backtick */ .highlight .sc { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Char */ .highlight .dl { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Delimiter */ .highlight .sd { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Doc */ .highlight .s2 { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Double */ .highlight .se { color: #0044dd; background-color: #fff0f0 } /* Literal.String.Escape */ .highlight .sh { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Heredoc */ .highlight .si { color: #3333bb; background-color: #fff0f0 } /* Literal.String.Interpol */ .highlight .sx { color: #22bb22; background-color: #f0fff0 } /* Literal.String.Other */ .highlight .sr { color: #008800; background-color: #fff0ff } /* Literal.String.Regex */ .highlight .s1 { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Single */ .highlight .ss { color: #aa6600; background-color: #fff0f0 } /* Literal.String.Symbol */ .highlight .bp { color: #003388 } /* Name.Builtin.Pseudo */ .highlight .fm { color: #0066bb; font-weight: bold } /* Name.Function.Magic */ .highlight .vc { color: #336699 } /* Name.Variable.Class */ .highlight .vg { color: #dd7700 } /* Name.Variable.Global */ .highlight .vi { color: #3333bb } /* Name.Variable.Instance */ .highlight .vm { color: #336699 } /* Name.Variable.Magic */ .highlight .il { color: #0000DD; font-weight: bold } /* Literal.Number.Integer.Long */
"use strict";
//FIXME in VSC/eslint or add to typings declare function require(v: string): any;

// FIXME: Rework based on
//   https://github.com/iotbzh/app-framework-templates/blob/master/templates/hybrid-html5/gulpfile.js
// AND
//   https://github.com/antonybudianto/angular-starter
// and/or
//   https://github.com/smmorneau/tour-of-heroes/blob/master/gulpfile.js

const gulp = require("gulp"),
    gulpif = require('gulp-if'),
    del = require("del"),
    sourcemaps = require('gulp-sourcemaps'),
    tsc = require("gulp-typescript"),
    tsProject = tsc.createProject("tsconfig.json"),
    tslint = require('gulp-tslint'),
    gulpSequence = require('gulp-sequence'),
    rsync = require('gulp-rsync'),
    conf = require('./gulp.conf');


var tslintJsonFile = "./tslint.json"
if (conf.prodMode) {
    tslintJsonFile = "./tslint.prod.json"
}


/**
 * Remove output directory.
 */
gulp.task('clean', (cb) => {
    return del([conf.outDir], cb);
});

/**
 * Lint all custom TypeScript files.
 */
gulp.task('tslint', function() {
    return gulp.src(conf.paths.tsSources)
        .pipe(tslint({
            formatter: 'verbose',
            configuration: tslintJsonFile
        }))
        .pipe(tslint.report());
});

/**
 * Compile TypeScript sources and create sourcemaps in build directory.
 */
gulp.task("compile", ["tslint"], function() {
    var tsResult = gulp.src(conf.paths.tsSources)
        .pipe(sourcemaps.init())
        .pipe(tsProject());
    return tsResult.js
        .pipe(sourcemaps.write(".", { sourceRoot: '/src' }))
        .pipe(gulp.dest(conf.outDir));
});

/**
 * Copy all resources that are not TypeScript files into build directory.
 */
gulp.task("resources", function() {
    return gulp.src(["src/**/*", "!**/*.ts"])
        .pipe(gulp.dest(conf.outDir));
});

/**
 * Copy all assets into build directory.
 */
gulp.task("assets", function() {
    return gulp.src(conf.paths.assets)
        .pipe(gulp.dest(conf.outDir + "/assets"));
});

/**
 * Copy all required libraries into build directory.
 */
gulp.task("libs", function() {
    return gulp.src(conf.paths.node_modules_libs,
        { cwd: "node_modules/**" })    /* Glob required here. */
        .pipe(gulp.dest(conf.outDir + "/lib"));
});

/**
 * Watch for changes in TypeScript, HTML and CSS files.
 */
gulp.task('watch', function () {
    gulp.watch([conf.paths.tsSources], ['compile']).on('change', function (e) {
        console.log('TypeScript file ' + e.path + ' has been changed. Compiling.');
    });
    gulp.watch(["src/**/*.html", "src/**/*.css"], ['resources']).on('change', function (e) {
        console.log('Resource file ' + e.path + ' has been changed. Updating.');
    });
});

/**
 * Build the project.
 */
gulp.task("build", ['compile', 'resources', 'libs', 'assets'], function() {
    console.log("Building the project ...");
});

/**
 * Deploy the project on another machine/container
 */
gulp.task('rsync', function () {
    return gulp.src(conf.outDir)
        .pipe(rsync({
            root: conf.outDir,
            username: conf.deploy.username,
            hostname: conf.deploy.target_ip,
            port: conf.deploy.port || null,
            archive: true,
            recursive: true,
            compress: true,
            progress: false,
            incremental: true,
            destination: conf.deploy.dir
        }));
});

gulp.task('deploy', gulpSequence('build', 'rsync'));