1.2.1 • Published 5 months ago

rush-archive-project-plugin v1.2.1

Weekly downloads
-
License
MIT
Repository
github
Last release
5 months ago

rush-archive-project-plugin

A rush plugin for archive/unarchive project source code in monorepo.

Prerequisite

Rush.js >= 5.57.0

Quick Start

  1. Enabling this rush plugin

Please follow the official doc to enable this plugin in your repo.

  1. Running archive project command
rush archive-project --package-name <your_package_name>

restoring your code by rush unarchive-project --package-name <your_package_name>

Archive working process

  1. Find project configuration by Rush.js SDK
  2. Check whether there are projects depends on target project
  3. Run git clean -xdf under project folder
  4. Create a checkpoint branch with the name ${projectName}-checkpoint-${date}
  5. Update checkpoint branch information in common/_graveyard/projectCheckpoints.json file
  6. Record project configuration into rush-metadata.json file
  7. Create a tarball by running tar -czf <unscoped_package_name>.tar.gz -C <project_folder> .
  8. Move the tarball to common/_graveyard folder
  9. Remove project config to rush.json
  10. Delete project folder

Unarchive working process

  1. Find the tarball by packageName
  2. Extract the tarball by running tar xf <package_name>.tar.gz
  3. Get project configuration by reading rush-metadata.json
  4. Remove checkpoint branch information from checkpoint metadata file if it exists
  5. Move the code to project folder
  6. Restore project configuration into rush.json
  7. Delete metadata file and tarball
1.2.1

5 months ago

1.2.0

8 months ago

1.1.7

1 year ago

1.1.6

1 year ago

1.1.5-pr51.0

1 year ago

1.1.5

1 year ago

1.1.4

2 years ago

1.1.3

2 years ago

1.1.2

2 years ago

1.1.1

2 years ago

1.1.0

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago

0.1.0

2 years ago