Skip to content

Commit a509445

Browse files
committed
build ploticon.js and plotcss.js in ./build/
1 parent ef3053c commit a509445

File tree

4 files changed

+21
-9
lines changed

4 files changed

+21
-9
lines changed

.gitignore

+5
Original file line numberDiff line numberDiff line change
@@ -1 +1,6 @@
11
node_modules
2+
3+
build/*
4+
!build/README.md
5+
6+
npm-debug.log

build/README.md

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Directory of non-distributed built files

tasks/util/constants.js

+14-8
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,15 @@
11
var path = require('path');
22

3-
var pathToSrc = path.join(__dirname, '../../src/');
4-
var pathToDist = path.join(__dirname, '../../dist/');
3+
var pathToRoot = path.join(__dirname, '../../');
4+
var pathToSrc = path.join(pathToRoot, 'src/');
5+
var pathToDist = path.join(pathToRoot, 'dist/');
6+
var pathToBuild = path.join(pathToRoot, 'build/');
57

68
module.exports = {
9+
pathToRoot: pathToRoot,
10+
pathToSrc: pathToSrc,
11+
pathToMocks: path.join(pathToRoot, 'test/image/mocks'),
12+
713
pathToPlotlySrc: path.join(pathToSrc, 'plotly.js'),
814
pathToPlotlyDist: path.join(pathToDist, 'plotly.js'),
915
pathToPlotlyDistMin: path.join(pathToDist, 'plotly.min.js'),
@@ -13,21 +19,21 @@ module.exports = {
1319
pathToPlotlyGeoAssetsDist: path.join(pathToDist, 'plotly-geo-assets.js'),
1420

1521
pathToFontSVG: path.join(pathToSrc, 'fonts/ploticon/ploticon.svg'),
16-
pathToFontSVGBuild: path.join(pathToSrc, 'fonts/ploticon.js'),
17-
18-
pathToSCSS: path.join(pathToSrc, 'css/scss/style.scss'),
19-
pathToCSSBuild: path.join(pathToSrc, 'css/plotcss.js'),
22+
pathToFontSVGBuild: path.join(pathToBuild, 'ploticon.js'),
23+
24+
pathToSCSS: path.join(pathToSrc, 'css/style.scss'),
25+
pathToCSSBuild: path.join(pathToBuild, 'plotcss.js'),
2026

2127
uglifyOptions: {
2228
fromString: true,
2329
mangle: true,
2430
compress: {
2531
warnings: false,
26-
screw_ie8: true
32+
screw_ie8: true
2733
},
2834
output: {
2935
beautify: false,
30-
ascii_only: true
36+
ascii_only: true
3137
}
3238
}
3339
};

tasks/util/pull_css.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ module.exports = function pullCSS(data, pathOut) {
3838
var outStr = [
3939
'\'use strict\';',
4040
'',
41-
'var Plotly = require(\'../plotly\');',
41+
'var Plotly = require(\'../src/plotly\');',
4242
'var rules = ' + rulesStr + ';',
4343
'',
4444
'for(var selector in rules) {',

0 commit comments

Comments
 (0)