Giter Club home page Giter Club logo

grunt-forge's Introduction

grunt-forge

Help run forge to compile and run Trigger.io apps.

Installation

Add the following to your package.json.

  "grunt-forge": "git://github.com/MarkBorcherding/grunt-forge.git",

Add the following to your grunt.js.

grunt.loadNpmTasks('grunt-forge');

grunt.initConfig({

  //...

  forge: {
    ios_build: {
      cwd: 'app',
      args: ['build', 'ios'],
      options: {
        username: '[email protected]',
        password: 'your_trigger_password'
      }
    },
    ios_sim: { args: ['run', 'ios'] },
    ios_device: { args: ['run', 'ios', '--ios.device', 'device'] },
    ios_package: { args: ['package', 'ios'] }
  }

  //...

});

You can add whatever tasks you want. It doesn't do anything special other than chain the arguments together and run forge in the directory specified by cwd.

You only need to add the username and password options if their prompts appear when you run forge manually. If the username and password prompts don't appear, it means your machine stored your login cookies at the TriggerToolkit directory (inside build-tools dir).

Filtering

Many of the forge messages are filtered by default and you are left only with the logging messages. You can disable this by setting verbose:true as an option.

Shortcuts

Create shortcut tasks by giving common tasks easy names.

grunt.registerTask("build", 'coffee compass copy forge:ios_build');
grunt.registerTask("sim", 'build forge:ios_sim');
grunt.registerTask("device", 'build forge:ios_device');
grunt.registerTask("package", 'build forge:ios_package');

Output

The tasks add a bit of color to the output. It also eliminates some noise, and tries to reduce the amount of output tto a more manageable amount. If you're not seeing some output, keep that in mind.

As an example, it strips out some device specific path information and leave the more important bits.

grunt-forge's People

Contributors

fjsj avatar markborcherding avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

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.