creating project structure
This commit is contained in:
parent
7527c60544
commit
276720e5e5
6
.gitignore
vendored
Normal file
6
.gitignore
vendored
Normal file
@ -0,0 +1,6 @@
|
||||
node_modules/
|
||||
npm-debug.log
|
||||
ormconfig.json
|
||||
.vscode
|
||||
typings/
|
||||
**/*.js
|
@ -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
31
package.json
Normal 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
8
src/Engine.ts
Normal file
@ -0,0 +1,8 @@
|
||||
/**
|
||||
* Engine
|
||||
*/
|
||||
class Engine {
|
||||
constructor(parameters) {
|
||||
|
||||
}
|
||||
}
|
8
src/drivers/AbstractDriver.ts
Normal file
8
src/drivers/AbstractDriver.ts
Normal file
@ -0,0 +1,8 @@
|
||||
/**
|
||||
* abstractDriver
|
||||
*/
|
||||
abstract class abstractDriver {
|
||||
constructor(parameters) {
|
||||
|
||||
}
|
||||
}
|
9
src/drivers/MssqlDriver.ts
Normal file
9
src/drivers/MssqlDriver.ts
Normal file
@ -0,0 +1,9 @@
|
||||
/**
|
||||
* mssqlDriver
|
||||
*/
|
||||
class mssqlDriver extends abstractDriver {
|
||||
constructor(parameters) {
|
||||
super(parameters);
|
||||
|
||||
}
|
||||
}
|
3
src/index.ts
Normal file
3
src/index.ts
Normal 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
10
tsconfig.json
Normal file
@ -0,0 +1,10 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"module": "commonjs",
|
||||
"target": "es6",
|
||||
"noImplicitAny": false,
|
||||
"emitDecoratorMetadata": true,
|
||||
"experimentalDecorators": true,
|
||||
"sourceMap": false
|
||||
}
|
||||
}
|
5
typings.json
Normal file
5
typings.json
Normal file
@ -0,0 +1,5 @@
|
||||
{
|
||||
"globalDevDependencies": {
|
||||
"mustache": "registry:dt/mustache#0.8.2+20160510002910"
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user