Skip to content

Commit

Permalink
Added a config obj & started bills
Browse files Browse the repository at this point in the history
  • Loading branch information
Neil Grogan committed Jul 24, 2017
1 parent 033fd8b commit ca9c5de
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ npm-debug.log*
.env
tags
dist/
config.json

# Runtime data
pids
Expand Down
Empty file added conf/.gitignore
Empty file.
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,10 @@
"description": "Processes PDF files on AWS Lambda",
"main": "bin/index.js",
"scripts": {
"build": "npm run build:init && npm run build:bin && npm run build:js && npm run build:install",
"build": "npm run build:init && npm run build:bin && npm run build:conf && npm run build:js && npm run build:install",
"build:init": "rm -rf dist && mkdir dist",
"build:bin": "cp bin/* dist/",
"build:conf": "cp conf/* dist/",
"build:js": "babel index.js --out-dir dist && babel src --out-dir dist/src",
"build:install": "cp package.json dist/ && cd dist && npm install --production",
"package": "npm run build && npm run package:pack",
Expand Down
23 changes: 23 additions & 0 deletions src/bills.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
export default class Bills {

constructor(text, config){
this.text = text;
this.config = config;
}


search_text_for_account(){
for(let accountObj in this.config){
console.log(`Checking account ${JSON.stringify(accountObj)}`)
}

}

retrieve_bill_date(){

}

async run(){
this.search_text_for_account();
}
}

0 comments on commit ca9c5de

Please sign in to comment.