Skip to content

Commit

Permalink
feat(storage): Implement Database insert update delete and QueryToken…
Browse files Browse the repository at this point in the history
….prototype.value
  • Loading branch information
Brooooooklyn committed Dec 6, 2016
1 parent fb16996 commit 252a971
Show file tree
Hide file tree
Showing 47 changed files with 2,274 additions and 565 deletions.
7 changes: 6 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,6 @@
node_modules
node_modules
spec-js
dist
*.log
coverage
.nyc_output
2 changes: 2 additions & 0 deletions .lgtm
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
approvals = 1
pattern = "(?i):shipit:|:\\+1:|LGTM"
4 changes: 4 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
// Place your settings in this file to overwrite default and user settings.
{
"typescript.tsdk": "./node_modules/typescript/lib"
}
1 change: 1 addition & 0 deletions MAINTAINERS
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Brooooooklyn
13 changes: 13 additions & 0 deletions circle.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
machine:
node:
version: 6.9.1

test:
override:
- npm run cover
post:
- cp ./.nyc_output/*.json $CIRCLE_ARTIFACTS

notify:
webhooks:
- url: http://teambition.vvlyn.com/api/circle
37 changes: 28 additions & 9 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,31 +1,50 @@
{
"name": "lovefield-playground",
"version": "1.0.0",
"description": "lovefield playground",
"name": "reactive-database",
"version": "0.7.0",
"description": "Reactive ORM for Lovefield",
"main": "index.js",
"scripts": {
"start": "webpack-dev-server --inline --colors --progress --display-error-details --display-cached --port 3000 --content-base src",
"test": "echo \"Error: no test specified\" && exit 1"
"build_cjs": "rm -rf dist/cjs && tsc src/index.ts -m commonjs --outDir dist/cjs --sourcemap --sourceRoot src --target ES5 -d --diagnostics --pretty --noImplicitAny --noImplicitReturns --noImplicitThis --noUnusedLocals --noUnusedParameters --experimentalDecorators --suppressImplicitAnyIndexErrors --moduleResolution node --noEmitHelpers --lib es5,es2015.iterable,es2015.collection,es2015.promise,dom",
"build_test": "rm -rf spec-js && tsc test/run.ts -m commonjs --outDir spec-js --sourcemap --target ES2015 --diagnostics --pretty --noImplicitAny --noImplicitReturns --experimentalDecorators --suppressImplicitAnyIndexErrors --moduleResolution node",
"cover": "npm run build_test && nyc --reporter=html --exclude=node_modules --exclude=spec-js/test --exclude=spec-js/src/storage/lovefield tman --mocha spec-js/test/run.js",
"lint": "tslint ./src/**/*.ts ./test/**/*.ts",
"test": "npm run lint && tman --mocha spec-js/test/run.js",
"watch_cjs": "tsc src/index.ts -m commonjs --outDir dist/cjs --sourcemap --sourceRoot src --target ES5 -d --diagnostics --pretty --noImplicitAny --noImplicitReturns --experimentalDecorators --suppressImplicitAnyIndexErrors --moduleResolution node --noEmitHelpers --lib es5,es2015.iterable,es2015.collection,es2015.promise,dom -w",
"watch_test": "tsc test/run.ts -m commonjs --outDir spec-js --sourcemap --target ES2015 --diagnostics --pretty --noImplicitAny --noImplicitReturns --experimentalDecorators --suppressImplicitAnyIndexErrors --moduleResolution node -w & ts-node ./tools/watch.ts"
},
"keywords": [
"lovefield"
"lovefield",
"RxJS"
],
"author": "[email protected]",
"license": "MIT",
"devDependencies": {
"@types/chai": "^3.4.34",
"@types/lovefield": "^2.0.31",
"@types/node": "^6.0.51",
"@types/sinon": "^1.16.32",
"@types/sinon-chai": "^2.7.27",
"chai": "^3.5.0",
"extract-text-webpack-plugin": "^1.0.1",
"html-webpack-plugin": "^2.24.1",
"moment": "^2.17.1",
"nyc": "^10.0.0",
"raw-loader": "^0.5.1",
"sinon": "^1.17.6",
"sinon-chai": "^2.8.0",
"source-map-loader": "^0.1.5",
"ts-loader": "^1.2.0",
"tman": "^1.6.3",
"ts-loader": "^1.2.2",
"ts-node": "^1.7.0",
"typescript": "^2.0.9",
"tslint": "^4.0.2",
"typescript": "^2.0.10",
"webpack": "^1.13.3",
"webpack-merge": "^0.15.0"
"webpack-dev-server": "^1.16.2",
"webpack-merge": "^0.17.0"
},
"dependencies": {
"lovefield": "^2.1.10",
"rxjs": "^5.0.0-rc.2"
"rxjs": "^5.0.0-rc.4"
}
}
34 changes: 0 additions & 34 deletions src/app.ts

This file was deleted.

9 changes: 9 additions & 0 deletions src/global.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
declare namespace NodeJS {
export interface Global {
self: NodeJS.Global
}
}

if (typeof global !== 'undefined') {
global.self = global
}
2 changes: 2 additions & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
import './global'
export { Database } from './storage/Database'
19 changes: 0 additions & 19 deletions src/schemas/Project.ts

This file was deleted.

23 changes: 0 additions & 23 deletions src/schemas/Subtask.ts

This file was deleted.

40 changes: 0 additions & 40 deletions src/schemas/Task.ts

This file was deleted.

10 changes: 10 additions & 0 deletions src/storage/DataType.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
export enum RDBType {
ARRAY_BUFFER,
BOOLEAN,
DATE_TIME,
INTEGER,
NUMBER,
OBJECT,
STRING,
LITERAL_ARRAY
}
Loading

0 comments on commit 252a971

Please sign in to comment.