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

@titanium-sdk/babel-preset-app

v0.1.2

Published

Default Babel preset for Titanium app projects

Downloads

4

Readme

@titanium-sdk/babel-preset-app

This is the default Babel preset used in Titanium app projects that have Webpack enabled.

ℹ️ Note: The Titanium CLI will automatically configure this preset based on your current build command. If you want to also include this preset in your third-party libraries you need to configure it yourself.

Included in this Preset

@babel/preset-env

preset-env automatically determines the transforms and polyfills to apply based on your current build target.

@babel/plugin-transform-runtime

transform-runtime avoids inlining helpers in every file. This is enabled for helpers only, since polyfills are handled by babel-preset-env.

babel-plugin-transform-titanium

babel-plugin-transform-titanium optimizes your Titanium SDK applications by inlining various static values. Once inlined, other babel plugins may perform additional optimizations to help strip away "dead code".

Options

env

All options from @babel/preset-env are supported under the env key.

titanium

All options from babel-plugin-transform-titanium are supported under the titanium key.

Default configuration

This preset will be automatically configured when used in Titanium app projects. The default options are:

  • env

    • useBuiltIns: false: Disabled for now because the Titanium core runtime already bundles all neccessary polyfills. See TIMOB-27629 for a planned improvement of this option.
    • targets: Will be set depending on the platform you build for. On Android this is the V8 version Titanium was build for. On iOS this is either the configured <min-ios-ver> of your project, or the default minimum supported iOS version of the SDK you are building with.
  • titanium

    • deploytype: The deployment type of the issued build command.
    • platform: The platform you are building for.
    • target: The deployment target you are building for.
    • Ti: Will be populated with values from the SDK you are building with.

Contributions

Open source contributions are greatly appreciated! If you have a bugfix, improvement or new feature, please create an issue first and submit a pull request against master.

Getting Help

If you have questions about the Titanium Babel preset, feel free to reach out on Stackoverflow or the #helpme channel on TiSlack. In case you find a bug related to this library, create a new issue or open a new JIRA ticket.

License

Apache License, Version 2.0