Skip to content

Commit

Permalink
fix(dep): upgrade vuln framework dep (#416)
Browse files Browse the repository at this point in the history
  • Loading branch information
bigopon authored Apr 1, 2022
1 parent 5a4e3d6 commit df5f730
Show file tree
Hide file tree
Showing 15 changed files with 3,239 additions and 4,600 deletions.
33 changes: 33 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
{
"root": true,
"parser": "@typescript-eslint/parser",
"extends": ["plugin:@typescript-eslint/recommended"],
"ignorePatterns": [
"node_modules",
"dist",
"build",
".vscode",
"*.config.js",
".webpack",
"_warmup",
"**/*.js"
],
"plugins": [],
"parserOptions": {
"ecmaVersion": 2019,
"sourceType": "module"
},
"rules": {
"@typescript-eslint/no-namespace": "off",
"@typescript-eslint/camelcase": "off",
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/explicit-function-return-type": "off",
"@typescript-eslint/no-empty-function": "off",
"@typescript-eslint/consistent-type-assertions": "off",
"@typescript-eslint/ban-ts-ignore": "off",
"@typescript-eslint/no-var-requires": "off",
"@typescript-eslint/explicit-module-boundary-types": "off",
"prefer-const": "off",
"@typescript-eslint/ban-types": "off"
}
}
13 changes: 13 additions & 0 deletions doc/MAINTAINER.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
## Workflow releasing a new version

1. Update: pull latest master with `git pull`
2. Cut release: Run `npm run cut-release {version-type}`. Example:

```shell
# with minor
npm run cut-release minor
```
3. Commit: `git add .` and then `git commit chore(release): prepare release vXXX` where `XXX` is the new version
4. Tag: `git tag -a XXX` where `XXX` is the version
5. Push to remote repo: `git push --follow-tags`
6. Publish: Run `npm publish` to release the new version
7 changes: 7 additions & 0 deletions doc/bower-version.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
// @ts-check
const path = require('path').resolve(__dirname, '../bower.json');
const npmVersion = require('../package.json').version;
const bowerContent = require('../bower.json');
bowerContent.version = npmVersion;

require('fs').writeFileSync(path, JSON.stringify(bowerContent, undefined, 2), { encoding: 'utf-8' });
4 changes: 4 additions & 0 deletions doc/cleanup.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
const path = require('path').resolve(__dirname, 'api.json');
const content = JSON.stringify(require('./api.json'));

require('fs').writeFileSync(path, content, { encoding: 'utf-8' });
3 changes: 2 additions & 1 deletion karma.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,10 @@ module.exports = function(config) {
webpack: {
mode: "development",
entry: 'test/setup.ts',
watch: false,
resolve: {
extensions: [".ts", ".js"],
modules: ["src", 'test', "node_modules"],
modules: ["src", 'test', "node_modules"].map(m => path.resolve(__dirname, m)),
alias: {
src: path.resolve(__dirname, "src"),
test: path.resolve(__dirname, 'test'),
Expand Down
Loading

0 comments on commit df5f730

Please sign in to comment.