All Projects â†’ bobheadxi â†’ twist

bobheadxi / twist

Licence: MIT license
📡 Static and serverless canonical imports for your Go packages

Programming Languages

go
31211 projects - #10 most used programming language
HTML
75241 projects
Makefile
30231 projects

Projects that are alternatives of or similar to twist

lint-deps
Lint for unused or missing dependencies in your node.js projects. Customize with plugins or configuration.
Stars: ✭ 48 (+108.7%)
Mutual labels:  packages, imports
hej
Hej! is a simple authentication boilerplate for Socialite.
Stars: ✭ 111 (+382.61%)
Mutual labels:  packages
Awesome-Nuget-Packages
📦 A collection of awesome and top .NET packages sorted by most popular needs.
Stars: ✭ 87 (+278.26%)
Mutual labels:  packages
github-deploy-actions
This action will auto deploy to target branch when it get triggered
Stars: ✭ 24 (+4.35%)
Mutual labels:  gh-pages
matjek
Material theme based on Materialize.css for jekyll sites
Stars: ✭ 94 (+308.7%)
Mutual labels:  gh-pages
devilbox.org
devilbox website: http://devilbox.org
Stars: ✭ 74 (+221.74%)
Mutual labels:  gh-pages
thanker
Don't be a wanker, be a thanker! Automatically give thanks to Pypi packages you use in your project.
Stars: ✭ 25 (+8.7%)
Mutual labels:  packages
packages
PiKVM Packages
Stars: ✭ 18 (-21.74%)
Mutual labels:  packages
viewflow
Viewflow is an Airflow-based framework that allows data scientists to create data models without writing Airflow code.
Stars: ✭ 110 (+378.26%)
Mutual labels:  packages
au-packages-template
Template repository for Chocolatey Automatic Package Updater Module
Stars: ✭ 30 (+30.43%)
Mutual labels:  packages
npm-unpkg
A web application to view npm package files, Based on unpkg.
Stars: ✭ 82 (+256.52%)
Mutual labels:  packages
food-oasis-la
This is a website with a map of food sources in Los Angeles, and list of resources about food deserts and health, published with Jekyll and GitHub Pages.
Stars: ✭ 24 (+4.35%)
Mutual labels:  gh-pages
wheelfile
🔪🧀 API for creating and inspecting Python .whl files (wheels).
Stars: ✭ 22 (-4.35%)
Mutual labels:  packages
kite
small + super-fast HTML templating
Stars: ✭ 18 (-21.74%)
Mutual labels:  imports
smuggler
🚣 Smuggle all imports
Stars: ✭ 72 (+213.04%)
Mutual labels:  imports
trailing-slash-guide
Understand and fix your static website trailing slash issues!
Stars: ✭ 255 (+1008.7%)
Mutual labels:  gh-pages
antbs
Automated package build and repository management web application.
Stars: ✭ 23 (+0%)
Mutual labels:  packages
source
Onion's fork of OpenWRT's source build system. The firmware for the Omega2, Omega2+, and Omega2 Pro is based on the openwrt-18.06 branch.
Stars: ✭ 73 (+217.39%)
Mutual labels:  packages
TimeTableManager
Simple react application to create a TimeTable based only on your choice of subjects.
Stars: ✭ 30 (+30.43%)
Mutual labels:  gh-pages
Node-js-functionalities
This repository contains very useful restful API's and functionalities in node-js containing many important tutorial code for mastering node-js, all tutorials have been published on medium.com, tutorials link is given below
Stars: ✭ 69 (+200%)
Mutual labels:  packages

twist

Twist generates canonical imports for your Go packages. Since it does not require a running server (ie in existing tools like uber-go/sally and rsc/go-import-redirector), Twist is particularly useful in conjunction with GitHub Pages.

A canonical import path allows you to make your package import a little fancier with a custom domain, for example:

- import "github.com/bobheadxi/zapx"
+ import "go.bobheadxi.dev/zapx"

usage

go get -u go.bobheadxi.dev/twist
#          [        source         ] [     canonical     ]
twist -o x github.com/bobheadxi/zapx go.bobheadxi.dev/zapx

Using the example in this repo:

twist -c twist.example.yml -o x -readme

To set up your own configuration:

twist config

You'll want to commit the generated files to the GitHub Page repository of the domain you want to use for your custom import path. For example, I used Twist to set up my go.bobheadxi.dev/... import paths using GitHub Pages. The repository is here, and has the following layout:

github.com/bobheadxi/go
|-- CNAME (go.bobheadxi.dev)
|-- README.md
|-- gobenchdata
|    +-- index.html (go.bobheadxi.dev/gobenchdata)
|-- package1
|    +-- index.html (go.bobheadxi.dev/package1)
+-- package2
     +-- index.html (go.bobheadxi.dev/package2)

GitHub Pages serves up the contents of the repository, allowing packages to be served with my custom domain:

go get go.bobheadxi.dev/gobenchdata

In your Go package, you'll need to update all import paths to use the new name.

When using Go Modules, you'll also need to update the module directive in your go.mod:

module go.bobheadxi.dev/twist

go 1.12

require ( ... )
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].