Skip to content

Commit f4cf8c0

Browse files
committed
🔪 pull_font_svg preprocess step
1 parent 6e50d82 commit f4cf8c0

File tree

5 files changed

+1
-98
lines changed

5 files changed

+1
-98
lines changed

package-lock.json

-16
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+1-2
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,6 @@
159159
"run-series": "^1.1.8",
160160
"through2": "^3.0.1",
161161
"true-case-path": "^1.0.3",
162-
"watchify": "^3.11.1",
163-
"xml2js": "^0.4.19"
162+
"watchify": "^3.11.1"
164163
}
165164
}

tasks/preprocess.js

-11
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,10 @@ var sass = require('node-sass');
44
var constants = require('./util/constants');
55
var common = require('./util/common');
66
var pullCSS = require('./util/pull_css');
7-
var pullFontSVG = require('./util/pull_font_svg');
87
var updateVersion = require('./util/update_version');
98

109
// main
1110
makeBuildCSS();
12-
makeBuildFontSVG();
1311
copyTopojsonFiles();
1412
updateVersion(constants.pathToPlotlyCore);
1513
updateVersion(constants.pathToPlotlyGeoAssetsSrc);
@@ -27,15 +25,6 @@ function makeBuildCSS() {
2725
});
2826
}
2927

30-
// convert font svg into js
31-
function makeBuildFontSVG() {
32-
fs.readFile(constants.pathToFontSVG, function(err, data) {
33-
if(err) throw err;
34-
35-
pullFontSVG(data.toString(), constants.pathToFontSVGBuild);
36-
});
37-
}
38-
3928
// copy topojson files from sane-topojson to dist/
4029
function copyTopojsonFiles() {
4130
fs.copy(

tasks/util/constants.js

-3
Original file line numberDiff line numberDiff line change
@@ -63,9 +63,6 @@ module.exports = {
6363
pathToPlotlyGeoAssetsSrc: path.join(pathToSrc, 'assets/geo_assets.js'),
6464
pathToPlotlyGeoAssetsDist: path.join(pathToDist, 'plotly-geo-assets.js'),
6565

66-
pathToFontSVG: path.join(pathToSrc, 'fonts/ploticon/ploticon.svg'),
67-
pathToFontSVGBuild: path.join(pathToBuild, 'ploticon.js'),
68-
6966
pathToSCSS: path.join(pathToSrc, 'css/style.scss'),
7067
pathToCSSBuild: path.join(pathToBuild, 'plotcss.js'),
7168

tasks/util/pull_font_svg.js

-66
This file was deleted.

0 commit comments

Comments
 (0)