Skip to content

Commit 89588e2

Browse files
committed
feat: add lib, bin, gitignore
0 parents  commit 89588e2

File tree

4 files changed

+104
-0
lines changed

4 files changed

+104
-0
lines changed

.gitignore

+73
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,73 @@
1+
# Logs
2+
logs
3+
*.log
4+
npm-debug.log*
5+
yarn-debug.log*
6+
yarn-error.log*
7+
8+
# Runtime data
9+
pids
10+
*.pid
11+
*.seed
12+
*.pid.lock
13+
14+
# Directory for instrumented libs generated by jscoverage/JSCover
15+
lib-cov
16+
17+
# Coverage directory used by tools like istanbul
18+
coverage
19+
20+
# nyc test coverage
21+
.nyc_output
22+
23+
# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)
24+
.grunt
25+
26+
# Bower dependency directory (https://bower.io/)
27+
bower_components
28+
29+
# node-waf configuration
30+
.lock-wscript
31+
32+
# Compiled binary addons (https://nodejs.org/api/addons.html)
33+
build/Release
34+
35+
# Dependency directories
36+
node_modules/
37+
jspm_packages/
38+
39+
# TypeScript v1 declaration files
40+
typings/
41+
42+
# Optional npm cache directory
43+
.npm
44+
45+
# Optional eslint cache
46+
.eslintcache
47+
48+
# Optional REPL history
49+
.node_repl_history
50+
51+
# Output of 'npm pack'
52+
*.tgz
53+
54+
# Yarn Integrity file
55+
.yarn-integrity
56+
57+
# dotenv environment variables file
58+
.env
59+
60+
# parcel-bundler cache (https://parceljs.org/)
61+
.cache
62+
63+
# next.js build output
64+
.next
65+
66+
# nuxt.js build output
67+
.nuxt
68+
69+
# vuepress build output
70+
.vuepress/dist
71+
72+
# Serverless directories
73+
.serverless

package.json

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
{
2+
"name": "create-commit",
3+
"version": "1.1.0",
4+
"description": "Create a commitizen commit.",
5+
"main": "src/lib/index.js",
6+
"scripts": {
7+
"test": "echo \"Error: no test specified\" && exit 1"
8+
},
9+
"repository": {
10+
"type": "git",
11+
"url": "git+https://github.com./commitizen/create-commit.git"
12+
},
13+
"bin": {
14+
"create-commit": "./bin.js"
15+
},
16+
"keywords": [],
17+
"author": "Jim Cummins <[email protected]> (https://github.com./jimthedev)",
18+
"license": "MIT",
19+
"bugs": {
20+
"url": "https://github.com./commitizen/create-commit/issues"
21+
},
22+
"homepage": "https://github.com./commitizen/create-commit#readme"
23+
}

src/bin.js

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
#!/usr/bin/env node
2+
const { hello } = require('./lib');
3+
console.log(`I was executed as a binary and ${hello()}`);

src/lib.js

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
function hello () {
2+
return 'I was included from a library.';
3+
}
4+
5+
module.exports = { hello };

0 commit comments

Comments
 (0)