think-cli
Version:
A simple CLI for scaffolding Thinkjs projects.
19 lines (16 loc) • 550 B
JavaScript
const path = require('path');
const Application = require('thinkjs');
const watcher = require('think-watcher');<% if (babel) { %>
const babel = require('think-babel');
const notifier = require('node-notifier');<% } %>
const instance = new Application({
ROOT_PATH: __dirname,
APP_PATH: path.join(__dirname, '<% if (babel) { %>app<% } else { %>src<% } %>'),
watcher: watcher,<% if (babel) { %>
transpiler: [babel, {
presets: ['think-node']
}],
notifier: notifier.notify.bind(notifier),<% } %>
env: 'development'
});
instance.run();