mirror of
https://github.com/thinkjs/thinkjs.git
synced 2026-01-25 14:42:47 +00:00
19 lines
347 B
JavaScript
19 lines
347 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
|
|
});
|
|
|
|
instance.run(); |