Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Feat/transpile #18

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
bufferoverflow merged 6 commits into master from feat/transpile
May 13, 2018
Merged

Feat/transpile #18

bufferoverflow merged 6 commits into master from feat/transpile
May 13, 2018

Conversation

@bufferoverflow
Copy link
Owner

@bufferoverflow bufferoverflow commented May 6, 2018

No description provided.

Copy link
Owner Author

@juanpicado what do you think about that?

package.json Outdated
},
"dependencies": {
"node-gitlab-api": "^2.2.0",
"gitlab": "^3.2.2",
Copy link
Collaborator

@juanpicado juanpicado May 7, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Usually, I do not use caret, just matter of taste. I think is much better have the full control.

Copy link
Owner Author

@bufferoverflow bufferoverflow May 12, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yep, I fix the versions.

import {httperror} from 'http-errors';

function Auth(config, stuff) {
var self = Object.create(Auth.prototype);
Copy link
Collaborator

@juanpicado juanpicado May 7, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

verdaccio v3 already support ES6 classes. It's your decision do Object.create(Auth.prototype); or just do eg: https://github.com/verdaccio/verdaccio-htpasswd/blob/master/src/index.js#L9

Copy link
Owner Author

@bufferoverflow bufferoverflow May 12, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I do that at a later step

{
"presets": [["env", {
"targets": {
"node": "6"
Copy link
Collaborator

@juanpicado juanpicado May 7, 2018
edited
Loading

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Be careful here, people still use Node4, verdaccio v2.x still support Node 4. If you switch to Node6 (which is the minimum since last month. You need to warn users (README or something), otherwise, they will get compiler errors on runtime.

Copy link
Owner Author

@bufferoverflow bufferoverflow May 12, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The 4.x release line is going end of life April 30th, I add engines to package.json and a hint to the README

juanpicado reacted with thumbs up emoji
"email": "roger@bufferoverflow.ch"
},
"scripts": {
"build": "babel src/ --out-dir lib/ --copy-files --ignore ___tests___ --source-maps",
Copy link
Collaborator

@juanpicado juanpicado May 7, 2018
edited
Loading

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

--source-maps I'd remove that, otherwise, you will inflate your package. You always can do npm run build -- --source-maps which is not handy, but still, save.

Copy link
Owner Author

@bufferoverflow bufferoverflow May 12, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the map files are not packaged with the npm, but they are very useful to debug, I keep it.

@@ -0,0 +1 @@
require('verdaccio/build/lib/cli');
Copy link
Collaborator

@juanpicado juanpicado May 7, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this https://www.verdaccio.org/docs/en/node-api.html handy for you instead?

Copy link
Owner Author

@bufferoverflow bufferoverflow May 12, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just starting verdaccio with the cli is sufficient for the moment, maybe at a later step.

juanpicado reacted with thumbs up emoji
Copy link
Owner Author

@juanpicado thanks for all the review comments, I look at it.

juanpicado reacted with thumbs up emoji

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@juanpicado juanpicado juanpicado left review comments

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

AltStyle によって変換されたページ (->オリジナル) /