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

chui-ios

v1.1.1

Published

A module for creating Web apps with ChocolateChip-UI

Downloads

13

Readme

chui-ios

This is a node command-line tool that enables you to create a hybrid app container for your ChocolateChip-UI app that opens in Xcode and runs on iOS. It will wrap your Web app in a Swift Web view. It expects the following parameters:

##Installation

To install on Mac OS X, open your terminal and type:

sudo npm install -g chui-ios

This will make this a global command-line tool, making it available regardless of where you are.

##Usage

Note: As of version 1.0.4, chui-android uses the following parameters:

  • proj (the name of your project)
  • user (your username on your computer)
  • app (path to an existing ChUI Web app, otherwise it will create a default html page)
  • icons (path of icons for the hybrid path)

Earlier versions uses, username, chuiapp and appicons. Since the chui-android uses the shorter parameter names, we've update this to use the same ones.

Both --app and --icons are optional arguments. If you do not provide a path to a ChocolateChip-UI Web app for the --app argument, the Xcode project will be created with a default Web page. You can always drag and drop your ChococolateChip-UI app's resources to the project's Website folder later. Just make sure you app's file name is index.html. You will be replacing the default index.html file in the project.

The command is used as follows:

chui-ios --proj "Hamburger" --user "BongoBaby" --app /Users/bongobaby/Documents/hamburger --icons /Users/bongobaby/Desktop/hambuger-icons

By default it outputs the resulting Xcode project to your desktop. If there is already a folder with the same name, the script will abort with a warning asking you to either delete the existing folder on the desktop, or change the name of the project you are trying to create.

You can add the path for the ChocolateChip-UI Web app you wish to convert into a hybrid app by dragging its folder onto the terminal with a space after the argument --app. This will put its contents into the Website folder of the hybrid app. Similarly, if you have icons, iTunes artwork and launch screens ready, you can drag the folder with them after the argument with a space: --icons. If you do not provide a path for app icons, the command will create an Xcode project where the icons are missing. Xcode will alert you with warning messages about the missing icons, however this will not impede the ability to build the app and deloy to an iOS capable device for testing.

If you want to add icons through the script, make sure they are named as follows and have these resolutions/dimensions.

App Icons:

iTunes Artwork:

Launch Images:

  • LaunchImage~iphone.png (Resolution: 320x480)
  • LaunchImage@2x~iphone.png (Resolution: 640x960)
  • LaunchImage-568h@2x~iphone.png (Resolution: 640x1136)
  • LaunchImage-667h@2x~iphone.png (Resolution: 750x1334)
  • LaunchImage-736h@3x~iphone.png (Resolution: 1242x2208)

If you create a hybrid app without adding your own custom icons, the module will create your project with default icons. You can replace these later by dragging your custom icons into the appropriate subfolders in the Images.xcassets folder of your project. Make sure to use the same naming convention and image dimensions presented above.

If you want to support older devices or iPads, you'll need to change that in the General tab of your project for Deployment Target and Devices. If you do so, you'll also need to switch to the Images.xcassets file in the side column and add icon slots for their icons, which of course you will also need to create and add to your project. Otherwise, when you build you will see yellow warnings about missing icons. If these appear, you can still build and deploy your app to devices for testing, but the icons for the new devices will not appear. Also, if you are missing icons, your app will be rejected during the review process by Apple. So you will need to provide them.