|
13 | 13 | "url": "https://github.com/plotly/react-plotly.js-editor/issues"
|
14 | 14 | },
|
15 | 15 | "scripts": {
|
16 |
| - "make:combined-translation-keys": "babel-node utils/findTranslationKeys.js && babel-node utils/combineTranslationKeys.js", |
| 16 | + "make:combined-translation-keys": |
| 17 | + "babel-node utils/findTranslationKeys.js && babel-node utils/combineTranslationKeys.js", |
17 | 18 | "make:translation-keys": "babel-node utils/findTranslationKeys.js",
|
18 |
| - "make:lib": "mkdirp lib && babel src --out-dir lib --ignore=__tests__/* --source-maps && npm run make:lib:css", |
19 |
| - "make:lib:css": "mkdirp lib && node-sass src/styles/main.scss > lib/react-plotly.js-editor.css", |
20 |
| - "make:dist": "mkdirp dist && browserify src/PlotlyEditor.js -o ./dist/PlotlyEditor.js -t [ babelify --presets [ es2015 react ] ] -t browserify-global-shim --standalone createPlotlyComponent && uglifyjs ./dist/PlotlyEditor.js --compress --mangle --output ./dist/PlotlyEditor.min.js --source-map filename=dist/PlotlyEditor.min.js.map && make:dist:css", |
21 |
| - "make:dist:css": "mkdirp dist && node-sass --output-style compressed src/styles/main.scss > dist/react-plotly.js-editor.css", |
22 |
| - "prepublishOnly": "npm run make:lib && npm run make:combined-translation-keys", |
| 19 | + "make:lib": |
| 20 | + "mkdirp lib && babel src --out-dir lib --ignore=__tests__/* --source-maps && npm run make:lib:css", |
| 21 | + "make:lib:css": |
| 22 | + "mkdirp lib && node-sass src/styles/main.scss > lib/react-plotly.js-editor.css", |
| 23 | + "make:dist": |
| 24 | + "mkdirp dist && browserify src/PlotlyEditor.js -o ./dist/PlotlyEditor.js -t [ babelify --presets [ es2015 react ] ] -t browserify-global-shim --standalone createPlotlyComponent && uglifyjs ./dist/PlotlyEditor.js --compress --mangle --output ./dist/PlotlyEditor.min.js --source-map filename=dist/PlotlyEditor.min.js.map && make:dist:css", |
| 25 | + "make:dist:css": |
| 26 | + "mkdirp dist && node-sass --output-style compressed src/styles/main.scss > dist/react-plotly.js-editor.css", |
| 27 | + "prepublishOnly": |
| 28 | + "npm run make:lib && npm run make:combined-translation-keys", |
23 | 29 | "lint": "prettier --write \"src/**/*.js\"",
|
24 |
| - "test:lint": "eslint \"src/**/*.js\" && echo -e '\\033[0;32m'PASS'\\033[0m'", |
25 |
| - "test:pretty": "prettier -l \"src/**/*.js\" && echo -e '\\033[0;32m'PASS'\\033[0m'", |
| 30 | + "test:lint": |
| 31 | + "eslint \"src/**/*.js\" && echo -e '\\033[0;32m'PASS'\\033[0m'", |
| 32 | + "test:pretty": |
| 33 | + "prettier -l \"src/**/*.js\" && echo -e '\\033[0;32m'PASS'\\033[0m'", |
26 | 34 | "test:js": "jest --setupTestFrameworkScriptFile=raf/polyfill",
|
27 | 35 | "test": "npm run test:lint && npm run test:pretty && npm run test:js",
|
28 |
| - "watch": "babel src --watch --out-dir lib --source-maps | node-sass -w src/styles/main.scss lib/react-plotly.js-editor.css", |
| 36 | + "watch": |
| 37 | + "babel src --watch --out-dir lib --source-maps | node-sass -w src/styles/main.scss lib/react-plotly.js-editor.css", |
29 | 38 | "watch-test": "jest --watch"
|
30 | 39 | },
|
31 | 40 | "keywords": [
|
|
77 | 86 | "draft-js-import-html": "^1.2.1",
|
78 | 87 | "draft-js-utils": "^1.2.0",
|
79 | 88 | "fast-isnumeric": "^1.1.1",
|
80 |
| - "plotly-icons": "^1.0.0", |
| 89 | + "plotly-icons": "^1.0.1", |
81 | 90 | "plotly.js": "^1.31.2",
|
82 | 91 | "prop-types": "^15.5.10",
|
83 | 92 | "raf": "^3.4.0",
|
|
91 | 100 | "react": "React"
|
92 | 101 | },
|
93 | 102 | "jest": {
|
94 |
| - "roots": [ |
95 |
| - "<rootDir>/src/" |
96 |
| - ], |
| 103 | + "roots": ["<rootDir>/src/"], |
97 | 104 | "moduleNameMapper": {
|
98 | 105 | "^.+\\.css$": "<rootDir>/config/CSSStub.js"
|
99 | 106 | }
|
|
0 commit comments