mirror of
https://github.com/thinkjs/thinkjs.git
synced 2026-02-01 15:23:03 +00:00
20 lines
374 B
JavaScript
20 lines
374 B
JavaScript
var thinkjs = require('thinkjs');
|
|
var path = require('path');
|
|
|
|
var rootPath = path.dirname(__dirname);
|
|
|
|
var instance = new thinkjs({
|
|
APP_PATH: rootPath + path.sep + 'app',
|
|
ROOT_PATH: rootPath,
|
|
RESOURCE_PATH: __dirname,
|
|
env: 'development'
|
|
});
|
|
|
|
//compile src/ to app/
|
|
instance.compile({
|
|
retainLines: true,
|
|
log: true,
|
|
type: 'ts' //TypeScript
|
|
});
|
|
|
|
instance.run(); |