UNPKG

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