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

react-native-npm-scripts

v1.0.1

Published

A package to update my packages or to start new projects!

Downloads

12

Readme

React Native Npm Scripts

My lazyness in code

Installation

yarn global add react-native-npm-scripts

Or you can install it locally and use as an npm script too.

Usage example

The idea is to install a bunch if scripts that use everyday for react native too your package json. So just run:

react-native-npm-scripts install

And your package json scripts will be add with:

{
  "android:codepush": "appcenter codepush release-react -a CODE_PUSH_ANDROID --output-dir ./build",
  "android:codepush-list": "appcenter codepush deployment list -a CODE_PUSH_ANDROID",
  "android:codepush-promote": "appcenter codepush promote -a CODE_PUSH_ANDROID -s Staging -d Production",
  "android:debug": "react-native run-android",
  "android:release": "cd android && ./gradlew assembleRelease; cd ../",
  "android:staging": "cd android && ./gradlew assembleReleaseStaging; cd ../",
  "android:install:staging": "adb install ./android/app/build/outputs/apk/releaseStaging/app-releaseStaging.apk",
  "android:install:release": "adb install ./android/app/build/outputs/apk/release/app-release.apk",
  "ios:codepush": "appcenter codepush release-react -a CODE_PUSH_IOS --output-dir ./build",
  "ios:codepush-list": "appcenter codepush deployment list -a CODE_PUSH_IOS",
  "ios:codepush-promote": "appcenter codepush promote -a CODE_PUSH_IOS -s Staging -d Production",
  "ios:staging": "react-native run-ios --configuration Staging",
  "ios:release": "react-native run-ios --configuration Release",
  "ios:debug": "react-native run-ios",
  "ios:publish": "cd ios && fastlane release; cd ../",
  "bugsnag:upload": "./scripts/bugsnag-upload",
  "install:devops": "yarn add global bugsnag-sourcemaps appcenter",
  "install:ios-devops": "gem install fastlane match gym",
  "install:eslint": "yarn add global eslint eslint-config-airbnb eslint-plugin-babel eslint-plugin-import eslint-plugin-jsx-a11y eslint-plugin-react babel-parser"
}

And the scripts folder will be added to your project.

After this is you should run this on your project folder:

yarn install:devops
yarn install:devops-ios # If you are a mac user
yarn install:eslint

I will improve this sometime. I just needed to be fast because I have other projects to start.

Development setup

yarn or npm install # bleh

And you are good to go

Release History

  • 1.0.0
    • FIRST VERSION!!!!!! WOW

Meta

Bruno Oliveira – @brunocoder[email protected]

Distributed under the MIT license.

brunoliveira.ml

Contributing

  1. Fork it (https://github.com/brunoti/react-native-npm-scripts/fork)
  2. Create your feature branch (git checkout -b feature/fooBar)
  3. Commit your changes (git commit -am 'Add some fooBar')
  4. Push to the branch (git push origin feature/fooBar)
  5. Create a new Pull Request