development.js 387 B

12345678910111213141516
  1. const Application = require('thinkjs');
  2. const babel = require('think-babel');
  3. const watcher = require('think-watcher');
  4. const notifier = require('node-notifier');
  5. const instance = new Application({
  6. ROOT_PATH: __dirname,
  7. watcher: watcher,
  8. transpiler: [babel, {
  9. presets: ['think-node']
  10. }],
  11. notifier: notifier.notify.bind(notifier),
  12. env: 'development'
  13. });
  14. instance.run();