Code Monkey home page Code Monkey logo

magnium's Introduction

Magnium CLI

Magnium is a Command Line Tool and Framework for building Titanium based mobile applications using ES6.

Prerequisites

The Magnium Framework and associated CLI depends on an installed and working version of Axway's Appcelerator Titanium. You will need to ensure that the Titanium CLI is installed, visit Appcelerator for more information.

To test if the Titanium CLI is installed and working just type

ti --help

in a terminal.

Installation

[sudo] npm install -g magnium

Using Magnium

Magnium provides a simple framework that allows Titanium projects to be written using ES6. It does this by using it's own custom project structure that is transpiled into a standard Titanium classic project that can then be run on simulator, device or compiled for distro using the Titanium CLI. Below is a quick overview of the steps to do this, all commands should be run in a Terminal.

NB: 08 Feb 2019: this has only been tested on a MAC currently and is just an overview of how to get a project up and running

  • Open a Terminal and create a new directory (mkdir magnium)
  • cd to that directory and initialise the magnium workspace (magnium-init)
  • Create a new magnium project called helloworld (magnium-create --name helloworld)
  • Use magnium to generate a standard Ttanium project (magnium-build --name helloworld)

The result of this should be a subdirectory named titanium that will have a complete project in. To test it just run the following Ti CLI command.

for iOS

ti build -p ios --log-level info -d titanium

for Android

ti build -p android --log-level info -d titanium --device-id

[adding --device-id allows you to select an emulator]

This should build and run the project in a simulator/emulator if all the other steps completed satisfactorily.

More Detail

For more detailed information of Magnium and it's use see the wiki here

magnium's People

Watchers

Brenton House 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.