Son CV dans un terminal web en Javascript!
https://terminal-cv.gregandev.fr
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
48 lines
833 B
48 lines
833 B
"use strict";
|
|
|
|
Object.defineProperty(exports, "__esModule", {
|
|
value: true
|
|
});
|
|
exports.default = void 0;
|
|
|
|
function _assert() {
|
|
const data = _interopRequireDefault(require("assert"));
|
|
|
|
_assert = function () {
|
|
return data;
|
|
};
|
|
|
|
return data;
|
|
}
|
|
|
|
function _plugin() {
|
|
const data = require("@parcel/plugin");
|
|
|
|
_plugin = function () {
|
|
return data;
|
|
};
|
|
|
|
return data;
|
|
}
|
|
|
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
|
|
var _default = new (_plugin().Packager)({
|
|
package({
|
|
bundle
|
|
}) {
|
|
let assets = [];
|
|
bundle.traverseAssets(asset => {
|
|
assets.push(asset);
|
|
});
|
|
|
|
_assert().default.equal(assets.length, 1, 'Raw bundles must only contain one asset');
|
|
|
|
return {
|
|
contents: assets[0].getStream()
|
|
};
|
|
}
|
|
|
|
});
|
|
|
|
exports.default = _default; |