ziplocalgit

1.0.10 • Public • Published

npm pipeline status coverage

logo ziplocalgit

Zip local git repository, used for student submissions

This small library provides a command line tool in order to zip the local git repository. It is used in the context of a university class in which students have to submit their solutions by means of a zip file containing the local git repository. The idea behind that is, that instead of simply creating a zip of the solution, git is to be used and, more importantly, the lecturer gets all the git logs in order to improve check of copies. Error messages are emitted in German language at the moment.

Install

Install with npm:

npm install --save-dev ziplocalgit

Usage

Usage: ziplocalgit zip [options]

Create a zip file with local git (.git)

Options:

  • --noCommitCheck Do not check that - all files are committed (default: false)
  • --noOverwrite Do not overwrite - existing submission zip (default: false)
  • -f --filename <filename> Name of zip file, - use ${CWD} for (simple) name of current - folder. (default: "abgabe_${CWD}.zip")
  • --minsize <minsize> Emit warning if - zip file size is less than min size (in - kByte). (default: "20")
  • --maxsize <maxsize> Emit warning if - zip file size is greater than min size (in - kByte). (default: "2000")
  • -h, --help display help for command

Usually you want to create a script in package.json, e.g.

"scripts": {
    "abgabe": "npx ziplocalgit -f abgabe_Blatt_0"
}

Dependencies

  • adm-zip
    • Until version 1.0.3, bestzip has been used. Alas that package has some dependencies which caused security warnings.
  • commander.js

Status

This library is developed on demand. It only contains features as far as needed by the author. It is basically made public in order to simplify the author's scripts.

License

This program and the accompanying materials are made available under the terms of the Eclipse Public License v. 2.0 which is available at https://www.eclipse.org/legal/epl-2.0.

Package Sidebar

Install

npm i ziplocalgit

Weekly Downloads

400

Version

1.0.10

License

EPL-2.0

Unpacked Size

29.7 kB

Total Files

12

Last publish

Collaborators

  • jpilgrim