@form8ion/git 1.0.0-alpha.1
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/LICENSE +20 -0
- package/README.md +102 -0
- package/example.js +13 -0
- package/lib/index.js +10 -0
- package/lib/index.js.map +1 -0
- package/package.json +82 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2024 Matt Travi
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy of
|
|
6
|
+
this software and associated documentation files (the "Software"), to deal in
|
|
7
|
+
the Software without restriction, including without limitation the rights to
|
|
8
|
+
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
|
|
9
|
+
the Software, and to permit persons to whom the Software is furnished to do so,
|
|
10
|
+
subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
|
|
17
|
+
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
|
|
18
|
+
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
|
|
19
|
+
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
|
20
|
+
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
# git
|
|
2
|
+
|
|
3
|
+
form8ion plugin for managing projects versioned with git
|
|
4
|
+
|
|
5
|
+
<!--status-badges start -->
|
|
6
|
+
|
|
7
|
+
[![Node CI Workflow Status][github-actions-ci-badge]][github-actions-ci-link]
|
|
8
|
+
[![Codecov][coverage-badge]][coverage-link]
|
|
9
|
+
![SLSA Level 2][slsa-badge]
|
|
10
|
+
|
|
11
|
+
<!--status-badges end -->
|
|
12
|
+
|
|
13
|
+
## Table of Contents
|
|
14
|
+
|
|
15
|
+
Run `npm run generate:md` to generate a table of contents
|
|
16
|
+
|
|
17
|
+
## Usage
|
|
18
|
+
|
|
19
|
+
<!--consumer-badges start -->
|
|
20
|
+
|
|
21
|
+
[![MIT license][license-badge]][license-link]
|
|
22
|
+
[![npm][npm-badge]][npm-link]
|
|
23
|
+
[![Try @form8ion/git on RunKit][runkit-badge]][runkit-link]
|
|
24
|
+
|
|
25
|
+
<!--consumer-badges end -->
|
|
26
|
+
|
|
27
|
+
### Installation
|
|
28
|
+
|
|
29
|
+
```sh
|
|
30
|
+
$ npm install @form8ion/git --save-prod
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
### Example
|
|
34
|
+
|
|
35
|
+
run `npm run generate:md` to inject the usage example
|
|
36
|
+
|
|
37
|
+
## Contributing
|
|
38
|
+
|
|
39
|
+
<!--contribution-badges start -->
|
|
40
|
+
|
|
41
|
+
[![Commitizen friendly][commitizen-badge]][commitizen-link]
|
|
42
|
+
[![Conventional Commits][commit-convention-badge]][commit-convention-link]
|
|
43
|
+
[![semantic-release: angular][semantic-release-badge]][semantic-release-link]
|
|
44
|
+
[![Renovate][renovate-badge]][renovate-link]
|
|
45
|
+
[![PRs Welcome][PRs-badge]][PRs-link]
|
|
46
|
+
|
|
47
|
+
<!--contribution-badges end -->
|
|
48
|
+
|
|
49
|
+
### Dependencies
|
|
50
|
+
|
|
51
|
+
```sh
|
|
52
|
+
$ nvm install
|
|
53
|
+
$ npm install
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
### Verification
|
|
57
|
+
|
|
58
|
+
```sh
|
|
59
|
+
$ npm test
|
|
60
|
+
```
|
|
61
|
+
|
|
62
|
+
[commitizen-link]: http://commitizen.github.io/cz-cli/
|
|
63
|
+
|
|
64
|
+
[commitizen-badge]: https://img.shields.io/badge/commitizen-friendly-brightgreen.svg
|
|
65
|
+
|
|
66
|
+
[commit-convention-link]: https://conventionalcommits.org
|
|
67
|
+
|
|
68
|
+
[commit-convention-badge]: https://img.shields.io/badge/Conventional%20Commits-1.0.0-yellow.svg
|
|
69
|
+
|
|
70
|
+
[semantic-release-link]: https://github.com/semantic-release/semantic-release
|
|
71
|
+
|
|
72
|
+
[semantic-release-badge]: https://img.shields.io/badge/semantic--release-angular-e10079?logo=semantic-release
|
|
73
|
+
|
|
74
|
+
[renovate-link]: https://renovatebot.com
|
|
75
|
+
|
|
76
|
+
[renovate-badge]: https://img.shields.io/badge/renovate-enabled-brightgreen.svg?logo=renovatebot
|
|
77
|
+
|
|
78
|
+
[PRs-link]: https://makeapullrequest.com
|
|
79
|
+
|
|
80
|
+
[PRs-badge]: https://img.shields.io/badge/PRs-welcome-brightgreen.svg
|
|
81
|
+
|
|
82
|
+
[github-actions-ci-link]: https://github.com/form8ion/git/actions?query=workflow%3A%22Node.js+CI%22+branch%3Amaster
|
|
83
|
+
|
|
84
|
+
[github-actions-ci-badge]: https://img.shields.io/github/actions/workflow/status/form8ion/git/node-ci.yml.svg?branch=master&logo=github
|
|
85
|
+
|
|
86
|
+
[coverage-link]: https://codecov.io/github/form8ion/git
|
|
87
|
+
|
|
88
|
+
[coverage-badge]: https://img.shields.io/codecov/c/github/form8ion/git?logo=codecov
|
|
89
|
+
|
|
90
|
+
[slsa-badge]: https://slsa.dev/images/gh-badge-level2.svg
|
|
91
|
+
|
|
92
|
+
[license-link]: LICENSE
|
|
93
|
+
|
|
94
|
+
[license-badge]: https://img.shields.io/github/license/form8ion/git.svg
|
|
95
|
+
|
|
96
|
+
[npm-link]: https://www.npmjs.com/package/@form8ion/git
|
|
97
|
+
|
|
98
|
+
[npm-badge]: https://img.shields.io/npm/v/@form8ion/git?logo=npm
|
|
99
|
+
|
|
100
|
+
[runkit-link]: https://npm.runkit.com/@form8ion/git
|
|
101
|
+
|
|
102
|
+
[runkit-badge]: https://badge.runkitcdn.com/@form8ion/git.svg
|
package/example.js
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
// #### Import
|
|
2
|
+
// remark-usage-ignore-next
|
|
3
|
+
import stubbedFs from 'mock-fs';
|
|
4
|
+
import {scaffold} from './lib/index.js';
|
|
5
|
+
|
|
6
|
+
// remark-usage-ignore-next
|
|
7
|
+
stubbedFs();
|
|
8
|
+
|
|
9
|
+
// #### Execute
|
|
10
|
+
|
|
11
|
+
(async () => {
|
|
12
|
+
await scaffold({projectRoot: process.cwd()});
|
|
13
|
+
})();
|
package/lib/index.js
ADDED
package/lib/index.js.map
ADDED
|
@@ -0,0 +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":";;AAEe,yBAAc,EAAE,CAAC,WAAW,CAAC,EAAE;AAC9C,EAAE,MAAM,KAAK,CAAC,CAAC,EAAE,WAAW,CAAC,WAAW,CAAC,CAAC,CAAC;AAC3C;AACA,EAAE,OAAO,EAAE,CAAC;AACZ;;;;"}
|
package/package.json
ADDED
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@form8ion/git",
|
|
3
|
+
"description": "form8ion plugin for managing projects versioned with git",
|
|
4
|
+
"license": "MIT",
|
|
5
|
+
"version": "1.0.0-alpha.1",
|
|
6
|
+
"type": "module",
|
|
7
|
+
"author": "Matt Travi <npm@travi.org> (https://matt.travi.org)",
|
|
8
|
+
"repository": "form8ion/git",
|
|
9
|
+
"bugs": "https://github.com/form8ion/git/issues",
|
|
10
|
+
"homepage": "https://npm.im/@form8ion/git",
|
|
11
|
+
"runkitExampleFilename": "./example.js",
|
|
12
|
+
"exports": "./lib/index.js",
|
|
13
|
+
"main": "./lib/index.js",
|
|
14
|
+
"sideEffects": false,
|
|
15
|
+
"scripts": {
|
|
16
|
+
"build:js": "rollup --config",
|
|
17
|
+
"watch": "run-s 'build:js -- --watch'",
|
|
18
|
+
"clean": "rimraf ./lib",
|
|
19
|
+
"prebuild": "run-s clean",
|
|
20
|
+
"build": "npm-run-all --print-label --parallel build:*",
|
|
21
|
+
"prepack": "run-s build",
|
|
22
|
+
"pregenerate:md": "run-s build",
|
|
23
|
+
"test:unit": "cross-env NODE_ENV=test c8 run-s test:unit:base",
|
|
24
|
+
"test:unit:base": "DEBUG=any vitest run",
|
|
25
|
+
"lint:lockfile": "lockfile-lint",
|
|
26
|
+
"prepare": "husky",
|
|
27
|
+
"lint:md": "remark . --frail",
|
|
28
|
+
"generate:md": "remark . --output",
|
|
29
|
+
"lint:peer": "npm ls >/dev/null",
|
|
30
|
+
"pretest:integration:base": "run-s build",
|
|
31
|
+
"test:integration": "run-s 'test:integration:base -- --profile noWip'",
|
|
32
|
+
"test:integration:base": "NODE_OPTIONS=--enable-source-maps DEBUG=any cucumber-js test/integration",
|
|
33
|
+
"test:integration:debug": "DEBUG=test run-s test:integration",
|
|
34
|
+
"test:integration:wip": "run-s 'test:integration:base -- --profile wip'",
|
|
35
|
+
"test:integration:wip:debug": "DEBUG=test run-s 'test:integration:wip'",
|
|
36
|
+
"test:integration:focus": "run-s 'test:integration:base -- --profile focus'",
|
|
37
|
+
"lint:gherkin": "gherkin-lint --config=.gherkin-lintrc.json",
|
|
38
|
+
"lint:js": "eslint . --cache",
|
|
39
|
+
"lint:js:fix": "run-s 'lint:js -- --fix'",
|
|
40
|
+
"lint:publish": "publint --strict",
|
|
41
|
+
"test": "npm-run-all --print-label build --parallel lint:* --parallel test:*"
|
|
42
|
+
},
|
|
43
|
+
"files": [
|
|
44
|
+
"example.js",
|
|
45
|
+
"lib/"
|
|
46
|
+
],
|
|
47
|
+
"publishConfig": {
|
|
48
|
+
"access": "public",
|
|
49
|
+
"provenance": true
|
|
50
|
+
},
|
|
51
|
+
"packageManager": "npm@10.8.1+sha256.b8807aebb9656758e2872fa6e7c564b506aa2faa9297439a478d471d2fe32483",
|
|
52
|
+
"devDependencies": {
|
|
53
|
+
"@cucumber/cucumber": "10.8.0",
|
|
54
|
+
"@form8ion/commitlint-config": "1.0.76",
|
|
55
|
+
"@form8ion/core": "4.3.0",
|
|
56
|
+
"@form8ion/eslint-config": "7.0.9",
|
|
57
|
+
"@form8ion/eslint-config-cucumber": "1.4.1",
|
|
58
|
+
"@form8ion/remark-lint-preset": "6.0.3",
|
|
59
|
+
"@travi/any": "3.1.2",
|
|
60
|
+
"c8": "10.1.2",
|
|
61
|
+
"chai": "5.1.1",
|
|
62
|
+
"cross-env": "7.0.3",
|
|
63
|
+
"cz-conventional-changelog": "3.3.0",
|
|
64
|
+
"gherkin-lint": "4.2.4",
|
|
65
|
+
"husky": "9.0.11",
|
|
66
|
+
"jest-when": "3.6.0",
|
|
67
|
+
"lockfile-lint": "4.14.0",
|
|
68
|
+
"mock-fs": "5.2.0",
|
|
69
|
+
"npm-run-all2": "6.2.0",
|
|
70
|
+
"publint": "0.2.8",
|
|
71
|
+
"remark-cli": "12.0.1",
|
|
72
|
+
"remark-toc": "9.0.0",
|
|
73
|
+
"remark-usage": "11.0.1",
|
|
74
|
+
"rimraf": "5.0.7",
|
|
75
|
+
"rollup": "4.18.0",
|
|
76
|
+
"rollup-plugin-auto-external": "2.0.0",
|
|
77
|
+
"vitest": "1.6.0"
|
|
78
|
+
},
|
|
79
|
+
"dependencies": {
|
|
80
|
+
"touch": "^3.1.1"
|
|
81
|
+
}
|
|
82
|
+
}
|