let searchOptions = {
basedir: `${buildDir}/addons/search`,
debug: true,
- entries: [`${outDir}/addons/search/Search.js`],
+ entries: [`${outDir}/addons/search/search.js`],
cache: {},
packageCache: {}
};
let searchBundle = browserify(searchOptions)
.bundle()
- .pipe(source('./addons/search/Search.js'))
+ .pipe(source('./addons/search/search.js'))
.pipe(buffer())
.pipe(sourcemaps.init({loadMaps: true, sourceRoot: ''}))
.pipe(sourcemaps.write('./'))
+++ /dev/null
-/**
- * @license MIT
- */
-
-import { SearchHelper } from './SearchHelper';
-
-declare var exports: any;
-declare var module: any;
-declare var define: any;
-declare var require: any;
-declare var window: any;
-
-(function (addon) {
- if ('Terminal' in window) {
- /**
- * Plain browser environment
- */
- addon(window.Terminal);
- } else if (typeof exports === 'object' && typeof module === 'object') {
- /**
- * CommonJS environment
- */
- const xterm = '../../xterm';
- module.exports = addon(require(xterm));
- } else if (typeof define == 'function') {
- /**
- * Require.js is available
- */
- define(['../../xterm'], addon);
- }
-})((Terminal: any) => {
- /**
- * Find the next instance of the term, then scroll to and select it. If it
- * doesn't exist, do nothing.
- * @param term Tne search term.
- * @return Whether a result was found.
- */
- Terminal.prototype.findNext = function(term: string): boolean {
- if (!this._searchHelper) {
- this.searchHelper = new SearchHelper(this, Terminal.translateBufferLineToString);
- }
- return (<SearchHelper>this.searchHelper).findNext(term);
- };
-
- /**
- * Find the previous instance of the term, then scroll to and select it. If it
- * doesn't exist, do nothing.
- * @param term Tne search term.
- * @return Whether a result was found.
- */
- Terminal.prototype.findPrevious = function(term: string): boolean {
- if (!this._searchHelper) {
- this.searchHelper = new SearchHelper(this, Terminal.translateBufferLineToString);
- }
- return (<SearchHelper>this.searchHelper).findPrevious(term);
- };
-});
--- /dev/null
+/**
+ * @license MIT
+ */
+
+import { SearchHelper } from './SearchHelper';
+
+declare var exports: any;
+declare var module: any;
+declare var define: any;
+declare var require: any;
+declare var window: any;
+
+(function (addon) {
+ if ('Terminal' in window) {
+ /**
+ * Plain browser environment
+ */
+ addon(window.Terminal);
+ } else if (typeof exports === 'object' && typeof module === 'object') {
+ /**
+ * CommonJS environment
+ */
+ const xterm = '../../xterm';
+ module.exports = addon(require(xterm));
+ } else if (typeof define == 'function') {
+ /**
+ * Require.js is available
+ */
+ define(['../../xterm'], addon);
+ }
+})((Terminal: any) => {
+ /**
+ * Find the next instance of the term, then scroll to and select it. If it
+ * doesn't exist, do nothing.
+ * @param term Tne search term.
+ * @return Whether a result was found.
+ */
+ Terminal.prototype.findNext = function(term: string): boolean {
+ if (!this._searchHelper) {
+ this.searchHelper = new SearchHelper(this, Terminal.translateBufferLineToString);
+ }
+ return (<SearchHelper>this.searchHelper).findNext(term);
+ };
+
+ /**
+ * Find the previous instance of the term, then scroll to and select it. If it
+ * doesn't exist, do nothing.
+ * @param term Tne search term.
+ * @return Whether a result was found.
+ */
+ Terminal.prototype.findPrevious = function(term: string): boolean {
+ if (!this._searchHelper) {
+ this.searchHelper = new SearchHelper(this, Terminal.translateBufferLineToString);
+ }
+ return (<SearchHelper>this.searchHelper).findPrevious(term);
+ };
+});