Skip to content

Helper to automatize release react projects inside framework yii2.

Notifications You must be signed in to change notification settings

moguelor/rpr-python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Release Project React (Python)

Build compiled react files in the many projects.

  1. Install python3 with brew or with installer in the page https://www.python.org/download/releases/3.0/.
  2. Create the file config/local_settings.py
  3. Config your react names folders depending your local:
project_names = {
      'cu': 'contest-user-react', 
      'cp': 'contest-panel-react',
      'au': 'ask-apply', 
      'ap': 'ask-panel-react', 
      'mar': 'mybusiness-affiliate-react'
}
  1. Config your project in your local where the compiled files will be included.
project_dst_path_dev = {
  'cu': 'contest-backend', 
  'cp': 'core',
  'au': 'ask-backend', 
  'ap': 'core', 
  'mar': 'core'
}
  1. Config the temp path, this directory will be the place to process the file.
  temp_path = "/Users/josemoguel/Documents/"
  1. Config the base local source, this directory has all your swapwink's proyects.
base_path_local_source = '/Users/josemoguel/Documents/fuentes/swapwink/'
  1. Generate a link to file release-project-react.py.
ln -s /Users/josemoguel/Documents/scripts-python/release-project-react.py rpr
  1. Search your python3 path with which python3
/usr/bin/python3
  1. Move the file rpr to /usr/bin/ to access the command globally.
mv rpr /usr/bin/rpr
  1. Run rpr

Commands

  1. You can release all projects in the environment dev:
rpr
  1. You can release the project in the environment dev:
rpr {project_key}
  1. You can release the project in the environment specified.
rpr {project_key} {environment}
  1. You can release all projects in the environment.
rpr all {environment}
  1. You can release the project in all environments.
rpr {project_key} all
  1. You can release all projects in all environments.
rpr all
  1. You can release the project in the environment and version specified.
rpr {project_key} {environment} {tag_version}
  1. You can release many projects in the environment and version specified.
rpr {project_key_1,project_key_2} {environment}

#Projects Keys

cu - contest.user.react
cp - contest.panel.react
au - ask.apply.react
ap - ask.panel.react
mar - mybusiness.affiliate.react
ru - rewards.user.react
tp - trivia.panel.react
mpr - mybusiness.product.react

About

Helper to automatize release react projects inside framework yii2.

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages