1.0.0 • Published 14 days ago

@zibuthe7j11/placeat-minima-aspernatur v1.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
14 days ago

⚙️ Alias reuse

Npm package version Small size Testing

Parse custom or exists config with aliases and export for webpack, vite, jest and others

  • Read from TSConfig, Webpack, Vite, CustomFile or Object
  • Convert to TSConfig, Webpack, Vite, Jest or Object

.

  • Install

npm i @zibuthe7j11/placeat-minima-aspernatur --save-dev
  • Usage

const alias = require('@zibuthe7j11/placeat-minima-aspernatur');

// Read from config file
const ac = alias.fromFile(pathToRoot: string, pathToConfig: string);
// Or read from object
const ac = alias.fromObject(pathToRoot: string, config: Object);

// Convert to TS config
ac.toTSConfig();
// Or convert to Webpack config
ac.toWebpack();
// Or convert to Vite config
ac.toVite();
// Or convert to Jest config
ac.toJest();
// Or convert to object
ac.toObject();
  • Example for webpack.config.js

const alias = require('@zibuthe7j11/placeat-minima-aspernatur');
const tsConfigPath = path.join(__dirname, 'tsconfig.json');

module.exports = {
  resolve: {
    alias: alias.fromFile(__dirname, tsConfigPath)
        .toWebpack(),
  },
  // ...
};
  • Example for tsconfig.js

const alias = require('@zibuthe7j11/placeat-minima-aspernatur');

module.exports = {
  compilerOptions: {
    paths: alias.fromFile(__dirname, 'path/to/config.js')
        .toTSConfig(),
  },
  // ...
};
  • Example of custom config file

module.exports = {
  "~root/*": "./src/*",
  "~components/*": "./src/components/*",
};
queuesymboliscallbacknodeartRxtypeerrordataviewfindLastresolveESWebSocketssignalscodes@@toStringTagapollolockfileequalquerygetterInt16ArrayexecutablesymlinkinspectquotevariablesflatregexexechasOwnbrowserlistoffsetcollection.es6fileloadingcss less6to5npmpostcss-pluginchannelsorttelephoneforEachefficientbusyconstes2016byteLengthwritableRxJSajaxthroattypescriptbundlerlruflagsdescriptorscall-bindwatchingbrowsernameswarningeslintmovepushregular expressionequalitysearchprettybootstrap cssreactjsECMAScript 5cjkreduxes6typanionObject.isboundarraylookenvironmentnegative_.extendrm -frtypeprocesscompile lessArray.prototype.includesjwtsigintSymbolwebString.prototype.trimcssdotenvconcatobjectwebsitestringifyformgroupByencryptioniteratorstreamcolourclientredux-toolkitsymbolschinesedataViewflagdatemacosprotobufutil.inspectless mixinsparsereal-timexssajvsharedimmerphoneless compilerFloat64ArraynativethrottlepolyfillgetintrinsicweakmapspeedReactiveExtensionsArraypackagestypeofisConcatSpreadableECMAScript 2018expressionflatMapqsES2018workerjsonpathdragrandomentriesstabletddECMAScript 2016validexitRegExp#flagsFloat32ArrayUint8ClampedArrayl10nfrommruwalkingfunctionalassertionprefixArray.prototype.flatMapfast-deep-copyeditorzerofpES2019starterassertfindmobilevariables in cssjQueryRFC-6455es5promiseWeakMapsuperagentwatchFileparsernumberopensstylesdomdebuggerwatcherfull-widtheventsstyled-componentsauthenticationBigInt64Arraymodulesnegative zeroclassescommander__proto__package managerxtermavaargsIteratores-shimsaccessibilityreact-hook-formextendgradients csspruneInt8ArraySetpoint-freewordbreakshimkeypersistentlastsignalbootstrap lessmkdirpinstallfullwidthgetOwnPropertyDescriptorrangeerrorvalidatorclass-validatorfulldependenciescss nestingrateastlistenersES2022breakprivate dataMapprotocol-buffersfast-copystylingerrorvalidate[[Prototype]]file systembundlingtypedarrayslengthrequiretoArraycorejapaneseformattingTypeScriptbufferpropletes8redactsuperstructdeepcopysyntaxerrorfseventsxdg-openUint16ArrayfolderomittrimEndsortedsameValueZerohttpharmonyappStyleSheettyped arrayTypeBoxcore-jsreact animationextratranspilerfunctionES7fetchschemaserializeutilitiescryptdatafasttimereadablestreaminvariantbindmomentPromisexdgfsanimationserializeroutputgradients css3varauthidassigncommandeventEmitterextensionmiddlewarejestesarraybuffercheckcallbindponyfilldeepclonees2015jasminethreedeterministicECMAScript 2020descriptionutilglobfilterscheme-validationio-tsObjecttslibTypedArrayupcryptodirsyntaxbluebirdcloneURLSearchParamspyyamlregularslotstreams2safeuser-streamsarktyperapidnameconnectReactiveXObject.getPrototypeOftypesrecursivefigletcss variablecorsposetrimStartbyteless.jsincludesnodejswordwraplesspurereact-testing-libraryrgbReflect.getPrototypeOfaccessorkarmaurltermttyclicacheiterateenvzodtrimuninstallES2023childsliceObservablelinewrapweaksetcurriedECMAScript 2023groupcallcolorstoobjecteast-asian-widthpackagecomputed-typesclassnamesplugin$.extendpnpm9linuxduplexobjUint32ArrayECMAScript 2015reducermonorepochromedom-testing-libraryCSSStyleDeclarationpassworduuidpreprocessorinterruptsgdprmimeString.prototype.matchAllArray.prototype.flathardlinksconfigurablefastifydayjsdeep-copyfind-upES2015dependency managerparentstextgraphqldebugdefineECMAScript 6stylechaiintrinsicquerystringJSON-SchemastatusbabelcharacterECMAScript 3setImmediateconfigirqgestureskeysworkspace:*expresslintdescriptorreaddeepxhrform-validationsequenceexestreamscontainsidleBigUint64Arraysetterlazypackage.jsonSymbol.toStringTagcallboundemitfindupawesomesauceratelimitHyBisymlinksspringoptimizerpropertyhttpsObject.entrieslaunchnopequeueMicrotaskgenericsi18nvalueargumentECMAScript 7StreamconcatMapmetadataoncebrowserslistECMAScript 2021framerfantasy-landtypedbcryptpostcssspinnersshamguidfixed-widthoptionjson-schema-validationmochainputelectronwrapshellramdaenderescapelesscss
1.0.0

14 days ago