-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from codex-team/2.0
feat: 2.0
- Loading branch information
Showing
25 changed files
with
4,788 additions
and
4,910 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,3 +4,7 @@ tests/ | |
.git | ||
.github | ||
yarn.lock | ||
eslint.config.mjs | ||
vitest.config.ts | ||
vitest.workspace.ts | ||
*.test.ts |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
v22.1.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
nodeLinker: node-modules |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,38 @@ | ||
# typescript-lib-template | ||
# @codexteam/typescript-lib-template | ||
A quick start template for a new TypeScript library | ||
|
||
[![NPM version](https://img.shields.io/npm/v/@codexteam/typescript-lib-template?style=flat-square)](https://www.npmjs.com/package/@codexteam/typescript-lib-template) | ||
[![License](https://img.shields.io/npm/l/@codexteam/typescript-lib-template?style=flat-square)](https://www.npmjs.com/package/@codexteam/typescript-lib-template) | ||
|
||
## Features | ||
|
||
- 💄 Yarn 4 | ||
- 🛍️ Yarn Workspaces | ||
- 💎 ESLint 9 with [eslint-config-codex](http://github.com/codex-team/eslint-config/) | ||
- 🥃 Typescript 5 | ||
- 🥊 npx only-allow yarn | ||
- 🌶️ Tests with [Vitest](https://vitest.dev) | ||
- 🍀 GitHub Actions for test/lint/build/publish purposes | ||
|
||
## How to use | ||
1. Click [here](https://github.com/codex-team/typescript-lib-template/generate) and fill setting for new repository | ||
2. Change package name in `package.json` and other fields if necessary | ||
2. Update root package `package.json`, change main package name | ||
3. Update "core" package `package.json`: | ||
1. Change `name` | ||
2. Adjust `main`, `types`, `exports` | ||
5. Change name of `packages/core` to your main package name | ||
5. Go to `packages/utils` and adjust its name or remove the package if you don't need it | ||
3. Change NPM package scope from [workflow file](./.github/workflows/main.yml) or remove it | ||
4. Fill `NPM_TOKEN` and `CODEX_BOT_WEBHOOK` secrets in your repository or organization settings | ||
5. Start writing your new library! | ||
|
||
## Features | ||
|
||
- TypeScript support | ||
- ESlint support with [eslint-config-codex](http://github.com/codex-team/eslint-config/) | ||
- Unit testing with [Jest](http://jestjs.io) | ||
- GitHub Actions configuration for test/lint/build/publish purposes | ||
|
||
## About team | ||
# About CodeX | ||
|
||
We are CodeX and we build products for developers and makers. | ||
<img align="right" width="120" height="120" src="https://codex.so/public/app/img/codex-logo.svg" hspace="50"> | ||
|
||
Follow us on Twitter: [twitter.com/codex_team](https://twitter.com/codex_team) | ||
CodeX is a team of digital specialists around the world interested in building high-quality open source products on a global market. We are [open](https://codex.so/join) for young people who want to constantly improve their skills and grow professionally with experiments in cutting-edge technologies. | ||
|
||
Feel free to contact: <a href="mailto:team@codex.so?subject=Editor.js feedback">team@codex.so</a> | ||
| 🌐 | Join 👋 | Twitter | Instagram | | ||
| -- | -- | -- | -- | | ||
| [codex.so](https://codex.so) | [codex.so/join](https://codex.so/join) |[@codex_team](http://twitter.com/codex_team) | [@codex_team](http://instagram.com/codex_team/) | | ||
|
||
[codex.so](https://codex.so) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
import CodeX from 'eslint-config-codex'; | ||
import { plugin as TsPlugin, parser as TsParser } from 'typescript-eslint'; | ||
import path from 'path'; | ||
import { fileURLToPath } from 'url'; | ||
import EslintTestsConfig from './eslint.config.test.mjs'; | ||
|
||
const __filename = fileURLToPath(import.meta.url); | ||
const __dirname = path.dirname(__filename); | ||
|
||
export default [ | ||
...CodeX, | ||
...EslintTestsConfig, | ||
{ | ||
name: 'codex-lib-ts', | ||
ignores: [ | ||
// 'eslint.config.mjs', | ||
], | ||
plugins: { | ||
'@typescript-eslint': TsPlugin, | ||
}, | ||
|
||
/** | ||
* This are the options for typescript files | ||
*/ | ||
languageOptions: { | ||
parser: TsParser, | ||
parserOptions: { | ||
project: path.resolve(__dirname, 'tsconfig.json'), | ||
tsconfigRootDir: './', | ||
sourceType: 'module', | ||
}, | ||
}, | ||
|
||
rules: { | ||
}, | ||
}, | ||
]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
export default [ | ||
{ | ||
name: 'codex-lib-tests', | ||
files: [ | ||
'packages/**/*.test.ts', | ||
], | ||
rules: { | ||
'n/no-missing-import': 'off', | ||
}, | ||
}, | ||
]; |
Oops, something went wrong.