All Projects → trimethyl → Trimethyl

trimethyl / Trimethyl

Licence: mit
Titanium toolchain with superpower and wrapper around bugs.

Programming Languages

javascript
184084 projects - #8 most used programming language

Labels

Projects that are alternatives of or similar to Trimethyl

Nodefony Starter
Nodefony Starter Node.js Framework
Stars: ✭ 95 (-5%)
Mutual labels:  framework
Sigma
Rocket powered machine learning. Create, compare, adapt, improve - artificial intelligence at the speed of thought.
Stars: ✭ 98 (-2%)
Mutual labels:  framework
Monkeys
A strongly-typed genetic programming framework for Python
Stars: ✭ 98 (-2%)
Mutual labels:  framework
Capivarajs
✌️ Um novo jeito de criar componentes híbridos.
Stars: ✭ 97 (-3%)
Mutual labels:  framework
Swiftcrossplatformframework
Tutorial to create cross platform framework for Swift compatible with Carthage and SwiftPM
Stars: ✭ 98 (-2%)
Mutual labels:  framework
Quickblox Javascript Sdk
JavaScript SDK of QuickBlox cloud backend platform
Stars: ✭ 98 (-2%)
Mutual labels:  framework
Zui
⬢ Zsh User Interface library – CGI+DHTML-like rapid application development with Zsh
Stars: ✭ 95 (-5%)
Mutual labels:  framework
Material Design For Bootstrap
Important! A new UI Kit version for Bootstrap 5 is available. Access the latest free version via the link below.
Stars: ✭ 9,463 (+9363%)
Mutual labels:  framework
Pine
A modular and lightweight, responsive email framework.
Stars: ✭ 98 (-2%)
Mutual labels:  framework
Arsenal
Extensible Red Team Framework
Stars: ✭ 99 (-1%)
Mutual labels:  framework
Php Bootstrap
Let's start by simple design templates' framework together with the famous bootstrap sexy , and makes it easy to work on PHP language , which is well known as a powerful elephant
Stars: ✭ 97 (-3%)
Mutual labels:  framework
Twig
Twig - less is more's web server for golang
Stars: ✭ 98 (-2%)
Mutual labels:  framework
Locokit
Location, motion, and activity recording framework for iOS
Stars: ✭ 1,353 (+1253%)
Mutual labels:  framework
Rails Disco
Distributed Rails with commands, events and projections.
Stars: ✭ 95 (-5%)
Mutual labels:  framework
Milligram
A minimalist CSS framework.
Stars: ✭ 9,568 (+9468%)
Mutual labels:  framework
Kanbasu
A lightweight CSS framework written in Sass.
Stars: ✭ 94 (-6%)
Mutual labels:  framework
Bc Policy Framework For Github
Policy information for BC Government employees using GitHub
Stars: ✭ 98 (-2%)
Mutual labels:  framework
Aesthetic Css
A vaporwave CSS framework
Stars: ✭ 100 (+0%)
Mutual labels:  framework
Aspnetboilerplate
ASP.NET Boilerplate - Web Application Framework
Stars: ✭ 10,061 (+9961%)
Mutual labels:  framework
Osint San
Framework для сбора данных из открытых источников. В Framework используется большое количество API, их необходимо зарегистрировать самому.​
Stars: ✭ 99 (-1%)
Mutual labels:  framework

image

Trimethyl is a framework we built for our purposes. We built it on top of Appcelerator Titanium.

Most of these modules are proxies for Titanium API, and some of these add missing features or expose useful functions for cross platform development.

Check the API Documentation to see all modules and all methods you can use. If you like Dash Kapeli, download the Dash Kapeli Docset.

For a more descriptive usage, with examples and common use cases, check the wiki.

NPM version NPM downloads

Installation via NPM

NPM

Trimethyl comes with its own package manager for the internal libraries, because we don't want that the final user installs all libraries, but only the one which he uses. For this reason, you have to install it as a global helpers and install all libraries via CLI.

[sudo] npm install -g trimethyl

Installation of libraries

Now you have the CLI command trimethyl. To install your libraries, cd to your Alloy project, and just type:

trimethyl install

If is the first installation, the command will prompt to add the libraries you want to use.

Otherwise, it will perform a re-installation of all libraries configured in the trimethyl.json file.

You can pass these parameters to the install method:

--no-check-downgrade

Do not perform a check if current installation is a downgrade.

--no-check-majorupgrade

Do not perform a check if current installation is a major upgrade.

--native-module-skip

If a library depends on a native module, just skip the installation of the module.

--native-module-add

If a library depends on a native module, just add the native module to the tiapp.xml

--native-module-skip

If a library depends on a native module, try to install the native module via package manager (GITTIO).

Configure libraries

You can specify later (after installation) which libraries you want to add, just type:

trimethyl add {module}

It will add the library to your trimethyl.json file.

Now just type trimethyl install to perform the installation again.

Configuration

Each library reads from the config.json your personal configuration, extending its default.

For example, the module named {Module}, will read the Alloy.CFG.T.{module} object; the submodule {Sub} of {Module}, will read Alloy.CFG.T.{module}.{submodule}.

You can customize the options, editing your config.json file:

{
   "T":{
      "module": {
         "sub": {}
      },
   }
}

For example to set the base URL for the HTTP library, configure the T section just like this:

{
   "T":{
      "http":{
         "base": "http://yourserver.com/api/v1"
       }
    }
}

Initialization of the libraries

The first thing you have to do is, in your app/alloy.js file, to require the framework bootstrap and define a global helper T:

// Global T helper to load internal Trimethyl libraries
var T = function (name) { return require('T/' + name); }

// Bootstrap Trimethyl
T('trimethyl');

Requiring trimethyl using the code T('trimethyl') on startup will bootstrap some important framework files, set prototypes, TSS vars and Alloy.Globals variables.

You have to do that, otherwise some libraries will break up.

Libraries

To use a library, just require with T helper.

var Util = T('util');

It's useful to declare global modules that you'll use in the entire app in the alloy.js file to make them available through the variable name.

Otherwise, just like all CommonJS modules, you can require them later in your controllers.

UIFactory library

The UIFactory library is special library that handle all UI proxies. Thanks to an Alloy feature, you have the ability to create UI objects directly from Alloy Views, using the module keyword. For example:

<Alloy>
	<Window title="Awesome window" module="T/uifactory">
		<TextField module="T/uifactory" />
	</Window>
</Alloy>

Example app

You can check an example app here: https://github.com/caffeinalab/magneto

API Documentation

Please refer to the documentation for full-usage of all APIs.

Dash Kapeli URL

dash-feed://https%3A%2F%2Fraw.githubusercontent.com%2Fcaffeinalab%2Ftrimethyl%2Fmaster%2Fdocset%2FTrimethyl.xml

Copyright and license

Copyright 2014 Caffeina srl under the MIT license.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].