Skip to content

Commit

Permalink
bower
Browse files Browse the repository at this point in the history
  • Loading branch information
wheresrhys committed Jan 5, 2016
1 parent 7ec3fa8 commit 0238fc6
Show file tree
Hide file tree
Showing 5 changed files with 27 additions and 13 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
/node_modules/
/es5/
/bower_components/
21 changes: 21 additions & 0 deletions bower.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"name": "keen-query",
"description": "",
"main": "lib/keen-query.js",
"authors": [
"Rhys Evans <rhys.evans@ft.com>"
],
"license": "ISC",
"homepage": "https://github.com/Financial-Times/keen-query",
"moduleType": [],
"dependencies": {
"isomorphic-fetch": "^2.2.0"
},
"ignore": [
"**/.*",
"node_modules",
"bower_components",
"test",
"tests"
]
}
2 changes: 2 additions & 0 deletions lib/cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
const program = require('commander');
const KeenQuery = require('./keen-query');

KeenQuery.definePrinter('ascii', require('./printers/ascii'));

function executeQuery (query) {
if (!/->print\(/.test(query)) {
query = query + '->print(ascii)';
Expand Down
4 changes: 1 addition & 3 deletions lib/keen-query.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,7 @@ let printers = {

csv: function (curr, prev) {

},

ascii: require('./printers/ascii')
}
}

const filterShorthandMap = {
Expand Down
11 changes: 2 additions & 9 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "keen-query",
"version": "1.0.0-beta.2",
"version": "1.0.0",
"description": "",
"main": "lib/keen-query.js",
"dependencies": {
Expand All @@ -12,15 +12,8 @@
"keen-query": "./bin/keen-query.js",
"kq": "./bin/keen-query.js"
},
"browser": "es5/keen-query.js",
"devDependencies": {
"babel": "^6.0.15",
"babel-cli": "^6.1.2",
"babel-preset-es2015": "^6.1.2"
},
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"prepublish": "babel lib --out-dir es5 --presets es2015"
"test": "echo \"Error: no test specified\" && exit 1"
},
"repository": {
"type": "git",
Expand Down

0 comments on commit 0238fc6

Please sign in to comment.