mirror of
https://github.com/apache/superset.git
synced 2024-09-19 20:19:37 -04:00
update generator and bump build config version
This commit is contained in:
parent
9863d8779f
commit
48c881f5c3
@ -38,7 +38,7 @@
|
||||
],
|
||||
"license": "Apache-2.0",
|
||||
"devDependencies": {
|
||||
"@data-ui/build-config": "^0.0.39",
|
||||
"@data-ui/build-config": "^0.0.40",
|
||||
"fast-glob": "^2.2.6",
|
||||
"fs-extra": "^7.0.1",
|
||||
"husky": "^1.1.2",
|
||||
|
@ -30,6 +30,7 @@ module.exports = class extends Generator {
|
||||
|
||||
writing() {
|
||||
this.fs.copyTpl(this.templatePath('index.js'), this.destinationPath('index.js'), this.answers);
|
||||
this.fs.copyTpl(this.templatePath('data.js'), this.destinationPath('data.js'), this.answers);
|
||||
this.fs.copyTpl(
|
||||
this.templatePath('Stories.jsx'),
|
||||
this.destinationPath('Stories.jsx'),
|
||||
|
@ -1,6 +1,7 @@
|
||||
/* eslint-disable no-magic-numbers */
|
||||
import React from 'react';
|
||||
import { SuperChart } from '@superset-ui/chart';
|
||||
import data from './data';
|
||||
|
||||
export default [
|
||||
{
|
||||
@ -10,14 +11,12 @@ export default [
|
||||
chartProps={{
|
||||
formData: {},
|
||||
height: 400,
|
||||
payload: {
|
||||
data: [],
|
||||
},
|
||||
payload: { data },
|
||||
width: 400,
|
||||
}}
|
||||
/>
|
||||
),
|
||||
storyName: '<%= packageLabel %>ChartPlugin',
|
||||
storyPath: 'plugin-chart-<%= packageName %>',
|
||||
storyName: 'Basic',
|
||||
storyPath: 'plugin-chart-<%= packageName %>|<%= packageLabel %>ChartPlugin',
|
||||
},
|
||||
];
|
||||
|
@ -0,0 +1,2 @@
|
||||
/* eslint-disable sort-keys, no-magic-numbers */
|
||||
export default {};
|
Loading…
Reference in New Issue
Block a user