Skip to content

chore: adds prettier + vscode config and github ci actions #16

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 27 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: CI

on:
push:
branches:
- main
pull_request:
branches:
- main

jobs:
quality-checks:
name: Quality Checks
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup pnpm
uses: pnpm/action-setup@v4
with:
version: 10.2.0
- name: Install Dependencies
run: pnpm install --frozen-lockfile
- name: Type Check
run: pnpm typecheck
- name: Format Check
run: pnpm format
1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
22.11.0
4 changes: 4 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
coverage
dist
node_modules
pnpm-lock.yaml
3 changes: 3 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"printWidth": 100
}
10 changes: 10 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"editor.codeActionsOnSave": {
"source.fixAll": "always"
},
"editor.formatOnSave": true,
"editor.rulers": [100],
"editor.tabSize": 2,
"files.autoSave": "afterDelay",
"files.insertFinalNewline": true
}
22 changes: 10 additions & 12 deletions gulpfile.js
Original file line number Diff line number Diff line change
@@ -1,16 +1,14 @@
import gulp from 'gulp';
import replace from 'gulp-replace';
import gulp from "gulp";
import replace from "gulp-replace";

const copyFromModuleSource = () => {
return gulp.src(
[
"**/*",
'!**/__tests__*/**/*',
'!**/*Test*'
], {cwd: '../../grid-community-modules/solid/src'})
.pipe(replace('@ag-grid-community/core', 'ag-grid-community'))
.pipe(gulp.dest("./src"), {cwd: '.'});
return gulp
.src(["**/*", "!**/__tests__*/**/*", "!**/*Test*"], {
cwd: "../../grid-community-modules/solid/src",
})
.pipe(replace("@ag-grid-community/core", "ag-grid-community"))
.pipe(gulp.dest("./src"), { cwd: "." });
};

gulp.task('copy-from-module-source', copyFromModuleSource);
gulp.task('default', gulp.series('copy-from-module-source'));
gulp.task("copy-from-module-source", copyFromModuleSource);
gulp.task("default", gulp.series("copy-from-module-source"));
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,8 @@
"clean": "rimraf bundles dist",
"build": "tsup",
"build-prod": "npm run build",
"format": "prettier -w \"src/**/*.{js,ts,json,css,tsx,jsx}\" \"dev/**/*.{js,ts,json,css,tsx,jsx}\"",
"format": "prettier . --check",
"format:fix": "prettier . --write",
"update-deps": "taze -w && pnpm i",
"typecheck": "tsc --noEmit"
},
Expand All @@ -111,7 +112,7 @@
"keywords": [
"solid"
],
"packageManager": "pnpm@9.0.0",
"packageManager": "pnpm@10.2.0",
"browser": {
"./dist/server.js": "./dist/index.js",
"./dist/server.cjs": "./dist/index.cjs"
Expand Down
Loading