alloy
DefinitelyTyped icon, indicating that this package has TypeScript declarations provided by the separate @types/alloy package

2.1.0 • Public • Published

Alloy

Alloy is an MVC application framework by TiDev for the Titanium SDK.

Getting Started

  • Quick Start Guide that covers everything from installation to building your first app with Alloy.
  • Complete collection of Alloy Guides
  • Collection of sample apps showing various aspects of Alloy in practice.

Installation

from npm:

# install the latest stable
[sudo] npm install -g alloy

# install a specific version
[sudo] npm install -g alloy@1.4.1

# install cutting edge directly from github
[sudo] npm install -g git://github.com/tidev/alloy.git

Running Sample Test Apps

Alloy includes many sample and test apps in the sample/apps folder (see above). For example, basics/simple. You can run these in a few different ways:

A) With a regular Alloy installation

Beginning with Alloy 1.6, you can do the following:

# first, create a Titanium Classic project
titanium create --name yourAppName
cd yourAppName

# then, convert it to an Alloy project, using the test app as a template
alloy new . --testapp basics/simple

B) By cloning the repo and using the Jake test runner

# first, clone the repo
git clone https://github.com/tidev/alloy.git
cd alloy

# install jake globally
[sudo] npm install -g jake

# install alloy globally from the cloned repo
[sudo] npm install -g .

# install alloy's local testing dependencies
npm install

# run a test app
jake app:run dir=basics/simple

Additional Notes on Jake

  • See the jake readme for information on using jake including the arguments and flags it accepts.
  • on OSX or Linux
    • Try using sudo with the jake command if you run into permission errors.
  • on Windows
    • Don't run jake from within a user folder (i.e. C:\Users\tony\alloy), as you can get all kinds of non-obvious permissions failures from the child processing Alloy does. Your safest bet is to just git clone right to C:\alloy.
    • Node.js has an issue piping output between node processes on Windows. I've tried to workaround as best I can. You may still see errors pop up, so it's suggested that if you run the automated testing via jake test:all or npm test, you do so on a non-Windows OS to ensure there's no red herring failures until the aforementioned node.js issue is resolved.
    • If you decide to ignore my advice and run the tests anyway on Windows, make sure that if you imported the Harness into TiStudio that you don't have TiStudio running. Windows creates locks on key files in that project that are necessary for the testing process. It will make tests fail erroneously.
    • If you're still that stubborn, are running the test suite on Windows, and you're getting those intermittent, erroneous errors, try running them one spec at a time. Instead of doing jake test:all, do jake test:spec[SPEC_NAME], where SPEC_NAME is JS file in the test specs folder.

Contributing

Interested in contributing? There are several ways you can help contribute to this project.

New Features, Improvements, Bug Fixes, & Documentation

Source code contributions are always welcome! Before we can accept your pull request, you must sign a Contributor License Agreement (CLA). Please visit https://tidev.io/contribute for more information.

Donations

Please consider supporting this project by making a charitable donation. The money you donate goes to compensate the skilled engineeers and maintainers that keep this project going.

Code of Conduct

TiDev wants to provide a safe and welcoming community for everyone to participate. Please see our Code of Conduct that applies to all contributors.

Security

If you find a security related issue, please send an email to security@tidev.io instead of publicly creating a ticket.

Stay Connected

For the latest information, please find us on Twitter: Titanium SDK and TiDev.

Join our growing Slack community by visiting https://slack.tidev.io

Legal

Titanium is a registered trademark of TiDev Inc. All Titanium trademark and patent rights were transferred and assigned to TiDev Inc. on 4/7/2022. Please see the LEGAL information about using our trademarks, privacy policy, terms of usage and other legal information at https://tidev.io/legal.

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
1.1.0-beta01.1.0-beta
1.1.0-alpha01.1.0-alpha
1.0.0-cr01.0.0-cr
2.1.0326latest
1.2.0-alpha431.2.0-alpha4
1.1.1-alpha31.1.1-alpha
1.2.0-alpha211.2.0-alpha2
1.1.0-cr11.1.0-cr
1.6.201.6.2
1.6.0-beta401.6.0-beta4
1.6.0-beta201.6.0-beta2
1.5.1-rc01.5.1-rc
1.5.0-rc501.5.0-rc5
1.5.0-rc301.5.0-rc3
1.5.0-rc201.5.0-rc2
1.5.0-beta201.5.0-beta2
1.4.1-rc01.4.1-rc
1.4.0-rc501.4.0-rc5
1.4.0-rc401.4.0-rc4
1.4.0-rc301.4.0-rc3
1.4.0-rc01.4.0-rc
1.4.0-alpha301.4.0-alpha3
1.4.0-alpha201.4.0-alpha2
1.4.0-alpha01.4.0-alpha
1.3.1-cr301.3.1-cr3
1.3.1-cr201.3.1-cr2
1.3.1-cr01.3.1-cr
1.3.1-beta401.3.1-beta4
1.3.1-beta301.3.1-beta3
1.3.1-beta201.3.1-beta2
1.3.1-beta01.3.1-beta
1.3.1-alpha01.3.1-alpha
1.3.0-cr201.3.0-cr2
1.3.0-cr01.3.0-cr
1.3.0-alpha701.3.0-alpha7
1.3.0-alpha601.3.0-alpha6
1.3.0-alpha01.3.0-alpha
1.2.2-cr01.2.2-cr
1.2.1-cr201.2.1-cr2
1.2.1-cr01.2.1-cr
1.2.0-alpha601.2.0-alpha6
1.2.0-alpha501.2.0-alpha5
1.2.0-alpha301.2.0-alpha3
1.2.0-alpha01.2.0-alpha
1.15.0-10next
1.1.3-cr01.1.3-cr
1.1.3-alpha01.1.3-alpha
1.1.2-alpha01.1.2-alpha
1.1.1-cr01.1.1-cr
1.6.0171.6.0
1.6.1101.6.1
1.5.0-rc31.5.0-rc
1.4.0-rc231.4.0-rc2
1.4.0-alpha431.4.0-alpha4
1.2.0-beta31.2.0-beta
1.4.0-beta221.4.0-beta2
1.4.0-beta21.4.0-beta
1.6.0-beta311.6.0-beta3
1.5.0-beta11.5.0-beta
1.3.0-beta11.3.0-beta
1.2.2-beta11.2.2-beta

