GithubHelp home page GithubHelp logo

isabella232 / grunt-crosswalk Goto Github PK

View Code? Open in Web Editor NEW

This project forked from crosswalk-project/grunt-crosswalk

0.0 0.0 0.0 29 KB

A grunt plugin for packaging crosswalk apps on android.

Home Page: https://www.npmjs.com/package/grunt-crosswalk

License: Apache License 2.0

JavaScript 100.00%

grunt-crosswalk's Introduction

grunt-crosswalk

grunt-crosswalk is a grunt plugin for packaging applications into an apk so they can be installed on an android device. It builds on top of the crosswalk-app-tools.

License

Apache version 2, copyright Intel Corporation Ltd. See LICENSE for more details.

Contributing

Bug reports and feature requests are encouraged: please use the [github issue tracker for the project] (https://github.com/crosswalk-project/grunt-crosswalk/issues) to file them.

If you are interested in contributing code to the project, please see the HACKING.md file. Pull requests should be targeted at the master branch.

Getting started

To use grunt-crosswalk in your own project, install it with:

npm install grunt-crosswalk --save-dev

Once the plugin has been installed, enable it with a line of JavaScript in your Gruntfile.js:

module.exports = function (grunt) {
  grunt.loadNpmTasks('grunt-crosswalk');

  // grunt.initConfig({ ... }) etc.
};

grunt-crosswalk has been tested on:

  • Ubuntu Linux (64bit)

Dependencies

grunt-crosswalk depends on the [crosswalk-app-tools] (https://github.com/crosswalk-project/crosswalk-app-tools) and shares its dependencies.

General configuration

The Android SDK should be installed and setup up correctly, particularly the 'android' command should be in the PATH.

Tasks

You can list options in the crosswalk target.

Example Gruntfile.js

  grunt.initConfig({
    ...
    packageInfo: grunt.file.readJSON('package.json'),
    ...
    crosswalk: {
      options: {
        verbose: true, // informative output, otherwise quiet

        debug: false, // includes output of rm and cp commands (-v option)

        version: '<%= packageInfo.version %>',

        // display name for the app on the device;
        // the sanitisedName used to construct the Locations object later
        // is derived from this
        name: '<%= packageInfo.name %>',

        // package for the app's generated Java files; this works best if
        // you have at least one period character between two character
        // strings, and no digits
        pkg: 'org.org01.webapps.<%= packageInfo.name.toLowerCase() %>',

        // the icon used in the android launcher/etc
        icon: 'icon_128.png',

        // path to the directory containing your HTML5 app;
        // note that this must use the correct path separators for your
        // platform: Windows uses '\\' while Linux uses '/'
        appRoot: 'build/apk'
      },
     }
      ...
    },
    ...
  }

grunt-crosswalk's People

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.