Skip to content

Commit

Permalink
upgrade project
Browse files Browse the repository at this point in the history
  • Loading branch information
umutozel committed Feb 15, 2025
1 parent 92a9e7e commit b51db2c
Show file tree
Hide file tree
Showing 7 changed files with 327 additions and 899 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: CI/CD Pipeline

on:
push:
branches:
- main
tags:
- 'v*'

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3

- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: '20'

- name: Install dependencies
run: npm install

- name: Lint code
run: npm run lint

- name: Upload coverage to Codecov
run: npm run codecov
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}

- name: Publish to npm
if: startsWith(github.ref, 'refs/tags/v')
run: npm publish
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
18 changes: 0 additions & 18 deletions .travis.yml

This file was deleted.

15 changes: 12 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,17 @@
# Jinqu - Querying infrastructure for JavaScript, with Linq style

[![Build Status](https://travis-ci.org/jin-qu/jinqu-fetch.svg?branch=master)](https://travis-ci.org/jin-qu/jinqu-fetch)
[![npm version](https://badge.fury.io/js/jinqu-fetch.svg)](https://badge.fury.io/js/jinqu-fetch)
<a href="https://snyk.io/test/npm/jinqu-fetch"><img src="https://snyk.io/test/npm/jinqu-fetch/badge.svg" alt="Known Vulnerabilities" data-canonical-src="https://snyk.io/test/npm/jinqu-fetch" style="max-width:100%;"></a>
[![Build and Test](https://github.com/jin-qu/jinqu-axios/actions/workflows/build.yml/badge.svg)](https://github.com/jin-qu/jinqu-axios/actions/workflows/build.yml)
[![codecov](https://codecov.io/gh/jin-qu/jinqu-axios/graph/badge.svg?token=3WUQ44WFaI)](https://codecov.io/gh/jin-qu/jinqu-axios)
[![Codacy Badge](https://app.codacy.com/project/badge/Grade/6b5e54e8758140bb8ecb481c53c50a9f)](https://app.codacy.com/gh/jin-qu/jinqu-fetch/dashboard?utm_source=gh&utm_medium=referral&utm_content=&utm_campaign=Badge_grade)
<a href="https://snyk.io/test/npm/jinqu-axios"><img src="https://snyk.io/test/npm/jinqu-axios/badge.svg" alt="Known Vulnerabilities" data-canonical-src="https://snyk.io/test/npm/jinqu-axios" style="max-width:100%;"></a>

[![npm version](https://img.shields.io/npm/v/jinqu-axios)](https://www.npmjs.com/package/jinqu-axios)
[![npm downloads](https://img.shields.io/npm/dm/jinqu-axios.svg)](https://www.npmjs.com/package/jinqu-axios)

[![GitHub issues](https://img.shields.io/github/issues/jin-qu/jinqu-axios.svg)](https://github.com/jin-qu/jinqu-axios/issues)
[![GitHub license](https://img.shields.io/badge/license-MIT-blue.svg)](https://raw.githubusercontent.com/jin-qu/jinqu-axios/main/LICENSE)
[![GitHub stars](https://img.shields.io/github/stars/jin-qu/jinqu-axios.svg?style=social&label=Star)](https://github.com/jin-qu/jinqu-axios)
[![GitHub forks](https://img.shields.io/github/forks/jin-qu/jinqu-axios.svg?style=social&label=Fork)](https://github.com/jin-qu/jinqu-axios)

Jinqu fetch Ajax provider.

Expand Down
21 changes: 3 additions & 18 deletions eslint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,22 +2,18 @@
const js = require('@eslint/js');
const ts = require('@typescript-eslint/eslint-plugin');
const tsParser = require('@typescript-eslint/parser');
const globals = require('globals');

module.exports = [
{
files: ['**/*.ts', '**/*.js'],
files: ['lib/**/*.ts'],
languageOptions: {
ecmaVersion: 'latest',
sourceType: 'commonjs',
parser: tsParser,
parserOptions: {
project: './tsconfig.json',
},
globals: {
...globals.browser,
...globals.node,
},
globals: {},
},
plugins: {
'@typescript-eslint': ts,
Expand All @@ -27,16 +23,5 @@ module.exports = [
...ts.configs.recommended.rules,
"@typescript-eslint/no-explicit-any": "off",
},
},
{
files: ['**/*.test.ts'],
languageOptions: {
globals: {
...globals.jest,
},
},
rules: {
'no-console': 'off',
},
},
}
];
Loading

0 comments on commit b51db2c

Please sign in to comment.