Skip to content

Instantly share code, notes, and snippets.

View jaysoo's full-sized avatar

Jack Hsu jaysoo

View GitHub Profile
#!/bin/bash
# This script is used in Vercel to determine whether to continue the build or not for nx-dev.
# Exits with 0 if the build should be skipped, and exits with 1 to continue.
# Configure these values to match the GitHub repo.
OWNER=jaysoo
REPO=acme
# Only arg is the app name as configured in Nx's workspace.json file.
import React from 'react';
import { SharedUi } from '@my-org/shared-ui';
export const Index = () => {
return (
<div className="app">
<header className="flex">
<Logo width="75" height="75" />
<h1>Welcome to myblog!</h1>
</header>
import React from 'react';
import './shared-ui.css';
/* eslint-disable-next-line */
export interface SharedUiProps {}
export const SharedUi = (props: SharedUiProps) => {
return (
<div>
@jaysoo
jaysoo / about.tsx
Last active December 30, 2020 03:44
import React from 'react';
import './about.css';
import Title from '../components/title';
/* eslint-disable-next-line */
export interface AboutProps {}
export const About = (props: AboutProps) => {
return (
@jaysoo
jaysoo / title.tsx
Last active December 30, 2020 03:44
import React from 'react';
import './title.css';
/* eslint-disable-next-line */
export interface TitleProps {}
export const Title = (props: TitleProps) => {
return (
<div>
import React from 'react';
import { MyLib } from '@my-app/my-lib';
export const Index = () => {
return (
<div className="app">
<header className="flex">
<Logo width="75" height="75" />
<h1>Welcome to myblog!</h1>
<MyLib/>
</header>
import React from 'react';
import './my-lib.css';
/* eslint-disable-next-line */
export interface MyLibProps {}
export const MyLib = (props: MyLibProps) => {
return (
<div>
<h1>Welcome to my-lib!</h1>
</div>
);
import React from 'react';
import './about.css';
import Title from '../components/title';
/* eslint-disable-next-line */
export interface AboutProps {
}
export const About = (props: AboutProps) => {
return (
<div>
<Title/>
import React from 'react';
import './title.css';
/* eslint-disable-next-line */
export interface TitleProps {}
export const Title = (props: TitleProps) => {
return (
<div>
<h1>Welcome to Title!</h1>
</div>
);
{
"extends": "../../tsconfig.base.json"
...
}