Skip to content

Commit

Permalink
Sets up the repo
Browse files Browse the repository at this point in the history
  • Loading branch information
orta committed May 26, 2021
1 parent cc979ca commit b565354
Show file tree
Hide file tree
Showing 107 changed files with 34,455 additions and 1 deletion.
15 changes: 15 additions & 0 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
name: CI
on: pull_request

jobs:
tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions/setup-node@v1
with:
node-version: "16.x"
registry-url: "https://registry.npmjs.org/"

- run: npm build
- run: npm test
23 changes: 23 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Deploy merged versions
on:
push:
branches: [main]

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v1
- uses: actions/setup-node@v1
with:
node-version: "16.x"
registry-url: "https://registry.npmjs.org/"

- run: npm build
- run: npm test

- name: Deploy npm Packages
run: npx pleb publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_PUBLISH_TOKEN }}
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
node_modules
packages/.cache
packages/*/index.d.ts
*.log
7 changes: 7 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"semi": false,
"singleQuote": false,
"printWidth": 120,
"arrowParens": "avoid"
}

2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2021 Shiki
Copyright (c) 2021 Orta Therox, Microsoft and Shiki Contributors

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
14 changes: 14 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,16 @@
# twoslash
You take some Shiki, add a hint of TypeScript compiler, and 🎉 incredible code samples


### This Repo

This repo uses **npm workspaces - you need `[email protected]` or above**

```sh
git clone https://github.com/shiki/twoslash
cd twoslash

npm i
npm build
npm test
```
6 changes: 6 additions & 0 deletions jest.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
module.exports = {
testEnvironment: 'node',
"transform": {
"^.+\\.tsx?$": "esbuild-jest"
}
};
Loading

0 comments on commit b565354

Please sign in to comment.