fix: cleanup dist folder, change README

- move images for README into docs/img
- move libs/* into utils. libs folder is copied into dist by grafana-toolkit
- remove d3-scale-chromatic sources, use it from dependencies
- update compatible versions in README
- update installation info
This commit is contained in:
Ivan Mikheykin
2021-02-16 17:43:48 +03:00
parent cf28c74069
commit b25f376f4e
126 changed files with 109 additions and 1046 deletions
+15
View File
@@ -0,0 +1,15 @@
// Copy screenshots defined in plugin.json.
const path = require('path');
const pluginJson = require(path.resolve(process.cwd(), 'src/plugin.json'));
const CopyWebpackPlugin = require('copy-webpack-plugin');
module.exports.getWebpackConfig = (config, options) => ({
...config,
plugins: [...config.plugins, new CopyWebpackPlugin(
pluginJson.info.screenshots.map(function(item) {
return {from: "../docs/"+item.path, to: "./img"}
}),
{ logLevel: options.watch ? 'silent' : 'warn' }
) ],
});