Remove build from VCS

This commit is contained in:
Garrett Mills 2021-04-09 21:26:40 -05:00
parent f66984b3e3
commit c56f0706a4
Signed by: garrettmills
GPG Key ID: D2BF5FBA8298F246
26 changed files with 2 additions and 310 deletions

2
.gitignore vendored
View File

@ -102,3 +102,5 @@ dist
# TernJS port file
.tern-port
lib/*

View File

@ -1,2 +0,0 @@
import { Unit } from '@extollo/lib';
export declare const Units: (typeof Unit)[];

View File

@ -1,19 +0,0 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.Units = void 0;
const lib_1 = require("@extollo/lib");
const orm_1 = require("@extollo/orm");
const cli_1 = require("@extollo/cli");
const i18n_1 = require("@extollo/i18n");
exports.Units = [
lib_1.Config,
lib_1.Files,
cli_1.CommandLine,
lib_1.Controllers,
lib_1.Middlewares,
orm_1.Database,
orm_1.Models,
i18n_1.Internationalization,
lib_1.Routing,
lib_1.HTTPServer,
];

View File

@ -1,4 +0,0 @@
declare const _default: {
name: any;
};
export default _default;

View File

@ -1,6 +0,0 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const lib_1 = require("@extollo/lib");
exports.default = {
name: lib_1.env('APP_NAME', 'Extollo'),
};

View File

@ -1,13 +0,0 @@
declare const _default: {
connections: {
default: {
user: any;
password: any;
host: any;
port: any;
database: any;
dialect: any;
};
};
};
export default _default;

View File

@ -1,15 +0,0 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const lib_1 = require("@extollo/lib");
exports.default = {
connections: {
default: {
user: lib_1.env('DATABASE_USERNAME', 'extollo'),
password: lib_1.env('DATABASE_PASSWORD'),
host: lib_1.env('DATABASE_HOST', 'localhost'),
port: lib_1.env('DATABASE_PORT', 5432),
database: lib_1.env('DATABASE_NAME', 'extollo_1'),
dialect: lib_1.env('DATABASE_DIALECT', 'postgres'),
},
},
};

View File

@ -1,4 +0,0 @@
declare const _default: {
app_name: any;
};
export default _default;

View File

@ -1,6 +0,0 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const lib_1 = require("@extollo/lib");
exports.default = {
app_name: lib_1.env('APP_NAME', 'Extollo'),
};

View File

@ -1,5 +0,0 @@
declare const _default: {
welcome_to_extollo: string;
viewed_page_num_times: string;
};
export default _default;

View File

@ -1,6 +0,0 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.default = {
welcome_to_extollo: 'Welcome to Extollo!',
viewed_page_num_times: 'You have viewed this page :num: times.',
};

View File

@ -1,21 +0,0 @@
import { ORMSession } from "@extollo/orm";
import { LocalFilesystem, LocalFilesystemConfig } from "@extollo/util";
declare const _default: {
debug: any;
session: {
driver: typeof ORMSession;
};
filesystems: {
default: {
isDefault: boolean;
driver: typeof LocalFilesystem;
config: LocalFilesystemConfig;
};
};
middleware: {
global: {
pre: string[];
};
};
};
export default _default;

View File

@ -1,40 +0,0 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const lib_1 = require("@extollo/lib");
const orm_1 = require("@extollo/orm");
const util_1 = require("@extollo/util");
exports.default = {
debug: lib_1.env('DEBUG_MODE', false),
session: {
/* The implementation of @extollo/lib.Session that serves as the session backend. */
driver: orm_1.ORMSession,
},
/*
* Here, you can define various filesystem drivers that can be used in
* your application to store/retrieve files.
*
* The key in the object is the 'name' of the filesystem as it will be
* fetched in code. For example, if you have a `fubar: { ... }` item,
* then you can retrieve that filesystem using the Files service like
* so:
*
* files.getFilesystem('fubar') // => Filesystem { ... }
*/
filesystems: {
default: {
/* If true, this will serve as the default filesystem for modules in your application. */
isDefault: true,
/* The implementation of @extollo/util.Filesystem that serves as the backend. */
driver: util_1.LocalFilesystem,
/* The config required by the filesystem driver. */
config: {
baseDir: lib_1.basePath('..', 'uploads').toLocal,
},
}
},
middleware: {
global: {
pre: ['LogRequest'],
},
},
};

View File

@ -1,7 +0,0 @@
import { Controller, Session } from '@extollo/lib';
import { Locale } from "@extollo/i18n";
export declare class Home extends Controller {
protected readonly session: Session;
protected readonly locale: Locale;
welcome(): import("@extollo/lib").ViewResponseFactory;
}

View File

