UNPKG

544 BJavaScriptView Raw
1'use strict';
2
3const Base = require('base');
4const vfs = require('base-fs');
5const generators = require('base-generators');
6
7/**
8 * Create a new `App` with the given `options`.
9 *
10 * ```js
11 * const App = require('base-app');
12 * const app = new App();
13 * ```
14 *
15 * @param {Object} `options` Options to initialize with
16 * @api public
17 */
18
19class App extends Base {
20 constructor(options) {
21 super(options);
22 this.use(generators())
23 this.use(vfs());
24 }
25
26 static get cli() {
27 return require('./lib/cli');
28 }
29};
30
31module.exports = App;