forked from sketch-hq/SketchAPI
-
Notifications
You must be signed in to change notification settings - Fork 1
/
package.json
79 lines (79 loc) · 3.05 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
{
"name": "sketch-api",
"private": true,
"version": "2.0.0",
"author": "Sam Deane",
"license": "MIT",
"description": "Javascript API for Sketch",
"homepage": "https://github.com/BohemianCoding/SketchAPI",
"scripts": {
"build": "mkdir -p ./build && npm run build:test && npm run build:api && (rm -rf ./build/core-modules || true) && cp -R ./core-modules/node_modules/. ./build/core-modules",
"build:test": "skpm-test --build-only && cp ./node_modules/@skpm/test-runner/test-runner.sketchplugin/Contents/Sketch/compiled-tests.js ./build/SketchAPI.tests.js",
"build:api": "webpack",
"start": "npm run build",
"watch": "webpack --watch",
"docs:start": "cd docs-website && ./run",
"docs:generate-actions": "node ./scripts/generate-actions",
"docs:generate-reference-files": "node ./scripts/generate-reference-files",
"docs:generate-reference-files-md": "node ./scripts/generate-reference-files-md",
"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",
"update-sketch-with-latest-commit": "node ./scripts/update-sketch-with-latest-commit.js"
},
"devDependencies": {
"@babel/preset-typescript": "7.6.0",
"@skpm/fs": "0.2.4",
"@skpm/test-runner": "0.4.0",
"@types/node": "12.7.4",
"@typescript-eslint/parser": "1.13.0",
"babel-loader": "8.0.6",
"danger": "9.2.0",
"del": "5.1.0",
"eslint": "6.3.0",
"eslint-config-airbnb-base": "14.0.0",
"eslint-config-prettier": "6.2.0",
"eslint-plugin-babel": "5.3.0",
"eslint-plugin-import": "2.18.0",
"eslint-plugin-prettier": "3.0.1",
"eslint-plugin-typescript": "0.14.0",
"lint-staged": "9.2.5",
"markdown-table": "1.1.3",
"pre-commit": "1.2.2",
"prettier": "1.18.2",
"semver": "6.3.0",
"typescript": "3.6.2",
"webpack": "4.39.3",
"webpack-cli": "3.3.8"
},
"dependencies": {},
"pre-commit": [
"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
}
}