Skip to content

Commit

Permalink
Merge pull request #78 from pbredenberg/pb/chore-add-standardization
Browse files Browse the repository at this point in the history
chore: add standardization and configuration, upgrade Node to 12.22.1 and NPM to 6.14.12

closes #75, #77
  • Loading branch information
onebytegone committed Mar 25, 2022
2 parents 975aff5 + 44b0377 commit efff60b
Show file tree
Hide file tree
Showing 10 changed files with 7,597 additions and 2,016 deletions.
1 change: 1 addition & 0 deletions .editorconfig
3 changes: 3 additions & 0 deletions .markdownlint.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"extends": "./node_modules/@silvermine/standardization/.markdownlint.json"
}
5 changes: 0 additions & 5 deletions .mocha.opts

This file was deleted.

6 changes: 6 additions & 0 deletions .mocharc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"bail": true,
"full-trace": true,
"require": [ "source-map-support/register", "./tests/setup/before.ts" ],
"spec": [ "tests/**/*.test.ts" ]
}
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
12.14.0
12.22.1
5 changes: 2 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,10 @@ language: node_js
node_js:
- "node" # Latest node version
- "lts/*" # Latest LTS version
- "14"
- "12"
- "10"
- "8"

before_install: npm i -g npm@6.13.4
before_install: npm i -g npm@6.14.12

script:
- node --version
Expand Down
10 changes: 10 additions & 0 deletions Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,15 @@ module.exports = (grunt) => {
'build-ts-outputs': [ 'build-types', 'build-esm', 'build-commonjs' ],
},

markdownlint: {
all: {
src: [ './README.md' ],
options: {
config: grunt.file.readJSON('.markdownlint.json'),
},
},
},

watch: {
ts: {
files: [ config.ts.src ],
Expand All @@ -90,6 +99,7 @@ module.exports = (grunt) => {
grunt.loadNpmTasks('grunt-contrib-clean');
grunt.loadNpmTasks('grunt-concurrent');
grunt.loadNpmTasks('grunt-contrib-watch');
grunt.loadNpmTasks('grunt-markdownlint');

grunt.registerTask('standards', [ 'eslint', 'exec:standards' ]);
grunt.registerTask('default', [ 'standards' ]);
Expand Down
2 changes: 1 addition & 1 deletion commitlint.config.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
'use strict';

module.exports = { extends: [ '@silvermine/eslint-config/commitlint' ] };
module.exports = { extends: [ '@silvermine/standardization/commitlint.js' ] };

0 comments on commit efff60b

Please sign in to comment.