How to use the aurelia-cli.command function in aurelia-cli

To help you get started, we’ve selected a few aurelia-cli examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github aurelia / cli / Aureliafile.sample.js View on Github external
var aurelia = require('aurelia-cli');

  // var awesome = require('aurelia-awesome');
  // aurelia.command(awesome); // register command plug in without configuration
  // aurelia.command(awesomeCommand, {}); //register command plugin with cnfiguration

  aurelia.command('bundle', {
    js: {
      "dist/app-build": {
        modules: [
          '*',
          'aurelia-animator-css',
          'aurelia-bootstrapper',
          'aurelia-router',
          'aurelia-http-client'
        ],
        options: {
          inject: true
        }
      }
   },
    template: {
      "dist/app-build": {
github Foursails / sentry / aureliafile.js View on Github external
inject: true
      }
    }
  },
  template: {
    "dist/app-bundle": {
      pattern: 'dist/*.html',
      options: {
        inject:  true
     }
    }
  }
};

cli.command('bundle', config);
cli.command('unbundle', config);


/*
If you don't like your original `index.html` to be modified and want to have a new index file instead with the template bundle injection, use a bundle configuration like this:
  template: {
    "dist/app-bundle": {
      pattern: 'dist/*.html',
      options: {
        inject: {
          indexFile: 'index.html',
          destFile: 'dest_index.html'
        }
      }
    }
  }
*/
github miguelzakharia / aurelia-google-analytics / aureliafile.js View on Github external
inject: true,
        minify: true
      }
    }
  },
  template: {
    "dist/app-bundle": {
      pattern: ['dist/**/*.html', 'dist/*.html'],
      options: {
        inject:  true
     }
    }
  }
};

cli.command('bundle', config);
cli.command('unbundle', config);
github OdeToCode / aureliaMovies / src / AureliaMovies / aureliafile.js View on Github external
var aurelia = require("aurelia-cli");

aurelia.command("bundle", {
    js: {
        "wwwroot/appbundle": {
            modules: [
              "app", "main", "about/**", "movies/**", "resources/**",
              "aurelia-bootstrapper",
              "aurelia-router",
              "aurelia-http-client",
              "aurelia-validation"
            ],
            options: {
                inject: true
            }
        }
    },
    template: {
        "wwwroot/appbundle": {
github Foursails / sentry / aureliafile.js View on Github external
options: {
        inject: true
      }
    }
  },
  template: {
    "dist/app-bundle": {
      pattern: 'dist/*.html',
      options: {
        inject:  true
     }
    }
  }
};

cli.command('bundle', config);
cli.command('unbundle', config);


/*
If you don't like your original `index.html` to be modified and want to have a new index file instead with the template bundle injection, use a bundle configuration like this:
  template: {
    "dist/app-bundle": {
      pattern: 'dist/*.html',
      options: {
        inject: {
          indexFile: 'index.html',
          destFile: 'dest_index.html'
        }
      }
    }
  }
github miguelzakharia / aurelia-google-analytics / aureliafile.js View on Github external
minify: true
      }
    }
  },
  template: {
    "dist/app-bundle": {
      pattern: ['dist/**/*.html', 'dist/*.html'],
      options: {
        inject:  true
     }
    }
  }
};

cli.command('bundle', config);
cli.command('unbundle', config);
github less / less-preview / Aureliafile.js View on Github external
var aurelia = require('aurelia-cli');

aurelia.command('bundle', {
  js: {
    'dist/app-bundle': {
      modules: [
        '*',
        "aurelia-dependency-injection",
        "aurelia-event-aggregator",
        "aurelia-framework",
        "aurelia-loader-default",
        "aurelia-logging-console",
        "aurelia-templating-binding",
        "aurelia-templating-resources",
        "aurelia-html-template-element",
        "codemirror",
        "polymer/mutationobservers",
        "github:webcomponents/webcomponentsjs@0.6.3/HTMLImports.min",
      ],