All Projects → davestewart → Alias Hq

davestewart / Alias Hq

Licence: mit
The end-to-end solution for configuring, refactoring, maintaining and using path aliases

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to Alias Hq

Ts Monorepo
Template for setting up a TypeScript monorepo
Stars: ✭ 459 (+496.1%)
Mutual labels:  webpack, rollup, vscode, webstorm, jest
Public
Repository for wallaby.js questions and issues
Stars: ✭ 662 (+759.74%)
Mutual labels:  webpack, vscode, jest
Import Cost
displays the import size of the package you are importing inside the code editor
Stars: ✭ 1,021 (+1225.97%)
Mutual labels:  webpack, vscode
Js Toolbox
CLI tool to simplify the development of JavaScript apps/libraries with little to no configuration. (WORK IN PROGRESS/PACKAGE NOT PUBLISHED).
Stars: ✭ 53 (-31.17%)
Mutual labels:  webpack, jest
Starter React Flux
Generate your React PWA project with TypeScript or JavaScript
Stars: ✭ 65 (-15.58%)
Mutual labels:  webpack, jest
React Ssr Starter
All have been introduced React environment
Stars: ✭ 20 (-74.03%)
Mutual labels:  webpack, jest
Express React Boilerplate
🚀🚀🚀 This is a tool that helps programmers create Express & React projects easily base on react-cool-starter.
Stars: ✭ 32 (-58.44%)
Mutual labels:  webpack, jest
Craco Alias
A craco plugin for automatic aliases generation for Webpack and Jest
Stars: ✭ 56 (-27.27%)
Mutual labels:  webpack, jest
Download Your Travelmap
free your travelmap
Stars: ✭ 22 (-71.43%)
Mutual labels:  rollup, jest
Mostly
They mostly come at night; mostly.
Stars: ✭ 78 (+1.3%)
Mutual labels:  webpack, jest
Import Http
Import modules from URL instead of local node_modules
Stars: ✭ 1,150 (+1393.51%)
Mutual labels:  webpack, rollup
Ifme
Free, open source mental health communication web app to share experiences with loved ones
Stars: ✭ 1,147 (+1389.61%)
Mutual labels:  webpack, jest
Thinkful Workshop React Redux Node Mongodb Webpack2
Stars: ✭ 12 (-84.42%)
Mutual labels:  webpack, jest
Angular Builders
Angular build facade extensions (Jest and custom webpack configuration)
Stars: ✭ 843 (+994.81%)
Mutual labels:  webpack, jest
Tsdx
Zero-config CLI for TypeScript package development
Stars: ✭ 9,010 (+11601.3%)
Mutual labels:  rollup, jest
Svelte Tailwind Extension Boilerplate
A Chrome extension boilerplate built with Svelte, TailwindCSS, Jest, and Rollup.
Stars: ✭ 26 (-66.23%)
Mutual labels:  rollup, jest
React Boilerplate
Production-ready boilerplate for building universal web apps with React and Redux
Stars: ✭ 53 (-31.17%)
Mutual labels:  webpack, jest
Starter Lapis
Cutting edge starter kit
Stars: ✭ 72 (-6.49%)
Mutual labels:  webpack, jest
React Carousel
A pure extendable React carousel, powered by Brainhub (craftsmen who ❤️ JS)
Stars: ✭ 764 (+892.21%)
Mutual labels:  webpack, jest
Vspacecode
Spacemacs like keybindings for Visual Studio Code
Stars: ✭ 793 (+929.87%)
Mutual labels:  vscode, configuration

Alias HQ

tests

The end-to-end solution for configuring, refactoring, maintaining and using path aliases

Alias HQ logo

Abstract

Path "aliases" are @identifiers that simplify unwieldy or lengthy file imports.

Using them in your projects makes your code easier to read and maintain:

// from this
import { fooify } from '../../../core/services/foo' 

// to this
import { fooify } from '@services/foo' 

They are widely supported in the JavaScript ecosystem, however:

  • libraries have incompatible formats so require separate configurations
  • maintaining duplicate configurations is fiddly and error-prone
  • migrating source code is laborious and long-winded

TL;DR

If you are thinking about using aliases:

If you are already using aliases:

You can configure and migrate any project in less than a minute by:

  • installing the package
  • running the CLI
  • following the prompts

Overview

Alias HQ is configured using your project's ts/jsconfig.json:

{
  "baseUrl": "src",
  "paths": {
    "@packages/*": [ "../packages/*" ],
    "@/*": [ "/*" ],
    "@app/*": [ "/app/*" ],
    "@services/*": [ "/app/services/*" ],
    ...
  }
}

Note that you do not have to use TypeScript or VS Code to use Alias HQ.

The API makes sure your IDE, framework and toolchain are always in sync:

// webpack.config.js
config.resolve.alias = hq.get('webpack')

// jest.config.js
config.moduleNameMapper = hq.get('jest')

// etc...

The CLI makes sure your code is always up-to-date:

? What do you want to do?
  - Configure paths
  - Setup integrations
❯ - Update source code
  - Help
  - Exit

Getting started

Install via your package manager of choice:

npm i --save-dev alias-hq
yarn add -D alias-hq

To jump in without much reading:

For step-by-step instructions:

For a short video:

Wanna support the project?

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].