1 | {
|
2 | "name": "klara-ui",
|
3 | "version": "11.3.1",
|
4 | "description": "A shared library for the klara components and interface",
|
5 | "author": "Bonnier News",
|
6 | "main": "dist/index.js",
|
7 | "scripts": {
|
8 | "build:styles": "cd style && stylus < styles.styl > ../dist/styles.css",
|
9 | "build:watch": "npm run build -- --watch",
|
10 | "build": "npm run build:styles && babel lib --out-dir dist",
|
11 | "bump": "bump --prompt --tag --push",
|
12 | "clean": "rm -rf dist && mkdir dist",
|
13 | "eslint:fix": "eslint --ignore-path .gitignore --fix --ext .js,.jsx .",
|
14 | "eslint": "eslint --ignore-path .gitignore --ext .js,.jsx .",
|
15 | "lint": "npm run eslint && npm run stylint",
|
16 | "np": "np --no-yarn",
|
17 | "precommit": "lint-staged",
|
18 | "prepare": "npm run build",
|
19 | "prepublishOnly": "npm run clean && npm run build",
|
20 | "prepush": "npm test",
|
21 | "site:build": "./site/scripts/buildSketchPalette.js && cd site && webpack",
|
22 | "site:publish": "npm run site:build && gh-pages -d site/dist",
|
23 | "site:start": "cd site && webpack-dev-server -d --port 8090 --content-base ./site/dist",
|
24 | "start": "npm run build:watch",
|
25 | "stylint": "stylint lib",
|
26 | "tdd": "npm run test:unit -- --watch --reporter min",
|
27 | "test:click": "mocha ./clicktests/**/*Tests.js",
|
28 | "test:unit": "mocha --require babel-core/register ./lib/**/*Tests.js --require mochaClientSetup.js",
|
29 | "test": "npm run test:unit"
|
30 | },
|
31 | "lint-staged": {
|
32 | "*.{js,jsx}": [
|
33 | "prettier --write",
|
34 | "eslint",
|
35 | "git add"
|
36 | ],
|
37 | "*.styl": [
|
38 | "stylus-supremacy format --options .stylintrc --replace",
|
39 | "git add"
|
40 | ]
|
41 | },
|
42 | "babel": {
|
43 | "presets": [
|
44 | [
|
45 | "env",
|
46 | {
|
47 | "targets": {
|
48 | "browsers": [
|
49 | "chrome > 54",
|
50 | "ff > 52",
|
51 | "edge > 14"
|
52 | ]
|
53 | }
|
54 | }
|
55 | ],
|
56 | "react"
|
57 | ],
|
58 | "plugins": [
|
59 | "transform-object-rest-spread",
|
60 | "transform-class-properties",
|
61 | "babel-plugin-styled-components"
|
62 | ]
|
63 | },
|
64 | "pre-push": [
|
65 | "eslint",
|
66 | "stylint",
|
67 | "test"
|
68 | ],
|
69 | "files": [
|
70 | "dist",
|
71 | "style",
|
72 | "lib"
|
73 | ],
|
74 | "devDependencies": {
|
75 | "@babel/runtime": "^7.5.5",
|
76 | "babel-cli": "^6.24.1",
|
77 | "babel-core": "^6.26.3",
|
78 | "babel-eslint": "^8.2.6",
|
79 | "babel-loader": "^7.1.5",
|
80 | "babel-plugin-styled-components": "^1.10.6",
|
81 | "babel-plugin-transform-class-properties": "^6.24.1",
|
82 | "babel-plugin-transform-object-rest-spread": "^6.23.0",
|
83 | "babel-preset-env": "^1.7.0",
|
84 | "babel-preset-react": "^6.24.1",
|
85 | "chai": "^4.2.0",
|
86 | "chai-enzyme": "^1.0.0-beta.1",
|
87 | "cheerio": "1.0.0-rc.1",
|
88 | "copy-webpack-plugin": "^4.6.0",
|
89 | "css-loader": "^0.28.11",
|
90 | "dirty-chai": "^2.0.1",
|
91 | "enzyme": "^3.10.0",
|
92 | "enzyme-adapter-react-16": "^1.14.0",
|
93 | "eslint": "^4.19.1",
|
94 | "eslint-config-airbnb": "^16.1.0",
|
95 | "eslint-config-prettier": "^2.10.0",
|
96 | "eslint-plugin-babel": "^4.1.2",
|
97 | "eslint-plugin-import": "^2.18.2",
|
98 | "eslint-plugin-jsx-a11y": "^6.2.3",
|
99 | "eslint-plugin-mocha": "^4.12.1",
|
100 | "eslint-plugin-mocha-cleanup": "^1.6.2",
|
101 | "eslint-plugin-react": "^7.14.3",
|
102 | "extract-text-webpack-plugin": "^3.0.2",
|
103 | "gh-pages": "^1.2.0",
|
104 | "html-webpack-plugin": "^2.30.1",
|
105 | "husky": "^0.14.3",
|
106 | "jsdom": "^11.12.0",
|
107 | "lint-staged": "^6.1.1",
|
108 | "mocha": "^4.0.1",
|
109 | "pre-push": "^0.1.1",
|
110 | "prettier": "^1.18.2",
|
111 | "prop-types": "^15.7.2",
|
112 | "react": "^16.9.0",
|
113 | "react-addons-test-utils": "^16.0.0-alpha.3",
|
114 | "react-dom": "^16.9.0",
|
115 | "react-router": "^4.3.1",
|
116 | "react-router-dom": "^4.3.1",
|
117 | "react-svg-loader": "^2.1.0",
|
118 | "react-test-renderer": "^16.9.0",
|
119 | "react-transition-group": "^2.9.0",
|
120 | "recompose": "^0.26.0",
|
121 | "sinon": "^4.5.0",
|
122 | "sinon-chai": "^2.9.0",
|
123 | "style-loader": "^0.19.0",
|
124 | "stylint": "^1.3.6",
|
125 | "stylint-stylish": "^1.4.1",
|
126 | "stylus": "^0.54.5",
|
127 | "stylus-loader": "^3.0.2",
|
128 | "stylus-supremacy": "^2.12.7",
|
129 | "uuid": "^3.3.2",
|
130 | "version-bump-prompt": "^4.3.0",
|
131 | "webpack": "^3.12.0",
|
132 | "webpack-dev-server": "^2.11.5"
|
133 | },
|
134 | "peerDependencies": {
|
135 | "prop-types": "^15.5.10",
|
136 | "react": "^16.0.0",
|
137 | "react-dom": "^16.0.0",
|
138 | "react-transition-group": "^2.2.1"
|
139 | },
|
140 | "dependencies": {
|
141 | "classnames": "^2.2.6",
|
142 | "lodash": "^4.17.15",
|
143 | "moment": "^2.24.0",
|
144 | "react-beautiful-dnd": "^7.1.3",
|
145 | "react-dategrid": "0.0.3-6",
|
146 | "react-syntax-highlighter": "^10.3.5",
|
147 | "styled-components": "^4.3.2"
|
148 | }
|
149 | } |
\ | No newline at end of file |