Permalink
Switch branches/tags
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
86 lines (85 sloc) 2.92 KB
{
"name": "lite-router",
"version": "1.1.4",
"description": "A very light router based on history package",
"main": "lib/index.js",
"module": "es/index.js",
"jsnext:main": "es/index.js",
"files": [
"dist",
"lib",
"es",
"src"
],
"scripts": {
"build": "npm run build:commonjs && npm run build:umd && npm run build:umd:min && npm run build:es",
"build:watch": "echo 'build && watch the COMMONJS version of the package - for other version, run specific tasks' && npm run build:commonjs:watch",
"build:commonjs": "cross-env BABEL_ENV=commonjs babel src --out-dir lib",
"build:commonjs:watch": "npm run build:commonjs -- --watch",
"build:es": "cross-env BABEL_ENV=es babel src --out-dir es",
"build:es:watch": "npm run build:es -- --watch",
"build:umd": "cross-env BABEL_ENV=es NODE_ENV=development node_modules/.bin/rollup src/index.js --config --sourcemap --output dist/lite-router.js",
"build:umd:watch": "npm run build:umd -- --watch",
"build:umd:min": "cross-env BABEL_ENV=es NODE_ENV=production rollup src/index.js --config --output dist/lite-router.min.js",
"build:gh-pages": "echo 'deprecated - use \"npm run example:build\"' && exit 0",
"clean": "rimraf lib dist es",
"example:build": "./node_modules/.bin/gulp build:gh-pages",
"jest": "NODE_ENV=commonjs ./node_modules/.bin/jest",
"jest:watch": "npm run jest -- --watch",
"lint": "./node_modules/.bin/eslint src",
"lint-fix": "./node_modules/.bin/eslint --fix src --ext .js",
"prepare": "npm run clean && npm test && npm run build",
"test": "npm run lint && npm run jest"
},
"pre-commit": [
"test"
],
"keywords": [
"router",
"history"
],
"author": "Christophe Rosset <tophe@topheman.com> (http://labs.topheman.com/)",
"license": "MIT",
"repository": {
"type": "git",
"url": "https://github.com/topheman/lite-router.git"
},
"bugs": {
"url": "https://github.com/topheman/lite-router/issues"
},
"homepage": "https://topheman.github.io/lite-router",
"devDependencies": {
"babel-cli": "^6.24.1",
"babel-core": "^6.25.0",
"babel-eslint": "^7.2.3",
"babel-jest": "^20.0.3",
"babel-preset-env": "^1.5.2",
"cross-env": "^5.0.1",
"del": "^3.0.0",
"eslint": "^4.1.1",
"eslint-config-airbnb-base": "^11.2.0",
"eslint-plugin-import": "^2.6.1",
"git-rev-sync": "^1.9.1",
"gulp": "^3.9.1",
"gulp-cli": "^1.3.0",
"gulp-replace-task": "^0.11.0",
"jest": "^20.0.4",
"moment": "^2.18.1",
"pre-commit": "^1.2.2",
"rimraf": "^2.6.1",
"rollup": "^0.43.0",
"rollup-plugin-babel": "^2.7.1",
"rollup-plugin-commonjs": "^8.0.2",
"rollup-plugin-node-resolve": "^3.0.0",
"rollup-plugin-replace": "^1.1.1",
"rollup-plugin-uglify": "^2.0.1",
"rollup-watch": "^4.0.0"
},
"jest": {
"testRegex": "(/tests/.*\\.spec.js)$"
},
"dependencies": {
"history": "^2.0.1",
"invariant": "^2.2.2"
}
}