Selaa lähdekoodia

Clean up the plugin and package.json

Steven Silvester 9 vuotta sitten
vanhempi
commit
dfc62746f5
2 muutettua tiedostoa jossa 11 lisäystä ja 6 poistoa
  1. 9 3
      examples/lab/plugin.ts
  2. 2 3
      package.json

+ 9 - 3
examples/lab/plugin.ts

@@ -30,27 +30,33 @@ function resolve(container: Container): void {
 
 
 /**
- * An implemenation of an IEditorFactory.
+ * The default plugin for the example.
  */
 class DefaultHandler {
 
   /**
-   * The dependencies required by the editor factory.
+   * The dependencies required by the default plugin.
    */
   static requires: Token<any>[] = [IAppShell, ITerminalFactory];
 
   /**
-   * Create a new editor factory instance.
+   * Create a default plugin instance..
    */
   static create(shell: IAppShell, term: ITerminalFactory): DefaultHandler {
     return new DefaultHandler(shell, term);
   }
 
+  /**
+   * Construct a new default plugin.
+   */
   constructor(shell: IAppShell, term: ITerminalFactory) {
     this._shell = shell;
     this._term = term;
   }
 
+  /**
+   * Create a terminal and add it to the main shell area.
+   */
   run() {
     let term = this._term.createTerminal();
     this._shell.addToMainArea(term);

+ 2 - 3
package.json

@@ -35,9 +35,8 @@
     "webpack": "^1.12.9"
   },
   "scripts": {
-    "clean:example": "rimraf example/bundle.js",
-    "clean:test": "rimraf test/build && rimraf test/coverage",
-    "clean": "rimraf docs/api && rimraf lib && npm run clean:test",
+    "clean:example": "rimraf example/build",
+    "clean": "rimraf docs/api && rimraf lib && rimraf test/coverage",
     "build:example": "webpack --config example/webpack.conf.js",
     "build": "tsc --project src && node scripts/copycss.js",
     "docs": "typedoc --options scripts/tdoptions.json",