Skip to content

Commit 8c9fa18

Browse files
author
=
committed
Selectively copy sample data file to MapBox/cache dir. Refs #1114.
1 parent 46d3b25 commit 8c9fa18

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

commands/core.bones

+4-3
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ command.prototype.bootstrap = function(plugin, callback) {
111111
console.warn('Creating files dir %s', settings.files);
112112
fsutil.mkdirpSync(settings.files, 0755);
113113
}
114-
['export', 'project', 'cache', 'cache/tile'].forEach(function(key) {
114+
['export', 'project', 'cache'].forEach(function(key) {
115115
var dir = path.join(settings.files, key);
116116
if (!path.existsSync(dir)) {
117117
console.warn('Creating %s dir %s', key, dir);
@@ -120,8 +120,9 @@ command.prototype.bootstrap = function(plugin, callback) {
120120
var examples = path.resolve(path.join(__dirname, '..', 'examples'));
121121
fsutil.cprSync(examples, dir);
122122
} else if (key === 'cache' && settings.sampledata) {
123-
var data = path.resolve(path.join(__dirname, '..', 'data'));
124-
fsutil.cprSync(data, dir);
123+
var shapefile = '82945364-10m-admin-0-countries';
124+
var data = path.resolve(path.join(__dirname, '..', 'data', shapefile));
125+
fsutil.cprSync(data, path.resolve(path.join(dir, shapefile)));
125126
}
126127
}
127128
});
Binary file not shown.
Binary file not shown.

0 commit comments

Comments
 (0)