kup-cli 0.0.0-alpha.1 → 0.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/bin/cli.js ADDED
@@ -0,0 +1,4 @@
1
+ #!/usr/bin/env node
2
+ 'use strict'
3
+
4
+ console.log('OK')
package/index.js CHANGED
@@ -1 +1,5 @@
1
- // todo
1
+ 'use strict'
2
+
3
+ module.exports = function () {
4
+ console.warn('Warning: This package is a CLI tool, you should install it globally! See README.md for more information.')
5
+ }
package/lib/parse.js ADDED
@@ -0,0 +1,7 @@
1
+ 'use strict'
2
+
3
+ // parse markdown file:
4
+ // - extract metadata in yaml format
5
+ // - extract main title from h1
6
+
7
+ // todo
package/package.json CHANGED
@@ -1,15 +1,15 @@
1
1
  {
2
2
  "name": "kup-cli",
3
- "version": "0.0.0-alpha.1",
3
+ "version": "0.0.0-alpha.4",
4
4
  "description": "A CLI tool to post Markdown files to GitHub as issues.",
5
- "main": "index.js",
5
+ "bin": {
6
+ "kup": "./bin/cli.js"
7
+ },
6
8
  "scripts": {
9
+ "postpublish": "npm-mirror-sync",
7
10
  "test": "echo \"Error: no test specified\" && exit 1"
8
11
  },
9
- "repository": {
10
- "type": "git",
11
- "url": "git+https://github.com/cssmagic/kup.git"
12
- },
12
+ "repository": "cssmagic/kup",
13
13
  "keywords": [
14
14
  "cli",
15
15
  "markdown",
@@ -21,9 +21,14 @@
21
21
  "engines": {
22
22
  "node": ">=12"
23
23
  },
24
- "dependencies": {},
24
+ "dependencies": {
25
+ "gh-got": "^9.0.0",
26
+ "yaml": "^2.1.0",
27
+ "yargs": "^17.5.0"
28
+ },
25
29
  "files": [
26
30
  "*.js",
31
+ "lib/",
27
32
  "bin/"
28
33
  ],
29
34
  "publishConfig": {
package/bin/.gitkeep DELETED
File without changes