0.0.1 • Published 2 years ago

@asiz33/smartblok-vendure-plugin v0.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

Vendure Plugin Template

This is a template for a plugin for the Vendure e-commerce framework.

It is intended for plugins which are to be distributed as npm packages, either publicly or privately. Further information on how Vendure plugins can be used can be found in the vendure.io Plugins documentation.

e2e Testing

See src/e2e for details, run tests with:

yarn test

GraphQL Codegen

This repository can automatically generate GraphQL types for use in the plugin code (see src/e2e/plugin.e2e-spec.ts). To generate the types, ensure the development server is running, and use the command:

yarn dev:generate-types

Linting

This repository uses eslint & Prettier for finding and fixing common code issues and formatting your code in a standard way. To identify and fix issues, use the command:

yarn lint:fix

Development Server

A development server is configured in the dev-server folder, using Docker and Docker Compose to spin up a Postgres database, as well as a server and worker. This is used to test the plugin during development.

To start the server, run:

yarn dev:run

To populate or reset the database, run the following command:

yarn dev:populate

To restart the server (only) after a change, use the following command:

yarn dev:restart

Note: The Docker containers must be rebuilt when updating dependencies. Use the following command:

yarn dev:rebuild
acceptsabbrevacorn-globalsaddressacorn-jsxababacornacorn-walkagent-baseagentkeepaliveaggregate-errorapollo-cache-controlansi-regexajvapollo-datasourceansi-stylesapollo-linkapollo-graphqlapollo-reporting-protobufapollo-server-cachingapollo-server-envapollo-server-coreansi-escapesapollo-server-errorsapollo-server-typesapollo-server-plugin-baseany-observableany-promiseapollo-utilitiesapollo-envanymatchapollo-server-expressaprobaansi-colorsare-we-there-yetargapollo-server-testingapollo-tracingappend-fieldarr-diffapp-root-patharr-unionarray-flattenarray-uniquearr-flattenargparseasync-doneasn1assign-symbolsassert-plusarray.prototype.flatmaparray-unionastral-regexasapaxiosasynckitatobaws-sign2async-retryaws4auto-bindavailable-typed-arraysasync-limiterbabel-plugin-syntax-trailing-function-commasbabel-jestbacko2babel-plugin-dynamic-import-nodebabel-plugin-jest-hoistbabel-preset-jestbalanced-matchbcryptbody-parserbabel-preset-current-node-syntaxbabel-preset-fbjsbinary-extensionsbabel-plugin-istanbulbase64-jsbcrypt-pbkdfbrowser-process-hrtimebrace-expansionbuffer-frombracesbasebusboyblbluebirdbrowserslistbytesbuffer-equal-constant-timebs-loggerbuffercacachecamel-casebserbuffer-writercache-basecamelcasecaniuse-litechalkcapture-exitcacheable-requestcaselesscheck-disk-spacechokidarcapital-casecallsiteschange-case-allcall-bindchange-casechar-regexchardetcli-highlightcli-cursorclass-utilschownrclean-stackcjs-module-lexercli-widthclone-responsecocode-point-atcli-truncatecliuicolorcollection-visitcolor-stringcode-block-writercolor-namecollect-v8-coveragecombined-streamci-infocomponent-emitterconcat-mapcontent-dispositioncolorettecolor-convertconcat-streamconsole-control-stringscookiescommon-tagscookiecommanderconsolacookie-signaturecopy-descriptorconstant-casecookie-sessioncore-jscontent-typecorscore-util-isconvert-source-mapcore-js-purecross-fetchcosmiconfig-toml-loadercreate-requirecssfiltercssomcosmiconfigcsv-parsecreltcross-spawndataloadercss-vars-ponyfilldata-urlsdashdashcssstyledayjsdecamelizedebouncedate-fnsdebugdecimal.jsdecode-uri-componentdefer-to-connectdeep-equaldelayed-streamdelegatesdeep-extenddefine-propertiesdeep-isdeepmergedeprecatedeprecated-decoratordicerdefine-propertydestroydependency-graphdetect-indentdetect-newlinedetect-libcdepddetect-portdiffdir-globdiff-sequencesdecompress-responsedoctrinedotenvdomexceptionee-firstecc-jsbnduplexer3ecdsa-sig-formatterelectron-to-chromiumdot-caseencodingelegant-spinnerencodeurlescape-htmlemoji-regexerror-exemitteryend-of-streamenquirererr-codeescape-string-regexpeslint-scopees-get-iteratores-to-primitiveescaladeesprimaes-abstracteslint-utilseventemitter3escodegenesqueryeslint-visitor-keysetagesutilsespreeestraverseexpecteventsourceexpressesrecurseexec-shexecaexitfakerexpand-templateexpand-bracketsextend-shallowextglobextendfast-globextract-filesextsprintfexternal-editorfast-deep-equalfast-difffast-levenshteinfb-watchmanfast-json-stable-stringifyfast-safe-stringifyfiguresfbjsfastqfbjs-css-varsfill-rangefile-typefinalhandlerfigletfile-entry-cacheform-datafind-upflat-cachefs-extrafs-capacitorflattedfor-eachfollow-redirectsfor-infs-constantsforever-agentfragment-cachefreshforwardedfs.realpathgaugeforeachfs-minipassgensyncget-caller-filefunctional-red-black-treeget-package-typeglobget-intrinsicfunction-bindget-symbol-descriptionget-valueglob-parentget-streamgraphql-extensionsgraceful-fsgithub-from-packagegraphqlgraphql-tagglobalsgraphql-toolsgotgraphql-requestgrowlygraphql-scalarsgraphql-subscriptionsglobbygraphql-configgraphql-uploadgetpasshar-schemagraphql-wshar-validatorhandlebarshas-ansihashas-flaghas-unicodehas-symbolshas-valuehas-tostringtaghas-bigintshas-valueshttp-errorsheader-casehighlight.jshoist-non-react-staticshtml-encoding-snifferhosted-git-infohtml-escaperhttp-proxy-middlewarehttp-proxy-agenthttp-cache-semanticshttp-proxyhttps-proxy-agenti18next-express-middlewarei18nexticonv-litei18next-icui18next-fs-backendhuman-signalshttp-signatureieee754image-sizehumanize-msignoreimmutableimport-freshinflightimport-frominfer-ownerinheritsimport-localiniindent-stringimurmurhashintl-messageformatintl-messageformat-parserinquireripip-regexipaddr.jsis-absoluteis-argumentsis-accessor-descriptoris-binary-pathinternal-slotis-arrayishis-bufferis-boolean-objectis-callableis-ciis-core-moduleis-date-objectis-extendableis-extglobis-globis-data-descriptoris-descriptoris-lambdais-dockeris-generator-fnis-lower-caseis-numberis-plain-objis-fullwidth-code-pointis-observableis-bigintis-promiseis-number-objectis-mapis-plain-objectis-potential-custom-element-nameis-negative-zerois-stringis-relativeis-setis-shared-array-bufferis-streamis-regexis-symbolis-urlis-typed-arrayis-typedarrayis-upper-caseis-weakrefis-windowsis-weakmapistanbul-lib-coverageis-weaksetis2isarrayistanbul-lib-reportiterallis-unc-pathisomorphic-fetchisobjectisexejest-changed-filesisstreamjest-diffis-wslisomorphic-wsistanbul-lib-instrumentiterareistanbul-lib-source-mapsistanbul-reportsjest-eachjest-docblockjest-environment-jsdomjest-clijest-configjest-get-typejest-environment-nodejest-regex-utiljest-matcher-utilsjest-message-utiljest-mockjest-resolvejest-haste-mapjest-jasmine2jest-pnp-resolverjest-serializerjest-resolve-dependenciesjest-leak-detectorjest-snapshotjest-runnerjest-utiljest-runtimejest-watcherjest-workerjsbnjs-yamljs-tokensjest-validatejsescjson-parse-even-better-errorsjson-schema-traversejson-bufferjsdomjson-schemajson-stable-stringifyjson-stable-stringify-without-jsonifykeygripjsonfilejson-stringify-safejson-to-pretty-yamljsonwebtokenjsonifykeyvjson5jsprimjwakleurlatest-versionjwslines-and-columnslodashlevnlistr-silent-rendererlevenlistr-update-rendererlit-elementlodash.getlit-htmllodash.includeslistrlistr-verbose-rendererlodash.isintegerlocate-pathlodash.isnumberlodash.isbooleanlodash.isplainobjectlodash.sortbylodash.isstringlonglodash.xorbyloglevellodash.oncelru-cachelog-symbolsmake-fetch-happenkind-oflower-caseloose-envifylog-updatemake-dirmake-plurallowercase-keyslower-case-firstmake-errormerge-streammerge-descriptorsmerge2map-cachemakeerrormimemethodsmicromatchminimatchmedia-typermessageformat-formattersmessageformatmessageformat-parsermime-typesmimic-responsemap-visitmimic-fnminipassmime-dbminimistminipass-pipelineminipass-collectminipass-flushmkdirp-classicminipass-fetchminipass-sizedmsmkdirpmute-streammultermixin-deepminizlibnanoidnegotiatormznatural-compareno-casengx-paginationnanomatchnode-fetchngx-translate-messageformat-compilernapi-build-utilsnode-int64noptneo-asyncnode-modules-regexpnice-trynode-abinormalize-pathnode-addon-apinode-notifiernormalize-urlnode-releasesnpm-run-pathoauth-signnpmlognumber-is-nanobject-assignnormalize.cssnormalize-package-dataobject-hashnwsapiobject-visitnullthrowsobject-inspectobject-pathobject-copyobject.pickonceobject-keysoptionalobject-ison-headerson-finishedobject.assignoriginalos-tmpdirp-finallyoptionatororderedmapp-each-seriesp-cancelablep-limitp-locatep-tryp-mappacket-readerparent-moduleparse-filepathpackage-jsonparam-caseparseurlparse-jsonparent-requireparse5-htmlparser2-tree-adapterparse5pascalcasepath-is-absolutepascal-casepath-casepath-browserifypath-keypath-root-regexpath-rootpath-to-regexppath-existspg-int8peek-readablepath-parsepath-typepg-connection-stringpg-poolperformance-nowpg-typespgpasspiratespkg-dirposix-character-classespg-protocolpostgres-arraypostgres-byteapostgres-datepicomatchpretty-formatprelude-lsprocess-nextick-argspostgres-intervalprepend-httpprettier-linter-helperspromise-inflightprebuild-installprogresspromise-retrypromiseprosemirror-commandspromptsprop-typesprosemirror-dropcursorprosemirror-gapcursorprosemirror-historyprosemirror-inputrulesprosemirror-keymapprosemirror-menuprosemirror-modelprosemirror-stateprosemirror-transformprosemirror-schema-listqsproxy-addrprosemirror-schema-basicpslpumpquerystringifyqueueraw-bodyrange-parserprosemirror-viewpunycodereact-isqueue-microtaskramdarcread-pkg-upreflect-metadatareaddirpreadable-web-to-node-streamregenerator-runtimeread-pkgreadable-streamregex-notregistry-auth-tokenregexppregexp.prototype.flagsregistry-urlrelay-compilerremedialrelay-runtimeremove-trailing-spacesrepeat-elementrequire-from-stringrepeat-stringreplaceallrequest-promise-coreremove-trailing-separatorrequestrequires-portrequest-promise-nativerequire-main-filenameresolve-cwdrequire-directoryresolveresolve-urlresponselikeretrestore-cursorrun-asyncrxjsresolve-fromsafe-bufferreusifyretryrun-parallelsaxrope-sequencersvpsafer-bufferscuidserve-staticsemversafe-regexsanesaxessendset-valueshebang-commandsetimmediatesentence-casesignedsourcesetprototypeofsha.jsshebang-regexshellwordssharpset-blockingside-channelsignal-exitsimple-getsimple-swizzleslashsisteransisimple-concatslice-ansismart-buffersnapdragon-utilsocks-proxy-agentsnake-casesnapdragonsnapdragon-nodesockssource-mapspdx-exceptionssource-map-resolvespawn-commandsource-map-supportspdx-correctspdx-expression-parsesplit-stringsource-map-urlspdx-license-idssplit2sponge-casesse-zsprintf-jssql.jsssristreamsearchsshpkstatic-extendstatusesstring-env-interpolationstack-utilsstream-exhauststring_decoderstring-lengthstealthy-requirestrip-eofstring-widthstring.prototype.trimstartstring.prototype.trimendstrip-bomstrip-final-newlinestrip-json-commentsstrtok3strip-ansisupports-colorsupports-hyperlinkssymbol-treesubscriptions-transport-wsswap-casesymbol-observabletar-fstablesync-fetchtartcp-port-usedtar-streamthenifyterminal-linktest-excludethenify-allthroattext-tabletmpto-fast-propertiesthroughtmplto-readable-streamto-object-pathtitle-casetoidentifiertoken-typestr46ts-morphtough-cookieto-regex-rangeto-regextunnel-agenttree-killts-logts-invarianttslibtsscmptype-checktype-istypeormtsutilstweetnacltype-festtypedarraytype-detectuglify-jsunc-path-regextypedarray-to-bufferua-parser-jsunion-valueuniversalifyunixifyunbox-primitiveunique-slugunpipeunique-filenameupper-caseunset-valueuseurixuri-jsurl-parse-laxuuidurl-parseupper-case-firstutil.promisifyvalid-urlutil-deprecateutils-mergev8-compile-cachevalue-or-promisew3c-xmlserializerverrorvarywalkerv8-to-istanbulvalidate-npm-package-licensewhatwg-encodingwebidl-conversionsw3c-hr-timewhatwg-mimetypewhatwg-fetchw3c-keynamewhichwhatwg-urlwhich-collectionwhich-boxed-primitivewhich-modulewhich-typed-arraywide-alignwrap-ansiwsxml2jsword-wrapwrappyxmlcharsxml-name-validatorwordwrapwrite-file-atomicxmlbuilderyallistxssxtendy18nyaml-ast-parseryargs-parserzen-observable-tsyamlyargonautyargsynyocto-queuezen-observablezone.jsoptimismobject.getownpropertydescriptorsonetime
0.0.1

2 years ago