Skip to content

Commit

Permalink
Merge pull request #176 from ezpaarse-project:feature/upgrade-deps
Browse files Browse the repository at this point in the history
Feature/upgrade deps
  • Loading branch information
oxypomme authored Aug 30, 2024
2 parents 86b9d92 + 578a0d5 commit 72aa7ba
Show file tree
Hide file tree
Showing 19 changed files with 11,622 additions and 19,434 deletions.
11 changes: 11 additions & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#!/bin/sh
# Ensure all javascript files staged for commit pass standard code style

JSFILES=`git diff --name-only --cached --diff-filter=ACM | grep '\.js$' | sed 's| |\\ |g'`

if [ -n "$JSFILES" ]; then
echo "$JSFILES" | xargs ./node_modules/.bin/eslint
if [ $? -ne 0 ]; then exit 1; fi
fi

exit 0
3 changes: 0 additions & 3 deletions bin/platform-init

This file was deleted.

13 changes: 5 additions & 8 deletions client/.eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ module.exports = {
// // allow debugger during development
// 'no-debugger': process.env.NODE_ENV === 'production' ? 2 : 0,
'comma-dangle': ['error', 'never'],
'no-param-reassign': ['error', { 'props': false }],
'no-param-reassign': ['error', { props: false }],
'space-before-function-paren': ['error', 'always'],
'no-warning-comments': 1,
'prefer-const': 2,
Expand All @@ -33,16 +33,13 @@ module.exports = {
Property: true
}
}],
'no-unused-vars': ['error', { 'args': 'after-used' }],
'no-unused-vars': ['error', { args: 'after-used' }],
'dot-notation': 0,
'import/no-unresolved': 0,
'vue/max-attributes-per-line': [1, {
'singleline': 4,
'multiline': {
'max': 1,
'allowFirstLine': false
}
singleline: 4,
multiline: 1
}]
},
globals: {}
}
};
11 changes: 0 additions & 11 deletions doc/src/development/tools.md
Original file line number Diff line number Diff line change
@@ -1,16 +1,5 @@
# Ecosystem


## platform-init
This Command Line Interactive (CLI) utility creates the structure for a platform's parser. It asks a series of questions and generates the repository structure for the parser with a manifest.json file, a parser's skeleton and an empty test file. The command is interactive and doesn't take any parameter.

Example:
```bash
cd ezpaarse/
. ./bin/env
platform-init
```

## pkb-cleaner

Detects and deletes duplicates in the knowledge bases.
Expand Down
6 changes: 5 additions & 1 deletion lib/bin/checkconfig.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,14 @@

const fs = require('fs-extra');
const { execSync } = require('child_process');
const chalk = require('chalk');
const axios = require('axios');
const os = require('os');
const mongo = require('../mongo.js');
const config = require('../config.js');
const appname = require('../../package.json').name;

let chalk;

let success = true;

function successMessage(msg) {
Expand Down Expand Up @@ -168,6 +169,9 @@ exports.checkConfig = async function () {
.describe('mongodb', 'only check mongoDB connection');
const argv = yargs.argv;

// chalk>=5 does not support CommonJS
chalk = (await import('chalk')).default;

// show usage if --help option is used
if (argv.help) {
yargs.showHelp();
Expand Down
3 changes: 1 addition & 2 deletions lib/bin/ecbulkmaker.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@

var fs = require('fs-extra');
var path = require('path');
var mkdirp = require('mkdirp').mkdirp;
var ecmaker = require('../ecmake.js');

var logReg = /\.(log(?:\.gz)?|gz)$/;
Expand Down Expand Up @@ -170,7 +169,7 @@ exports.EcBulkMaker = function () {

if (argv.verbose) { console.log('[info] Processing %s', file); }

mkdirp(resDir, function (err) {
fs.ensureDir(resDir, function (err) {
if (err) {
errorDetected = true;
console.error('[Error] Could not create %s', resDir);
Expand Down
279 changes: 0 additions & 279 deletions lib/bin/platform-init.js

This file was deleted.

Loading

0 comments on commit 72aa7ba

Please sign in to comment.