summaryrefslogtreecommitdiff
path: root/preact-router/package.json
blob: db0790fb5fb3b5a888d29416713befa8e620ac6a (plain)
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
{
  "name": "preact-router",
  "amdName": "preactRouter",
  "version": "3.2.1",
  "description": "Connect your components up to that address bar.",
  "main": "dist/preact-router.js",
  "jsnext:main": "dist/preact-router.es.js",
  "module": "dist/preact-router.es.js",
  "scripts": {
    "clean": "rimraf dist/",
    "copy-typescript-definition": "copyfiles -f src/index.d.ts src/match.d.ts .",
    "build": "npm-run-all --silent clean transpile transpile:match copy-typescript-definition size",
    "transpile": "rollup -c --environment FORMAT:umd && rollup -c --environment FORMAT:es",
    "transpile:match": "babel src/match.js -o match.js -f umd",
    "size": "size=$(gzip-size $npm_package_main) && echo \"gzip size: $size / $(pretty-bytes $size)\"",
    "test": "npm-run-all lint build test:karma test:ts",
    "lint": "eslint ./{src,test,test_helpers}/**/*.js",
    "fix": "npm run lint -- --fix",
    "test:karma": "karma start --single-run",
    "test:watch": "karma start",
    "test:ts": "tsc -p ./test",
    "prepublishOnly": "npm-run-all build test",
    "release": "npm run build && git commit -am $npm_package_version && git tag $npm_package_version && git push && git push --tags && npm publish"
  },
  "files": [
    "src",
    "dist",
    "match.js",
    "match.d.ts",
    "index.d.ts"
  ],
  "typings": "./index.d.ts",
  "keywords": [
    "preact",
    "router"
  ],
  "author": "Jason Miller <jason@developit.ca>",
  "license": "MIT",
  "repository": {
    "type": "git",
    "url": "https://github.com/developit/preact-router.git"
  },
  "bugs": {
    "url": "https://github.com/developit/preact-router/issues"
  },
  "homepage": "https://github.com/developit/preact-router",
  "peerDependencies": {
    "preact": ">=10"
  },
  "devDependencies": {
    "babel-cli": "^6.9.0",
    "babel-core": "^6.9.1",
    "babel-eslint": "^7.0.0",
    "babel-loader": "^6.2.4",
    "babel-plugin-transform-class-properties": "^6.9.1",
    "babel-plugin-transform-es2015-classes": "^6.9.0",
    "babel-plugin-transform-object-assign": "^6.0.0",
    "babel-plugin-transform-react-jsx": "^6.8.0",
    "babel-preset-es2015": "^6.9.0",
    "babel-preset-react": "^6.5.0",
    "babel-preset-stage-0": "^6.5.0",
    "chai": "^3.5.0",
    "copyfiles": "^1.0.0",
    "diff": "^3.0.0",
    "eslint": "^5.8.0",
    "eslint-plugin-react": "^6.0.0",
    "gzip-size-cli": "^1.0.0",
    "karma": "^3.1.1",
    "karma-chai-sinon": "^0.1.5",
    "karma-chrome-launcher": "^2.2.0",
    "karma-mocha": "^1.3.0",
    "karma-mocha-reporter": "^2.2.5",
    "karma-sourcemap-loader": "^0.3.7",
    "karma-webpack": "^2.0.1",
    "mkdirp": "^0.5.1",
    "mocha": "^5.2.0",
    "npm-merge-driver-install": "^1.1.1",
    "npm-run-all": "^3.0.0",
    "preact": "^10.0.0-rc.0",
    "pretty-bytes-cli": "^1.0.0",
    "puppeteer": "^1.9.0",
    "rimraf": "^2.5.1",
    "rollup": "^0.41.6",
    "rollup-plugin-buble": "^0.15.0",
    "rollup-plugin-es3": "^1.0.3",
    "rollup-plugin-memory": "^2.0.0",
    "rollup-plugin-post-replace": "^1.0.0",
    "rollup-plugin-uglify": "^1.0.1",
    "sinon": "^7.1.0",
    "sinon-chai": "^2.8.0",
    "typescript": "^3.4.4",
    "webpack": "^1.13.1"
  }
}