VERSION 0.3.0: Upgrades to Node 18 LTS and adds the option to keep the .git directory for development or exploration/tracking changes.

master
Zed A. Shaw 1 year ago
parent 954e74b8bc
commit 5f0432fb70
  1. 10
      commands/create.js
  2. 4
      package-lock.json
  3. 2
      package.json

@ -9,7 +9,8 @@ export const description = "Generates projects using the Bandolier educational f
export const options = [ export const options = [
["--repo", "repository to dupe and setup", BANDO_GIT], ["--repo", "repository to dupe and setup", BANDO_GIT],
["--template", "templates directory to use for setups", "commands/templates"] ["--template", "templates directory to use for setups", "commands/templates"],
["--keep-git", "for patches and analysis, you can keep the original .git", false],
]; ];
export const argument = ["<target>", "name of the project directory (must not exist)"]; export const argument = ["<target>", "name of the project directory (must not exist)"];
@ -40,4 +41,11 @@ export const main = async (target, opts) => {
copy(f_normal, copy_to); // we can add a template thing here copy(f_normal, copy_to); // we can add a template thing here
log.debug(`${f_normal} ---> ${copy_to}`); log.debug(`${f_normal} ---> ${copy_to}`);
} }
// remove the .git directory
if(opts.keepGit) {
log.warn("Keeping the .git directory, so be sure to delete it if you want to do your own work.");
} else {
exec_i(`rm -rf ${path.join(target, ".git")}`);
}
} }

4
package-lock.json generated

@ -1,12 +1,12 @@
{ {
"name": "ljsthw-bandolier", "name": "ljsthw-bandolier",
"version": "0.1.2", "version": "0.1.4",
"lockfileVersion": 2, "lockfileVersion": 2,
"requires": true, "requires": true,
"packages": { "packages": {
"": { "": {
"name": "ljsthw-bandolier", "name": "ljsthw-bandolier",
"version": "0.1.2", "version": "0.1.4",
"license": "All Rights Reserved", "license": "All Rights Reserved",
"dependencies": { "dependencies": {
"commander": "^9.4.1", "commander": "^9.4.1",

@ -1,6 +1,6 @@
{ {
"name": "ljsthw-bandolier", "name": "ljsthw-bandolier",
"version": "0.1.4", "version": "0.3.0",
"description": "Generates projects using the Bandolier educational framework.", "description": "Generates projects using the Bandolier educational framework.",
"main": "bando.js", "main": "bando.js",
"bin": { "bin": {

Loading…
Cancel
Save