npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

dev.tiapp

v0.0.3

Published

A titanium cli plugin to set a dfferent value of tiapp.xml base on deploy type.

Downloads

7

Readme

dev.tiapp

A titanium cli plugin to set a dfferent value of tiapp.xml base on deploy type or cli option. dev.tiapp is inspired by dbankier/ticonfig. Thanks @dbankier!

Installation

$ [sudo] npm install -g dev.tiapp --unsafe-perm

--unsafe-perm flag is required for hook installation.

Usage

Change tag value

<id>com.licky.www</id>
<dev.id>dev.co.licky.www</dev.id>

When development deploy(e.g. simulator), Your app id will be replace by value of dev.id.

<property name="server_url">http://www.myserver</property>
<property name="dev.server_url">http://192.168.0.10:8080</property>

<property name="ti.facebook.appid">12345xxxxxxxxx</property>
<property name="dev.ti.facebook.appid">xxxxxxx56789</property>

When development deploy(e.g. simulator), Ti.App.Properties.getString('server_url') will return http://http://192.168.0.10:8080.

Local IP Placseholder

__LOCAL_IP__ in value will be replaced by your local ip address. local ip address detected by ipselector.

<property name="dev.server_url">http://__LOCAL_IP__:8080</property>

If you want to set ip of specific network interface, make a config file in your home path. ~/.dev.tiapp.json

{
    "networkInterface": "en0"
}

Custom Prefix

Custom prefix is not associated with dev/test/prod.
Use '--dev.tiapp' option with Titanium CLI. You can use prefix whatever you want instead of 'dev'.

ti build -p ios --tall --retina --dev.tiapp __dev__

in tiapp.xml

<id>test.tiapp</id>
<__dev__.id>__dev__.test.tiapp</__dev__.id>

<property name="server_url">http://www.myserver</property>
<property name="__dev__.server_url">http://this.is.custom.prefix</property>

Why did I make this?

Somebody said that why should I use this instead of Conditional Code such as ENV_DEV condition of Alloy. Because some properties have to be set before build. (e.g. facebook app id on iOS)

Note

  • You will need to understand what can be changed at the build.pre.contruct phase.
  • Don't forget close tag with dev. prefix. :)
  • If you have a problem or idea, please make a issue.

Licence MIT