Skip to content

Commit

Permalink
Merge pull request verdaccio#1 from ayusharma/es6-migration
Browse files Browse the repository at this point in the history
ES6 migration
  • Loading branch information
ayusharma authored and griffithtp committed Jul 20, 2019
1 parent cf977ae commit fcef4de
Show file tree
Hide file tree
Showing 24 changed files with 1,110 additions and 6,901 deletions.
9 changes: 4 additions & 5 deletions plugins/verdaccio-htpasswd/.eslintrc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,7 @@
# Created to work with [email protected]
#

extends: ["eslint:recommended", "google", "plugin:flowtype/recommended", "plugin:jest/recommended"]

plugins: ["flowtype", "jest"]
extends: ["plugin:prettier/recommended"]

settings:
flowtype:
Expand All @@ -24,7 +22,7 @@ env:
browser: true
es6: true
mocha: true
jest/globals: true
jest: true

parserOptions:
sourceType: "module"
Expand All @@ -33,6 +31,7 @@ parserOptions:
modules: true

rules:
prettier/prettier: 2
strict: 0
# useful to have in node.js,
# if you're sure you don't need to handle error, rename it to "_err"
Expand Down Expand Up @@ -99,7 +98,7 @@ rules:
new-cap: 2

# readbility is important, no multiple inline declarations
one-var: 2
one-var: 0

# console not allowed unless for testing
no-console: [2, {"allow": ["log", "warn"]}]
2 changes: 1 addition & 1 deletion plugins/verdaccio-htpasswd/.gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
npm-debug.log
.DS_Store

package-lock.json
_storage/
lib/
node_modules/
Expand Down
9 changes: 9 additions & 0 deletions plugins/verdaccio-htpasswd/.prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"useTabs": false,
"printWidth": 80,
"tabWidth": 2,
"singleQuote": true,
"trailingComma": "none",
"parser": "flow",
"semi": true
}
8 changes: 0 additions & 8 deletions plugins/verdaccio-htpasswd/.travis.yml

This file was deleted.

2 changes: 2 additions & 0 deletions plugins/verdaccio-htpasswd/README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# htpasswd auth plugin

[![CircleCI](https://circleci.com/gh/ayusharma/verdaccio-htpasswd.svg?style=svg)](https://circleci.com/gh/ayusharma/verdaccio-htpasswd) [![codecov](https://codecov.io/gh/ayusharma/verdaccio-htpasswd/branch/master/graph/badge.svg)](https://codecov.io/gh/ayusharma/verdaccio-htpasswd)

An authentication plugin for the Verdaccio.
3 changes: 2 additions & 1 deletion plugins/verdaccio-htpasswd/circle.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
machine:
environment:
YARN_VERSION: 0.27.5
YARN_VERSION: 1.3.2
PATH: "${PATH}:${HOME}/.yarn/bin:${HOME}/${CIRCLE_PROJECT_REPONAME}/node_modules/.bin"
node:
version: 8
Expand All @@ -27,3 +27,4 @@ test:
- yarn run test
- nvm alias default 8
- yarn run test
- yarn run coverage
32 changes: 32 additions & 0 deletions plugins/verdaccio-htpasswd/flow-typed/npm/apache-md5_vx.x.x.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
// flow-typed signature: 3e39d8c93a85c74b793f281d10e89784
// flow-typed version: <<STUB>>/apache-md5_v1.1.2/flow_v0.52.0

/**
* This is an autogenerated libdef stub for:
*
* 'apache-md5'
*
* Fill this stub out by replacing all the `any` types.
*
* Once filled out, we encourage you to share your work with the
* community by sending a pull request to:
* https://github.com/flowtype/flow-typed
*/

declare module 'apache-md5' {
declare module.exports: any;
}

/**
* We include stubs for each file inside this npm package in case you need to
* require those files directly. Feel free to delete any files that aren't
* needed.
*/
declare module 'apache-md5/src/index' {
declare module.exports: any;
}

// Filename aliases
declare module 'apache-md5/src/index.js' {
declare module.exports: $Exports<'apache-md5/src/index'>;
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
// flow-typed signature: 44a338cd9ebec553aabfb243383f3698
// flow-typed version: <<STUB>>/unix-crypt-td-js_v1.0.0/flow_v0.52.0

/**
* This is an autogenerated libdef stub for:
*
* 'unix-crypt-td-js'
*
* Fill this stub out by replacing all the `any` types.
*
* Once filled out, we encourage you to share your work with the
* community by sending a pull request to:
* https://github.com/flowtype/flow-typed
*/

declare module 'unix-crypt-td-js' {
declare module.exports: any;
}

/**
* We include stubs for each file inside this npm package in case you need to
* require those files directly. Feel free to delete any files that aren't
* needed.
*/
declare module 'unix-crypt-td-js/dist/unix-crypt-td.min' {
declare module.exports: any;
}

declare module 'unix-crypt-td-js/src/unix-crypt-td' {
declare module.exports: any;
}

declare module 'unix-crypt-td-js/test/unix-crypt-td-test' {
declare module.exports: any;
}

// Filename aliases
declare module 'unix-crypt-td-js/dist/unix-crypt-td.min.js' {
declare module.exports: $Exports<'unix-crypt-td-js/dist/unix-crypt-td.min'>;
}
declare module 'unix-crypt-td-js/src/unix-crypt-td.js' {
declare module.exports: $Exports<'unix-crypt-td-js/src/unix-crypt-td'>;
}
declare module 'unix-crypt-td-js/test/unix-crypt-td-test.js' {
declare module.exports: $Exports<'unix-crypt-td-js/test/unix-crypt-td-test'>;
}
14 changes: 4 additions & 10 deletions plugins/verdaccio-htpasswd/jest.config.js
Original file line number Diff line number Diff line change
@@ -1,14 +1,8 @@
/* eslint comma-dangle: 0 */

module.exports = {
'name': 'htpasswd-auth-jest',
'jest': {
'verbose': true
},
'collectCoverage': true,
'coveragePathIgnorePatterns': [
'node_modules',
'_storage',
'fixtures'
]
name: 'htpasswd-auth-jest',
verbose: true,
collectCoverage: true,
coveragePathIgnorePatterns: ['node_modules', '_storage', 'fixtures', 'lib']
};
Loading

0 comments on commit fcef4de

Please sign in to comment.