-
Notifications
You must be signed in to change notification settings - Fork 54
Expand file tree
/
Copy pathpackage.json
More file actions
110 lines (110 loc) · 3.59 KB
/
package.json
File metadata and controls
110 lines (110 loc) · 3.59 KB
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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
{
"name": "particle-api-js",
"version": "12.0.2",
"description": "Particle API Client",
"main": "lib/src/Particle.js",
"types": "lib/src/Particle.d.ts",
"exports": {
".": {
"types": "./lib/src/Particle.d.ts",
"require": "./lib/src/Particle.js",
"default": "./lib/src/Particle.js"
}
},
"scripts": {
"compile": "tsc -p tsconfig.build.json && cp fs.js fs.d.ts lib/",
"prepare": "npm run compile && npm run build",
"test": "npm run lint && npm run typecheck && npm run test:unit",
"test:ci": "npm run test:unit -- --forbid-only && npm run coverage",
"test:unit": "mocha --require tsx 'test/**/*.spec.ts' 'test/**/*.integration.ts' 'test/**/*.test.ts' -R spec",
"test:unit:silent": "npm run test:unit > tmp/test-unit-log.txt 2>&1",
"test:browser": "npm run compile:test && karma start --single-run",
"test:watch": "mocha --require tsx 'test/**/*.spec.ts' --watch --watch-files 'src/**/*.ts,test/**/*.ts'",
"compile:test": "tsc -p tsconfig.test-browser.json",
"typecheck": "tsc",
"coverage": "nyc --reporter=text --temp-dir=./tmp/ --check-coverage --lines 91 npm run test:unit:silent",
"lint": "eslint",
"docs": "typedoc && node scripts/postprocess-docs.js",
"build": "npm run compile && webpack --env mode=production",
"build-nomin": "npm run compile && webpack --env mode=development",
"prepublishOnly": "npm run test && npm run compile && npm run build",
"preversion": "npm run test && npm run prepare",
"reinstall": "rm -rf ./node_modules && npm i",
"version": "npm run build && npm run docs && npm run update-changelog && git add dist/* docs/*",
"update-changelog": "VERSION=`node -p -e \"require('./package.json').version\"` bash -c 'read -p \"Update CHANGELOG.md for version $VERSION and press ENTER when done.\"' && git add CHANGELOG.md"
},
"repository": {
"type": "git",
"url": "https://github.com/particle-iot/particle-api-js"
},
"author": "Julien Vanier <julien@particle.io>",
"contributors": [
"Ido Kleinman",
"Bryce Kahle",
"Justin Debbink",
"Matthew McGowan",
"Julien Vanier",
"Wojtek Siudzinski",
"Emily Rose"
],
"keywords": [
"particle",
"library",
"spark",
"api"
],
"license": "Apache-2.0",
"dependencies": {
"form-data": "^4.0.0",
"node-fetch": "^2.7.0",
"qs": "^6.11.2",
"stream-http": "^3.2.0"
},
"devDependencies": {
"@types/chai-as-promised": "^8.0.2",
"@types/chai-subset": "^1.3.6",
"@types/mocha": "^10.0.10",
"@types/node": "^20.5.9",
"@types/node-fetch": "^2.6.13",
"@types/qs": "^6.14.0",
"@types/sinon": "^21.0.0",
"@types/sinon-chai": "^4.0.0",
"buffer": "^6.0.3",
"chai": "^4.3.6",
"chai-as-promised": "^7.1.1",
"chai-subset": "^1.6.0",
"eslint": "^9.36.0",
"eslint-config-particle": "^3.0.0",
"events": "^3.3.0",
"https-proxy-agent": "^8.0.0",
"karma": "^6.4.4",
"karma-chai": "^0.1.0",
"karma-cli": "^2.0.0",
"karma-coverage": "^2.2.1",
"karma-firefox-launcher": "^2.1.3",
"karma-mocha": "^2.0.1",
"karma-webpack": "^5.0.1",
"mocha": "^10.8.2",
"nyc": "^15.1.0",
"process": "^0.11.10",
"sinon": "^17.0.1",
"sinon-chai": "^3.7.0",
"terser-webpack-plugin": "^5.3.9",
"tsx": "^4.21.0",
"typedoc": "^0.28.17",
"typedoc-plugin-markdown": "^4.10.0",
"typescript": "^5.9.2",
"url": "^0.11.3",
"webpack": "^5.88.2",
"webpack-cli": "^5.1.4"
},
"browser": {
"./fs": false,
"http": "stream-http",
"https": "stream-http"
},
"engines": {
"node": ">=16.x",
"npm": ">=8.x"
}
}