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