@ -1,36 +0,0 @@
"use strict";
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __metadata = (this && this.__metadata) || function (k, v) {
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.Home = void 0;
const lib_1 = require("@extollo/lib");
const di_1 = require("@extollo/di");
const i18n_1 = require("@extollo/i18n");
let Home = class Home extends lib_1.Controller {
welcome() {
this.session.set('app_visits', this.session.get('app_visits', 0) + 1);
return lib_1.view('welcome', {
app_visits: this.session.get('app_visits'),
locale: this.locale.helper(),
});
}
};
__decorate([
di_1.Inject(),
__metadata("design:type", lib_1.Session)
], Home.prototype, "session", void 0);
__decorate([
di_1.Inject(),
__metadata("design:type", i18n_1.Locale)
], Home.prototype, "locale", void 0);
Home = __decorate([
di_1.Injectable()
], Home);
exports.Home = Home;

View File

@ -1,5 +0,0 @@
import { Logging, Middleware } from "@extollo/lib";
export declare class LogRequest extends Middleware {
protected readonly logging: Logging;
apply(): Promise<void>;
}

View File

@ -1,38 +0,0 @@
"use strict";
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __metadata = (this && this.__metadata) || function (k, v) {
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
return new (P || (P = Promise))(function (resolve, reject) {
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
step((generator = generator.apply(thisArg, _arguments || [])).next());
});
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.LogRequest = void 0;
const lib_1 = require("@extollo/lib");
const di_1 = require("@extollo/di");
let LogRequest = class LogRequest extends lib_1.Middleware {
apply() {
return __awaiter(this, void 0, void 0, function* () {
this.logging.info(`Incoming request: ${this.request.method} @ ${this.request.path}`);
});
}
};
__decorate([
di_1.Inject(),
__metadata("design:type", lib_1.Logging)
], LogRequest.prototype, "logging", void 0);
LogRequest = __decorate([
di_1.Injectable()
], LogRequest);
exports.LogRequest = LogRequest;

View File

@ -1 +0,0 @@
export {};

View File

@ -1,4 +0,0 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const lib_1 = require("@extollo/lib");
lib_1.Route.get('/', 'main:Home.welcome');

View File

@ -1,5 +0,0 @@
import { Model } from "@extollo/orm";
export declare class User extends Model<User> {
protected static table: string;
protected static key: string;
}

View File

@ -1,9 +0,0 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.User = void 0;
const orm_1 = require("@extollo/orm");
class User extends orm_1.Model {
}
exports.User = User;
User.table = 'users';
User.key = 'user_id';

View File

@ -1,6 +0,0 @@
html
head
title !{locale('app_name')}
body
h1 !{locale('welcome_to_extollo')}
h2 !{locale('viewed_page_num_times', { interp: { num: app_visits } })}

1
lib/cli.d.ts vendored
View File

@ -1 +0,0 @@
export {};

View File

@ -1,31 +0,0 @@
"use strict";
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
return new (P || (P = Promise))(function (resolve, reject) {
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
step((generator = generator.apply(thisArg, _arguments || [])).next());
});
};
Object.defineProperty(exports, "__esModule", { value: true });
const lib_1 = require("@extollo/lib");
const Units_extollo_1 = require("./Units.extollo");
const cli_1 = require("@extollo/cli");
(() => __awaiter(void 0, void 0, void 0, function* () {
/*
* The Application
* -----------------------------------------------------
* The application instance is a global inversion of control container that
* ties your entire application together. The app container manages services
* and lifecycle.
*/
const app = lib_1.Application.getApplication();
app.forceStartupMessage = false;
Units_extollo_1.Units.reverse();
cli_1.CommandLineApplication.setReplacement(Units_extollo_1.Units[0]);
Units_extollo_1.Units[0] = cli_1.CommandLineApplication;
Units_extollo_1.Units.reverse();
app.scaffold(__dirname, Units_extollo_1.Units);
yield app.run();
}))();

1
lib/index.d.ts vendored
View File

@ -1 +0,0 @@
export {};

View File

@ -1,25 +0,0 @@
"use strict";
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
return new (P || (P = Promise))(function (resolve, reject) {
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
step((generator = generator.apply(thisArg, _arguments || [])).next());
});
};
Object.defineProperty(exports, "__esModule", { value: true });
const lib_1 = require("@extollo/lib");
const Units_extollo_1 = require("./Units.extollo");
(() => __awaiter(void 0, void 0, void 0, function* () {
/*
* The Application
* -----------------------------------------------------
* The application instance is a global inversion of control container that
* ties your entire application together. The app container manages services
* and lifecycle.
*/
const app = lib_1.Application.getApplication();
app.scaffold(__dirname, Units_extollo_1.Units);
yield app.run();
}))();