@form8ion/git 1.0.0-alpha.1 → 1.0.0-alpha.2
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/lib/index.js +5 -1
- package/lib/index.js.map +1 -1
- package/package.json +1 -1
package/lib/index.js
CHANGED
|
@@ -1,7 +1,11 @@
|
|
|
1
|
+
import { promises } from 'node:fs';
|
|
1
2
|
import touch from 'touch';
|
|
2
3
|
|
|
3
4
|
async function scaffolder ({projectRoot}) {
|
|
4
|
-
await
|
|
5
|
+
await Promise.all([
|
|
6
|
+
touch(`${projectRoot}/.gitignore`),
|
|
7
|
+
promises.writeFile(`${projectRoot}/.gitattributes`, '* text=auto')
|
|
8
|
+
]);
|
|
5
9
|
|
|
6
10
|
return {};
|
|
7
11
|
}
|
package/lib/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../src/scaffolder.js"],"sourcesContent":["import touch from 'touch';\n\nexport default async function ({projectRoot}) {\n await touch(`${projectRoot}/.gitignore`);\n\n return {};\n}\n"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../src/scaffolder.js"],"sourcesContent":["import {promises as fs} from 'node:fs';\nimport touch from 'touch';\n\nexport default async function ({projectRoot}) {\n await Promise.all([\n touch(`${projectRoot}/.gitignore`),\n fs.writeFile(`${projectRoot}/.gitattributes`, '* text=auto')\n ]);\n\n return {};\n}\n"],"names":["fs"],"mappings":";;;AAGe,yBAAc,EAAE,CAAC,WAAW,CAAC,EAAE;AAC9C,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,GAAG,CAAC,CAAC;AACL;AACA,EAAE,OAAO,EAAE,CAAC;AACZ;;;;"}
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
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.
|
|
5
|
+
"version": "1.0.0-alpha.2",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"author": "Matt Travi <npm@travi.org> (https://matt.travi.org)",
|
|
8
8
|
"repository": "form8ion/git",
|