@form8ion/react-components-scaffolder 2.2.3 → 3.0.1
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.cjs.js +4 -4
- package/package.json +24 -25
package/lib/index.cjs.js
CHANGED
|
@@ -16,7 +16,7 @@ var makeDir__default = /*#__PURE__*/_interopDefaultLegacy(makeDir);
|
|
|
16
16
|
const STORYBOOK_BUILD_DIRECTORY = 'storybook-static';
|
|
17
17
|
|
|
18
18
|
async function scaffoldStorybook ({projectRoot}) {
|
|
19
|
-
const storybookDirectory = await makeDir__default[
|
|
19
|
+
const storybookDirectory = await makeDir__default["default"](`${projectRoot}/.storybook`);
|
|
20
20
|
|
|
21
21
|
await fs.promises.copyFile(
|
|
22
22
|
path.resolve(__dirname, '..', 'templates', 'storybook-config.js'),
|
|
@@ -40,7 +40,7 @@ async function scaffoldStorybook ({projectRoot}) {
|
|
|
40
40
|
async function scaffoldIntegration ({projectRoot}) {
|
|
41
41
|
const baseUrl = 'http://localhost:5000';
|
|
42
42
|
|
|
43
|
-
return deepmerge__default[
|
|
43
|
+
return deepmerge__default["default"](
|
|
44
44
|
{
|
|
45
45
|
scripts: {
|
|
46
46
|
preserve: 'run-s build:storybook',
|
|
@@ -56,7 +56,7 @@ async function scaffoldIntegration ({projectRoot}) {
|
|
|
56
56
|
async function scaffoldTesting ({projectRoot, tests}) {
|
|
57
57
|
const integrationResults = tests.integration ? await scaffoldIntegration({projectRoot}) : {};
|
|
58
58
|
|
|
59
|
-
return deepmerge__default[
|
|
59
|
+
return deepmerge__default["default"](
|
|
60
60
|
{devDependencies: [...tests.unit ? ['enzyme', 'enzyme-adapter-react-16'] : []]},
|
|
61
61
|
integrationResults
|
|
62
62
|
);
|
|
@@ -68,7 +68,7 @@ async function scaffolder ({projectRoot, tests}) {
|
|
|
68
68
|
scaffoldStorybook({projectRoot})
|
|
69
69
|
]);
|
|
70
70
|
|
|
71
|
-
return deepmerge__default[
|
|
71
|
+
return deepmerge__default["default"].all([
|
|
72
72
|
{
|
|
73
73
|
dependencies: ['react', 'react-dom', 'prop-types'],
|
|
74
74
|
eslintConfigs: ['react']
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@form8ion/react-components-scaffolder",
|
|
3
3
|
"description": "opinionated scaffolder for React component-library projects",
|
|
4
4
|
"license": "MIT",
|
|
5
|
-
"version": "
|
|
5
|
+
"version": "3.0.1",
|
|
6
6
|
"main": "lib/index.cjs.js",
|
|
7
7
|
"module": "lib/index.es.js",
|
|
8
8
|
"sideEffects": false,
|
|
@@ -42,40 +42,39 @@
|
|
|
42
42
|
"prepare": "husky install"
|
|
43
43
|
},
|
|
44
44
|
"devDependencies": {
|
|
45
|
-
"@babel/register": "7.
|
|
46
|
-
"@
|
|
47
|
-
"@form8ion/
|
|
48
|
-
"@form8ion/
|
|
49
|
-
"@form8ion/eslint-config
|
|
50
|
-
"@form8ion/eslint-config-
|
|
51
|
-
"@form8ion/
|
|
52
|
-
"@
|
|
53
|
-
"@
|
|
54
|
-
"@
|
|
55
|
-
"
|
|
56
|
-
"
|
|
57
|
-
"
|
|
58
|
-
"
|
|
45
|
+
"@babel/register": "7.18.9",
|
|
46
|
+
"@cucumber/cucumber": "8.5.1",
|
|
47
|
+
"@form8ion/babel-preset": "1.6.94",
|
|
48
|
+
"@form8ion/commitlint-config": "1.0.36",
|
|
49
|
+
"@form8ion/eslint-config": "5.0.7",
|
|
50
|
+
"@form8ion/eslint-config-cucumber": "1.4.1",
|
|
51
|
+
"@form8ion/eslint-config-mocha": "2.0.3",
|
|
52
|
+
"@form8ion/javascript": "8.0.1",
|
|
53
|
+
"@form8ion/remark-lint-preset": "4.0.1",
|
|
54
|
+
"@rollup/plugin-node-resolve": "13.3.0",
|
|
55
|
+
"@travi/any": "2.1.5",
|
|
56
|
+
"ban-sensitive-files": "1.9.18",
|
|
57
|
+
"chai": "4.3.6",
|
|
58
|
+
"codecov": "3.8.3",
|
|
59
59
|
"cz-conventional-changelog": "3.3.0",
|
|
60
|
-
"gherkin-lint": "4.2.
|
|
61
|
-
"husky": "
|
|
62
|
-
"lockfile-lint": "4.
|
|
63
|
-
"mocha": "
|
|
60
|
+
"gherkin-lint": "4.2.2",
|
|
61
|
+
"husky": "8.0.1",
|
|
62
|
+
"lockfile-lint": "4.7.7",
|
|
63
|
+
"mocha": "10.0.0",
|
|
64
64
|
"npm-run-all": "4.1.5",
|
|
65
65
|
"nyc": "15.1.0",
|
|
66
|
-
"remark-cli": "
|
|
66
|
+
"remark-cli": "11.0.0",
|
|
67
67
|
"rimraf": "3.0.2",
|
|
68
|
-
"rollup": "2.
|
|
68
|
+
"rollup": "2.77.2",
|
|
69
69
|
"rollup-plugin-auto-external": "2.0.0",
|
|
70
|
-
"
|
|
71
|
-
"sinon": "10.0.0"
|
|
70
|
+
"sinon": "14.0.0"
|
|
72
71
|
},
|
|
73
72
|
"dependencies": {
|
|
74
|
-
"@form8ion/cypress-scaffolder": "
|
|
73
|
+
"@form8ion/cypress-scaffolder": "3.0.0",
|
|
75
74
|
"deepmerge": "^4.2.2",
|
|
76
75
|
"make-dir": "^3.0.0"
|
|
77
76
|
},
|
|
78
77
|
"peerDependencies": {
|
|
79
|
-
"@
|
|
78
|
+
"@form8ion/javascript": ">=2.0.0"
|
|
80
79
|
}
|
|
81
80
|
}
|