Skip to content

Commit

Permalink
Merge branch 'master' of github.com:pustovitDmytro/npm-boilerplate
Browse files Browse the repository at this point in the history
  • Loading branch information
pustovitDmytro committed Jun 14, 2021
2 parents f07fb58 + ddb100a commit fee661f
Show file tree
Hide file tree
Showing 13 changed files with 16,251 additions and 3,250 deletions.
26 changes: 25 additions & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,16 @@ aliases:
command: |
echo 'export DANGER_GITHUB_API_TOKEN=$(echo Z2hwXzFldFVxODNZTUhCa0ZQUjk0WVV1blFXZTFCVmkzajRSOEpxRQo= | base64 --decode)' >> $BASH_ENV
source $BASH_ENV
- &fossa-install
name: Install fossa
command: |
curl -H 'Cache-Control: no-cache' https://raw.githubusercontent.com/fossas/fossa-cli/master/install.sh | bash
- &fossa-analize
name: Send package to fossa
command: fossa analyze
- &fossa-test
name: Check fossa results
command: fossa test
- &danger-pr
name: Run danger
command: npx danger ci -d .dangerfile.js
Expand Down Expand Up @@ -62,10 +72,12 @@ jobs:
install:
<<: *defaults
steps:
- run: *fossa-install
- checkout
- run: *install
- run: *security
- run: *danger-pr
- run: *fossa-analize
- save_cache: *cache-modules
test-coverage:
<<: *defaults
Expand All @@ -79,6 +91,14 @@ jobs:
- store_artifacts:
path: reports
- run: *coveralls
test-fossa:
<<: *defaults
steps:
- run: *fossa-install
- checkout
- restore_cache:
<<: *cache-defaults
- run: *fossa-test
test-lint:
<<: *defaults
steps:
Expand Down Expand Up @@ -119,7 +139,7 @@ workflows:
main:
jobs:
- install:
context: pr
context: branches
- test-package:
requires:
- install
Expand All @@ -132,6 +152,10 @@ workflows:
- test-coverage:
requires:
- install
- test-fossa:
context: branches
requires:
- install
- deploy:
context: npm-packages
requires:
Expand Down
11 changes: 11 additions & 0 deletions .fossa.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
version: 2
cli:
server: https://app.fossa.com
fetcher: custom
project: eslint-plugin-censor
analyze:
modules:
- name: .
type: npm
target: .
path: .
15 changes: 0 additions & 15 deletions .mocharc.bundle.json

This file was deleted.

5 changes: 5 additions & 0 deletions .package-tester.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"dir": "tmp/package-tests",
"modules": [ "eslint" ],
"copyDefaultFiles": true
}
3 changes: 3 additions & 0 deletions .renovaterc
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,9 @@
"enabled": true
},

"stabilityDays": 3,
"prCreation": "not-pending",

"packageRules": [
{
"matchDepTypes": ["devDependencies"],
Expand Down
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ The plugin will prevent you from using swear pejoratives and abuse words.
[![Coverage Status][badge-coverage]][url-coverage]

[![Commit activity][commit-activity-badge]][github]
[![FOSSA][fossa-badge]][fossa-url]
[![License][badge-lic]][github]

## Table of Contents
Expand Down Expand Up @@ -125,4 +126,5 @@ Make the changes to the code and tests. Then commit to your branch. Be sure to f
[appveyor-badge]: https://ci.appveyor.com/api/projects/status/acj8x9m0fh5k4vfo/branch/master?svg=true
[appveyor-url]: https://ci.appveyor.com/project/pustovitDmytro/eslint-plugin-censor/branch/master


[fossa-badge]: https://app.fossa.com/api/projects/custom%2B24828%2Feslint-plugin-censor.svg?type=shield
[fossa-url]: https://app.fossa.com/projects/custom%2B24828%2Feslint-plugin-censor?ref=badge_shield
10 changes: 5 additions & 5 deletions appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ environment:
job_depends_on: Build
nodejs_version: 16

# MacOS
# # MacOS

- job_name: macOS Node.js v.10
job_group: Tests
Expand All @@ -59,7 +59,7 @@ environment:
job_depends_on: Build
nodejs_version: 16

# Windows
# # Windows

- job_name: Windows Node.js v.10
job_group: Tests
Expand Down Expand Up @@ -105,7 +105,7 @@ for:
- sh: nvm use $nodejs_version
- sh: npm config get user-agent
- npm install
- ./bin/pack-tests.sh
- npx npt pack -c .package-tester.json
-
matrix:
only:
Expand Down Expand Up @@ -142,5 +142,5 @@ for:
- cd package-tests
- npm i
test_script:
- sh: npm run test
- cmd: npm run test-win
- npm run test

106 changes: 0 additions & 106 deletions bin/pack-tests.js

This file was deleted.

7 changes: 0 additions & 7 deletions bin/pack-tests.sh

This file was deleted.

7 changes: 0 additions & 7 deletions bin/pack.sh

This file was deleted.

12 changes: 0 additions & 12 deletions bin/test-package.sh

This file was deleted.

Loading

0 comments on commit fee661f

Please sign in to comment.