|
14 | 14 | },
|
15 | 15 | "scripts": {
|
16 | 16 | "lint": "prettier --write \"src/**/*.js\"",
|
17 |
| - "make:combined-translation-keys": |
18 |
| - "babel-node utils/findTranslationKeys.js && babel-node utils/combineTranslationKeys.js", |
| 17 | + "make:combined-translation-keys": "babel-node utils/findTranslationKeys.js && babel-node utils/combineTranslationKeys.js", |
19 | 18 | "make:translation-keys": "babel-node utils/findTranslationKeys.js",
|
20 |
| - "make:lib": |
21 |
| - "mkdirp lib && babel src --out-dir lib --ignore=__tests__/* --source-maps && npm run make:lib:css", |
| 19 | + "make:lib": "mkdirp lib && babel src --out-dir lib --ignore=__tests__/* --source-maps && npm run make:lib:css", |
22 | 20 | "make:lib:css": "mkdirp lib && yarn styles:lib && yarn postcss:lib",
|
23 |
| - "make:lib:css:ie": |
24 |
| - "mkdirp lib && yarn styles:lib:ie && yarn postcss:lib:ie", |
25 |
| - "make:dist": |
26 |
| - "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 && yarn make:dist:css", |
| 21 | + "make:lib:css:ie": "mkdirp lib && yarn styles:lib:ie && yarn postcss:lib:ie", |
| 22 | + "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 && yarn make:dist:css", |
27 | 23 | "make:dist:css": "mkdirp dist && yarn styles:dist && yarn postcss:dist",
|
28 |
| - "make:dist:css:ie": |
29 |
| - "mkdirp dist && yarn styles:dist:ie && yarn postcss:dist:ie", |
| 24 | + "make:dist:css:ie": "mkdirp dist && yarn styles:dist:ie && yarn postcss:dist:ie", |
30 | 25 | "prepublishOnly": "npm run make:lib",
|
31 | 26 | "styles:dist": "BUILD_ENV=dist babel-node scripts/styles.js",
|
32 | 27 | "styles:dist:ie": "BUILD_ENV=dist SASS_ENV=ie babel-node scripts/styles.js",
|
33 | 28 | "styles:lib": "BUILD_ENV=lib babel-node scripts/styles.js",
|
34 | 29 | "styles:lib:ie": "BUILD_ENV=lib SASS_ENV=ie babel-node scripts/styles.js",
|
35 | 30 | "postcss:dist": "BUILD_ENV=dist babel-node scripts/postcss.js",
|
36 |
| - "postcss:dist:ie": |
37 |
| - "BUILD_ENV=dist SASS_ENV=ie babel-node scripts/postcss.js", |
| 31 | + "postcss:dist:ie": "BUILD_ENV=dist SASS_ENV=ie babel-node scripts/postcss.js", |
38 | 32 | "postcss:lib": "BUILD_ENV=lib babel-node scripts/postcss.js",
|
39 | 33 | "postcss:lib:ie": "BUILD_ENV=lib SASS_ENV=ie babel-node scripts/postcss.js",
|
40 |
| - "test:lint": |
41 |
| - "eslint \"src/**/*.js\" && echo -e '\\033[0;32m'PASS'\\033[0m'", |
42 |
| - "test:pretty": |
43 |
| - "prettier -l \"src/**/*.js\" && echo -e '\\033[0;32m'PASS'\\033[0m'", |
| 34 | + "test:lint": "eslint \"src/**/*.js\" && echo -e '\\033[0;32m'PASS'\\033[0m'", |
| 35 | + "test:pretty": "prettier -l \"src/**/*.js\" && echo -e '\\033[0;32m'PASS'\\033[0m'", |
44 | 36 | "test:js": "jest --setupTestFrameworkScriptFile=raf/polyfill",
|
45 | 37 | "test": "npm run test:lint && npm run test:pretty && npm run test:js",
|
46 |
| - "watch": |
47 |
| - "babel src --watch --out-dir lib --source-maps | node-sass -w src/styles/main.scss lib/react-plotly.js-editor.css", |
| 38 | + "watch": "babel src --watch --out-dir lib --source-maps | node-sass -w src/styles/main.scss lib/react-plotly.js-editor.css", |
48 | 39 | "watch-test": "jest --watch"
|
49 | 40 | },
|
50 | 41 | "keywords": [
|
|
73 | 64 | "babelify": "^7.3.0",
|
74 | 65 | "browserify": "^14.5.0",
|
75 | 66 | "classnames": "^2.2.5",
|
| 67 | + "cssnano": "^3.10.0", |
76 | 68 | "enzyme": "^3.1.0",
|
77 | 69 | "enzyme-adapter-react-16": "^1.0.4",
|
78 | 70 | "eslint": "^4.12.1",
|
|
86 | 78 | "mkdirp": "^0.5.1",
|
87 | 79 | "node-sass": "^4.7.2",
|
88 | 80 | "postcss": "^6.0.14",
|
| 81 | + "postcss-combine-duplicated-selectors": "^3.1.4", |
89 | 82 | "postcss-custom-properties": "^6.2.0",
|
| 83 | + "postcss-remove-root": "^0.0.2", |
90 | 84 | "prettier": "^1.9.2",
|
91 | 85 | "react-test-renderer": "^16.2.0",
|
92 | 86 | "uglify-js": "^3.0.26"
|
|
97 | 91 | },
|
98 | 92 | "dependencies": {
|
99 | 93 | "browserify-global-shim": "^1.0.3",
|
100 |
| - "cssnano": "^3.10.0", |
101 | 94 | "draft-js": "^0.10.4",
|
102 | 95 | "draft-js-export-html": "github:plotly/draft-js-export-html",
|
103 | 96 | "draft-js-import-html": "^1.2.1",
|
104 | 97 | "draft-js-utils": "^1.2.0",
|
105 |
| - "es6-shim": "^0.35.3", |
106 | 98 | "fast-isnumeric": "^1.1.1",
|
107 |
| - "mdi-react": "^2.1.19", |
108 |
| - "plotly-icons": "^1.0.1", |
| 99 | + "plotly-icons": "^1.0.2", |
109 | 100 | "plotly.js": "^1.31.2",
|
110 |
| - "postcss-combine-duplicated-selectors": "^3.1.4", |
111 |
| - "postcss-cssnext": "^3.0.2", |
112 |
| - "postcss-remove-root": "^0.0.2", |
113 | 101 | "prop-types": "^15.5.10",
|
114 | 102 | "raf": "^3.4.0",
|
115 | 103 | "react": "^16.2.0",
|
|
122 | 110 | "react": "React"
|
123 | 111 | },
|
124 | 112 | "jest": {
|
125 |
| - "roots": ["<rootDir>/src/"], |
| 113 | + "roots": [ |
| 114 | + "<rootDir>/src/" |
| 115 | + ], |
126 | 116 | "moduleNameMapper": {
|
127 | 117 | "^.+\\.css$": "<rootDir>/config/CSSStub.js"
|
128 | 118 | }
|
|
0 commit comments