-
-
Notifications
You must be signed in to change notification settings - Fork 83
/
package.json
39 lines (39 loc) · 1.82 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
{
"name": "@tweakpane/core",
"version": "2.0.3",
"description": "Tweakpane core library",
"author": "cocopon",
"license": "MIT",
"main": "dist/index.js",
"type": "module",
"types": "dist/index.d.ts",
"prettier": "../../prettier.config.js",
"typedoc": {
"entryPoint": "./src/index.ts",
"tsconfig": "./src/tsconfig.json"
},
"scripts": {
"prepack": "run-s clean build",
"prepublishOnly": "npm test",
"start": "run-s build watch",
"test": "run-s test:scss test:ts",
"build": "run-s build:ts",
"build:ts": "tsc --project src/tsconfig.json && node scripts/replace-version.js dist/version.js",
"clean": "rimraf .nyc_output dist tweakpane-core.tgz tweakpane-core-*.tgz",
"coverage": "nyc --reporter=text --extension \".ts\" --exclude \"**/*-test.ts\" --exclude \"dist/**/*\" npm run test:ts:dynamic",
"format": "run-p format:*",
"format:scss": "prettier --parser scss --write \"lib/sass/**/*.scss\"",
"format:ts": "eslint --ext .ts --fix \"src/**/*.ts\"",
"lint": "run-p test:scss:static test:ts:static",
"test:scss": "run-s test:scss:static test:scss:dynamic",
"test:scss:static": "prettier --parser scss --list-different \"lib/sass/**/*.scss\"",
"test:scss:dynamic": "sass lib/sass/_plugin-test.scss",
"test:ts": "run-s test:ts:static test:ts:dynamic",
"test:ts:dynamic": "TS_NODE_CACHE=false TS_NODE_PROJECT=\"src/tsconfig.json\" mocha --require ts-node/register --loader=ts-node/esm \"src/**/*-test.ts\"",
"test:ts:dynamic:inspect": "TS_NODE_CACHE=false TS_NODE_PROJECT=\"src/tsconfig.json\" mocha --require ts-node/register \"src/**/*-test.ts\" --inspect-brk",
"test:ts:static": "eslint --ext .ts \"src/**/*.ts\"",
"watch": "run-p watch:*",
"watch:ts": "onchange --initial --kill \"src/**/*.ts\" -- npm run build:ts"
},
"devDependencies": {}
}