UNPKG

6.92 kBJSONView Raw
1{
2 "name": "@shopify/sewing-kit",
3 "version": "0.66.0-types-beta.2",
4 "main": "index.js",
5 "types": "./lib/src/index.d.js",
6 "license": "MIT",
7 "engines": {
8 "node": ">=v8.12.0"
9 },
10 "publishConfig": {
11 "access": "public"
12 },
13 "bin": {
14 "sk": "./bin/sewing-kit",
15 "skd": "./bin/sewing-kit-debug",
16 "ski": "./bin/sewing-kit-inspect",
17 "sewing-kit": "./bin/sewing-kit",
18 "sewing-kit-debug": "./bin/sewing-kit-debug",
19 "sewing-kit-enterprise": "./bin/sewing-kit-enterprise",
20 "sewing-kit-inspect": "./bin/sewing-kit-inspect"
21 },
22 "scripts": {
23 "format": "yarn run lint:js --fix && yarn run lint:ts --fix && prettier '**/*.md' --write",
24 "lint:js": "eslint . --max-warnings 0 --format codeframe",
25 "lint:ts": "eslint . --ext .ts --max-warnings 0 --format codeframe",
26 "lint:prettier": "prettier '**/*.md' --list-different",
27 "lint": "yarn run lint:js && yarn run lint:ts && yarn run lint:prettier --list-different",
28 "ts": "tsc --noEmit",
29 "pretest:e2e": "yarn run build",
30 "pretest:e2e:debug": "yarn run build",
31 "test:e2e": "jest --roots 'tests/e2e' --",
32 "test:e2e:debug": "node --inspect-brk node_modules/.bin/jest --roots 'tests/e2e' --debug --",
33 "test:unit": "jest --roots 'src' 'packages' --",
34 "test:unit:watch": "jest --roots 'src' 'packages' --watch",
35 "check": "yarn run ts && yarn run test:fail-on-only-in-test && yarn run test:unit && yarn run test:e2e",
36 "prebuild": "rm -rf lib",
37 "build": "tsc",
38 "tophat": "node ./tophat/index.js tophat",
39 "postbuild": "node ./scripts/rewrite-typescript-paths-to-relative-requires.js",
40 "prepublish": "in-publish && yarn run build && echo 'N/A' > README.md || :"
41 },
42 "files": [
43 "lib",
44 "bin",
45 "jest",
46 "typescript",
47 "!*.test.js",
48 "!lib/tests"
49 ],
50 "jest": {
51 "globals": {
52 "ts-jest": {
53 "babelConfig": {
54 "plugins": [
55 "babel-plugin-system-import-transformer"
56 ],
57 "sourceMaps": "inline"
58 }
59 }
60 },
61 "testEnvironment": "node",
62 "testRegex": ".*\\.test\\.ts$",
63 "transform": {
64 ".ts$": "ts-jest"
65 },
66 "moduleDirectories": [
67 "node_modules",
68 "packages",
69 "<rootDir>"
70 ],
71 "moduleFileExtensions": [
72 "js",
73 "ts",
74 "json"
75 ]
76 },
77 "eslintConfig": {
78 "extends": [
79 "plugin:shopify/typescript",
80 "plugin:shopify/node",
81 "plugin:shopify/jest",
82 "plugin:shopify/prettier"
83 ],
84 "overrides": [
85 {
86 "files": [
87 "*.ts",
88 "*.tsx"
89 ],
90 "rules": {
91 "typescript/no-var-requires": "off"
92 }
93 }
94 ],
95 "rules": {
96 "import/no-cycle": "off",
97 "callback-return": "off",
98 "no-undefined": "off",
99 "require-await": "off",
100 "shopify/jest/no-vague-titles": "off",
101 "jest/consistent-test-it": [
102 "error",
103 {
104 "fn": "it"
105 }
106 ]
107 }
108 },
109 "optionalDependencies": {},
110 "devDependencies": {
111 "@types/chalk": "^2.2.0",
112 "@types/express": "^4.16.0",
113 "@types/fs-extra": "^5.0.4",
114 "@types/glob": "^7.1.1",
115 "@types/isomorphic-fetch": "^0.0.34",
116 "@types/js-yaml": "^3.11.2",
117 "@types/jsdom": "^12.2.0",
118 "@types/loader-utils": "^1.1.3",
119 "@types/lodash": "^4.14.112",
120 "@types/node": "^10.5.2",
121 "@types/prettier": "^1.13.1",
122 "@types/puppeteer": "^1.9.0",
123 "@types/rimraf": "^2.0.2",
124 "@types/rollup": "0.51.4",
125 "@types/semver": "^5.5.0",
126 "@types/source-map-support": "^0.4.1",
127 "@types/tapable": "^1.0.4",
128 "@types/temp": "^0.8.32",
129 "@types/webpack": "^4.4.13",
130 "@types/webpack-dev-middleware": "^2.0.2",
131 "@types/yargs": "^12.0.1",
132 "in-publish": "^2.0.0",
133 "jsdom": "^13.0.0",
134 "puppeteer": "^1.6.0",
135 "rollup-pluginutils": "^2.0.1",
136 "typescript": "^3.1.4",
137 "webpack-cli": "^3.1.0"
138 },
139 "dependencies": {
140 "@shopify/images": "^1.1.4",
141 "@types/graphql": "^0.13.0",
142 "@types/jest": "^23.3.1",
143 "app-root-dir": "^1.0.2",
144 "awesome-typescript-loader": "3.1.3",
145 "babel-core": "^6.25.0",
146 "babel-jest": "~23.6.0",
147 "babel-loader": "^7.1.5",
148 "babel-plugin-dynamic-import-node": "^2.2.0",
149 "babel-plugin-lodash": "^3.3.4",
150 "babel-plugin-system-import-transformer": "^3.1.0",
151 "babel-preset-shopify": "^16.6.0",
152 "cache-loader": "^1.2.5",
153 "case-sensitive-paths-webpack-plugin": "^2.1.2",
154 "chalk": "^2.3.2",
155 "compression-webpack-plugin": "~2.0.0",
156 "core-js": "^2.5.0",
157 "css-loader": "^0.28.11",
158 "element-dataset": "^2.2.6",
159 "eslint": "^5.6.0",
160 "eslint-plugin-shopify": "^26.1.1",
161 "express": "^4.16.3",
162 "file-loader": "^2.0.0",
163 "fs-extra": "^7.0.1",
164 "get-port": "~4.0.0",
165 "glob": "^7.1.2",
166 "graphql": "0.13.2",
167 "graphql-config": "2.1.1",
168 "graphql-tag": "^2.9.1",
169 "graphql-tool-utilities": "^0.9.1",
170 "graphql-typed": "^0.2.0",
171 "graphql-typescript-definitions": "^0.14.0",
172 "graphql-validate-fixtures": "^0.10.1",
173 "happypack": "^5.0.0",
174 "hard-source-webpack-plugin": "~0.12.0",
175 "hot-shots": "^5.9.1",
176 "identity-obj-proxy": "^3.0.0",
177 "image-webpack-loader": "~4.5.0",
178 "is-reachable": "^2.4.0",
179 "isomorphic-fetch": "^2.2.1",
180 "jest": "^23.0.0",
181 "jest-transform-graphql": "^2.1.0",
182 "jest-watch-typeahead": "^0.2.0",
183 "js-yaml": "^3.12.0",
184 "loader-utils": "^1.1.0",
185 "lodash": "^4.17.5",
186 "lodash-webpack-plugin": "^0.11.5",
187 "mini-css-extract-plugin": "^0.4.4",
188 "node-object-hash": "^1.4.1",
189 "node-sass": "^4.10.0",
190 "open-in-editor": "^2.2.0",
191 "postcss-loader": "^2.1.3",
192 "postcss-shopify": "^1.0.1",
193 "prettier": "^1.14.3",
194 "react-dev-utils": "~6.1.1",
195 "react-hot-loader": "^3.1.3",
196 "react-loadable": "^5.4.0",
197 "regenerator-runtime": "^0.11.1",
198 "rollup": "^0.51.0",
199 "rollup-plugin-babel": "^3.0.3",
200 "rollup-plugin-commonjs": "^8.2.6",
201 "rollup-plugin-json": "^2.3.0",
202 "rollup-plugin-node-resolve": "^3.0.2",
203 "sass-loader": "^7.0.3",
204 "sass-resources-loader": "^1.3.4",
205 "source-map-support": "^0.5.9",
206 "strip-ansi": "^5.0.0",
207 "style-loader": "^0.23.1",
208 "stylelint": "^9.7.1",
209 "stylelint-config-shopify": "^7.0.4",
210 "svgo": "^1.1.1",
211 "temp": "^0.8.3",
212 "ts-jest": "~23.10.4",
213 "ts-loader": "^5.3.0",
214 "uglifyjs-webpack-plugin": "^1.2.7",
215 "url-loader": "~1.1.2",
216 "webpack": "~4.25.1",
217 "webpack-bundle-analyzer": "^3.0.3",
218 "webpack-dev-middleware": "^3.4.0",
219 "webpack-dev-server": "^3.1.10",
220 "webpack-filter-warnings-plugin": "^1.2.0",
221 "webpack-hot-middleware": "^2.24.3",
222 "webpack-node-externals": "^1.7.2",
223 "webpack-plugin-hash-output": "npm:webpack-plugin-hash-output-mini-css@3.1.0-beta.4",
224 "whatwg-url": "^6.1.0",
225 "yargs": "^12.0.2"
226 },
227 "resolutions": {
228 "yargs": "^12.0.2"
229 }
230}