@form8ion/git 1.0.0-alpha.3 → 1.0.0-alpha.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -21,6 +21,7 @@ Run `npm run generate:md` to generate a table of contents
21
21
  [![MIT license][license-badge]][license-link]
22
22
  [![npm][npm-badge]][npm-link]
23
23
  [![Try @form8ion/git on RunKit][runkit-badge]][runkit-link]
24
+ ![node][node-badge]
24
25
 
25
26
  <!--consumer-badges end -->
26
27
 
@@ -100,3 +101,5 @@ $ npm test
100
101
  [runkit-link]: https://npm.runkit.com/@form8ion/git
101
102
 
102
103
  [runkit-badge]: https://badge.runkitcdn.com/@form8ion/git.svg
104
+
105
+ [node-badge]: https://img.shields.io/node/v/@form8ion/git?logo=node.js
package/lib/index.js CHANGED
@@ -1,8 +1,11 @@
1
1
  import { promises } from 'node:fs';
2
2
  import touch from 'touch';
3
3
  import simpleGit from 'simple-git';
4
+ import { info } from '@travi/cli-messages';
4
5
 
5
6
  async function scaffolder ({projectRoot}) {
7
+ info('Initializing Git Repository');
8
+
6
9
  const git = simpleGit({baseDir: projectRoot});
7
10
 
8
11
  await Promise.all([
package/lib/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":["../src/scaffolder.js"],"sourcesContent":["import {promises as fs} from 'node:fs';\nimport touch from 'touch';\nimport simpleGit from 'simple-git';\n\nexport default async function ({projectRoot}) {\n const git = simpleGit({baseDir: projectRoot});\n\n await Promise.all([\n touch(`${projectRoot}/.gitignore`),\n fs.writeFile(`${projectRoot}/.gitattributes`, '* text=auto'),\n git.init()\n ]);\n\n return {};\n}\n"],"names":["fs"],"mappings":";;;;AAIe,yBAAc,EAAE,CAAC,WAAW,CAAC,EAAE;AAC9C,EAAE,MAAM,GAAG,GAAG,SAAS,CAAC,CAAC,OAAO,EAAE,WAAW,CAAC,CAAC,CAAC;AAChD;AACA,EAAE,MAAM,OAAO,CAAC,GAAG,CAAC;AACpB,IAAI,KAAK,CAAC,CAAC,EAAE,WAAW,CAAC,WAAW,CAAC,CAAC;AACtC,IAAIA,QAAE,CAAC,SAAS,CAAC,CAAC,EAAE,WAAW,CAAC,eAAe,CAAC,EAAE,aAAa,CAAC;AAChE,IAAI,GAAG,CAAC,IAAI,EAAE;AACd,GAAG,CAAC,CAAC;AACL;AACA,EAAE,OAAO,EAAE,CAAC;AACZ;;;;"}
1
+ {"version":3,"file":"index.js","sources":["../src/scaffolder.js"],"sourcesContent":["import {promises as fs} from 'node:fs';\nimport touch from 'touch';\nimport simpleGit from 'simple-git';\nimport {info} from '@travi/cli-messages';\n\nexport default async function ({projectRoot}) {\n info('Initializing Git Repository');\n\n const git = simpleGit({baseDir: projectRoot});\n\n await Promise.all([\n touch(`${projectRoot}/.gitignore`),\n fs.writeFile(`${projectRoot}/.gitattributes`, '* text=auto'),\n git.init()\n ]);\n\n return {};\n}\n"],"names":["fs"],"mappings":";;;;;AAKe,yBAAc,EAAE,CAAC,WAAW,CAAC,EAAE;AAC9C,EAAE,IAAI,CAAC,6BAA6B,CAAC,CAAC;AACtC;AACA,EAAE,MAAM,GAAG,GAAG,SAAS,CAAC,CAAC,OAAO,EAAE,WAAW,CAAC,CAAC,CAAC;AAChD;AACA,EAAE,MAAM,OAAO,CAAC,GAAG,CAAC;AACpB,IAAI,KAAK,CAAC,CAAC,EAAE,WAAW,CAAC,WAAW,CAAC,CAAC;AACtC,IAAIA,QAAE,CAAC,SAAS,CAAC,CAAC,EAAE,WAAW,CAAC,eAAe,CAAC,EAAE,aAAa,CAAC;AAChE,IAAI,GAAG,CAAC,IAAI,EAAE;AACd,GAAG,CAAC,CAAC;AACL;AACA,EAAE,OAAO,EAAE,CAAC;AACZ;;;;"}
package/package.json CHANGED
@@ -2,8 +2,11 @@
2
2
  "name": "@form8ion/git",
3
3
  "description": "form8ion plugin for managing projects versioned with git",
4
4
  "license": "MIT",
5
- "version": "1.0.0-alpha.3",
5
+ "version": "1.0.0-alpha.4",
6
6
  "type": "module",
7
+ "engines": {
8
+ "node": "^18.17 || >=20.6.1"
9
+ },
7
10
  "author": "Matt Travi <npm@travi.org> (https://matt.travi.org)",
8
11
  "repository": "form8ion/git",
9
12
  "bugs": "https://github.com/form8ion/git/issues",
@@ -38,7 +41,8 @@
38
41
  "lint:js": "eslint . --cache",
39
42
  "lint:js:fix": "run-s 'lint:js -- --fix'",
40
43
  "lint:publish": "publint --strict",
41
- "test": "npm-run-all --print-label build --parallel lint:* --parallel test:*"
44
+ "test": "npm-run-all --print-label build --parallel lint:* --parallel test:*",
45
+ "lint:engines": "ls-engines"
42
46
  },
43
47
  "files": [
44
48
  "example.js",
@@ -49,6 +53,11 @@
49
53
  "provenance": true
50
54
  },
51
55
  "packageManager": "npm@10.8.1+sha256.b8807aebb9656758e2872fa6e7c564b506aa2faa9297439a478d471d2fe32483",
56
+ "dependencies": {
57
+ "@travi/cli-messages": "^1.1.1",
58
+ "simple-git": "^3.25.0",
59
+ "touch": "^3.1.1"
60
+ },
52
61
  "devDependencies": {
53
62
  "@cucumber/cucumber": "10.8.0",
54
63
  "@form8ion/commitlint-config": "1.0.76",
@@ -65,6 +74,7 @@
65
74
  "husky": "9.0.11",
66
75
  "jest-when": "3.6.0",
67
76
  "lockfile-lint": "4.14.0",
77
+ "ls-engines": "0.9.2",
68
78
  "mock-fs": "5.2.0",
69
79
  "npm-run-all2": "6.2.0",
70
80
  "publint": "0.2.8",
@@ -76,9 +86,5 @@
76
86
  "rollup-plugin-auto-external": "2.0.0",
77
87
  "testdouble": "3.20.2",
78
88
  "vitest": "1.6.0"
79
- },
80
- "dependencies": {
81
- "simple-git": "^3.25.0",
82
- "touch": "^3.1.1"
83
89
  }
84
90
  }