Skip to content

Commit d5df878

Browse files
author
Carson Howard
committed
bootstrapped package
1 parent 7ab0caa commit d5df878

9 files changed

+3737
-0
lines changed

.eslintignore

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
build/*

.eslintrc

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
{
2+
"env": {
3+
"es6": true,
4+
"jasmine": true,
5+
"node": true
6+
},
7+
"extends": "eslint:recommended",
8+
"globals": {
9+
"pit": true
10+
},
11+
"rules": {
12+
"indent": [2, 2],
13+
"no-console": 1,
14+
"no-const-assign": 2,
15+
"no-trailing-spaces": 2,
16+
"no-var": 2,
17+
"prefer-arrow-callback": 2,
18+
"prefer-const": 2,
19+
"quotes": [2, "single"],
20+
"semi": [2, "always"],
21+
"valid-jsdoc": 2
22+
}
23+
}

.gitignore

+34
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
# Logs
2+
logs
3+
*.log
4+
npm-debug.log*
5+
6+
# Runtime data
7+
pids
8+
*.pid
9+
*.seed
10+
11+
# Directory for instrumented libs generated by jscoverage/JSCover
12+
lib-cov
13+
14+
# Coverage directory used by tools like istanbul
15+
coverage
16+
17+
# node-waf configuration
18+
.lock-wscript
19+
20+
# Build directory
21+
build
22+
23+
# Generated Test Repos
24+
spec/repos
25+
26+
# Dependency directory
27+
# https://docs.npmjs.com/misc/faq#should-i-check-my-node-modules-folder-into-git
28+
node_modules
29+
30+
# Optional npm cache directory
31+
.npm
32+
33+
# Optional REPL history
34+
.node_repl_history

.npmignore

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# Test directories
2+
test
3+
build/test

package.json

+44
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
{
2+
"name": "nodegit-lfs",
3+
"version": "0.0.1",
4+
"description": "A wrapper for NodeGit to facilitate LFS Support",
5+
"main": "index.js",
6+
"scripts": {
7+
"compile": "\"node_modules/.bin/webpack\" --config webpack.config.js",
8+
"watch": "\"node_modules/.bin/webpack\" --config webpack.config.js --watch",
9+
"eslint": "\"node_modules/.bin/eslint\" src test",
10+
"debug-test": "yarn eslint && yarn compile && node-debug --debug-brk node_modules/.bin/mocha test",
11+
"test": "yarn eslint && \"node_modules/.bin/mocha\" test",
12+
"test-watch": "mocha test --watch"
13+
},
14+
"repository": "[email protected]:Axosoft/nodegit-lfs.git",
15+
"author": "Axosoft, LLC",
16+
"license": "ISC",
17+
"keywords": [
18+
"node",
19+
"git",
20+
"lfs",
21+
"nodegit"
22+
],
23+
"bugs": {
24+
"url": "https://github.com/Axosoft/nodegit-lfs/issues"
25+
},
26+
"homepage": "https://github.com/Axosoft/nodegit-lfs#readme",
27+
"peerDependencies": {
28+
"nodegit": ">=0.18.3"
29+
},
30+
"devDependencies": {
31+
"babel-cli": "^6.24.1",
32+
"babel-loader": "^7.1.1",
33+
"babel-preset-es2015": "^6.24.1",
34+
"chai": "^4.0.2",
35+
"eslint": "^4.2.0",
36+
"fs-extra": "^3.0.1",
37+
"jsdoc-to-markdown": "^3.0.0",
38+
"mocha": "^3.4.2",
39+
"webpack": "^3.1.0"
40+
},
41+
"dependencies": {
42+
"ramda": "^0.24.1"
43+
}
44+
}

src/index.js

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
const init = () => 0;
2+
3+
module.exports = init;

test/index.spec.js

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
const lfs = require('../src');
2+
const expect = require('chai').expect;
3+
4+
describe('LFS', () => {
5+
it('init', () => {
6+
const val = lfs();
7+
expect(val).to.equal(0);
8+
});
9+
});

webpack.config.js

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
const path = require('path');
2+
3+
module.exports = {
4+
entry: './src/index.js',
5+
output: {
6+
path: path.resolve(__dirname, './build'),
7+
filename: 'index.js'
8+
},
9+
devtool: 'source-map',
10+
module: {
11+
rules: [
12+
{
13+
test: /\.js?$/,
14+
loader: 'babel-loader',
15+
include: [
16+
path.resolve(__dirname, 'src'),
17+
path.resolve(__dirname, 'test')
18+
],
19+
exclude: /node_modules/
20+
}
21+
]
22+
}
23+
};

0 commit comments

Comments
 (0)