mirror of
https://github.com/thinkjs/thinkjs.git
synced 2026-01-18 14:26:56 +00:00
21 lines
420 B
TypeScript
21 lines
420 B
TypeScript
var thinkjs = require('thinkjs');
|
|
var path = require('path');
|
|
|
|
var rootPath = path.dirname(__dirname);
|
|
|
|
var instance = new thinkjs({
|
|
APP_PATH: rootPath + path.sep + 'app',
|
|
RUNTIME_PATH: rootPath + path.sep + 'runtime',
|
|
ROOT_PATH: rootPath,
|
|
RESOURCE_PATH: __dirname,
|
|
env: 'development'
|
|
});
|
|
|
|
// Build code from src to app directory.
|
|
instance.compile({
|
|
log: true,
|
|
type: 'ts' //TypeScript
|
|
});
|
|
|
|
instance.run();
|