@papillonarts/setup 0.31.0 → 0.32.0
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.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../src/eslint/index.mjs"],"names":[],"mappings":"AAwBA;;
|
|
1
|
+
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../src/eslint/index.mjs"],"names":[],"mappings":"AAwBA;;qCAoJC"}
|
package/build/eslint/index.mjs
CHANGED
|
@@ -71,6 +71,7 @@ export function getESLintSetup({ eslintIgnores }) {
|
|
|
71
71
|
jsdom: true,
|
|
72
72
|
renderMount: false,
|
|
73
73
|
renderShallow: false,
|
|
74
|
+
// __DEV__: 'readonly',
|
|
74
75
|
},
|
|
75
76
|
|
|
76
77
|
parser: tsParser,
|
|
@@ -123,7 +124,7 @@ export function getESLintSetup({ eslintIgnores }) {
|
|
|
123
124
|
'import/no-extraneous-dependencies': [
|
|
124
125
|
0,
|
|
125
126
|
{
|
|
126
|
-
devDependencies: ['**/*.test.js', '**/*.
|
|
127
|
+
devDependencies: ['**/*.test.js', '**/*.stories.js', '**/*.test.ts', '**/*.stories.tsx'],
|
|
127
128
|
},
|
|
128
129
|
],
|
|
129
130
|
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
+
import type { StorybookConfig } from '@storybook/react-webpack5';
|
|
1
2
|
export declare function getStorybookMainSetup({ stories, staticDirs, includePaths }: {
|
|
2
3
|
stories: any;
|
|
3
4
|
staticDirs: any;
|
|
4
5
|
includePaths: any;
|
|
5
|
-
}):
|
|
6
|
+
}): StorybookConfig;
|
|
6
7
|
//# sourceMappingURL=mainSetup.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mainSetup.d.ts","sourceRoot":"","sources":["../../src/storybook/mainSetup.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"mainSetup.d.ts","sourceRoot":"","sources":["../../src/storybook/mainSetup.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAA;AAOhE,wBAAgB,qBAAqB,CAAC,EAAE,OAAO,EAAE,UAAU,EAAE,YAAY,EAAE;;;;CAAA,mBAsQ1E"}
|
|
@@ -10,7 +10,6 @@ var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/de
|
|
|
10
10
|
var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/asyncToGenerator"));
|
|
11
11
|
var _object = require("@papillonarts/library/object");
|
|
12
12
|
var _webpack = require("@papillonarts/setup/webpack");
|
|
13
|
-
var _node = require("@storybook/react-webpack5/node");
|
|
14
13
|
var _forkTsCheckerWebpackPlugin = _interopRequireDefault(require("fork-ts-checker-webpack-plugin"));
|
|
15
14
|
var _webpack2 = _interopRequireDefault(require("webpack"));
|
|
16
15
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
@@ -23,7 +22,7 @@ function getStorybookMainSetup(_ref) {
|
|
|
23
22
|
var stories = _ref.stories,
|
|
24
23
|
staticDirs = _ref.staticDirs,
|
|
25
24
|
includePaths = _ref.includePaths;
|
|
26
|
-
|
|
25
|
+
var config = {
|
|
27
26
|
// https://storybook.js.org/docs/api/main-config/main-config-preview-body
|
|
28
27
|
previewBody: function previewBody(body) {
|
|
29
28
|
// https://github.com/storybookjs/storybook/issues/24429
|
|
@@ -195,7 +194,7 @@ function getStorybookMainSetup(_ref) {
|
|
|
195
194
|
issuer: /\.[jt]sx?$/,
|
|
196
195
|
use: ['@svgr/webpack']
|
|
197
196
|
}, {
|
|
198
|
-
test: /\.
|
|
197
|
+
test: /\.stories\.mdx$/,
|
|
199
198
|
use: [{
|
|
200
199
|
loader: 'babel-loader',
|
|
201
200
|
options: {
|
|
@@ -248,5 +247,11 @@ function getStorybookMainSetup(_ref) {
|
|
|
248
247
|
},
|
|
249
248
|
skipCompiler: false
|
|
250
249
|
}
|
|
251
|
-
|
|
250
|
+
// https://storybook.js.org/docs/configure/environment-variables
|
|
251
|
+
// env: (config) => ({
|
|
252
|
+
// ...config,
|
|
253
|
+
// __DEV__: JSON.stringify(true),
|
|
254
|
+
// }),
|
|
255
|
+
};
|
|
256
|
+
return config;
|
|
252
257
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@papillonarts/setup",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.32.0",
|
|
4
4
|
"description": "Papillon Arts Setup",
|
|
5
5
|
"homepage": "https://github.com/papillonarts/papillonarts/tree/master/packages/setup",
|
|
6
6
|
"repository": {
|
|
@@ -37,5 +37,5 @@
|
|
|
37
37
|
"build-acceptance": "npm run build",
|
|
38
38
|
"build-release": "npm run build"
|
|
39
39
|
},
|
|
40
|
-
"gitHead": "
|
|
40
|
+
"gitHead": "ef4fed25144f22694108ef60333c49fbe98dba3e"
|
|
41
41
|
}
|