mirror of
https://github.com/jupyter/notebook.git
synced 2024-12-09 03:50:45 +08:00
14 lines
371 B
JavaScript
14 lines
371 B
JavaScript
const fs = require('fs');
|
|
const path = require('path');
|
|
const rimraf = require('rimraf');
|
|
|
|
module.exports = async () => {
|
|
const data = path.join(__dirname, './test/data');
|
|
const example = path.join(__dirname, '../binder/example.ipynb');
|
|
const dest = path.join(data, 'example.ipynb');
|
|
|
|
rimraf.sync(data);
|
|
fs.mkdirSync(data);
|
|
fs.copyFileSync(example, dest);
|
|
};
|