6 Commits

Author SHA1 Message Date
264a21ab4b 1.0.6 2021-03-07 23:26:00 +00:00
d472e18ff0 fix(core): update 2021-03-07 23:25:59 +00:00
dbff40819f 1.0.5 2020-07-08 00:48:45 +00:00
67822b36d3 fix(core): update 2020-07-08 00:48:45 +00:00
f1d348bb6a 1.0.4 2020-07-07 20:07:22 +00:00
fab41e358c fix(core): update 2020-07-07 20:07:21 +00:00
15 changed files with 72401 additions and 2796 deletions

View File

@@ -0,0 +1,15 @@
"use strict";
var _tapbundle = require("@pushrocks/tapbundle");
var smartparcel = _interopRequireWildcard(require("../ts/index"));
function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function () { return cache; }; return cache; }
function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
_tapbundle.tap.test('first test', async () => {
console.log(smartparcel);
});
_tapbundle.tap.start();

File diff suppressed because it is too large Load Diff

Binary file not shown.

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,18 @@
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
var _parcelClasses = require("./parcel.classes.parcel");
Object.keys(_parcelClasses).forEach(function (key) {
if (key === "default" || key === "__esModule") return;
if (key in exports && exports[key] === _parcelClasses[key]) return;
Object.defineProperty(exports, key, {
enumerable: true,
get: function () {
return _parcelClasses[key];
}
});
});

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

7383
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@@ -1,6 +1,6 @@
{
"name": "@pushrocks/smartparcel",
"version": "1.0.3",
"version": "1.0.6",
"private": false,
"description": "a wrapper for parcel",
"main": "dist_ts/index.js",
@@ -15,14 +15,14 @@
"@gitzone/tsbuild": "^2.0.22",
"@gitzone/tstest": "^1.0.15",
"@pushrocks/tapbundle": "^3.0.7",
"@types/node": "^10.11.7",
"tslint": "^5.11.0",
"@types/node": "^14.14.32",
"tslint": "^6.1.3",
"tslint-config-prettier": "^1.15.0"
},
"dependencies": {
"@pushrocks/smartpath": "^4.0.3",
"parcel-bundler": "^1.12.4",
"@types/parcel-bundler": "^1.12.1"
"parcel-bundler": "1.12.3",
"@types/parcel-bundler": "1.12.3"
},
"files": [
"ts/**/*",

View File

@@ -40,11 +40,18 @@ export class Parcel {
* just builds
*/
public async build() {
const bundler = new plugins.parcel(this.entryFiles, this.options);
const bundler = new plugins.parcel(this.entryFiles, {
...this.options,
watch: false
});
// Run the bundler, this returns the main bundle
// Use the events if you're using watch mode as this promise will only trigger once and not for every rebuild
const bundle = await bundler.bundle();
const bundle = await bundler.bundle().catch(e => {
console.error(e);
throw e;
});
}
constructor(fromArg: string | string[], outputDirArg: string, outputFileArg: string) {