@micromag/cli 0.3.480 → 0.3.483
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.
- package/lib/index.js +11 -7
- package/package.json +11 -10
package/lib/index.js
CHANGED
|
@@ -116,6 +116,7 @@ var transformStory = function transformStory(story, format) {
|
|
|
116
116
|
}, baseStory);
|
|
117
117
|
return transforms.postProcessor(componentsStory, transformKey);
|
|
118
118
|
};
|
|
119
|
+
var transformStory$1 = transformStory;
|
|
119
120
|
|
|
120
121
|
var startServer = /*#__PURE__*/function () {
|
|
121
122
|
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(path) {
|
|
@@ -344,6 +345,7 @@ var captureStory = /*#__PURE__*/function () {
|
|
|
344
345
|
return _ref.apply(this, arguments);
|
|
345
346
|
};
|
|
346
347
|
}();
|
|
348
|
+
var captureStory$1 = captureStory;
|
|
347
349
|
|
|
348
350
|
var getStoryHtml = /*#__PURE__*/function () {
|
|
349
351
|
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(story) {
|
|
@@ -436,6 +438,7 @@ var getStoryHtml = /*#__PURE__*/function () {
|
|
|
436
438
|
return _ref.apply(this, arguments);
|
|
437
439
|
};
|
|
438
440
|
}();
|
|
441
|
+
var getStoryHtml$1 = getStoryHtml;
|
|
439
442
|
|
|
440
443
|
var getStoryHtmlSSR = function getStoryHtmlSSR(story) {
|
|
441
444
|
var settings = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
@@ -478,7 +481,7 @@ var exportStoryToPath = /*#__PURE__*/function () {
|
|
|
478
481
|
break;
|
|
479
482
|
case 5:
|
|
480
483
|
_context.next = 7;
|
|
481
|
-
return getStoryHtml(storyParsed, settings);
|
|
484
|
+
return getStoryHtml$1(storyParsed, settings);
|
|
482
485
|
case 7:
|
|
483
486
|
html = _context.sent;
|
|
484
487
|
destination = getOutputPath(output, 'story.html');
|
|
@@ -491,12 +494,12 @@ var exportStoryToPath = /*#__PURE__*/function () {
|
|
|
491
494
|
fs.writeFileSync(_destination, _html, 'utf-8');
|
|
492
495
|
return _context.abrupt("break", 25);
|
|
493
496
|
case 16:
|
|
494
|
-
captureStory(storyParsed, output, settings);
|
|
497
|
+
captureStory$1(storyParsed, output, settings);
|
|
495
498
|
return _context.abrupt("break", 25);
|
|
496
499
|
case 18:
|
|
497
500
|
parsedDestination = getOutputPath(output, 'parsed.json');
|
|
498
501
|
fs.writeFileSync(parsedDestination, JSON.stringify(storyParsed), 'utf-8');
|
|
499
|
-
newStory = transformStory(storyParsed, format); // const mediaDestination = getOutputPath(output);
|
|
502
|
+
newStory = transformStory$1(storyParsed, format); // const mediaDestination = getOutputPath(output);
|
|
500
503
|
fileDestination = getOutputPath(output, 'article.json');
|
|
501
504
|
console.log(output, fileDestination);
|
|
502
505
|
fs.writeFileSync(fileDestination, JSON.stringify(newStory), 'utf-8');
|
|
@@ -511,8 +514,9 @@ var exportStoryToPath = /*#__PURE__*/function () {
|
|
|
511
514
|
return _ref.apply(this, arguments);
|
|
512
515
|
};
|
|
513
516
|
}();
|
|
517
|
+
var exportStoryToPath$1 = exportStoryToPath;
|
|
514
518
|
|
|
515
|
-
exports.captureStory = captureStory;
|
|
516
|
-
exports.exportStoryToPath = exportStoryToPath;
|
|
517
|
-
exports.getStoryHtml = getStoryHtml;
|
|
518
|
-
exports.transformStory = transformStory;
|
|
519
|
+
exports.captureStory = captureStory$1;
|
|
520
|
+
exports.exportStoryToPath = exportStoryToPath$1;
|
|
521
|
+
exports.getStoryHtml = getStoryHtml$1;
|
|
522
|
+
exports.transformStory = transformStory$1;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@micromag/cli",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.483",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "",
|
|
6
6
|
"keywords": [
|
|
@@ -39,20 +39,21 @@
|
|
|
39
39
|
"micromag-export": "./bin/export.js"
|
|
40
40
|
},
|
|
41
41
|
"scripts": {
|
|
42
|
+
"clean": "rm -rf bin && rm -rf lib",
|
|
42
43
|
"node": "../../node_modules/.bin/babel-node --config-file=../../babel.config.js -i '[]' --env-name=node",
|
|
43
44
|
"export": "npm run node -- ./src/bin/export.js",
|
|
44
45
|
"prepare": "../../scripts/prepare-package.sh"
|
|
45
46
|
},
|
|
46
47
|
"dependencies": {
|
|
47
48
|
"@babel/runtime": "^7.13.10",
|
|
48
|
-
"@micromag/core": "^0.3.
|
|
49
|
-
"@micromag/elements": "^0.3.
|
|
50
|
-
"@micromag/fields": "^0.3.
|
|
51
|
-
"@micromag/screens": "^0.3.
|
|
52
|
-
"@micromag/transforms": "^0.3.
|
|
53
|
-
"@micromag/viewer": "^0.3.
|
|
54
|
-
"@micromag/viewer-build": "^0.3.
|
|
55
|
-
"change-case": "^
|
|
49
|
+
"@micromag/core": "^0.3.482",
|
|
50
|
+
"@micromag/elements": "^0.3.482",
|
|
51
|
+
"@micromag/fields": "^0.3.482",
|
|
52
|
+
"@micromag/screens": "^0.3.482",
|
|
53
|
+
"@micromag/transforms": "^0.3.482",
|
|
54
|
+
"@micromag/viewer": "^0.3.483",
|
|
55
|
+
"@micromag/viewer-build": "^0.3.483",
|
|
56
|
+
"change-case": "^4.0.0",
|
|
56
57
|
"classnames": "^2.2.6",
|
|
57
58
|
"commander": "^8.3.0",
|
|
58
59
|
"express": "^4.17.1",
|
|
@@ -69,5 +70,5 @@
|
|
|
69
70
|
"access": "public",
|
|
70
71
|
"registry": "https://registry.npmjs.org/"
|
|
71
72
|
},
|
|
72
|
-
"gitHead": "
|
|
73
|
+
"gitHead": "f1e3383c20068b9221a2b7c0a5c1ebf75edefb34"
|
|
73
74
|
}
|