1 | {
|
2 | "name": "flopflip",
|
3 | "version": "0.1.0",
|
4 | "description": "A feature toggle wrapper to use LaunchDarkly with React Redux",
|
5 | "main": "dist/flopflip.umd.js",
|
6 | "module": "dist/flopflip.es.js",
|
7 | "scripts": {
|
8 | "lint": "xo",
|
9 | "format": "run-p format:md format:js",
|
10 | "format:md": "pmd *.md",
|
11 | "format:js": "prettier --write --trailing-comma es5 --single-quote 'modules/*.js' 'webpack-config/*.js' 'rollup.config.js' 'demo/*.js'",
|
12 | "test": "jest",
|
13 | "test:ci": "npm run lint && npm run test",
|
14 | "test:watch": "npm test -- --watch",
|
15 | "test-coverage": "jest --coverage",
|
16 | "prebuild:umd": "rimraf dist/**",
|
17 | "build": "run-p build:umd build:umd:min build:es",
|
18 | "build:watch": "npm run build:umd -- -w",
|
19 | "build:umd": "cross-env NODE_ENV=development BABEL_ENV=rollup rollup -c -f umd -o dist/flopflip.umd.js",
|
20 | "build:umd:min": "cross-env NODE_ENV=production BABEL_ENV=rollup rollup -c -f umd -o dist/flopflip.umd.min.js",
|
21 | "build:es": "cross-env NODE_ENV=development BABEL_ENV=rollup rollup -c -f es -o dist/flopflip.es.js",
|
22 | "preversion": "npm run build"
|
23 | },
|
24 | "files": [
|
25 | "readme.md",
|
26 | "modules/**/*.js",
|
27 | "dist/**"
|
28 | ],
|
29 | "repository": {
|
30 | "type": "git",
|
31 | "url": "git+https://github.com/tdeekens/flopflip.git"
|
32 | },
|
33 | "author": "Tobias Deekens <nerd@tdeekens.name>",
|
34 | "license": "MIT",
|
35 | "bugs": {
|
36 | "url": "https://github.com/tdeekens/flopflip/issues"
|
37 | },
|
38 | "xo": {
|
39 | "ignores": [
|
40 | "demo/**/*.js",
|
41 | "config/*.js"
|
42 | ],
|
43 | "semicolon": true,
|
44 | "space": 2,
|
45 | "parser": "babel-eslint",
|
46 | "extends": [
|
47 | "xo-react",
|
48 | "prettier",
|
49 | "plugin:jest/recommended",
|
50 | "prettier/react"
|
51 | ],
|
52 | "envs": [
|
53 | "es6",
|
54 | "jest"
|
55 | ],
|
56 | "plugins": [
|
57 | "prettier",
|
58 | "jest"
|
59 | ],
|
60 | "rules": {
|
61 | "prettier/prettier": [
|
62 | "error",
|
63 | {
|
64 | "trailingComma": "es5",
|
65 | "singleQuote": true
|
66 | }
|
67 | ],
|
68 | "jest/no-disabled-tests": "warn",
|
69 | "jest/no-focused-tests": "error",
|
70 | "jest/no-identical-title": "error",
|
71 | "jest/valid-expect": "error"
|
72 | }
|
73 | },
|
74 | "homepage": "https://github.com/tdeekens/flopflip#readme",
|
75 | "devDependencies": {
|
76 | "@commercetools/jest-enzyme-matchers": "^1.1.2",
|
77 | "babel-core": "^6.24.0",
|
78 | "babel-eslint": "^7.2.3",
|
79 | "babel-jest": "^20.0.3",
|
80 | "babel-plugin-external-helpers": "^6.22.0",
|
81 | "babel-plugin-transform-react-remove-prop-types": "^0.4.6",
|
82 | "babel-polyfill": "^6.23.0",
|
83 | "babel-preset-env": "^1.4.0",
|
84 | "babel-preset-es2015": "^6.24.1",
|
85 | "babel-preset-es2015-rollup": "^3.0.0",
|
86 | "babel-preset-react": "6.24.1",
|
87 | "babel-preset-stage-0": "^6.24.1",
|
88 | "cross-env": "^5.0.0",
|
89 | "enzyme": "^2.9.1",
|
90 | "enzyme-to-json": "^1.5.1",
|
91 | "eslint-config-prettier": "^2.1.1",
|
92 | "eslint-config-xo-react": "^0.13.0",
|
93 | "eslint-plugin-jest": "^20.0.3",
|
94 | "eslint-plugin-prettier": "^2.0.1",
|
95 | "eslint-plugin-react": "^7.1.0",
|
96 | "jest": "^20.0.4",
|
97 | "npm-run-all": "^4.0.2",
|
98 | "prettier": "^1.2.2",
|
99 | "prettier-markdown": "^0.1.8",
|
100 | "react": "^15.0.0",
|
101 | "react-dom": "^15.6.1",
|
102 | "react-redux": "^5.0.5",
|
103 | "react-test-renderer": "^15.6.1",
|
104 | "redux": "^3.7.2",
|
105 | "rimraf": "^2.5.4",
|
106 | "rollup": "^0.45.2",
|
107 | "rollup-plugin-babel": "^2.7.1",
|
108 | "rollup-plugin-bundle-size": "^1.0.1",
|
109 | "rollup-plugin-commonjs": "^8.0.2",
|
110 | "rollup-plugin-includepaths": "^0.2.2",
|
111 | "rollup-plugin-node-resolve": "^3.0.0",
|
112 | "rollup-plugin-replace": "^1.1.1",
|
113 | "rollup-plugin-uglify": "^2.0.0",
|
114 | "rollup-watch": "^4.3.1",
|
115 | "xo": "^0.18.1"
|
116 | },
|
117 | "dependencies": {
|
118 | "ldclient-js": "^1.1.8",
|
119 | "lodash.camelcase": "^4.3.0",
|
120 | "lodash.intersection": "^4.4.0",
|
121 | "recompose": "^0.24.0"
|
122 | },
|
123 | "peerDependencies": {
|
124 | "prop-types": "15.5.10",
|
125 | "react": "^15.6.0",
|
126 | "react-dom": "^15.6.0",
|
127 | "react-redux": "^5.0.5",
|
128 | "redux": "^3.7.2"
|
129 | },
|
130 | "jest": {
|
131 | "globals": {
|
132 | "process.env": {
|
133 | "NODE_ENV": "test"
|
134 | }
|
135 | },
|
136 | "setupTestFrameworkScriptFile": "./config/jest.js",
|
137 | "testRegex": "\\.spec\\.js$",
|
138 | "testEnvironment": "jsdom"
|
139 | },
|
140 | "keywords": [
|
141 | "react",
|
142 | "redux",
|
143 | "feature-flags",
|
144 | "feature-toggles",
|
145 | "LaunchDarkly",
|
146 | "HoC",
|
147 | "store-enhancer"
|
148 | ]
|
149 | }
|