/
package.json
73 lines (73 loc) · 3.39 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
{
"name": "@psi/wica-js",
"version": "1.5.4",
"description": "Wica Javascript Library",
"main": "wica.js",
"directories": {
"doc": "docs"
},
"scripts": {
"?version": "Shows the version of npm that this project uses.",
"version": "echo $npm_package_version",
"?clean": "Cleans the build and dist directories.",
"clean": "rm -rf build dist",
"?info": "Shows information about the scripts supported by this project.",
"info": "npm-scripts-info",
"?lint": "Lints all .js files in the 'src' tree.",
"lint": "eslint src/**/*.js",
"test": "echo \"Error: no test specified\" && exit 1",
"?docs": "Creates the JSdoc in the distribution (dist) directory.",
"docs": "jsdoc src/*.js -c .jsdoc.conf.json -d dist/apidocs/$npm_package_version && jsdoc src/*.js -c .jsdoc.conf.json -d dist/apidocs/latest",
"?build": "Uses the projects build manager (currently rollup) to make the build",
"build": "rollup -c",
"?zip": "Zips up the current release area to a single file which cann be uploaded to the GitHub release area.",
"zip": "cd dist/rel && bestzip ../wica-js.zip *",
"?docker:build": "Builds Wica-JS in a docker container that can be shared with a Wica-HTTP installation",
"docker:build": "docker build -t paulscherrerinstitute/wica-js:$npm_package_version -f docker/Dockerfile .",
"?docker:push": "Pushes the docker build to docker hub.",
"docker:push": "docker push paulscherrerinstitute/wica-js:$npm_package_version",
"?github-release": "Tags the current Git repo according to the version in this package file and pushes the release to GitHub",
"github-release": "git tag -f $npm_package_version && git push --tags -f origin master",
"?assemble": "Creates and populates the dist directory.",
"assemble": "([[ -d dist ]] || mkdir dist) && cp -R README.md package.json ./dist/rel",
"?publish-local-snapshot": "Publishes a snapshot release to PSI's local npm server.",
"publish-local-snapshot": "npm run clean && npm-force-resolutions && npm_update_snapshot && npm run build && npm run assemble && npm publish ./dist/rel",
"?publish-local-release": "Publishes a versioned release to PSI's local npm server.",
"publish-local-release": "npm run clean && npm-force-resolutions && npm run build && npm run assemble && npm publish ./dist/rel",
"?npm_update-to-latest": "Updates package dependencies to the latest versions and installes them, ignoring specified versions.",
"npm_update-to-latest": "npm-check-updates -u && npm install"
},
"repository": {
"type": "git",
"url": "https://github.com/paulscherrerinstitute/wica-js.git"
},
"author": "",
"license": "ISC",
"bugs": {
"url": "https://github.com/paulscherrerinstitute/wica-js/issues"
},
"homepage": "https://github.com/paulscherrerinstitute/wica-js#readme",
"publishConfig": {
"registry": "http://npm.psi.ch"
},
"resolutions": {
"trim-newlines": "3.0.1"
},
"devDependencies": {
"@rollup/plugin-commonjs": "^21.0.3",
"@rollup/plugin-node-resolve": "^13.1.3",
"bestzip": "^2.2.0",
"eslint": "^8.12.0",
"jsdoc": "^3.6.10",
"npm-auto-snapshot": "^0.5.3",
"npm-check-updates": "^12.5.7",
"npm-force-resolutions": "^0.0.10",
"npm-scripts-info": "^0.3.9",
"rollup": "^2.70.1",
"rollup-plugin-copy-assets": "^2.0.3",
"rollup-plugin-terser": "^7.0.2"
},
"dependencies": {
"json5": "^2.2.1"
}
}