-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
104 lines (104 loc) · 3.32 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
{
"name": "template-esm-react",
"version": "3.0.8",
"description": "Quickly setup ESM React repositories with preconfigured functionality.",
"keywords": [
"react",
"babel",
"postcss",
"eslint",
"coverage-report",
"snapshot-testing",
"scss",
"prettier",
"storybook",
"cleanup",
"esm",
"husky",
"browserslist",
"lint-staged",
"npmrc",
"mjs",
"nvmrc",
"npm-init",
"interaction-testing",
"postprepare"
],
"license": "MIT",
"author": "Matthew Nuthall",
"repository": "github:idesigncode/template-esm-react",
"bugs": "https://github.com/idesigncode/template-esm-react/issues",
"homepage": "https://github.com/idesigncode/template-esm-react#readme",
"engines": {
"node": ">= 18.0.0"
},
"browserslist": [
"> 0.2%",
"last 2 versions"
],
"scripts": {
"eslint": "eslint . --ext .js,.cjs,.mjs --fix --ignore-path .gitignore",
"postprepare": "node .npm-postprepare.cjs",
"prepare": "npm run prepare:clean && npm run prepare:css && npm run prepare:js && husky install",
"prepare:clean": "node .npm-prepare-clean.cjs",
"prepare:css": "sass --no-source-map src:. && postcss *.css -d .",
"prepare:js": "babel src --out-dir . --ignore **/*.test.mjs,**/*.stories.mjs --keep-file-extension",
"prepublishOnly": "npm run test",
"prettier": "prettier --write . --ignore-path .gitignore",
"storybook": "storybook dev --ci -p 6006",
"storybook:build": "storybook build --quiet --docs",
"storybook:start": "npx http-server ./storybook-static -p 6006",
"test": "npm run test:prettier && npm run test:eslint",
"test:eslint": "eslint . --ext .js,.cjs,.mjs --ignore-path .gitignore",
"test:prettier": "prettier --check . --ignore-path .gitignore",
"test:storybook": "test-storybook --stories-json --coverage",
"test:storybook:update": "npm run test:storybook -- --updateSnapshot"
},
"files": [
"SampleComponent.mjs",
"sampleFunction.mjs",
"sampleStyles.css"
],
"exports": {
"./SampleComponent.mjs": "./SampleComponent.mjs",
"./package.json": "./package.json",
"./sampleFunction.mjs": "./sampleFunction.mjs",
"./sampleStyles.css": "./sampleStyles.css"
},
"dependencies": {
"prop-types": "^15.8.1",
"react": "^18.2.0",
"react-dom": "^18.2.0"
},
"devDependencies": {
"@babel/cli": "^7.22.9",
"@babel/core": "^7.22.9",
"@babel/preset-env": "^7.22.9",
"@babel/preset-react": "^7.22.5",
"@idesigncode/storybook-tools": "^3.0.1",
"@storybook/addon-coverage": "^0.0.9",
"@storybook/addon-docs": "^7.1.1",
"@storybook/addon-interactions": "^7.1.1",
"@storybook/addons": "^7.1.1",
"@storybook/jest": "^0.1.0",
"@storybook/react": "^7.1.1",
"@storybook/react-webpack5": "^7.1.1",
"@storybook/test-runner": "^0.12.0",
"@storybook/testing-library": "^0.2.0",
"autoprefixer": "^10.4.14",
"babel-plugin-inline-react-svg": "^2.0.2",
"cssnano": "^6.0.1",
"eslint": "^8.46.0",
"eslint-plugin-react": "^7.33.1",
"eslint-plugin-simple-import-sort": "^10.0.0",
"husky": "^8.0.3",
"jest-image-snapshot": "^6.2.0",
"lint-staged": "^13.2.3",
"postcss": "^8.4.27",
"postcss-cli": "^10.1.0",
"prettier": "^3.0.0",
"sass": "^1.64.1",
"storybook": "^7.1.1",
"storybook-dark-mode": "^3.0.1"
}
}