creating project structure

This commit is contained in:
Kononnable 2017-03-23 22:38:12 +01:00
parent 7527c60544
commit 276720e5e5
9 changed files with 81 additions and 1 deletions

6
.gitignore vendored Normal file
View File

@ -0,0 +1,6 @@
node_modules/
npm-debug.log
ormconfig.json
.vscode
typings/
**/*.js

View File

@ -1,2 +1,2 @@
# typeorm-model-generator
Generates models for TypeORM from existing database.
Generates models for TypeORM from existing databases.

31
package.json Normal file
View File

@ -0,0 +1,31 @@
{
"name": "typeorm-model-generator",
"version": "0.0.1",
"description": "Generates models for TypeORM from existing databases.",
"scripts": {
"tsc:w": "tsc -w",
"typings-install": "typings install",
"setup": "npm install && npm run typings-install",
"start": "tsc && node ./index.js"
},
"repository": {
"type": "git",
"url": "git+https://github.com/Kononnable/typeorm-model-generator.git"
},
"author": "Kononnable",
"license": "MIT",
"bugs": {
"url": "https://github.com/Kononnable/typeorm-model-generator/issues"
},
"homepage": "https://github.com/Kononnable/typeorm-model-generator#readme",
"dependencies": {
"@types/node": "^7.0.10",
"mssql": "^3.3.0",
"mustache": "^2.3.0",
"reflect-metadata": "^0.1.10",
"typeorm": "0.0.10"
},
"devDependencies": {
"typings": "^2.1.0"
}
}

8
src/Engine.ts Normal file
View File

@ -0,0 +1,8 @@
/**
* Engine
*/
class Engine {
constructor(parameters) {
}
}

View File

@ -0,0 +1,8 @@
/**
* abstractDriver
*/
abstract class abstractDriver {
constructor(parameters) {
}
}

View File

@ -0,0 +1,9 @@
/**
* mssqlDriver
*/
class mssqlDriver extends abstractDriver {
constructor(parameters) {
super(parameters);
}
}

3
src/index.ts Normal file
View File

@ -0,0 +1,3 @@
import * as Mustache from 'mustache'
var x = Mustache.render("{{a}}", {a:'test'});
console.log(x);

10
tsconfig.json Normal file
View File

@ -0,0 +1,10 @@
{
"compilerOptions": {
"module": "commonjs",
"target": "es6",
"noImplicitAny": false,
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"sourceMap": false
}
}

5
typings.json Normal file
View File

@ -0,0 +1,5 @@
{
"globalDevDependencies": {
"mustache": "registry:dt/mustache#0.8.2+20160510002910"
}
}