Skip to content

Commit f7632ce

Browse files
committed
chore: adds prettier + vscode config and github ci actions
1 parent 3aab215 commit f7632ce

File tree

15 files changed

+387
-365
lines changed

15 files changed

+387
-365
lines changed

.github/workflows/ci.yaml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
branches:
9+
- main
10+
11+
jobs:
12+
quality-checks:
13+
name: Quality Checks
14+
runs-on: ubuntu-latest
15+
steps:
16+
- name: Checkout
17+
uses: actions/checkout@v4
18+
- name: Setup pnpm
19+
uses: pnpm/action-setup@v4
20+
with:
21+
version: 10.2.0
22+
- name: Install Dependencies
23+
run: pnpm install --frozen-lockfile
24+
- name: Type Check
25+
run: pnpm typecheck
26+
- name: Format Check
27+
run: pnpm format

.nvmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
22.11.0

.prettierignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
coverage
2+
dist
3+
node_modules
4+
pnpm-lock.yaml

.prettierrc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"printWidth": 100
3+
}

.vscode/settings.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"editor.codeActionsOnSave": {
3+
"source.fixAll": "always"
4+
},
5+
"editor.formatOnSave": true,
6+
"editor.rulers": [100],
7+
"editor.tabSize": 2,
8+
"files.autoSave": "afterDelay",
9+
"files.insertFinalNewline": true
10+
}

gulpfile.js

Lines changed: 10 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,14 @@
1-
import gulp from 'gulp';
2-
import replace from 'gulp-replace';
1+
import gulp from "gulp";
2+
import replace from "gulp-replace";
33

44
const copyFromModuleSource = () => {
5-
return gulp.src(
6-
[
7-
"**/*",
8-
'!**/__tests__*/**/*',
9-
'!**/*Test*'
10-
], {cwd: '../../grid-community-modules/solid/src'})
11-
.pipe(replace('@ag-grid-community/core', 'ag-grid-community'))
12-
.pipe(gulp.dest("./src"), {cwd: '.'});
5+
return gulp
6+
.src(["**/*", "!**/__tests__*/**/*", "!**/*Test*"], {
7+
cwd: "../../grid-community-modules/solid/src",
8+
})
9+
.pipe(replace("@ag-grid-community/core", "ag-grid-community"))
10+
.pipe(gulp.dest("./src"), { cwd: "." });
1311
};
1412

15-
gulp.task('copy-from-module-source', copyFromModuleSource);
16-
gulp.task('default', gulp.series('copy-from-module-source'));
13+
gulp.task("copy-from-module-source", copyFromModuleSource);
14+
gulp.task("default", gulp.series("copy-from-module-source"));

package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,8 @@
8686
"clean": "rimraf bundles dist",
8787
"build": "tsup",
8888
"build-prod": "npm run build",
89-
"format": "prettier -w \"src/**/*.{js,ts,json,css,tsx,jsx}\" \"dev/**/*.{js,ts,json,css,tsx,jsx}\"",
89+
"format": "prettier . --check",
90+
"format:fix": "prettier . --write",
9091
"update-deps": "taze -w && pnpm i",
9192
"typecheck": "tsc --noEmit"
9293
},
@@ -111,7 +112,7 @@
111112
"keywords": [
112113
"solid"
113114
],
114-
"packageManager": "pnpm@9.0.0",
115+
"packageManager": "pnpm@10.2.0",
115116
"browser": {
116117
"./dist/server.js": "./dist/index.js",
117118
"./dist/server.cjs": "./dist/index.cjs"

0 commit comments

Comments
 (0)