2017 © Pedro Peláez
 

library react-utils-bundle

React commands for deploying & debugging app

image

smartorigin/react-utils-bundle

React commands for deploying & debugging app

  • Wednesday, March 14, 2018
  • by Charlewic
  • Repository
  • 1 Watchers
  • 0 Stars
  • 7 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 40 % Grown

The README.md

react-utils-bundle

React commands for deploying & debugging app into Symfony environment.
This bundle is compatible Symfony 3.X versions (perhaps its fine with 4.X, but not tested)., (*1)

Prerequisites

You need to install npm and yarn (optionnal) before use this bundle's commands., (*2)

Configure

This bundle works with npm or yarn shells.
You can define the path of this in config.yml file :, (*3)

so_react_utils:
    npm_bin_path: /usr/bin/npm # default value
    yarn_bin_path: /usr/bin/yarn # default value

How to use

This bundle provide 3 commands :, (*4)

  • soreact_utils:npm:install : install react dependencies with npm
  • soreact_utils:yarn:install : install react dependencies with yarn
  • soreact_utils:npm:run : run webpack script
bin/console soreact_utils:npm:install @BundleName
# Argument1 : @BundleName : Name of the bundle who have the React Components to install *required*
# option1 : --timeout or -t : number of seconds before the process raise a timeout *optionnal* (default 300)
# option2 : --reactFolderPath or -p : path to react folder in the bundle *optionnal* (default ReactComponent)

bin/console soreact_utils:yarn:install @BundleName --timeout 1
# Argument1 : @BundleName : Name of the bundle who have the React Components to install *required*
# option1 : --timeout or -t : number of seconds before the process raise a timeout *optionnal* (default 300)
# option2 : --reactFolderPath or -p : path to react folder in the bundle *optionnal* (default ReactComponent)

bin/console soreact_utils:npm:run @BundleName webpackScript
# Argument1 : @BundleName : Name of the bundle who have the React Components to install *required*
# Argument1 : webpackScript : Name of the webpack script to run *required*
# option1 : --reactFolderPath or -p : path to react folder in the bundle *optionnal* (default ReactComponent)

The Versions

14/03 2018

dev-master

9999999-dev https://github.com/smartorigin/react-utils-bundle

React commands for deploying & debugging app

  Sources   Download

MIT

The Requires