0.0.1 • Published 8 months ago

@deep27/supersetpluginchart-helloworld v0.0.1

Weekly downloads
-
License
MIT
Repository
-
Last release
8 months ago

superset-plugin-chart-hello-world

This is the Superset Plugin Chart Hello World Superset Chart Plugin.

Usage

To build the plugin, run the following commands:

npm ci
npm run build

Alternatively, to run the plugin in development mode (=rebuilding whenever changes are made), start the dev server with the following command:

npm run dev

To add the package to Superset, go to the superset-frontend subdirectory in your Superset source folder (assuming both the superset-plugin-chart-hello-world plugin and superset repos are in the same root directory) and run

npm i -S ../../superset-plugin-chart-hello-world

If your Superset plugin exists in the superset-frontend directory and you wish to resolve TypeScript errors about @superset-ui/core not being resolved correctly, add the following to your tsconfig.json file:

"references": [
  {
    "path": "../../packages/superset-ui-chart-controls"
  },
  {
    "path": "../../packages/superset-ui-core"
  }
]

You may also wish to add the following to the include array in tsconfig.json to make Superset types available to your plugin:

"../../types/**/*"

Finally, if you wish to ensure your plugin tsconfig.json is aligned with the root Superset project, you may add the following to your tsconfig.json file:

"extends": "../../tsconfig.json",

After this edit the superset-frontend/src/visualizations/presets/MainPreset.js and make the following changes:

import { SupersetPluginChartHelloWorld } from 'superset-plugin-chart-hello-world';

to import the plugin and later add the following to the array that's passed to the plugins property:

new SupersetPluginChartHelloWorld().configure({ key: 'superset-plugin-chart-hello-world' }),

After that the plugin should show up when you run Superset, e.g. the development server:

npm run dev-server
ababacornacorn-globalsacorn-walkagent-baseansi-escapesansi-regexansi-stylesanymatchargparsearr-diffarr-flattenarr-unionarray-uniqueassign-symbolsasynckitatobbabel-jestbabel-plugin-istanbulbabel-plugin-jest-hoistbabel-preset-current-node-syntaxbabel-preset-jestbalanced-matchbasebinary-extensionsbrace-expansionbracesbrowser-process-hrtimebrowserslistbserbuffer-fromcache-basecallsitescamelcasecaniuse-litecapture-exitchalkchar-regexchokidarci-infocjs-module-lexerclass-utilscliuicocollect-v8-coveragecollection-visitcolor-convertcolor-namecombined-streamcommandercomponent-emitterconcat-mapconvert-source-mapcopy-descriptorcross-spawncssomcssstyledata-urlsdebugdecamelizedecimal.jsdecode-uri-componentdeepmergedefine-propertydelayed-streamdetect-newlinediff-sequencesdomexceptionelectron-to-chromiumemitteryemoji-regexend-of-streamerror-exescaladeescape-string-regexpescodegenesprimaestraverseesutilsexec-shexecaexitexpand-bracketsexpectextend-shallowextglobfast-json-stable-stringifyfb-watchmanfill-rangefind-upfor-inform-datafragment-cachefs-readdir-recursivefs.realpathfunction-bindgensyncget-caller-fileget-package-typeget-streamget-valueglobglob-parentglobalsgraceful-fsgrowlyhashas-flaghas-valuehas-valueshosted-git-infohtml-encoding-snifferhtml-escaperhttp-proxy-agenthttps-proxy-agenthuman-signalsiconv-liteimport-localimurmurhashinflightinheritsis-accessor-descriptoris-arrayishis-binary-pathis-bufferis-ciis-core-moduleis-data-descriptoris-descriptoris-dockeris-extendableis-extglobis-fullwidth-code-pointis-generator-fnis-globis-numberis-plain-objectis-potential-custom-element-nameis-streamis-typedarrayis-windowsis-wslisarrayisexeisobjectistanbul-lib-coverageistanbul-lib-instrumentistanbul-lib-reportistanbul-lib-source-mapsistanbul-reportsjest-changed-filesjest-clijest-configjest-diffjest-docblockjest-eachjest-environment-jsdomjest-environment-nodejest-get-typejest-haste-mapjest-jasmine2jest-leak-detectorjest-matcher-utilsjest-message-utiljest-mockjest-pnp-resolverjest-regex-utiljest-resolvejest-resolve-dependenciesjest-runnerjest-runtimejest-serializerjest-snapshotjest-utiljest-validatejest-watcherjest-workerjs-tokensjs-yamljsdomjsescjson-parse-even-better-errorsjson5kind-ofkleurlevenlines-and-columnslocate-pathlodashlru-cachemake-dirmakeerrormap-cachemap-visitmerge-streammicromatchmime-dbmime-typesmimic-fnminimatchminimistmixin-deepmsnanomatchnatural-comparenice-trynode-int64node-notifiernode-releasesnormalize-package-datanormalize-pathnpm-run-pathnwsapiobject-copyobject-visitobject.pickonceonetimep-each-seriesp-finallyp-limitp-locatep-tryparse-jsonparse5pascalcasepath-existspath-is-absolutepath-keypath-parsepicocolorspicomatchpifypiratespkg-dirposix-character-classespretty-formatpromptspslpumppunycodequerystringifyreact-isread-pkgread-pkg-upreaddirpregex-notremove-trailing-separatorrepeat-elementrepeat-stringrequire-directoryrequire-main-filenamerequires-portresolveresolve-cwdresolve-fromresolve-urlretrsvpsafe-regexsafer-buffersanesaxessemverset-blockingset-valueshebang-commandshebang-regexshellwordssignal-exitsisteransislashsnapdragonsnapdragon-nodesnapdragon-utilsource-mapsource-map-resolvesource-map-supportsource-map-urlspdx-correctspdx-exceptionsspdx-expression-parsespdx-license-idssplit-stringsprintf-jsstack-utilsstatic-extendstring-lengthstring-widthstrip-ansistrip-bomstrip-eofstrip-final-newlinesupports-colorsupports-hyperlinkssupports-preserve-symlinks-flagsymbol-treeterminal-linktest-excludethroattmplto-fast-propertiesto-object-pathto-regexto-regex-rangetough-cookietr46type-detecttype-festtypedarray-to-bufferunion-valueuniversalifyunset-valueupdate-browserslist-dburixurl-parseuseuuidv8-to-istanbulvalidate-npm-package-licensew3c-hr-timew3c-xmlserializerwalkerwebidl-conversionswhatwg-encodingwhatwg-mimetypewhatwg-urlwhichwhich-modulewrap-ansiwrappywrite-file-atomicwsxml-name-validatorxmlcharsy18nyallistyargsyargs-parser
0.0.1

8 months ago