Skip to content

Instantly share code, notes, and snippets.

@brillout
Last active September 14, 2024 11:50
Show Gist options
  • Save brillout/6267ecb8c996fb4a401985106cc81936 to your computer and use it in GitHub Desktop.
Save brillout/6267ecb8c996fb4a401985106cc81936 to your computer and use it in GitHub Desktop.
Lines of Code `vike-react`

Lines of Code vike-react

Result: 1149 (September 2024).

Reproduce:

$ git clone git@github.com:vikejs/vike-react --quiet
$ cd vike-react/packages/vike-react/
$ git ls-files | egrep '\.tsx?$' | xargs cat | wc | awk '{print $1;}'
$ cd ../../../ && rm -rf vike-react/
1149

Same but as copy-pastable singe-line:

git clone git@github.com:vikejs/vike-react --quiet && cd vike-react/packages/vike-react && git ls-files | egrep '\.tsx?$' | xargs cat | wc | awk '{print $1;}' && cd ../../../ && rm -rf vike-react/

See also

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment