Skip to content

Commit

Permalink
Initial
Browse files Browse the repository at this point in the history
  • Loading branch information
benogle committed Jan 31, 2020
0 parents commit 186d2f1
Show file tree
Hide file tree
Showing 9 changed files with 3,657 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"presets": ["@babel/preset-env"]
}
3 changes: 3 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
module.exports = {
extends: ['nicenice']
}
6 changes: 6 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
.DS_STORE
*.log

lib/
node_modules
package-lock.json
5 changes: 5 additions & 0 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
test/
src/
yarn.lock
.babelrc
.eslintrc.js
47 changes: 47 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
{
"name": "@anvilco/anvil",
"version": "1.0.0",
"description": "Anvil API Client",
"main": "lib/index.js",
"scripts": {
"test": "mocha --require test/environment.js 'test/**/*.test.js'",
"build": "babel src --out-dir lib",
"prepare": "yarn build"
},
"repository": {
"type": "git",
"url": "git+https://github.com/anvilco/node-anvil.git"
},
"keywords": [
"pdf",
"pdf-fill"
],
"author": "Anvil Foundry Inc.",
"license": "MIT",
"bugs": {
"url": "https://github.com/anvilco/node-anvil/issues"
},
"homepage": "https://github.com/anvilco/node-anvil#readme",
"devDependencies": {
"@babel/cli": "^7.8.4",
"@babel/core": "^7.8.4",
"@babel/polyfill": "^7.8.3",
"@babel/preset-env": "^7.8.4",
"@babel/register": "^7.8.3",
"babel-eslint": "^10.0.3",
"chai": "^4.2.0",
"eslint": "6.5.1",
"eslint-config-nicenice": "^2.0.0",
"eslint-config-standard": "^14.1.0",
"eslint-config-standard-jsx": "^8.1.0",
"eslint-plugin-import": "^2.20.0",
"eslint-plugin-no-only-tests": "^2.4.0",
"eslint-plugin-node": "^11.0.0",
"eslint-plugin-promise": "^4.2.1",
"eslint-plugin-react": "^7.18.0",
"eslint-plugin-standard": "^4.0.1",
"mocha": "^7.0.1",
"sinon": "^8.1.1",
"sinon-chai": "^3.4.0"
}
}
5 changes: 5 additions & 0 deletions src/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
export default class Anvil {
constructor () {
this.thing = 1
}
}
15 changes: 15 additions & 0 deletions test/environment.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
require('@babel/register')({
ignore: [/node_modules/],
})

require('@babel/polyfill')
var sinon = require('sinon')
var chai = require('chai')
var sinonChai = require('sinon-chai')

chai.use(sinonChai)

global.chai = chai
global.sinon = sinon
global.expect = chai.expect
global.should = chai.should()
7 changes: 7 additions & 0 deletions test/index.test.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import Anvil from '../src/index'

describe('thing', function () {
it('does the thing', async function () {
expect(Anvil).to.be.ok
})
})
Loading

0 comments on commit 186d2f1

Please sign in to comment.