thinkjs/template/www/development.es
2016-12-14 14:26:15 +08:00

22 lines
420 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',
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,
presets: [],
plugins: []
});
instance.run();