discordbot_codehighlight's People
discordbot_codehighlight's Issues
tsのターゲットをes2020にする
es5が指定されているが、node v16↑でしか動かないのでes5である必要がない(v16はes2021までサポートされている ref. https://node.green/#ES2021 )
es5にすると互換性のために冗長なコードが生成される
リアクションがたくさんついた投稿を一覧で表示したい
/list
みたいな感じで、リアクションがたくさんついた投稿を一覧で見れるようにしてほしい
生成されたファイルがgitで管理されている
src/index.js
はtscで生成されるファイル
再現可能であるためgit管理は不要
すべてのコードスニペットが `js` で投稿されてしまう
�どんなファイルも js のシンタックスハイライトがされてしまう実装になっているようです。
拡張子をもとにシンタックスハイライトさせるようにしてほしいです
対象のchannelをコードで決め打ちしたくない
ビルドコマンド、実行コマンドをnpm scriptsに入れたい
npm run build
や npm start
でビルド、起動できると便利そう
環境構築が自身の作業ログになっている
コントリビューターないしユーザはpackage-lock.jsonがあれば npm install
で再現可能であるため冗長
node_modulesがgitで管理されている
node_modulesはpackages-lock.jsonがあれば再現できるので.gitignoreに入れたほうがよいです。
dotenvはソースコードに埋めたくない
ref. https://blog.leko.jp/post/you-might-not-need-dotenv-in-source/
WHAT
dotenvをdevDependenciesにした上で、起動コマンドに -r dotenv/config
オプションを追加する
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.