@micromag/cli 0.3.574 → 0.3.575

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/lib/index.js +11 -15
  2. package/package.json +6 -6
package/lib/index.js CHANGED
@@ -139,10 +139,9 @@ var transformStory = function transformStory(story, format) {
139
139
  }, baseStory);
140
140
  return transforms.postProcessor(componentsStory, transformKey);
141
141
  };
142
- var transformStory$1 = transformStory;
143
142
 
144
143
  var startServer = /*#__PURE__*/function () {
145
- var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(path) {
144
+ var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(path) {
146
145
  var port,
147
146
  finalPort,
148
147
  _args = arguments;
@@ -202,7 +201,7 @@ var DEFAULT_VIEWPORT = {
202
201
  isMobile: true
203
202
  };
204
203
  var captureStory = /*#__PURE__*/function () {
205
- var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(story, location) {
204
+ var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(story, location) {
206
205
  var settings,
207
206
  _settings$viewport,
208
207
  defaultViewport,
@@ -368,10 +367,9 @@ var captureStory = /*#__PURE__*/function () {
368
367
  return _ref.apply(this, arguments);
369
368
  };
370
369
  }();
371
- var captureStory$1 = captureStory;
372
370
 
373
371
  var getStoryHtml = /*#__PURE__*/function () {
374
- var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(story) {
372
+ var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(story) {
375
373
  var settings,
376
374
  _settings$googleApiKe,
377
375
  googleApiKey,
@@ -461,7 +459,6 @@ var getStoryHtml = /*#__PURE__*/function () {
461
459
  return _ref.apply(this, arguments);
462
460
  };
463
461
  }();
464
- var getStoryHtml$1 = getStoryHtml;
465
462
 
466
463
  var getStoryHtmlSSR = function getStoryHtmlSSR(story) {
467
464
  var settings = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
@@ -483,7 +480,7 @@ var storyParser = new core.StoryParser({
483
480
  screensManager: screensManager
484
481
  });
485
482
  var exportStoryToPath = /*#__PURE__*/function () {
486
- var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(story, format, output) {
483
+ var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(story, format, output) {
487
484
  var settings,
488
485
  storyParsed,
489
486
  html,
@@ -504,7 +501,7 @@ var exportStoryToPath = /*#__PURE__*/function () {
504
501
  break;
505
502
  case 5:
506
503
  _context.next = 7;
507
- return getStoryHtml$1(storyParsed, settings);
504
+ return getStoryHtml(storyParsed, settings);
508
505
  case 7:
509
506
  html = _context.sent;
510
507
  destination = getOutputPath(output, 'story.html');
@@ -517,12 +514,12 @@ var exportStoryToPath = /*#__PURE__*/function () {
517
514
  fs.writeFileSync(_destination, _html, 'utf-8');
518
515
  return _context.abrupt("break", 25);
519
516
  case 16:
520
- captureStory$1(storyParsed, output, settings);
517
+ captureStory(storyParsed, output, settings);
521
518
  return _context.abrupt("break", 25);
522
519
  case 18:
523
520
  parsedDestination = getOutputPath(output, 'parsed.json');
524
521
  fs.writeFileSync(parsedDestination, JSON.stringify(storyParsed), 'utf-8');
525
- newStory = transformStory$1(storyParsed, format); // const mediaDestination = getOutputPath(output);
522
+ newStory = transformStory(storyParsed, format); // const mediaDestination = getOutputPath(output);
526
523
  fileDestination = getOutputPath(output, 'article.json');
527
524
  console.log(output, fileDestination);
528
525
  fs.writeFileSync(fileDestination, JSON.stringify(newStory), 'utf-8');
@@ -537,9 +534,8 @@ var exportStoryToPath = /*#__PURE__*/function () {
537
534
  return _ref.apply(this, arguments);
538
535
  };
539
536
  }();
540
- var exportStoryToPath$1 = exportStoryToPath;
541
537
 
542
- exports.captureStory = captureStory$1;
543
- exports.exportStoryToPath = exportStoryToPath$1;
544
- exports.getStoryHtml = getStoryHtml$1;
545
- exports.transformStory = transformStory$1;
538
+ exports.captureStory = captureStory;
539
+ exports.exportStoryToPath = exportStoryToPath;
540
+ exports.getStoryHtml = getStoryHtml;
541
+ exports.transformStory = transformStory;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@micromag/cli",
3
- "version": "0.3.574",
3
+ "version": "0.3.575",
4
4
  "private": false,
5
5
  "description": "",
6
6
  "keywords": [
@@ -47,12 +47,12 @@
47
47
  "dependencies": {
48
48
  "@babel/runtime": "^7.13.10",
49
49
  "@micromag/core": "^0.3.572",
50
- "@micromag/elements": "^0.3.572",
50
+ "@micromag/elements": "^0.3.575",
51
51
  "@micromag/fields": "^0.3.572",
52
- "@micromag/screens": "^0.3.574",
52
+ "@micromag/screens": "^0.3.575",
53
53
  "@micromag/transforms": "^0.3.572",
54
- "@micromag/viewer": "^0.3.574",
55
- "@micromag/viewer-build": "^0.3.574",
54
+ "@micromag/viewer": "^0.3.575",
55
+ "@micromag/viewer-build": "^0.3.575",
56
56
  "change-case": "^5.4.4",
57
57
  "classnames": "^2.2.6",
58
58
  "commander": "^12.0.0",
@@ -70,5 +70,5 @@
70
70
  "access": "public",
71
71
  "registry": "https://registry.npmjs.org/"
72
72
  },
73
- "gitHead": "55d7d4e599ab40e824a94d761d1d1b2134b50b36"
73
+ "gitHead": "686afa5c96672a7a26ce8577f2cc95693ea2db47"
74
74
  }