|
13 | 13 | "draft-js-utils": "^1.2.0",
|
14 | 14 | "fast-isnumeric": "^1.1.1",
|
15 | 15 | "immutability-helper": "^2.6.4",
|
16 |
| - "plotly-icons": "^1.1.3", |
| 16 | + "microtip": "^0.2.2", |
| 17 | + "plotly-icons": "^1.1.4", |
17 | 18 | "plotly.js": "^1.33.0",
|
18 | 19 | "prop-types": "^15.5.10",
|
19 | 20 | "raf": "^3.4.0",
|
|
71 | 72 | },
|
72 | 73 | "homepage": "https://plotly.github.io/react-plotly.js-editor/",
|
73 | 74 | "jest": {
|
74 |
| - "roots": ["<rootDir>/src/"], |
| 75 | + "roots": [ |
| 76 | + "<rootDir>/src/" |
| 77 | + ], |
75 | 78 | "moduleNameMapper": {
|
76 | 79 | "^.+\\.css$": "<rootDir>/config/CSSStub.js"
|
77 | 80 | }
|
|
100 | 103 | "scripts": {
|
101 | 104 | "lint": "prettier --write \"src/**/*.js\"",
|
102 | 105 | "make:arrows": "node scripts/makeArrows.js",
|
103 |
| - "make:combined-translation-keys": |
104 |
| - "npm run make:translation-keys && node scripts/combineTranslationKeys.js", |
105 |
| - "make:lib": |
106 |
| - "mkdirp lib && npm run make:lib:js && npm run make:lib:css && npm run make:combined-translation-keys", |
107 |
| - "make:lib:css": |
108 |
| - "mkdirp lib && babel-node scripts/styles.js && SASS_ENV=ie babel-node scripts/styles.js && babel-node scripts/postcss.js && SASS_ENV=ie babel-node scripts/postcss.js", |
109 |
| - "make:lib:js": |
110 |
| - "mkdirp lib && babel src --out-dir lib --ignore=__tests__/* --source-maps", |
| 106 | + "make:combined-translation-keys": "npm run make:translation-keys && node scripts/combineTranslationKeys.js", |
| 107 | + "make:lib": "mkdirp lib && npm run make:lib:js && npm run make:lib:css && npm run make:combined-translation-keys", |
| 108 | + "make:lib:css": "mkdirp lib && babel-node scripts/styles.js && SASS_ENV=ie babel-node scripts/styles.js && babel-node scripts/postcss.js && SASS_ENV=ie babel-node scripts/postcss.js", |
| 109 | + "make:lib:js": "mkdirp lib && babel src --out-dir lib --ignore=__tests__/* --source-maps", |
111 | 110 | "make:translation-keys": "node scripts/findTranslationKeys.js",
|
112 | 111 | "prepublishOnly": "npm run make:lib",
|
113 | 112 | "start": "webpack-dev-server --hot",
|
114 | 113 | "test": "npm run test:lint && npm run test:pretty && npm run test:js",
|
115 | 114 | "test:js": "jest --setupTestFrameworkScriptFile=raf/polyfill",
|
116 |
| - "test:lint": |
117 |
| - "eslint \"src/**/*.js\" && echo -e '\\033[0;32m'PASS'\\033[0m'", |
118 |
| - "test:pretty": |
119 |
| - "prettier -l \"src/**/*.js\" && echo -e '\\033[0;32m'PASS'\\033[0m'", |
120 |
| - "watch": |
121 |
| - "babel src --watch --out-dir lib --source-maps | node-sass -w src/styles/main.scss lib/react-plotly.js-editor.css", |
| 115 | + "test:lint": "eslint \"src/**/*.js\" && echo -e '\\033[0;32m'PASS'\\033[0m'", |
| 116 | + "test:pretty": "prettier -l \"src/**/*.js\" && echo -e '\\033[0;32m'PASS'\\033[0m'", |
| 117 | + "watch": "babel src --watch --out-dir lib --source-maps | node-sass -w src/styles/main.scss lib/react-plotly.js-editor.css", |
122 | 118 | "watch-test": "jest --watch"
|
123 | 119 | }
|
124 | 120 | }
|
0 commit comments