From 2f5008a232affa092926bf882d91565d15188988 Mon Sep 17 00:00:00 2001 From: "Jan T. Sott" Date: Tue, 20 Jul 2021 00:35:43 +0200 Subject: [PATCH] build --- lib/buildium.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/buildium.js b/lib/buildium.js index 603b532..345055e 100644 --- a/lib/buildium.js +++ b/lib/buildium.js @@ -1 +1 @@ -"use strict";require("core-js/modules/es.symbol.js"),require("core-js/modules/es.symbol.description.js"),require("core-js/modules/es.symbol.async-iterator.js"),require("core-js/modules/es.symbol.has-instance.js"),require("core-js/modules/es.symbol.is-concat-spreadable.js"),require("core-js/modules/es.symbol.iterator.js"),require("core-js/modules/es.symbol.match.js"),require("core-js/modules/es.symbol.match-all.js"),require("core-js/modules/es.symbol.replace.js"),require("core-js/modules/es.symbol.search.js"),require("core-js/modules/es.symbol.species.js"),require("core-js/modules/es.symbol.split.js"),require("core-js/modules/es.symbol.to-primitive.js"),require("core-js/modules/es.symbol.to-string-tag.js"),require("core-js/modules/es.symbol.unscopables.js"),require("core-js/modules/es.aggregate-error.js"),require("core-js/modules/es.array.concat.js"),require("core-js/modules/es.array.copy-within.js"),require("core-js/modules/es.array.every.js"),require("core-js/modules/es.array.fill.js"),require("core-js/modules/es.array.filter.js"),require("core-js/modules/es.array.find.js"),require("core-js/modules/es.array.find-index.js"),require("core-js/modules/es.array.flat.js"),require("core-js/modules/es.array.flat-map.js"),require("core-js/modules/es.array.for-each.js"),require("core-js/modules/es.array.from.js"),require("core-js/modules/es.array.includes.js"),require("core-js/modules/es.array.index-of.js"),require("core-js/modules/es.array.is-array.js"),require("core-js/modules/es.array.iterator.js"),require("core-js/modules/es.array.join.js"),require("core-js/modules/es.array.last-index-of.js"),require("core-js/modules/es.array.map.js"),require("core-js/modules/es.array.of.js"),require("core-js/modules/es.array.reduce.js"),require("core-js/modules/es.array.reduce-right.js"),require("core-js/modules/es.array.reverse.js"),require("core-js/modules/es.array.slice.js"),require("core-js/modules/es.array.some.js"),require("core-js/modules/es.array.sort.js"),require("core-js/modules/es.array.species.js"),require("core-js/modules/es.array.splice.js"),require("core-js/modules/es.array.unscopables.flat.js"),require("core-js/modules/es.array.unscopables.flat-map.js"),require("core-js/modules/es.array-buffer.constructor.js"),require("core-js/modules/es.array-buffer.is-view.js"),require("core-js/modules/es.array-buffer.slice.js"),require("core-js/modules/es.data-view.js"),require("core-js/modules/es.date.get-year.js"),require("core-js/modules/es.date.now.js"),require("core-js/modules/es.date.set-year.js"),require("core-js/modules/es.date.to-gmt-string.js"),require("core-js/modules/es.date.to-iso-string.js"),require("core-js/modules/es.date.to-json.js"),require("core-js/modules/es.date.to-primitive.js"),require("core-js/modules/es.date.to-string.js"),require("core-js/modules/es.escape.js"),require("core-js/modules/es.function.bind.js"),require("core-js/modules/es.function.has-instance.js"),require("core-js/modules/es.function.name.js"),require("core-js/modules/es.global-this.js"),require("core-js/modules/es.json.stringify.js"),require("core-js/modules/es.json.to-string-tag.js"),require("core-js/modules/es.map.js"),require("core-js/modules/es.math.acosh.js"),require("core-js/modules/es.math.asinh.js"),require("core-js/modules/es.math.atanh.js"),require("core-js/modules/es.math.cbrt.js"),require("core-js/modules/es.math.clz32.js"),require("core-js/modules/es.math.cosh.js"),require("core-js/modules/es.math.expm1.js"),require("core-js/modules/es.math.fround.js"),require("core-js/modules/es.math.hypot.js"),require("core-js/modules/es.math.imul.js"),require("core-js/modules/es.math.log10.js"),require("core-js/modules/es.math.log1p.js"),require("core-js/modules/es.math.log2.js"),require("core-js/modules/es.math.sign.js"),require("core-js/modules/es.math.sinh.js"),require("core-js/modules/es.math.tanh.js"),require("core-js/modules/es.math.to-string-tag.js"),require("core-js/modules/es.math.trunc.js"),require("core-js/modules/es.number.constructor.js"),require("core-js/modules/es.number.epsilon.js"),require("core-js/modules/es.number.is-finite.js"),require("core-js/modules/es.number.is-integer.js"),require("core-js/modules/es.number.is-nan.js"),require("core-js/modules/es.number.is-safe-integer.js"),require("core-js/modules/es.number.max-safe-integer.js"),require("core-js/modules/es.number.min-safe-integer.js"),require("core-js/modules/es.number.parse-float.js"),require("core-js/modules/es.number.parse-int.js"),require("core-js/modules/es.number.to-fixed.js"),require("core-js/modules/es.number.to-precision.js"),require("core-js/modules/es.object.assign.js"),require("core-js/modules/es.object.create.js"),require("core-js/modules/es.object.define-getter.js"),require("core-js/modules/es.object.define-properties.js"),require("core-js/modules/es.object.define-property.js"),require("core-js/modules/es.object.define-setter.js"),require("core-js/modules/es.object.entries.js"),require("core-js/modules/es.object.freeze.js"),require("core-js/modules/es.object.from-entries.js"),require("core-js/modules/es.object.get-own-property-descriptor.js"),require("core-js/modules/es.object.get-own-property-descriptors.js"),require("core-js/modules/es.object.get-own-property-names.js"),require("core-js/modules/es.object.get-prototype-of.js"),require("core-js/modules/es.object.is.js"),require("core-js/modules/es.object.is-extensible.js"),require("core-js/modules/es.object.is-frozen.js"),require("core-js/modules/es.object.is-sealed.js"),require("core-js/modules/es.object.keys.js"),require("core-js/modules/es.object.lookup-getter.js"),require("core-js/modules/es.object.lookup-setter.js"),require("core-js/modules/es.object.prevent-extensions.js"),require("core-js/modules/es.object.seal.js"),require("core-js/modules/es.object.set-prototype-of.js"),require("core-js/modules/es.object.to-string.js"),require("core-js/modules/es.object.values.js"),require("core-js/modules/es.parse-float.js"),require("core-js/modules/es.parse-int.js"),require("core-js/modules/es.promise.js"),require("core-js/modules/es.promise.all-settled.js"),require("core-js/modules/es.promise.any.js"),require("core-js/modules/es.promise.finally.js"),require("core-js/modules/es.reflect.apply.js"),require("core-js/modules/es.reflect.construct.js"),require("core-js/modules/es.reflect.define-property.js"),require("core-js/modules/es.reflect.delete-property.js"),require("core-js/modules/es.reflect.get.js"),require("core-js/modules/es.reflect.get-own-property-descriptor.js"),require("core-js/modules/es.reflect.get-prototype-of.js"),require("core-js/modules/es.reflect.has.js"),require("core-js/modules/es.reflect.is-extensible.js"),require("core-js/modules/es.reflect.own-keys.js"),require("core-js/modules/es.reflect.prevent-extensions.js"),require("core-js/modules/es.reflect.set.js"),require("core-js/modules/es.reflect.set-prototype-of.js"),require("core-js/modules/es.reflect.to-string-tag.js"),require("core-js/modules/es.regexp.constructor.js"),require("core-js/modules/es.regexp.dot-all.js"),require("core-js/modules/es.regexp.exec.js"),require("core-js/modules/es.regexp.flags.js"),require("core-js/modules/es.regexp.sticky.js"),require("core-js/modules/es.regexp.test.js"),require("core-js/modules/es.regexp.to-string.js"),require("core-js/modules/es.set.js"),require("core-js/modules/es.string.code-point-at.js"),require("core-js/modules/es.string.ends-with.js"),require("core-js/modules/es.string.from-code-point.js"),require("core-js/modules/es.string.includes.js"),require("core-js/modules/es.string.iterator.js"),require("core-js/modules/es.string.match.js"),require("core-js/modules/es.string.match-all.js"),require("core-js/modules/es.string.pad-end.js"),require("core-js/modules/es.string.pad-start.js"),require("core-js/modules/es.string.raw.js"),require("core-js/modules/es.string.repeat.js"),require("core-js/modules/es.string.replace.js"),require("core-js/modules/es.string.replace-all.js"),require("core-js/modules/es.string.search.js"),require("core-js/modules/es.string.split.js"),require("core-js/modules/es.string.starts-with.js"),require("core-js/modules/es.string.substr.js"),require("core-js/modules/es.string.trim.js"),require("core-js/modules/es.string.trim-end.js"),require("core-js/modules/es.string.trim-start.js"),require("core-js/modules/es.string.anchor.js"),require("core-js/modules/es.string.big.js"),require("core-js/modules/es.string.blink.js"),require("core-js/modules/es.string.bold.js"),require("core-js/modules/es.string.fixed.js"),require("core-js/modules/es.string.fontcolor.js"),require("core-js/modules/es.string.fontsize.js"),require("core-js/modules/es.string.italics.js"),require("core-js/modules/es.string.link.js"),require("core-js/modules/es.string.small.js"),require("core-js/modules/es.string.strike.js"),require("core-js/modules/es.string.sub.js"),require("core-js/modules/es.string.sup.js"),require("core-js/modules/es.typed-array.float32-array.js"),require("core-js/modules/es.typed-array.float64-array.js"),require("core-js/modules/es.typed-array.int8-array.js"),require("core-js/modules/es.typed-array.int16-array.js"),require("core-js/modules/es.typed-array.int32-array.js"),require("core-js/modules/es.typed-array.uint8-array.js"),require("core-js/modules/es.typed-array.uint8-clamped-array.js"),require("core-js/modules/es.typed-array.uint16-array.js"),require("core-js/modules/es.typed-array.uint32-array.js"),require("core-js/modules/es.typed-array.copy-within.js"),require("core-js/modules/es.typed-array.every.js"),require("core-js/modules/es.typed-array.fill.js"),require("core-js/modules/es.typed-array.filter.js"),require("core-js/modules/es.typed-array.find.js"),require("core-js/modules/es.typed-array.find-index.js"),require("core-js/modules/es.typed-array.for-each.js"),require("core-js/modules/es.typed-array.from.js"),require("core-js/modules/es.typed-array.includes.js"),require("core-js/modules/es.typed-array.index-of.js"),require("core-js/modules/es.typed-array.iterator.js"),require("core-js/modules/es.typed-array.join.js"),require("core-js/modules/es.typed-array.last-index-of.js"),require("core-js/modules/es.typed-array.map.js"),require("core-js/modules/es.typed-array.of.js"),require("core-js/modules/es.typed-array.reduce.js"),require("core-js/modules/es.typed-array.reduce-right.js"),require("core-js/modules/es.typed-array.reverse.js"),require("core-js/modules/es.typed-array.set.js"),require("core-js/modules/es.typed-array.slice.js"),require("core-js/modules/es.typed-array.some.js"),require("core-js/modules/es.typed-array.sort.js"),require("core-js/modules/es.typed-array.subarray.js"),require("core-js/modules/es.typed-array.to-locale-string.js"),require("core-js/modules/es.typed-array.to-string.js"),require("core-js/modules/es.unescape.js"),require("core-js/modules/es.weak-map.js"),require("core-js/modules/es.weak-set.js"),require("core-js/modules/esnext.aggregate-error.js"),require("core-js/modules/esnext.array.at.js"),require("core-js/modules/esnext.array.filter-out.js"),require("core-js/modules/esnext.array.find-last.js"),require("core-js/modules/esnext.array.find-last-index.js"),require("core-js/modules/esnext.array.is-template-object.js"),require("core-js/modules/esnext.array.last-index.js"),require("core-js/modules/esnext.array.last-item.js"),require("core-js/modules/esnext.array.unique-by.js"),require("core-js/modules/esnext.async-iterator.constructor.js"),require("core-js/modules/esnext.async-iterator.as-indexed-pairs.js"),require("core-js/modules/esnext.async-iterator.drop.js"),require("core-js/modules/esnext.async-iterator.every.js"),require("core-js/modules/esnext.async-iterator.filter.js"),require("core-js/modules/esnext.async-iterator.find.js"),require("core-js/modules/esnext.async-iterator.flat-map.js"),require("core-js/modules/esnext.async-iterator.for-each.js"),require("core-js/modules/esnext.async-iterator.from.js"),require("core-js/modules/esnext.async-iterator.map.js"),require("core-js/modules/esnext.async-iterator.reduce.js"),require("core-js/modules/esnext.async-iterator.some.js"),require("core-js/modules/esnext.async-iterator.take.js"),require("core-js/modules/esnext.async-iterator.to-array.js"),require("core-js/modules/esnext.bigint.range.js"),require("core-js/modules/esnext.composite-key.js"),require("core-js/modules/esnext.composite-symbol.js"),require("core-js/modules/esnext.global-this.js"),require("core-js/modules/esnext.iterator.constructor.js"),require("core-js/modules/esnext.iterator.as-indexed-pairs.js"),require("core-js/modules/esnext.iterator.drop.js"),require("core-js/modules/esnext.iterator.every.js"),require("core-js/modules/esnext.iterator.filter.js"),require("core-js/modules/esnext.iterator.find.js"),require("core-js/modules/esnext.iterator.flat-map.js"),require("core-js/modules/esnext.iterator.for-each.js"),require("core-js/modules/esnext.iterator.from.js"),require("core-js/modules/esnext.iterator.map.js"),require("core-js/modules/esnext.iterator.reduce.js"),require("core-js/modules/esnext.iterator.some.js"),require("core-js/modules/esnext.iterator.take.js"),require("core-js/modules/esnext.iterator.to-array.js"),require("core-js/modules/esnext.map.delete-all.js"),require("core-js/modules/esnext.map.emplace.js"),require("core-js/modules/esnext.map.every.js"),require("core-js/modules/esnext.map.filter.js"),require("core-js/modules/esnext.map.find.js"),require("core-js/modules/esnext.map.find-key.js"),require("core-js/modules/esnext.map.from.js"),require("core-js/modules/esnext.map.group-by.js"),require("core-js/modules/esnext.map.includes.js"),require("core-js/modules/esnext.map.key-by.js"),require("core-js/modules/esnext.map.key-of.js"),require("core-js/modules/esnext.map.map-keys.js"),require("core-js/modules/esnext.map.map-values.js"),require("core-js/modules/esnext.map.merge.js"),require("core-js/modules/esnext.map.of.js"),require("core-js/modules/esnext.map.reduce.js"),require("core-js/modules/esnext.map.some.js"),require("core-js/modules/esnext.map.update.js"),require("core-js/modules/esnext.map.update-or-insert.js"),require("core-js/modules/esnext.map.upsert.js"),require("core-js/modules/esnext.math.clamp.js"),require("core-js/modules/esnext.math.deg-per-rad.js"),require("core-js/modules/esnext.math.degrees.js"),require("core-js/modules/esnext.math.fscale.js"),require("core-js/modules/esnext.math.iaddh.js"),require("core-js/modules/esnext.math.imulh.js"),require("core-js/modules/esnext.math.isubh.js"),require("core-js/modules/esnext.math.rad-per-deg.js"),require("core-js/modules/esnext.math.radians.js"),require("core-js/modules/esnext.math.scale.js"),require("core-js/modules/esnext.math.seeded-prng.js"),require("core-js/modules/esnext.math.signbit.js"),require("core-js/modules/esnext.math.umulh.js"),require("core-js/modules/esnext.number.from-string.js"),require("core-js/modules/esnext.number.range.js"),require("core-js/modules/esnext.object.has-own.js"),require("core-js/modules/esnext.object.iterate-entries.js"),require("core-js/modules/esnext.object.iterate-keys.js"),require("core-js/modules/esnext.object.iterate-values.js"),require("core-js/modules/esnext.observable.js"),require("core-js/modules/esnext.promise.all-settled.js"),require("core-js/modules/esnext.promise.any.js"),require("core-js/modules/esnext.promise.try.js"),require("core-js/modules/esnext.reflect.define-metadata.js"),require("core-js/modules/esnext.reflect.delete-metadata.js"),require("core-js/modules/esnext.reflect.get-metadata.js"),require("core-js/modules/esnext.reflect.get-metadata-keys.js"),require("core-js/modules/esnext.reflect.get-own-metadata.js"),require("core-js/modules/esnext.reflect.get-own-metadata-keys.js"),require("core-js/modules/esnext.reflect.has-metadata.js"),require("core-js/modules/esnext.reflect.has-own-metadata.js"),require("core-js/modules/esnext.reflect.metadata.js"),require("core-js/modules/esnext.set.add-all.js"),require("core-js/modules/esnext.set.delete-all.js"),require("core-js/modules/esnext.set.difference.js"),require("core-js/modules/esnext.set.every.js"),require("core-js/modules/esnext.set.filter.js"),require("core-js/modules/esnext.set.find.js"),require("core-js/modules/esnext.set.from.js"),require("core-js/modules/esnext.set.intersection.js"),require("core-js/modules/esnext.set.is-disjoint-from.js"),require("core-js/modules/esnext.set.is-subset-of.js"),require("core-js/modules/esnext.set.is-superset-of.js"),require("core-js/modules/esnext.set.join.js"),require("core-js/modules/esnext.set.map.js"),require("core-js/modules/esnext.set.of.js"),require("core-js/modules/esnext.set.reduce.js"),require("core-js/modules/esnext.set.some.js"),require("core-js/modules/esnext.set.symmetric-difference.js"),require("core-js/modules/esnext.set.union.js"),require("core-js/modules/esnext.string.at.js"),require("core-js/modules/esnext.string.code-points.js"),require("core-js/modules/esnext.string.match-all.js"),require("core-js/modules/esnext.string.replace-all.js"),require("core-js/modules/esnext.symbol.async-dispose.js"),require("core-js/modules/esnext.symbol.dispose.js"),require("core-js/modules/esnext.symbol.matcher.js"),require("core-js/modules/esnext.symbol.metadata.js"),require("core-js/modules/esnext.symbol.observable.js"),require("core-js/modules/esnext.symbol.pattern-match.js"),require("core-js/modules/esnext.symbol.replace-all.js"),require("core-js/modules/esnext.typed-array.at.js"),require("core-js/modules/esnext.typed-array.filter-out.js"),require("core-js/modules/esnext.typed-array.find-last.js"),require("core-js/modules/esnext.typed-array.find-last-index.js"),require("core-js/modules/esnext.typed-array.unique-by.js"),require("core-js/modules/esnext.weak-map.delete-all.js"),require("core-js/modules/esnext.weak-map.from.js"),require("core-js/modules/esnext.weak-map.of.js"),require("core-js/modules/esnext.weak-map.emplace.js"),require("core-js/modules/esnext.weak-map.upsert.js"),require("core-js/modules/esnext.weak-set.add-all.js"),require("core-js/modules/esnext.weak-set.delete-all.js"),require("core-js/modules/esnext.weak-set.from.js"),require("core-js/modules/esnext.weak-set.of.js"),require("core-js/modules/web.dom-collections.for-each.js"),require("core-js/modules/web.dom-collections.iterator.js"),require("core-js/modules/web.immediate.js"),require("core-js/modules/web.queue-microtask.js"),require("core-js/modules/web.timers.js"),require("core-js/modules/web.url.js"),require("core-js/modules/web.url.to-json.js"),require("core-js/modules/web.url-search-params.js"),require("regenerator-runtime/runtime");var e=require("atom"),t=require("child_process"),r=require("atom-package-deps"),s=require("fs"),i=require("path"),o=require("atom-space-pen-views"),n=require("xterm"),a=require("cross-spawn"),u=require("events"),c=require("xregexp"),l=require("tree-kill"),d=require("cosmiconfig"),m=require("cson-parser"),h=require("@iarna/toml"),f=require("json5"),j=require("os");function p(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}function g(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach((function(r){if("default"!==r){var s=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,s.get?s:{enumerable:!0,get:function(){return e[r]}})}})),t.default=e,Object.freeze(t)}var y=g(r),v=p(s),b=p(i),q=p(n),w=p(a),x=p(u),k=p(c),T=p(l),E=p(m),M=p(h),C=p(f),B=p(j);function S(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);t&&(s=s.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,s)}return r}function P(e){for(var t=1;te.length)&&(t=e.length);for(var r=0,s=new Array(t);r0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0;if("string"!=typeof e)return e;var r=Object.assign({},process.env,t);e=e.replace(/\$(\w+)/g,(function(e,t){return t in r?r[t]:e}));var s=atom.workspace.getActiveTextEditor(),i=atom.project.getPaths().map(function(){var e=V(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,v.default.promises.realpath(t);case 3:return e.abrupt("return",e.sent);case 6:e.prev=6,e.t0=e.catch(0);case 8:return e.abrupt("return",null);case 9:case"end":return e.stop()}}),e,null,[[0,6]])})));return function(t){return e.apply(this,arguments)}}()),o=i[0];if(s&&void 0!==s.getPath()){var n=v.default.realpathSync(s.getPath()),a=b.default.dirname(n);o=i.find((function(e){return a&&a.startsWith(e)})),e=(e=(e=(e=(e=e.replace(/{FILE_ACTIVE}/g,n)).replace(/{FILE_ACTIVE_PATH}/g,a)).replace(/{FILE_ACTIVE_NAME}/g,b.default.basename(n))).replace(/{FILE_ACTIVE_NAME_BASE}/g,b.default.basename(n,b.default.extname(n)))).replace(/{SELECTION}/g,s.getSelectedText());var u=s.getCursorScreenPosition();e=(e=e.replace(/{FILE_ACTIVE_CURSOR_ROW}/g,u.row+1)).replace(/{FILE_ACTIVE_CURSOR_COLUMN}/g,u.column+1)}return e=e.replace(/{PROJECT_PATH}/g,o),atom.project.getRepositories[0]&&(e=e.replace(/{REPO_BRANCH_SHORT}/g,atom.project.getRepositories()[0].getShortHead())),e}function te(){return"".concat(Q.charAt(0).toUpperCase()).concat(Q.slice(1))}var re=function(e){_(r,H(Error));var t=$(r);function r(e,s){var i;return R(this,r),(i=t.call(this,s)).name=e,i.message=s,Error.captureStackTrace(G(i),r),i}return r}(),se={schema:{panelVisibility:{title:"Panel Visibility",description:"Set when the build panel should be visible.",type:"string",default:"Toggle",enum:["Toggle","Keep Visible","Show on Error","Hidden"],order:1},autoToggleInterval:{title:"Auto-toggle Interval",description:"Set the interval until the panel closes automatically, in milliseconds. This setting works with *Panel Visibility* set to *Toggle*",type:"integer",minimum:1e3,default:3e3,order:2},buildOnSave:{title:"Automatically build on save",description:"Automatically build your project each time an editor is saved.",type:"boolean",default:!1,order:3},saveOnBuild:{title:"Automatically save on build",description:"Automatically save all edited files when triggering a build.",type:"boolean",default:!1,order:4},matchedErrorFailsBuild:{title:"Any matched error will fail the build",description:'Even if the build has a return code of zero it is marked as "failed" if any error is being matched in the output.',type:"boolean",default:!0,order:5},scrollOnError:{title:"Automatically scroll on build error",description:"Automatically scroll to first matched error when a build failed.",type:"boolean",default:!1,order:6},stealFocus:{title:"Steal Focus",description:"Steal focus when opening build panel.",type:"boolean",default:!0,order:7},selectTriggers:{title:"Selecting new target triggers the build",description:"When selecting a new target (through status-bar, cmd-alt-t, etc), the newly selected target will be triggered.",type:"boolean",default:!0,order:9},refreshOnShowTargetList:{title:"Refresh targets when the target list is shown",description:"When opening the targets menu, the targets will be refreshed.",type:"boolean",default:!1,order:10},notificationOnRefresh:{title:"Show notification when targets are refreshed",description:"When targets are refreshed a notification with information about the number of targets will be displayed.",type:"boolean",default:!1,order:11},beepWhenDone:{title:"Beep when the build completes",description:'Make a "beep" notification sound when the build is complete - in success or failure.',type:"boolean",default:!1,order:12},panelOrientation:{title:"Panel Orientation",description:"Where to attach the build panel",type:"string",default:"Bottom",enum:["Bottom","Top","Left","Right"],order:13},statusBar:{title:"Status Bar",description:"Where to place the status bar. Set to `Disable` to disable status bar display.",type:"string",default:"Left",enum:["Left","Right","Disable"],order:14},statusBarPriority:{title:"Priority on Status Bar",description:"Lower priority tiles are placed further to the left/right, depends on where you choose to place Status Bar.",type:"integer",default:-1e3,order:15},terminalScrollback:{title:"Terminal Scrollback Size",description:"Max number of lines of build log kept in the terminal",type:"integer",default:1e3,order:16},muteConflictWarning:{title:"Mute Conflict Warning",description:"Disables the startup dialog, whether the user wants to disable the original `build` package",type:"boolean",default:!1,order:17}},get:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return null!=e&&e.length?atom.config.get("".concat(Q,".").concat(e)):atom.config.get("".concat(Q))},set:function(e,t){atom.config.set("".concat(Q,".").concat(e),t)},migrate:function(e,t){if(atom.config.get("".concat(Q,".").concat(e))&&!atom.config.get("".concat(Q,".").concat(t))){try{atom.config.set("".concat(Q,".").concat(t),atom.config.get("".concat(Q,".").concat(e)))}catch(e){return void atom.notifications.addWarning("Failed to migrate configuration, see console for details")}atom.config.unset("".concat(Q,".").concat(e))}},observe:function(){for(var e,t,r,s=arguments.length,i=new Array(s),o=0;o0&&void 0!==arguments[0]?arguments[0]:"",t=null!=e&&e.length?"".concat(Q,".").concat(e):Q;atom.config.unset(t)},open:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};e=P({pending:!0,searchAllPanes:!0},e),atom.workspace.open("atom://config/packages/".concat(Q),e)}},ie=function(e){_(r,o.View);var t=$(r);function r(){var e;R(this,r);for(var s=arguments.length,i=new Array(s),n=0;nA").addClass("terminal").addClass("terminal-test").appendTo(this.output),t=e[0].getBoundingClientRect().width,r=e[0].getBoundingClientRect().height;return e.remove(),{w:t,h:r}}},{key:"resizeTerminal",value:function(){this.fontGeometry=this.getFontGeometry();var e=this.fontGeometry,t=e.w,r=e.h;if(0!==t&&0!==r){var s=Math.floor(this.terminalEl.width()/t),i=Math.floor(this.terminalEl.height()/r);this.terminal.resize(s,i)}}},{key:"getContent",value:function(){return this.terminal.getContent()}},{key:"attach",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(!e)switch(se.get("panelVisibility")){case"Hidden":case"Show on Error":return}this.panel&&this.panel.destroy();var t={Top:atom.workspace.addTopPanel,Bottom:atom.workspace.addBottomPanel,Left:atom.workspace.addLeftPanel,Right:atom.workspace.addRightPanel},r=se.get("panelOrientation")||"Bottom";this.panel=t[r].call(atom.workspace,{item:this}),this.fixTerminalElHeight(),this.resizeToNearestRow()}},{key:"fixTerminalElHeight",value:function(){var e=o.$(".build .output").height();this.terminalEl.css("height","".concat(e,"px"))}},{key:"detach",value:function(e){e=e||!1,atom.views.getView(atom.workspace)&&document.activeElement===this[0]&&atom.views.getView(atom.workspace).focus(),this.panel&&(e||"Keep Visible"!==se.get("panelVisibility"))&&(this.panel.destroy(),this.panel=null)}},{key:"isAttached",value:function(){return!!this.panel}},{key:"visibleFromConfig",value:function(e){switch(e){case"Toggle":case"Show on Error":return void(this.terminalEl.hasClass("error")||this.detach())}this.attach()}},{key:"orientationFromConfig",value:function(e){var t=this.isVisible();switch(this.detach(!0),t&&this.attach(),this.resizer.get(0).removeEventListener("mousedown",this.resizeStarted),e){case"Top":case"Bottom":this.get(0).style.width=null,this.resizer.get(0).addEventListener("mousedown",this.resizeStarted);break;case"Left":case"Right":this.terminalEl.get(0).style.height=null,this.resizer.get(0).addEventListener("mousedown",this.resizeStarted)}this.resizeTerminal()}},{key:"fontSizeFromConfig",value:function(e){this.css({"font-size":e}),this.resizeToNearestRow()}},{key:"fontFamilyFromConfig",value:function(e){this.css({"font-family":e}),this.resizeToNearestRow()}},{key:"reset",value:function(){clearTimeout(this.titleTimer),this.buildTimer.text(r.initialTimerText()),this.titleTimer=0,this.terminal.reset(),this.panelHeading.removeClass("success error"),this.title.removeClass("success error"),this.detach()}},{key:"updateTitle",value:function(){this.buildTimer.text(((new Date-this.starttime)/1e3).toFixed(3)+" s"),this.titleTimer=setTimeout(this.updateTitle.bind(this),100)}},{key:"close",value:function(){this.detach(!0)}},{key:"toggle",value:function(){this.isAttached()?this.detach(!0):this.attach(!0)}},{key:"clearOutput",value:function(){this.terminal.reset()}},{key:"build",value:function(){atom.commands.dispatch(atom.views.getView(atom.workspace),"buildium:trigger")}},{key:"setHeading",value:function(e){this.heading.text(e)}},{key:"buildStarted",value:function(){this.starttime=new Date,this.reset(),this.attach(),se.get("stealFocus")&&this.focus(),this.updateTitle()}},{key:"buildFinished",value:function(e){e||this.isAttached()||this.attach("Show on Error"===se.get("panelVisibility")),this.finalizeBuild(e)}},{key:"buildAbortInitiated",value:function(){this.heading.addClass("icon-stop")}},{key:"buildAborted",value:function(){this.finalizeBuild(!1)}},{key:"finalizeBuild",value:function(e){this.title.addClass(e?"success":"error"),this.panelHeading.addClass(e?"success":"error"),this.heading.removeClass("icon-stop"),clearTimeout(this.titleTimer)}},{key:"scrollTo",value:function(e){for(var t=this.getContent(),r=-1,s=e.length;-1===r&&s>0;)r=t.indexOf(e.substring(0,s--));if(0!==s){var i=t.slice(0,r).split("\n").length;this.terminal.ydisp=0,this.terminal.scrollDisp(i-1)}}}],[{key:"initialTimerText",value:function(){return"0.000 s"}},{key:"initialHeadingText",value:function(){return"".concat(te()," ").concat("v".concat("0.75.3"))}},{key:"content",value:function(){var e=this;this.div({tabIndex:-1,class:"build tool-panel native-key-bindings"},(function(){e.div({class:"heading",outlet:"panelHeading"},(function(){e.div({class:"control-container"},(function(){e.button({class:"btn btn-default icon icon-zap",click:"build",title:"Builds current project"},"Build"),e.button({class:"btn btn-default icon icon-trashcan",click:"clearOutput",title:"Clears the output"},"Clear"),e.button({class:"btn btn-default icon icon-x",click:"close",title:"Closes the build panel"},"Close"),e.div({class:"title",outlet:"title"},(function(){e.span({class:"build-timer",outlet:"buildTimer"},e.initialTimerText())}))})),e.div({class:"icon heading-text text-highlight",outlet:"heading"},e.initialHeadingText())})),e.div({class:"output panel-body",outlet:"output"}),e.div({class:"resizer",outlet:"resizer"})}))}}]),r}(),oe="\n background-color: darkslateblue;\n border-radius: 2px;\n color: white;\n line-height: 1.5;\n padding: 1px 4px;\n text-shadow: 0 1px 0px rgba(0, 0, 0, 0.2);\n";function ne(e){var t,r;if(null!==(t=atom)&&void 0!==t&&t.inDevMode()){for(var s=arguments.length,i=new Array(s>1?s-1:0),o=1;o0?this.currentMatch[0].id:null}},{key:"_prepareRegex",value:function(e){var t=this;return(e=(e=e||[])instanceof Array?e:[e]).map((function(e){try{return k.default(e)}catch(e){return t.emit("error","Error parsing regex. "+e.message),null}}))}},{key:"set",value:function(e,t,r){var s=this;e.functionMatch&&(this.functions=(e.functionMatch instanceof Array?e.functionMatch:[e.functionMatch]).filter((function(e){return"function"==typeof e||(s.emit("error","found functionMatch that is no function: "+O(e)),!1)}))),this.regex={Error:this._prepareRegex(e.errorMatch),Warning:this._prepareRegex(e.warningMatch)},this.cwd=t,this.output=r,this.currentMatch=[],this._parse()}},{key:"match",value:function(){this._gotoNext()}},{key:"matchFirst",value:function(){this.firstMatchId&&this.goto(this.firstMatchId)}},{key:"hasMatch",value:function(){return 0!==this.currentMatch.length}},{key:"getMatches",value:function(){return this.currentMatch}}]),r}(),ce=function(){function e(t){R(this,e),this.linter=t.register({name:"Build"})}return L(e,[{key:"destroy",value:function(){this.linter.dispose()}},{key:"clear",value:function(){this.linter.deleteMessages()}},{key:"processMessages",value:function(e,t){function r(e){return[[(e.line||1)-1,(e.col||1)-1],[(e.line_end||e.line||1)-1,(e.col_end||e.col||1)-1]]}function s(e){return b.default.isAbsolute(e)?e:b.default.join(t,e)}function i(e){switch(e&&e.toLowerCase()){case"err":case"error":return"error";case"warn":case"warning":return"warning";default:return null}}this.linter.setMessages(e.map((function(e){return{type:e.type||"Error",text:e.message||e.html_message?e.message:"Error from build",html:e.message?void 0:e.html_message,filePath:s(e.file),severity:i(e.type),range:r(e),trace:e.trace&&e.trace.map((function(e){return{type:e.type||"Trace",text:e.message||e.html_message?e.message:"Trace in build",html:e.message?void 0:e.html_message,filePath:e.file&&s(e.file),severity:i(e.type)||"info",range:r(e)}}))}})))}}]),e}(),le=function(e){_(r,o.View);var t=$(r);function r(){return R(this,r),t.apply(this,arguments)}return L(r,[{key:"destroy",value:function(){this.confirmcb=void 0,this.cancelcb=void 0,this.panel&&(this.panel.destroy(),this.panel=null)}},{key:"show",value:function(e,t){this.confirmcb=e,this.cancelcb=t,this.panel=atom.workspace.addTopPanel({item:this}),this.saveBuildButton.focus()}},{key:"cancel",value:function(){this.destroy(),this.cancelcb&&this.cancelcb()}},{key:"saveAndConfirm",value:function(){this.confirmcb&&this.confirmcb(!0),this.destroy()}},{key:"confirmWithoutSave",value:function(){this.confirmcb&&this.confirmcb(!1),this.destroy()}}],[{key:"content",value:function(){var e=this;this.div({class:"build-confirm overlay from-top"},(function(){e.h3("You have unsaved changes"),e.div({class:"btn-container pull-right"},(function(){e.button({class:"btn btn-success",outlet:"saveBuildButton",title:"Save and Build",click:"saveAndConfirm"},"Save and build"),e.button({class:"btn btn-info",title:"Build Without Saving",click:"confirmWithoutSave"},"Build Without Saving")})),e.div({class:"btn-container pull-left"},(function(){e.button({class:"btn btn-info",title:"Cancel",click:"cancel"},"Cancel")}))}))}}]),r}(),de=function(e){_(r,o.View);var t=$(r);function r(e){var s;R(this,r);for(var i=arguments.length,o=new Array(i>1?i-1:0),n=1;n1&&void 0!==arguments[1])||arguments[1];if(this.targetsView){var s=this.getActiveTarget(e);s&&this.targetsView.setActiveTarget(s.name),this.getTargets(e,r).then((function(e){return e.map((function(e){return e.name}))})).then((function(e){return t.targetsView&&t.targetsView.setItems(e)}))}}},{key:"selectActiveTarget",value:function(){var e=this;se.get("refreshOnShowTargetList")&&this.refreshTargets();var t=Z();t?(this.targetsView=new me,this.isLoading(t)?this.targetsView.setLoading("Loading project build targets…"):this.fillTargets(t),this.targetsView.awaitSelection().then((function(r){e.setActiveTarget(t,r),e.targetsView=null})).catch((function(t){e.targetsView.setError(t.message),e.targetsView=null}))):atom.notifications.addWarning("Unable to build.",{detail:"Open file is not part of any open project in Atom"})}},{key:"getTargets",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=this.pathTargets.find((function(t){return t.path===e}));return r?t&&0===r.targets.length?this.refreshTargets([r.path]).then((function(){return r.targets})):Promise.resolve(r.targets):Promise.resolve([])}},{key:"getActiveTarget",value:function(e){var t=this.pathTargets.find((function(t){return t.path===e}));return t?t.targets.find((function(e){return e.name===t.activeTarget})):null}},{key:"setActiveTarget",value:function(e,t){this.pathTargets.find((function(t){return t.path===e})).activeTarget=t,this.emit("new-active-target",e,this.getActiveTarget(e))}},{key:"isLoading",value:function(e){return this.pathTargets.find((function(t){return t.path===e})).loading}}]),s}(),fe={cson:function(e,t){try{return E.default.parse(t)}catch(t){throw t.message="TOML Error in ".concat(e,":\n").concat(t.message),t}},json5:function(e,t){try{return C.default.parse(t)}catch(t){throw t.message="TOML Error in ".concat(e,":\n").concat(t.message),t}},toml:function(e,t){try{return M.default.parse(t)}catch(t){throw t.message="TOML Error in ".concat(e,":\n").concat(t.message),t}}},je=d.cosmiconfig(X,{searchPlaces:[".atom-build.cjs",".atom-build.js",".atom-build.json",".atom-build.json5",".atom-build.toml",".atom-build.yaml",".atom-build.yml"],loaders:{".cson":fe.cson,".toml":fe.toml,".json":fe.json5,".json5":fe.json5,noExt:d.defaultLoaders[".json"]}});function pe(e){return ge.apply(this,arguments)}function ge(){return(ge=V(regeneratorRuntime.mark((function e(t){var r;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,v.default.promises.realpath(t);case 2:return r=e.sent,e.next=5,je.load(r);case 5:if(e.t0=e.sent.config,e.t0){e.next=8;break}e.t0={};case 8:return e.abrupt("return",e.t0);case 9:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function ye(e,t){var r={name:"Custom: "+t,exec:e.cmd,env:e.env,args:e.args,cwd:e.cwd,sh:e.sh,errorMatch:e.errorMatch,functionMatch:e.functionMatch,warningMatch:e.warningMatch,atomCommandName:e.atomCommandName,keymap:e.keymap,killSignals:e.killSignals};return"function"==typeof e.postBuild&&(r.postBuild=e.postBuild),"function"==typeof e.preBuild&&(r.preBuild=e.preBuild),r}var ve=function(e){_(s,x["default"]);var t,r=$(s);function s(e){var t;return R(this,s),(t=r.call(this)).cwd=e,t.fileWatchers=[],t}return L(s,[{key:"destructor",value:function(){this.fileWatchers.map((function(e){return e.close()}))}},{key:"getNiceName",value:function(){return"Custom file"}},{key:"isEligible",value:function(){var e=this;return this.files=[].concat.apply([],["cjs","js","json","json5","cson",,"toml","yaml","yml"].map((function(t){return[b.default.join(e.cwd,".atom-build.".concat(t)),b.default.join(B.default.homedir(),".atom-build.".concat(t))]}))).filter(v.default.existsSync),0e.length)&&(t=e.length);for(var r=0,s=new Array(t);r0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0;if("string"!=typeof e)return e;var r=Object.assign({},process.env,t);e=e.replace(/\$(\w+)/g,(function(e,t){return t in r?r[t]:e}));var s=atom.workspace.getActiveTextEditor(),i=atom.project.getPaths().map(function(){var e=V(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,v.default.promises.realpath(t);case 3:return e.abrupt("return",e.sent);case 6:e.prev=6,e.t0=e.catch(0);case 8:return e.abrupt("return",null);case 9:case"end":return e.stop()}}),e,null,[[0,6]])})));return function(t){return e.apply(this,arguments)}}()),o=i[0];if(s&&void 0!==s.getPath()){var n=v.default.realpathSync(s.getPath()),a=b.default.dirname(n);o=i.find((function(e){return a&&a.startsWith(e)})),e=(e=(e=(e=(e=e.replace(/{FILE_ACTIVE}/g,n)).replace(/{FILE_ACTIVE_PATH}/g,a)).replace(/{FILE_ACTIVE_NAME}/g,b.default.basename(n))).replace(/{FILE_ACTIVE_NAME_BASE}/g,b.default.basename(n,b.default.extname(n)))).replace(/{SELECTION}/g,s.getSelectedText());var u=s.getCursorScreenPosition();e=(e=e.replace(/{FILE_ACTIVE_CURSOR_ROW}/g,u.row+1)).replace(/{FILE_ACTIVE_CURSOR_COLUMN}/g,u.column+1)}return e=e.replace(/{PROJECT_PATH}/g,o),atom.project.getRepositories[0]&&(e=e.replace(/{REPO_BRANCH_SHORT}/g,atom.project.getRepositories()[0].getShortHead())),e}function te(){return"".concat(Q.charAt(0).toUpperCase()).concat(Q.slice(1))}var re=function(e){_(r,H(Error));var t=$(r);function r(e,s){var i;return R(this,r),(i=t.call(this,s)).name=e,i.message=s,Error.captureStackTrace(G(i),r),i}return r}(),se={schema:{panelVisibility:{title:"Panel Visibility",description:"Set when the build panel should be visible.",type:"string",default:"Toggle",enum:["Toggle","Keep Visible","Show on Error","Hidden"],order:1},autoToggleInterval:{title:"Auto-toggle Interval",description:"Set the interval until the panel closes automatically, in milliseconds. This setting works with *Panel Visibility* set to *Toggle*",type:"integer",minimum:1e3,default:3e3,order:2},buildOnSave:{title:"Automatically build on save",description:"Automatically build your project each time an editor is saved.",type:"boolean",default:!1,order:3},saveOnBuild:{title:"Automatically save on build",description:"Automatically save all edited files when triggering a build.",type:"boolean",default:!1,order:4},matchedErrorFailsBuild:{title:"Any matched error will fail the build",description:'Even if the build has a return code of zero it is marked as "failed" if any error is being matched in the output.',type:"boolean",default:!0,order:5},scrollOnError:{title:"Automatically scroll on build error",description:"Automatically scroll to first matched error when a build failed.",type:"boolean",default:!1,order:6},stealFocus:{title:"Steal Focus",description:"Steal focus when opening build panel.",type:"boolean",default:!0,order:7},selectTriggers:{title:"Selecting new target triggers the build",description:"When selecting a new target (through status-bar, cmd-alt-t, etc), the newly selected target will be triggered.",type:"boolean",default:!0,order:9},refreshOnShowTargetList:{title:"Refresh targets when the target list is shown",description:"When opening the targets menu, the targets will be refreshed.",type:"boolean",default:!1,order:10},notificationOnRefresh:{title:"Show notification when targets are refreshed",description:"When targets are refreshed a notification with information about the number of targets will be displayed.",type:"boolean",default:!1,order:11},beepWhenDone:{title:"Beep when the build completes",description:'Make a "beep" notification sound when the build is complete - in success or failure.',type:"boolean",default:!1,order:12},panelOrientation:{title:"Panel Orientation",description:"Where to attach the build panel",type:"string",default:"Bottom",enum:["Bottom","Top","Left","Right"],order:13},statusBar:{title:"Status Bar",description:"Where to place the status bar. Set to `Disable` to disable status bar display.",type:"string",default:"Left",enum:["Left","Right","Disable"],order:14},statusBarPriority:{title:"Priority on Status Bar",description:"Lower priority tiles are placed further to the left/right, depends on where you choose to place Status Bar.",type:"integer",default:-1e3,order:15},terminalScrollback:{title:"Terminal Scrollback Size",description:"Max number of lines of build log kept in the terminal",type:"integer",default:1e3,order:16},muteConflictWarning:{title:"Mute Conflict Warning",description:"Disables the startup dialog, whether the user wants to disable the original `build` package",type:"boolean",default:!1,order:17}},get:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return null!=e&&e.length?atom.config.get("".concat(Q,".").concat(e)):atom.config.get("".concat(Q))},set:function(e,t){atom.config.set("".concat(Q,".").concat(e),t)},migrate:function(e,t){if(atom.config.get("".concat(Q,".").concat(e))&&!atom.config.get("".concat(Q,".").concat(t))){try{atom.config.set("".concat(Q,".").concat(t),atom.config.get("".concat(Q,".").concat(e)))}catch(e){return void atom.notifications.addWarning("Failed to migrate configuration, see console for details")}atom.config.unset("".concat(Q,".").concat(e))}},observe:function(){for(var e,t,r,s=arguments.length,i=new Array(s),o=0;o0&&void 0!==arguments[0]?arguments[0]:"",t=null!=e&&e.length?"".concat(Q,".").concat(e):Q;atom.config.unset(t)},open:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};e=P({pending:!0,searchAllPanes:!0},e),atom.workspace.open("atom://config/packages/".concat(Q),e)}},ie=function(e){_(r,o.View);var t=$(r);function r(){var e;R(this,r);for(var s=arguments.length,i=new Array(s),n=0;nA").addClass("terminal").addClass("terminal-test").appendTo(this.output),t=e[0].getBoundingClientRect().width,r=e[0].getBoundingClientRect().height;return e.remove(),{w:t,h:r}}},{key:"resizeTerminal",value:function(){this.fontGeometry=this.getFontGeometry();var e=this.fontGeometry,t=e.w,r=e.h;if(0!==t&&0!==r){var s=Math.floor(this.terminalEl.width()/t),i=Math.floor(this.terminalEl.height()/r);this.terminal.resize(s,i)}}},{key:"getContent",value:function(){return this.terminal.getContent()}},{key:"attach",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(!e)switch(se.get("panelVisibility")){case"Hidden":case"Show on Error":return}this.panel&&this.panel.destroy();var t={Top:atom.workspace.addTopPanel,Bottom:atom.workspace.addBottomPanel,Left:atom.workspace.addLeftPanel,Right:atom.workspace.addRightPanel},r=se.get("panelOrientation")||"Bottom";this.panel=t[r].call(atom.workspace,{item:this}),this.fixTerminalElHeight(),this.resizeToNearestRow()}},{key:"fixTerminalElHeight",value:function(){var e=o.$(".build .output").height();this.terminalEl.css("height","".concat(e,"px"))}},{key:"detach",value:function(e){e=e||!1,atom.views.getView(atom.workspace)&&document.activeElement===this[0]&&atom.views.getView(atom.workspace).focus(),this.panel&&(e||"Keep Visible"!==se.get("panelVisibility"))&&(this.panel.destroy(),this.panel=null)}},{key:"isAttached",value:function(){return!!this.panel}},{key:"visibleFromConfig",value:function(e){switch(e){case"Toggle":case"Show on Error":return void(this.terminalEl.hasClass("error")||this.detach())}this.attach()}},{key:"orientationFromConfig",value:function(e){var t=this.isVisible();switch(this.detach(!0),t&&this.attach(),this.resizer.get(0).removeEventListener("mousedown",this.resizeStarted),e){case"Top":case"Bottom":this.get(0).style.width=null,this.resizer.get(0).addEventListener("mousedown",this.resizeStarted);break;case"Left":case"Right":this.terminalEl.get(0).style.height=null,this.resizer.get(0).addEventListener("mousedown",this.resizeStarted)}this.resizeTerminal()}},{key:"fontSizeFromConfig",value:function(e){this.css({"font-size":e}),this.resizeToNearestRow()}},{key:"fontFamilyFromConfig",value:function(e){this.css({"font-family":e}),this.resizeToNearestRow()}},{key:"reset",value:function(){clearTimeout(this.titleTimer),this.buildTimer.text(r.initialTimerText()),this.titleTimer=0,this.terminal.reset(),this.panelHeading.removeClass("success error"),this.title.removeClass("success error"),this.detach()}},{key:"updateTitle",value:function(){this.buildTimer.text(((new Date-this.starttime)/1e3).toFixed(3)+" s"),this.titleTimer=setTimeout(this.updateTitle.bind(this),100)}},{key:"close",value:function(){this.detach(!0)}},{key:"toggle",value:function(){this.isAttached()?this.detach(!0):this.attach(!0)}},{key:"clearOutput",value:function(){this.terminal.reset()}},{key:"build",value:function(){atom.commands.dispatch(atom.views.getView(atom.workspace),"buildium:trigger")}},{key:"setHeading",value:function(e){this.heading.text(e)}},{key:"buildStarted",value:function(){this.starttime=new Date,this.reset(),this.attach(),se.get("stealFocus")&&this.focus(),this.updateTitle()}},{key:"buildFinished",value:function(e){e||this.isAttached()||this.attach("Show on Error"===se.get("panelVisibility")),this.finalizeBuild(e)}},{key:"buildAbortInitiated",value:function(){this.heading.addClass("icon-stop")}},{key:"buildAborted",value:function(){this.finalizeBuild(!1)}},{key:"finalizeBuild",value:function(e){this.title.addClass(e?"success":"error"),this.panelHeading.addClass(e?"success":"error"),this.heading.removeClass("icon-stop"),clearTimeout(this.titleTimer)}},{key:"scrollTo",value:function(e){for(var t=this.getContent(),r=-1,s=e.length;-1===r&&s>0;)r=t.indexOf(e.substring(0,s--));if(0!==s){var i=t.slice(0,r).split("\n").length;this.terminal.ydisp=0,this.terminal.scrollDisp(i-1)}}}],[{key:"initialTimerText",value:function(){return"0.000 s"}},{key:"initialHeadingText",value:function(){return"".concat(te()," ").concat("v".concat("0.75.3"))}},{key:"content",value:function(){var e=this;this.div({tabIndex:-1,class:"build tool-panel native-key-bindings"},(function(){e.div({class:"heading",outlet:"panelHeading"},(function(){e.div({class:"control-container"},(function(){e.button({class:"btn btn-default icon icon-zap",click:"build",title:"Builds current project"},"Build"),e.button({class:"btn btn-default icon icon-trashcan",click:"clearOutput",title:"Clears the output"},"Clear"),e.button({class:"btn btn-default icon icon-x",click:"close",title:"Closes the build panel"},"Close"),e.div({class:"title",outlet:"title"},(function(){e.span({class:"build-timer",outlet:"buildTimer"},e.initialTimerText())}))})),e.div({class:"icon heading-text text-highlight",outlet:"heading"},e.initialHeadingText())})),e.div({class:"output panel-body",outlet:"output"}),e.div({class:"resizer",outlet:"resizer"})}))}}]),r}(),oe="\n background-color: darkslateblue;\n border-radius: 2px;\n color: white;\n line-height: 1.5;\n padding: 1px 4px;\n text-shadow: 0 1px 0px rgba(0, 0, 0, 0.2);\n";function ne(e){var t,r;if(null!==(t=atom)&&void 0!==t&&t.inDevMode()){for(var s=arguments.length,i=new Array(s>1?s-1:0),o=1;o0?this.currentMatch[0].id:null}},{key:"_prepareRegex",value:function(e){var t=this;return(e=(e=e||[])instanceof Array?e:[e]).map((function(e){try{return k.default(e)}catch(e){return t.emit("error","Error parsing regex. "+e.message),null}}))}},{key:"set",value:function(e,t,r){var s=this;e.functionMatch&&(this.functions=(e.functionMatch instanceof Array?e.functionMatch:[e.functionMatch]).filter((function(e){return"function"==typeof e||(s.emit("error","found functionMatch that is no function: "+O(e)),!1)}))),this.regex={Error:this._prepareRegex(e.errorMatch),Warning:this._prepareRegex(e.warningMatch)},this.cwd=t,this.output=r,this.currentMatch=[],this._parse()}},{key:"match",value:function(){this._gotoNext()}},{key:"matchFirst",value:function(){this.firstMatchId&&this.goto(this.firstMatchId)}},{key:"hasMatch",value:function(){return 0!==this.currentMatch.length}},{key:"getMatches",value:function(){return this.currentMatch}}]),r}(),ce=function(){function e(t){R(this,e),this.linter=t.register({name:"Build"})}return L(e,[{key:"destroy",value:function(){this.linter.dispose()}},{key:"clear",value:function(){this.linter.deleteMessages()}},{key:"processMessages",value:function(e,t){function r(e){return[[(e.line||1)-1,(e.col||1)-1],[(e.line_end||e.line||1)-1,(e.col_end||e.col||1)-1]]}function s(e){return b.default.isAbsolute(e)?e:b.default.join(t,e)}function i(e){switch(e&&e.toLowerCase()){case"err":case"error":return"error";case"warn":case"warning":return"warning";default:return null}}this.linter.setMessages(e.map((function(e){return{type:e.type||"Error",text:e.message||e.html_message?e.message:"Error from build",html:e.message?void 0:e.html_message,filePath:s(e.file),severity:i(e.type),range:r(e),trace:e.trace&&e.trace.map((function(e){return{type:e.type||"Trace",text:e.message||e.html_message?e.message:"Trace in build",html:e.message?void 0:e.html_message,filePath:e.file&&s(e.file),severity:i(e.type)||"info",range:r(e)}}))}})))}}]),e}(),le=function(e){_(r,o.View);var t=$(r);function r(){return R(this,r),t.apply(this,arguments)}return L(r,[{key:"destroy",value:function(){this.confirmcb=void 0,this.cancelcb=void 0,this.panel&&(this.panel.destroy(),this.panel=null)}},{key:"show",value:function(e,t){this.confirmcb=e,this.cancelcb=t,this.panel=atom.workspace.addTopPanel({item:this}),this.saveBuildButton.focus()}},{key:"cancel",value:function(){this.destroy(),this.cancelcb&&this.cancelcb()}},{key:"saveAndConfirm",value:function(){this.confirmcb&&this.confirmcb(!0),this.destroy()}},{key:"confirmWithoutSave",value:function(){this.confirmcb&&this.confirmcb(!1),this.destroy()}}],[{key:"content",value:function(){var e=this;this.div({class:"build-confirm overlay from-top"},(function(){e.h3("You have unsaved changes"),e.div({class:"btn-container pull-right"},(function(){e.button({class:"btn btn-primary",outlet:"saveBuildButton",title:"Save and Build",click:"saveAndConfirm"},"Save and build"),e.button({class:"btn btn-primary",title:"Build without Saving",click:"confirmWithoutSave"},"Build without Saving")})),e.div({class:"btn-container pull-left"},(function(){e.button({class:"btn",title:"Cancel",click:"cancel"},"Cancel")}))}))}}]),r}(),de=function(e){_(r,o.View);var t=$(r);function r(e){var s;R(this,r);for(var i=arguments.length,o=new Array(i>1?i-1:0),n=1;n1&&void 0!==arguments[1])||arguments[1];if(this.targetsView){var s=this.getActiveTarget(e);s&&this.targetsView.setActiveTarget(s.name),this.getTargets(e,r).then((function(e){return e.map((function(e){return e.name}))})).then((function(e){return t.targetsView&&t.targetsView.setItems(e)}))}}},{key:"selectActiveTarget",value:function(){var e=this;se.get("refreshOnShowTargetList")&&this.refreshTargets();var t=Z();t?(this.targetsView=new me,this.isLoading(t)?this.targetsView.setLoading("Loading project build targets…"):this.fillTargets(t),this.targetsView.awaitSelection().then((function(r){e.setActiveTarget(t,r),e.targetsView=null})).catch((function(t){e.targetsView.setError(t.message),e.targetsView=null}))):atom.notifications.addWarning("Unable to build.",{detail:"Open file is not part of any open project in Atom"})}},{key:"getTargets",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=this.pathTargets.find((function(t){return t.path===e}));return r?t&&0===r.targets.length?this.refreshTargets([r.path]).then((function(){return r.targets})):Promise.resolve(r.targets):Promise.resolve([])}},{key:"getActiveTarget",value:function(e){var t=this.pathTargets.find((function(t){return t.path===e}));return t?t.targets.find((function(e){return e.name===t.activeTarget})):null}},{key:"setActiveTarget",value:function(e,t){this.pathTargets.find((function(t){return t.path===e})).activeTarget=t,this.emit("new-active-target",e,this.getActiveTarget(e))}},{key:"isLoading",value:function(e){return this.pathTargets.find((function(t){return t.path===e})).loading}}]),s}(),fe={cson:function(e,t){try{return E.default.parse(t)}catch(t){throw t.message="TOML Error in ".concat(e,":\n").concat(t.message),t}},json5:function(e,t){try{return C.default.parse(t)}catch(t){throw t.message="TOML Error in ".concat(e,":\n").concat(t.message),t}},toml:function(e,t){try{return M.default.parse(t)}catch(t){throw t.message="TOML Error in ".concat(e,":\n").concat(t.message),t}}},je=d.cosmiconfig(X,{searchPlaces:[".atom-build.cjs",".atom-build.js",".atom-build.json",".atom-build.json5",".atom-build.toml",".atom-build.yaml",".atom-build.yml"],loaders:{".cson":fe.cson,".toml":fe.toml,".json":fe.json5,".json5":fe.json5,noExt:d.defaultLoaders[".json"]}});function pe(e){return ge.apply(this,arguments)}function ge(){return(ge=V(regeneratorRuntime.mark((function e(t){var r;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,v.default.promises.realpath(t);case 2:return r=e.sent,e.next=5,je.load(r);case 5:if(e.t0=e.sent.config,e.t0){e.next=8;break}e.t0={};case 8:return e.abrupt("return",e.t0);case 9:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function ye(e,t){var r={name:"Custom: "+t,exec:e.cmd,env:e.env,args:e.args,cwd:e.cwd,sh:e.sh,errorMatch:e.errorMatch,functionMatch:e.functionMatch,warningMatch:e.warningMatch,atomCommandName:e.atomCommandName,keymap:e.keymap,killSignals:e.killSignals};return"function"==typeof e.postBuild&&(r.postBuild=e.postBuild),"function"==typeof e.preBuild&&(r.preBuild=e.preBuild),r}var ve=function(e){_(s,x["default"]);var t,r=$(s);function s(e){var t;return R(this,s),(t=r.call(this)).cwd=e,t.fileWatchers=[],t}return L(s,[{key:"destructor",value:function(){this.fileWatchers.map((function(e){return e.close()}))}},{key:"getNiceName",value:function(){return"Custom file"}},{key:"isEligible",value:function(){var e=this;return this.files=[].concat.apply([],["cjs","js","json","json5","cson",,"toml","yaml","yml"].map((function(t){return[b.default.join(e.cwd,".atom-build.".concat(t)),b.default.join(B.default.homedir(),".atom-build.".concat(t))]}))).filter(v.default.existsSync),0