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

@moh3n95/react-native-app-builder

v1.2.0

Published

Multiple builds with different params

Downloads

10

Readme

react-native-app-builder · Circle CI GitHub license PRs Welcome

Multiple builds for React Native with different params

The package is in node, not react native!

Advantages

Installation

npm install @moh3n95/react-native-app-builder

⚠️ NOTE: you can download latest bundle  macOS | Windows | Linux

Usage

  • Create a json file and set params

    {
        "projectBase": "<PROJECT_PATH>",
        "settingFilePath": "<YOUR_JSON_SETTING_IN_REACT_NATIVE_PROJECT>", 
        "workspacePath": "<YOUR_IOS_WORKSPACE>",
        "schemePath": "<YOUR_IOS_SCHEME>",
    
        "androidParams": [
            {"buildName":"<YOUR_BUILD_NAME>", "<CUSTOM_PARAM>": "<CUSTOM_VALUE>"},
            ...
        ],
        "iosParams": [
            {"buildName":"<YOUR_BUILD_NAME>", "<CUSTOM_PARAM>": "<CUSTOM_VALUE>"},
            ...
        ]
    }

    See examples here

  • Call function or exec bundle

    // import
    const RNBuilder = require("@moh3n95/react-native-app-builder");
    
    RNBuilder(<PLATFORM>, <SETTING_FILE_PATH_OR_DIRECTLY_OBJ>).then(()=>{
        // Build was successful
    })
    .catch(e=>{
        // Raised error
    });

    ⚠️ NOTE: execute bundle with command line arguments --> <EXEC_FILE> <PLATFORM> <SETTING_FILE_PATH>

  • Expected output

    ---------------------------------
    
    info BUILDING A...
    
    success A FINISHED
    
    ---------------------------------
    
    info BUILDING B...
    
    success B FINISHED
    
    ---------------------------------

Arguments

  • Platform

    | Value | Type | | ------- | ---------- | | ios | string | | android | string | | both | string |

  • Setting file path

    | OS | Type | FileType | Sample | | -------- | ---------- | -------- | ------------------------------------------------- | | macOS | string | Json | /User/<YOUR_USER_NAME>/.../<FILE_NAME>.json | | Windows | string | Json | <YOUR_DRIVE_NAME>://.../<FILE_NAME>.json | | Any | object | None | { projectBase, ... } // Only unbundled version |

Setting file example

  • MacOS

    {
        "projectBase": "/Users/<YOUR_OS_USERNAME>/.../<RN_PROJECT_NAME>", // e.g. : /Users/apple/Desktop/test
        "settingFilePath": "<YOUR_JSON_SETTING_IN_REACT_NATIVE_PROJECT>", // e.g. : ./app.json
        "workspacePath": "<YOUR_IOS_WORKSPACE>", // e.g. : ./test
        "schemePath": "<YOUR_IOS_SCHEME>", // e.g. : test 
    
        ...
    }
  • Windows

    {
        "projectBase": "<YOUR_DRIVE_NAME>://.../<RN_PROJECT_NAME>", // e.g. : C://test
        "settingFilePath": "<YOUR_JSON_SETTING_IN_REACT_NATIVE_PROJECT>", // e.g. : ./app.json
    
        ...
    }

Contributing

Thank you for your interest in contributing! Please feel free to put up a PR for any issue or feature request.

Todo

  • Enable Hermes
  • Change version code
  • Change build number
  • Convert xarchive to IPA
  • Add Test & Deploy

Give me a Star

If you think this project is helpful just give me a ⭐️ Star is enough because i don't drink coffee 😃

License

This project is licensed under the MIT License - see the LICENSE.md file for details

Author

Made with ❤️ by Mohsen Madani.