Skip to content

Commit

Permalink
chore: use vite build system
Browse files Browse the repository at this point in the history
  • Loading branch information
smmoosavi committed Jul 12, 2024
1 parent c00ad56 commit 5d62671
Show file tree
Hide file tree
Showing 41 changed files with 9,018 additions and 8,148 deletions.
8 changes: 8 additions & 0 deletions .changeset/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# Changesets

Hello and welcome! This folder has been automatically generated by `@changesets/cli`, a build tool that works
with multi-package repos, or single-package repos to help you version and publish your code. You can
find the full documentation for it [in our repository](https://github.com/changesets/changesets)

We have a quick list of common questions to get you started engaging with this project in
[our documentation](https://github.com/changesets/changesets/blob/main/docs/common-questions.md)
11 changes: 11 additions & 0 deletions .changeset/config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"$schema": "https://unpkg.com/@changesets/[email protected]/schema.json",
"changelog": "@changesets/cli/changelog",
"commit": false,
"fixed": [],
"linked": [],
"access": "public",
"baseBranch": "main",
"updateInternalDependencies": "patch",
"ignore": []
}
5 changes: 5 additions & 0 deletions .changeset/vite.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@ctablex/core': minor
---

use vite for build
3 changes: 0 additions & 3 deletions .eslintrc

This file was deleted.

3 changes: 3 additions & 0 deletions .eslintrc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
extends:
- react-app
- react-app/jest
26 changes: 16 additions & 10 deletions .github/workflows/node-ci.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Node.js CI
name: CI

on: [push]

Expand All @@ -7,15 +7,21 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
with:
version: 9
- name: Use Node.js
uses: actions/setup-node@v1
uses: actions/setup-node@v4
with:
node-version: '12.x'
- run: yarn
- run: yarn lint
- run: yarn format:check
- run: yarn test --coverage --verbose
- run: yarn build
node-version: 20
cache: 'pnpm'
- run: pnpm install --frozen-lockfile
- run: pnpm run lint
- run: pnpm run format:check
- run: pnpm run build
- run: pnpm run test
- run: git diff --exit-code --name-only
- uses: codecov/codecov-action@v1
- uses: codecov/codecov-action@v4
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
18 changes: 11 additions & 7 deletions .github/workflows/node-publish.yml
Original file line number Diff line number Diff line change
@@ -1,18 +1,22 @@
name: Node.js Package
name: Publish
on:
release:
types: [created]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
# Setup .npmrc file to publish to npm
- uses: actions/setup-node@v2
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
with:
node-version: '12.x'
version: 9
- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version: 20
registry-url: 'https://registry.npmjs.org'
- run: yarn
- run: npm publish
cache: 'pnpm'
- run: pnpm install --frozen-lockfile
- run: pnpm publish --no-git-checks
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
13 changes: 7 additions & 6 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
node_modules
/dist/
/lib/
/es/
/bin/
/coverage/
/.cache/
.DS_Store
dist
dist-ssr
*.local
.cache
coverage
/tsdoc-metadata.json
.pnpm-debug.log
1 change: 0 additions & 1 deletion .husky/.gitignore

This file was deleted.

5 changes: 1 addition & 4 deletions .husky/commit-msg
Original file line number Diff line number Diff line change
@@ -1,4 +1 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

yarn commitlint --edit "$1"
pnpm exec commitlint --edit "$1"
5 changes: 1 addition & 4 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1,4 +1 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

yarn lint-staged
pnpm run pre-commit
4 changes: 2 additions & 2 deletions .lintstagedrc.yml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
'**/*.{js,jsx,ts,tsx,json,css,scss,md}':
- 'libton-script format'
'**/*.{js,jsx,ts,tsx,json,yml,css,scss,md}':
- 'prettier --write'
9 changes: 3 additions & 6 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
/dist/
/lib/
/es/
/bin/
/coverage/
/.cache/
dist/
.cache/
coverage/
/tsdoc-metadata.json
4 changes: 0 additions & 4 deletions .prettierrc

This file was deleted.

2 changes: 2 additions & 0 deletions .prettierrc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
trailingComma: 'all'
singleQuote: true
14 changes: 0 additions & 14 deletions .versionrc.json

This file was deleted.

2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

All notable changes to this project will be documented in this file.

<!-- new release -->

### [0.4.0](https://github.com/ctablex/core/compare/v0.3.0...v0.4.0) (2022-10-16)

### Highlights
Expand Down
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ Featureable, flexible and powerful react table. `ctablex` will not hold you back

- [Install](#install)
- [Usage](#usage)
- [The `Table` component](#the-table-component)
- [The `Columns` component](#the-columns-component)
- [Changelog](#changelog)
- [License](#license)

<!-- tocstop -->

Expand Down
37 changes: 37 additions & 0 deletions api-extractor.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
{
"$schema": "https://developer.microsoft.com/json-schemas/api-extractor/v7/api-extractor.schema.json",

"mainEntryPointFilePath": "<projectFolder>/.cache/dts/index.d.ts",

"apiReport": {
"enabled": false
},
"docModel": {
"enabled": false
},

"dtsRollup": {
"enabled": true,
"untrimmedFilePath": "<projectFolder>/index.d.ts"
},

"messages": {
"compilerMessageReporting": {
"default": {
"logLevel": "warning"
}
},

"extractorMessageReporting": {
"default": {
"logLevel": "warning"
}
},

"tsdocMessageReporting": {
"default": {
"logLevel": "warning"
}
}
}
}
Loading

0 comments on commit 5d62671

Please sign in to comment.