It is a script to convert a TypeScript library project to a Node.js Dual CommonJS/ES module packages.
This script aim to convert following project:
- Use TypeScript
- Use ts-node
- Use mocha
| # https://github.com/ajeetdsouza/zoxide | |
| export _ZO_FZF_OPTS=' | |
| --no-sort --height 75% --reverse --margin=0,1 --exit-0 --select-1 | |
| --bind ctrl-f:page-down,ctrl-b:page-up | |
| --bind pgdn:preview-page-down,pgup:preview-page-up | |
| --prompt="❯ " | |
| --color bg+:#262626,fg+:#dadada,hl:#f09479,hl+:#f09479 | |
| --color border:#303030,info:#cfcfb0,header:#80a0ff,spinner:#36c692 | |
| --color prompt:#87afff,pointer:#ff5189,marker:#f09479 | |
| --preview "([[ -e '{2..}/README.md' ]] && bat --color=always --style=numbers --line-range=:50 '{2..}/README.md') || exa --color=always --group-directories-first --oneline {2..}" |
| // ==UserScript== | |
| // @name GitHub Issue: Open VSCode | |
| // @namespace info.efcl.open-vscode- | |
| // @match https://github.com/*/*/issues/* | |
| // @match https://github.com/*/*/pull/* | |
| // @grant GM_download | |
| // @grant GM_openInTab | |
| // @grant GM_registerMenuCommand | |
| // @version 1.0 | |
| // @author azu |
It is a script to convert a TypeScript library project to a Node.js Dual CommonJS/ES module packages.
This script aim to convert following project:
| import fetch from "node-fetch"; // Node.js 18 just remove line | |
| const CIRCLECI_TOKEN = process.env.CIRCLECI_TOKEN | |
| const ORG_NAME = process.env.ORG_NAME | |
| const fetchProjectList = (orgName = ORG_NAME) => { | |
| return fetch(`https://circleci.com/api/v2/insights/gh/${orgName}/summary`, { | |
| headers: { "Circle-Token": `${CIRCLECI_TOKEN}` } | |
| }).then(res => res.json()).then(json => json.all_projects); | |
| }; | |
| const fetchProjectEnv = (orgName, project) => { |
| // MIT LICENSE ©️ azu | |
| // Usage: | |
| // 1. Create `MERGE_REPLY_LABEL` | |
| // 2. Upload GAS | |
| // 3. Update CONFIG | |
| // 4. Execute `createTimeTrigger` function on GAS | |
| // === CONFIG ==== | |
| // Interval hours | |
| const FETCH_INTERVAL_HOURS = 12; | |
| const YOUR_MAIL_ADDRESS = "{yourmail}@gmail.com" |
| import { Client } from "@notionhq/client" | |
| import dayjs from "dayjs" | |
| const notion = new Client({ | |
| auth: process.env.NOTION_API_TOKEN, | |
| }); | |
| /** | |
| * | |
| * @param {title} title |
| *://ranking.goo.ne.jp/* | |
| *://my-best.com/* | |
| *://sakidori.co/* | |
| *://wowma.jp/* | |
| *://osusume.mynavi.jp/* | |
| *://pc.moppy.jp/* | |
| *://heim.jp/* | |
| *://www.esquire.com/* | |
| *://epark.jp/* | |
| *://iecolle.com/* |
| // ==UserScript== | |
| // @name Visual Textarea | |
| // @namespace textarea | |
| // @include http://* | |
| // @include https://* | |
| // @grant none | |
| // @version 1.0 | |
| // @author - | |
| // @description 2022/11/23 14:19:51 | |
| // ==/UserScript== |
| id: 2022.08.23-ubuntu-18.04 | |
| title: "CI: update ubuntu-18.04 to ubuntu-latest" | |
| adapter: | |
| type: github | |
| search_type: code | |
| search_query: org:{{user}} path:/.github/workflows | |
| hooks: | |
| should_migrate: | |
| - ls .github/workflows | |
| - find .github/workflows -type f -name "*.y*ml" -exec grep "ubuntu-18.04" {} +; |
2022/3/12 日本伴走型支援協会 設立記念シンポジウム - YouTube