Skip to content
This repository was archived by the owner on Jul 15, 2021. It is now read-only.

Commit 0b35cd9

Browse files
committed
added LICENSE and npmignore. updated package.json, TODO andCHANGELOG. moved index.js to root directory. refs #2
1 parent 96bacdd commit 0b35cd9

File tree

8 files changed

+68
-37
lines changed

8 files changed

+68
-37
lines changed

.npmignore

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
test
2+
src
3+
.ref
4+
TODO.md
5+
Gruntfile.js
6+
.gitignore

CHANGELOG.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,16 @@ All notable changes to this project will be documented in this file.
55

66
[unreleased]: https://github.com/codeschool/sqlite-parser
77

8+
## [v0.3.1] - 2015-06-25
9+
### Added
10+
- `LICENSE` file added
11+
- `.npmignore` file added
12+
13+
### Changed
14+
- updated package dependencies
15+
- `index.js` file moved to file root, duplicate copies in `lib/` and `src/` removed
16+
- going to try and keep (most significant) version numbers synchronized between `sqlite-parser` and `sqlite-tree` to avoid confusion going forward
17+
818
## [v0.3.0] - 2015-06-25
919
### Added
1020
- allow subquery in parenthesis within `FROM` clause

Gruntfile.js

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ module.exports = function(grunt) {
1313
},
1414
clean: {
1515
main: ['lib/**/*.js']
16-
// , dist: ['dist/**/*.js']
1716
},
1817
shell: {
1918
pegjs: {
@@ -26,15 +25,15 @@ module.exports = function(grunt) {
2625
options: {
2726
failOnError: true
2827
},
29-
command: './node_modules/.bin/mocha test/index-spec.js --reporter="nyan"'
28+
command: './node_modules/.bin/mocha test/index-spec.js --reporter="nyan" --colors'
3029
},
3130
debug: {
3231
options: {
3332
failOnError: false,
3433
debounceDelay: 500,
3534
forever: true
3635
},
37-
command: 'DEBUG=true ./node_modules/.bin/mocha test/index-spec.js --reporter="list"'
36+
command: 'DEBUG=true ./node_modules/.bin/mocha test/index-spec.js --reporter="list" --colors'
3837
},
3938
json: {
4039
options: {
@@ -45,7 +44,7 @@ module.exports = function(grunt) {
4544
},
4645
watch: {
4746
debug: {
48-
files: ['Gruntfile.js', 'test/*.js', 'src/*.js', 'src/*.pegjs', 'test/sql/*.sql'],
47+
files: ['Gruntfile.js', 'index.js', 'test/*.js', 'src/*.js', 'src/*.pegjs', 'test/sql/*.sql'],
4948
tasks: ['default', 'shell:debug']
5049
}
5150
}

LICENSE

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
(The MIT License)
2+
3+
Copyright (c) 2015 Code School.
4+
5+
Permission is hereby granted, free of charge, to any person obtaining
6+
a copy of this software and associated documentation files (the
7+
'Software'), to deal in the Software without restriction, including
8+
without limitation the rights to use, copy, modify, merge, publish,
9+
distribute, sublicense, and/or sell copies of the Software, and to
10+
permit persons to whom the Software is furnished to do so, subject to
11+
the following conditions:
12+
13+
The above copyright notice and this permission notice shall be
14+
included in all copies or substantial portions of the Software.
15+
16+
THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
17+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
19+
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
20+
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
21+
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
22+
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
1+
/*!
2+
* sqlite-parser
3+
* @description PEG.js implementation of SQLite 3 query parser
4+
* @author Nick Wronski <nick@javascript.com>
5+
*/
6+
17
var _ = require('lodash'),
28
prom = require('promise/lib/es6-extensions'),
3-
parser = require('./sql-parser');
9+
parser = require('./lib/sql-parser');
410

511
function sqliteParser(source) {
612
return new prom(function(resolve) {
@@ -10,9 +16,4 @@ function sqliteParser(source) {
1016
sqliteParser['NAME'] = "sqlite-parser";
1117
sqliteParser['VERSION'] = "0.3.0";
1218

13-
/**!
14-
* sqlite-parser
15-
* @description PEG.js implementation of SQLite 3 query parser
16-
* @author Nick Wronski <nick@javascript.com>
17-
*/
1819
module.exports = sqliteParser;

package.json

Lines changed: 19 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,28 @@
11
{
22
"name": "sqlite-parser",
3+
"description": "JavaScript implentation of SQLite 3 query parser",
4+
"author": "Code School (http://codeschool.com)",
35
"version": "0.3.0",
4-
"main": "lib/index.js",
5-
"private": true,
6-
"author": "Code School",
76
"contributors": [
8-
{
9-
"name": "Nick Wronski",
10-
"url": "https://github.com/nwronski"
11-
}
7+
"Nick Wronski <nick@javascript.com>"
8+
],
9+
"keywords": [
10+
"sql",
11+
"sqlite",
12+
"parser",
13+
"syntax",
14+
"ast"
1215
],
16+
"main": "index.js",
17+
"private": true,
1318
"license": "MIT",
14-
"description": "PEG.js implentation of SQLite 3 query parser",
19+
"files": [
20+
"lib/",
21+
"LICENSE",
22+
"CHANGELOG.md",
23+
"README.md",
24+
"index.js"
25+
],
1526
"repository": "git@github.com:codeschool/sqlite-parser.git",
1627
"bugs": {
1728
"url": "https://github.com/codeschool/sqlite-parser/issues"

src/index.js

Lines changed: 0 additions & 18 deletions
This file was deleted.

test/helpers.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ var expect = require('chai').expect,
33
Promise = require('promise'),
44
read = Promise.denodeify(fs.readFile),
55
_ = require('lodash'),
6-
sqliteParser = require('../lib/index'),
6+
sqliteParser = require('../index'),
77
prettyjson = require('prettyjson'),
88
format, broadcast, getTree, assertOkTree, assertErrorTree,
99
isDefined = function (arg) { return arg != null; };

0 commit comments

Comments
 (0)