forked from sketch-hq/SketchAPI
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.json
80 lines (80 loc) · 3.06 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
80
{
"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 && cp -r ./core-modules/node_modules ./build",
"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",
"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",
"update-sketch-with-latest-commit": "node ./scripts/update-sketch-with-latest-commit.js"
},
"devDependencies": {
"@babel/preset-typescript": "^7.3.3",
"@skpm/fs": "^0.2.4",
"@skpm/test-runner": "^0.4.0",
"@types/node": "^11.13.2",
"@typescript-eslint/parser": "^1.6.0",
"babel-loader": "^8.0.5",
"danger": "^7.1.0",
"del": "^4.1.1",
"eslint": "^5.16.0",
"eslint-config-airbnb-base": "^13.1.0",
"eslint-config-prettier": "^4.1.0",
"eslint-plugin-babel": "^5.3.0",
"eslint-plugin-import": "^2.16.0",
"eslint-plugin-prettier": "^3.0.1",
"eslint-plugin-typescript": "^0.14.0",
"lint-staged": "^8.1.5",
"markdown-table": "^1.1.3",
"pre-commit": "^1.2.2",
"prettier": "^1.16.4",
"semver": "^6.1.1",
"typescript": "^3.4.3",
"webpack": "^4.29.6",
"webpack-cli": "^3.3.0"
},
"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
}
}