forked from sketch-hq/SketchAPI
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
74 lines (74 loc) · 2.57 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
{
"name": "sketch-api",
"private": true,
"version": "2.0.0",
"author": "Sam Deane",
"license": "MIT",
"description": "Javascript API for Sketch",
"scripts": {
"build": "npm run build:test && npm run build:api && node ./scripts/copy-tests.js",
"build:test": "skpm-test --build-only",
"build:api": "webpack -p --optimize-minimize",
"start": "npm run build",
"watch": "webpack --watch",
"docs:start": "cd docs-website && ./run",
"docs:generate-actions": "node ./scripts/generate-actions",
"deploy:docs": "./scripts/deploy.sh",
"run-tests:no-variant": "skpm-test --app=latest",
"run-tests": "skpm-test --app=xcode",
"test": "npm run lint -- --quiet && npm run run-tests",
"test:watch": "npm run run-tests -- --watch",
"test:no-variant": "npm run lint -- --quiet && npm run run-tests:no-variant",
"run-tests:private": "skpm-test --app=\"/Applications/Sketch Private.app\"",
"test:no-variant:watch": "npm run run-tests:no-variant -- --watch",
"lint": "find . -name \"*.ts\" -o -name \"*.js\" | grep -v -f .gitignore | grep -v .d.ts | grep -v examples | grep -v docs-website | xargs eslint",
"prettier:base": "prettier --write",
"prettify": "find . -name \"*.ts\" -o -name \"*.js\" | grep -v -f .gitignore | grep -v docs-website | xargs npm run prettier:base",
"lint-staged": "lint-staged",
"postinstall": "node ./scripts/install-pre-commit.js && node ./scripts/inject-new-api-in-tester.js && rm -rf .awcache || true && cd core-modules && npm install"
},
"devDependencies": {
"@babel/preset-typescript": "^7.1.0",
"@skpm/test-runner": "^0.3.8",
"@types/node": "^10.12.10",
"awesome-typescript-loader": "^5.2.1",
"babel-loader": "^8.0.4",
"danger": "^6.1.8",
"eslint": "^5.9.0",
"eslint-config-airbnb-base": "^13.1.0",
"eslint-config-prettier": "^3.3.0",
"eslint-plugin-babel": "^5.3.0",
"eslint-plugin-import": "^2.14.0",
"eslint-plugin-prettier": "^3.0.0",
"eslint-plugin-typescript": "^0.14.0",
"lint-staged": "^8.1.0",
"pre-commit": "^1.2.2",
"prettier": "^1.15.2",
"typescript": "^3.1.6",
"typescript-eslint-parser": "^21.0.1",
"webpack": "^4.26.1",
"webpack-cli": "^3.1.2"
},
"dependencies": {},
"pre-commit": [
"build",
"lint-staged"
],
"lint-staged": {
"*.{js,ts}": [
"npm run prettier:base",
"eslint",
"git add"
],
"*.{md}": [
"npm run prettier:base",
"git add"
]
},
"prettier": {
"proseWrap": "never",
"singleQuote": true,
"trailingComma": "es5",
"semi": false
}
}