Skip to content

Instantly share code, notes, and snippets.

Add Nx to the Qwik repo?

Kyle Cordes, August 30 2022.

(I have used Nx a lot. With my team at work, we adopted it a couple months after it shipped, both for various internal projects and on several large customer projects.)

Nx, broadly

A note on naming: Nx thinks of the world as a Nx “workspace” containing many “projects”. Which I think is mostly a great naming convention. Except that it does not match Yarn’s naming convention.

@kylecordes
kylecordes / useUrlParams.ts
Last active May 7, 2022 02:40
Attempt at a Qwik useUrlParams
import {
useStore,
useWatch$,
useClientEffect$,
useServerMount$,
} from "@builder.io/qwik";
export const ranAlready = new Set<any>();
export function useUrlParams<STATE extends object>(initialState: STATE): STATE {
@kylecordes
kylecordes / insert-fragment.js
Created May 28, 2020 16:20
Post process Scully output to insert top level script tags
// Post-process Scully output to insert top-level third party script tags.
const globby = require('globby');
const fs = require('fs');
const path = require('path');
const myArgs = process.argv.slice(2);
if (myArgs.length !== 2) {
console.error('Usage: <distDir> <fragmentFile>');
console.error(
@kylecordes
kylecordes / gist:e62a2e95065d61b4abc0f193106bc539
Created May 9, 2016 02:47
Replace angular2/ with @angular, on OSX, for many files
find . -name *.ts -not -path '*jspm*' -not -path '*node*' -not -name '*.d.ts' -exec sed -i '' 's/angular2\//@angular\//g' {} \;
@kylecordes
kylecordes / designer.html
Created December 4, 2014 03:04
designer
<link rel="import" href="../paper-input/paper-input.html">
<link rel="import" href="../paper-tabs/paper-tabs.html">
<link rel="import" href="../paper-tabs/paper-tab.html">
<link rel="import" href="../paper-button/paper-button.html">
<polymer-element name="my-element">
<template>
<style>
:host {
@kylecordes
kylecordes / gist:1070745
Created July 7, 2011 22:53
Verizon Samsung 3G 3-bar ping results
--- google.com ping statistics ---
63 packets transmitted, 33 packets received, 47.6% packet loss
round-trip min/avg/max/stddev = 303.390/696.738/2263.274/485.687 ms
Kyle-Cordess-MacBook-Pro:~ kcordes$ ping -c 100 google.com
PING google.com (74.125.235.16): 56 data bytes
Request timeout for icmp_seq 0
64 bytes from 74.125.235.16: icmp_seq=0 ttl=43 time=1061.573 ms
Request timeout for icmp_seq 2
Request timeout for icmp_seq 3
64 bytes from 74.125.235.16: icmp_seq=1 ttl=43 time=3399.928 ms