@chromatic-com/cypress 0.5.1 → 0.5.2
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/dist/bin/archive-storybook.js +6 -6
- package/dist/bin/archive-storybook.js.map +1 -1
- package/dist/bin/build-archive-storybook.js +6 -6
- package/dist/bin/build-archive-storybook.js.map +1 -1
- package/dist/index.js +11 -15
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +8 -11
- package/dist/index.mjs.map +1 -1
- package/dist/storybook-config/main.js +4 -8
- package/dist/storybook-config/main.js.map +1 -1
- package/dist/storybook-config/preview.mjs +2 -2
- package/dist/storybook-config/preview.mjs.map +1 -1
- package/dist/support.js.map +1 -1
- package/dist/support.mjs.map +1 -1
- package/package.json +6 -8
- package/dist/storybook-config/preset.d.ts +0 -114
- package/dist/storybook-config/preset.js +0 -10
- package/dist/storybook-config/preset.js.map +0 -1
|
@@ -2,16 +2,16 @@
|
|
|
2
2
|
'use strict';
|
|
3
3
|
|
|
4
4
|
var child_process = require('child_process');
|
|
5
|
-
var
|
|
6
|
-
var
|
|
5
|
+
var s = require('path');
|
|
6
|
+
var a = require('fs');
|
|
7
7
|
|
|
8
8
|
function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
|
|
9
9
|
|
|
10
|
-
var
|
|
11
|
-
var
|
|
10
|
+
var s__default = /*#__PURE__*/_interopDefault(s);
|
|
11
|
+
var a__default = /*#__PURE__*/_interopDefault(a);
|
|
12
12
|
|
|
13
|
-
var
|
|
13
|
+
var r=(e=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(e,{get:(o,t)=>(typeof require<"u"?require:o)[t]}):e)(function(e){if(typeof require<"u")return require.apply(this,arguments);throw new Error('Dynamic require of "'+e+'" is not supported')});var f=(e=>typeof r<"u"?r:typeof Proxy<"u"?new Proxy(e,{get:(o,t)=>(typeof r<"u"?r:o)[t]}):e)(function(e){if(typeof r<"u")return r.apply(this,arguments);throw new Error('Dynamic require of "'+e+'" is not supported')}),{CHROMATIC_ARCHIVE_LOCATION:h="test-results"}=process.env;function p(){return process.cwd()}function v(){return s__default.default.resolve(p(),h,"chromatic-archives")}function d(){let e=v();if(!a__default.default.existsSync(e))throw new Error(`Chromatic archives directory cannot be found: ${e}
|
|
14
14
|
|
|
15
|
-
Please make sure that you have run your E2E tests, or have set the CHROMATIC_ARCHIVE_LOCATION env var if the output directory for the tests is not in the standard location.`)}
|
|
15
|
+
Please make sure that you have run your E2E tests, or have set the CHROMATIC_ARCHIVE_LOCATION env var if the output directory for the tests is not in the standard location.`)}function i(e,o){d();let t=s.resolve(s.dirname(f.resolve("storybook/package.json")),"./index.js");child_process.execFileSync("node",[t,"dev",...e,"-c",o],{stdio:"inherit"});}var m=process.argv.slice(2),l=s__default.default.resolve(__dirname,"../storybook-config");i(m,l);
|
|
16
16
|
//# sourceMappingURL=out.js.map
|
|
17
17
|
//# sourceMappingURL=archive-storybook.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/bin/archive-storybook.ts"],"names":["
|
|
1
|
+
{"version":3,"sources":["../../../shared/src/utils/filePaths.ts","../../src/bin/archive-storybook.ts"],"names":["h","resolve","dirname","path","args","configDir","k"],"mappings":";0SAiBuD,OAAAA,GAAA,WAAAC,EAAA,WAAAC,MAAA,OAAA,OAAA,MAAA;;kTCdvD,OAAOC,MAAU,OAGjB,IAAMC,EAAO,QAAQ,KAAK,MAAM,CAAC,EAC3BC,EAAYF,EAAK,QAAQ,UAAW,qBAAqB,EAE/DG,EAAiBF,EAAMC,CAAS","sourcesContent":["import fs from 'fs';\nimport path from 'path';\n\nconst { CHROMATIC_ARCHIVE_LOCATION = 'test-results' } = process.env;\n\nfunction rootDir() {\n return process.cwd();\n}\n\nexport function archivesDir() {\n return path.resolve(rootDir(), CHROMATIC_ARCHIVE_LOCATION, 'chromatic-archives');\n}\n\nexport function checkArchivesDirExists() {\n const dir = archivesDir();\n if (!fs.existsSync(dir)) {\n throw new Error(\n `Chromatic archives directory cannot be found: ${dir}\\n\\nPlease make sure that you have run your E2E tests, or have set the CHROMATIC_ARCHIVE_LOCATION env var if the output directory for the tests is not in the standard location.`\n );\n }\n}\n","#!/usr/bin/env node\n\nimport { archiveStorybook } from '@chromatic-com/shared-e2e/archive-storybook';\nimport path from 'path';\n\n// Discard first two entries (exec path and file path)\nconst args = process.argv.slice(2);\nconst configDir = path.resolve(__dirname, '../storybook-config');\n\narchiveStorybook(args, configDir);\n"]}
|
|
@@ -2,16 +2,16 @@
|
|
|
2
2
|
'use strict';
|
|
3
3
|
|
|
4
4
|
var child_process = require('child_process');
|
|
5
|
-
var
|
|
6
|
-
var
|
|
5
|
+
var s = require('path');
|
|
6
|
+
var a = require('fs');
|
|
7
7
|
|
|
8
8
|
function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
|
|
9
9
|
|
|
10
|
-
var
|
|
11
|
-
var
|
|
10
|
+
var s__default = /*#__PURE__*/_interopDefault(s);
|
|
11
|
+
var a__default = /*#__PURE__*/_interopDefault(a);
|
|
12
12
|
|
|
13
|
-
var
|
|
13
|
+
var r=(e=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(e,{get:(o,t)=>(typeof require<"u"?require:o)[t]}):e)(function(e){if(typeof require<"u")return require.apply(this,arguments);throw new Error('Dynamic require of "'+e+'" is not supported')});var f=(e=>typeof r<"u"?r:typeof Proxy<"u"?new Proxy(e,{get:(o,t)=>(typeof r<"u"?r:o)[t]}):e)(function(e){if(typeof r<"u")return r.apply(this,arguments);throw new Error('Dynamic require of "'+e+'" is not supported')}),{CHROMATIC_ARCHIVE_LOCATION:d="test-results"}=process.env;function h(){return process.cwd()}function p(){return s__default.default.resolve(h(),d,"chromatic-archives")}function v(){let e=p();if(!a__default.default.existsSync(e))throw new Error(`Chromatic archives directory cannot be found: ${e}
|
|
14
14
|
|
|
15
|
-
Please make sure that you have run your E2E tests, or have set the CHROMATIC_ARCHIVE_LOCATION env var if the output directory for the tests is not in the standard location.`)}
|
|
15
|
+
Please make sure that you have run your E2E tests, or have set the CHROMATIC_ARCHIVE_LOCATION env var if the output directory for the tests is not in the standard location.`)}function i(e,o){v();let t=s.resolve(s.dirname(f.resolve("storybook/package.json")),"./index.js");child_process.execFileSync("node",[t,"build",...e,"-c",o],{stdio:"inherit"});}var l=process.argv.slice(2),m=s__default.default.resolve(__dirname,"../storybook-config");i(l,m);
|
|
16
16
|
//# sourceMappingURL=out.js.map
|
|
17
17
|
//# sourceMappingURL=build-archive-storybook.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/bin/build-archive-storybook.ts"],"names":["
|
|
1
|
+
{"version":3,"sources":["../../../shared/src/utils/filePaths.ts","../../src/bin/build-archive-storybook.ts"],"names":["h","resolve","dirname","path","args","configDir","A"],"mappings":";0SAiBuD,OAAAA,GAAA,WAAAC,EAAA,WAAAC,MAAA,OAAA,OAAA,MAAA;;oTCdvD,OAAOC,MAAU,OAGjB,IAAMC,EAAO,QAAQ,KAAK,MAAM,CAAC,EAC3BC,EAAYF,EAAK,QAAQ,UAAW,qBAAqB,EAE/DG,EAAsBF,EAAMC,CAAS","sourcesContent":["import fs from 'fs';\nimport path from 'path';\n\nconst { CHROMATIC_ARCHIVE_LOCATION = 'test-results' } = process.env;\n\nfunction rootDir() {\n return process.cwd();\n}\n\nexport function archivesDir() {\n return path.resolve(rootDir(), CHROMATIC_ARCHIVE_LOCATION, 'chromatic-archives');\n}\n\nexport function checkArchivesDirExists() {\n const dir = archivesDir();\n if (!fs.existsSync(dir)) {\n throw new Error(\n `Chromatic archives directory cannot be found: ${dir}\\n\\nPlease make sure that you have run your E2E tests, or have set the CHROMATIC_ARCHIVE_LOCATION env var if the output directory for the tests is not in the standard location.`\n );\n }\n}\n","#!/usr/bin/env node\n\nimport { buildArchiveStorybook } from '@chromatic-com/shared-e2e/archive-storybook';\nimport path from 'path';\n\n// Discard first two entries (exec path and file path)\nconst args = process.argv.slice(2);\nconst configDir = path.resolve(__dirname, '../storybook-config');\n\nbuildArchiveStorybook(args, configDir);\n"]}
|