Version History

VersionDownloads (Last 7 Days)Published
2.1.0326
2.0.216
2.0.111
2.0.011
1.17.38
1.17.29
1.17.114
1.17.01
1.16.47
1.16.33
1.16.20
1.16.11
1.16.013
1.15.41
1.15.33
1.15.21
1.15.10
1.15.05
1.15.0-10
1.14.618
1.14.51
1.14.42
1.14.30
1.14.23
1.14.12
1.14.08
1.14.0-10
1.14.0-00
1.13.102
1.13.924
1.13.84
1.13.74
1.13.64
1.13.51
1.13.43
1.13.31
1.13.24
1.13.14
1.13.05
1.12.03
1.11.06
1.10.122
1.10.113
1.10.101
1.10.98
1.10.84
1.10.76
1.10.63
1.10.55
1.10.45
1.9.147
1.9.135
1.10.32
1.9.1210
1.10.21
1.10.14
1.10.06
1.9.112
1.9.101
1.9.95
1.9.85
1.9.73
1.9.65
1.9.55
1.9.42
1.9.35
1.9.22
1.9.19
1.9.08
1.8.79
1.8.62
1.8.510
1.8.425
1.8.316
1.8.214
1.8.19
1.8.06
1.7.358
1.7.341
1.7.334
1.7.320
1.7.311
1.7.300
1.7.299
1.7.281
1.7.273
1.7.267
1.7.252
1.7.244
1.7.234
1.7.222
1.7.212
1.7.209
1.7.196
1.7.1810
1.7.172
1.7.164
1.7.150
1.7.146
1.7.130
1.7.122
1.7.112
1.7.101
1.7.93
1.7.88
1.7.76
1.7.68
1.7.55
1.7.42
1.7.34
1.7.28
1.7.114
1.7.0-dev1
1.6.20
1.6.110
1.6.017
1.6.0-beta40
1.6.0-beta31
1.6.0-beta20
1.6.0-alpha20
1.6.0-alpha0
1.5.19
1.5.1-rc0
1.5.04
1.5.0-rc50
1.5.0-rc30
1.5.0-rc20
1.5.0-rc3
1.5.0-beta20
1.5.0-beta1
1.4.14
1.4.1-rc0
1.4.023
1.4.0-rc50
1.4.0-rc40
1.4.0-rc30
1.4.0-rc23
1.4.0-rc0
1.4.0-beta22
1.4.0-beta2
1.4.0-alpha43
1.4.0-alpha30
1.4.0-alpha20
1.4.0-alpha0
1.3.18
1.3.1-cr30
1.3.1-cr20
1.3.1-cr0
1.3.1-beta40
1.3.1-beta30
1.3.1-beta20
1.3.1-beta0
1.3.1-alpha0
1.3.08
1.3.0-cr20
1.3.0-cr0
1.3.0-beta1
1.3.0-alpha70
1.3.0-alpha60
1.3.0-alpha0
1.2.217
1.2.2-cr0
1.2.2-beta1
1.2.113
1.2.1-cr20
1.2.07
1.2.1-cr0
1.2.0-beta3
1.2.0-alpha60
1.2.0-alpha50
1.2.0-alpha43
1.2.0-alpha30
1.2.0-alpha21
1.2.0-alpha0
1.1.33
1.1.3-cr0
1.1.3-alpha0
1.1.28
1.1.2-alpha0
1.1.12
1.1.1-cr0
1.1.1-alpha3
1.1.04
1.1.0-cr1
1.1.0-beta0
1.1.0-alpha0
1.0.03
1.0.0-cr0
0.3.67
0.3.52
0.3.41
0.3.35
0.3.24
0.3.17
0.3.05
0.2.424
0.2.410
0.2.400
0.2.39-10
0.2.391
0.2.380
0.2.37-11
0.2.370
0.2.360
0.2.35-20
0.2.35-10
0.2.350
0.2.340
0.2.330
0.2.320
0.2.310
0.2.300
0.2.291
0.2.280
0.2.270
0.2.260
0.2.253
0.2.240
0.2.230
0.2.220
0.2.210
0.2.202
0.2.190
0.2.180
0.2.170
0.2.160
0.2.150
0.2.140
0.2.130
0.2.120
0.2.110
0.2.100
0.2.90
0.2.80
0.2.70
0.2.60
0.2.50
0.2.40
0.2.30
0.2.20
0.2.00
0.1.290
0.1.280
0.1.270
0.1.260
0.1.250
0.1.240
0.1.230
0.1.220
0.1.210
0.1.200
0.1.190
0.1.170
0.1.163
0.1.151
0.1.140
0.1.130
0.1.120
0.1.110
0.1.100
0.1.80
0.1.70
0.1.60
0.1.50
0.1.42
0.1.30
0.1.20
0.1.13
0.1.00

Package Sidebar

Install

npm i alloy

Weekly Downloads

880

Version

2.1.0

License

Apache-2.0

Unpacked Size

17.2 MB

Total Files

1515

Last publish

Collaborators

  • cb1kenobi
  • awam
  • tisdk