Skip to content

Commit

Permalink
Merge 77d0c25 into fe67410
Browse files Browse the repository at this point in the history
  • Loading branch information
mrodrig authored Mar 18, 2023
2 parents fe67410 + 77d0c25 commit 0f326d4
Show file tree
Hide file tree
Showing 17 changed files with 1,861 additions and 817 deletions.
1 change: 0 additions & 1 deletion .coveralls.yml

This file was deleted.

126 changes: 0 additions & 126 deletions .eslintrc

This file was deleted.

52 changes: 52 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
module.exports = {
root: true,
env: {
es2022: true,
node: true,
mocha: true,
},
parserOptions: {
ecmaVersion: 13,
project: ['tsconfig.json'],
sourceType: 'module',
tsconfigRootDir: __dirname,
},
extends: [
'eslint:recommended',
'plugin:import/errors',
'plugin:import/warnings',
'plugin:import/typescript',
'plugin:@typescript-eslint/recommended',
],
parser: '@typescript-eslint/parser',
ignorePatterns: [
'/lib/**/*', // Ignore built files.
],
plugins: [
'@typescript-eslint',
'import',
],
rules: {
// Basic ES6
indent: [
'error', 4, { // use 4 spaces for indents
'SwitchCase': 1, // indent case within switch
}
],
'linebreak-style': 0, // mixed environment let git config enforce line endings
quotes: ['error', 'single'],
semi: ['error', 'always'],
'no-var': 'error',
'no-console': 0, // allow use of console.log,
'arrow-body-style': [0, 'always'],
'max-len': 0,
'camelcase': 1,
'import/no-unresolved': [
'error', {
// https://github.com/firebase/firebase-admin-node/discussions/1359
ignore: ['^firebase-admin/.+'],
},
],
'@typescript-eslint/consistent-type-definitions': 'warn'
},
};
43 changes: 43 additions & 0 deletions .github/workflows/automated-tests-workflow.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: Automated Node Version Tests

on: [push, pull_request]

jobs:
test:
runs-on: ${{ matrix.os }}

strategy:
matrix:
os: [ubuntu-latest]
node: [16, 18, 19]

steps:
- uses: actions/checkout@v3
- name: Use Node ${{ matrix.node }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node }}
- name: Install NPM Modules
run: npm ci
- name: Lint
run: npm run lint
- name: Test
run: |
npm run compile
npm run coverage
- name: Coveralls Parallel
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.github_token }}
flag-name: node-${{ runner.os }}-${{ matrix.node }}
parallel: true

coveralls-finished:
needs: test
runs-on: ubuntu-latest
steps:
- name: Coveralls Finished
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.github_token }}
parallel-finished: true
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -32,3 +32,6 @@ node_modules
.idea
.nyc_output
.nyc_output/*

# Built JavaScript files
lib
28 changes: 21 additions & 7 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -1,13 +1,27 @@
test/
.git*
# Debug Logs
npm-debug.log
.travis.yml
.eslintrc

# Uncompiled Source Files
src
test

# Node Modules
node_modules/
node_modules/*
coverage

# Configuration Files
.eslintrc*
tsconfig*

# Test/Coverage Files
coverage/
coverage/*
.nycrc
.nyc_output
.nyc_output/*
_config.yml
lib/
.coveralls.yml
lib/test

# Github Configuration Files
_config.yml
.git*
16 changes: 16 additions & 0 deletions .nycrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"check-coverage": true,
"all": true,
"include": [
"src/**/!(*.test.*).[tj]s?(x)"
],
"exclude": [
"src/test/**/*.*"
],
"reporter": [
"lcov",
"text-summary",
"text"
],
"report-dir": "coverage"
}
20 changes: 0 additions & 20 deletions .travis.yml

This file was deleted.

10 changes: 4 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,11 @@
# A Document Path Library for Node

[![Dependencies](https://img.shields.io/david/mrodrig/doc-path.svg)](https://www.npmjs.org/package/doc-path)
[![Downloads](http://img.shields.io/npm/dm/doc-path.svg)](https://www.npmjs.org/package/doc-path)
[![NPM version](https://img.shields.io/npm/v/doc-path.svg)](https://www.npmjs.org/package/doc-path)
[![Minzipped Size](https://flat.badgen.net/bundlephobia/minzip/doc-path)](https://bundlephobia.com/result?p=doc-path)

[![Build Status](https://travis-ci.org/mrodrig/doc-path.svg?branch=master)](https://travis-ci.org/mrodrig/doc-path)
[![Downloads](https://img.shields.io/npm/dm/doc-path)](https://www.npmjs.org/package/doc-path)
[![Minzipped Size](https://img.shields.io/bundlephobia/minzip/doc-path)](https://bundlephobia.com/result?p=doc-path)
[![Build Status](https://img.shields.io/github/actions/workflow/status/mrodrig/doc-path/automated-tests-workflow.yml)](https://github.com/mrodrig/doc-path/actions/workflows/automated-tests-workflow.yml)
[![Coverage Status](https://coveralls.io/repos/github/mrodrig/doc-path/badge.svg?branch=stable)](https://coveralls.io/github/mrodrig/doc-path?branch=stable)
[![Maintainability](https://api.codeclimate.com/v1/badges/8d357f67aa5aaf8d727e/maintainability)](https://codeclimate.com/github/mrodrig/doc-path/maintainability)
[![Typings](https://img.shields.io/npm/types/doc-path)](https://www.npmjs.org/package/doc-path)

This module will take paths in documents which can include nested paths specified by '.'s and can evaluate the path
to a value, or can set the value at that path depending on the function called.
Expand Down
6 changes: 0 additions & 6 deletions dist/path.js

This file was deleted.

Loading

0 comments on commit 0f326d4

Please sign in to comment.