Skip to content
This repository has been archived by the owner on May 2, 2024. It is now read-only.

Commit

Permalink
Don't humanize the URLs (#84)
Browse files Browse the repository at this point in the history
  • Loading branch information
rocktimsaikia authored Aug 29, 2020
1 parent 60190fb commit c142c5b
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 6 deletions.
2 changes: 0 additions & 2 deletions app/index.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
'use strict';
const superb = require('superb');
const normalizeUrl = require('normalize-url');
const humanizeUrl = require('humanize-url');
const Generator = require('yeoman-generator');
const _s = require('underscore.string');
const utils = require('./utils');
Expand Down Expand Up @@ -89,7 +88,6 @@ module.exports = class extends Generator {
name: this.user.git.name(),
email: this.user.git.email(),
website: props.website,
humanizedWebsite: humanizeUrl(props.website),
cli,
nyc,
codecov
Expand Down
2 changes: 1 addition & 1 deletion app/templates/_package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"author": {
"name": "<%= name %>",
"email": "<%= email %>",
"url": "<%= humanizedWebsite %>"
"url": "<%= website %>"
},<% if (cli) { %>
"bin": "cli.js",<% } %>
"engines": {
Expand Down
2 changes: 1 addition & 1 deletion app/templates/license
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) <%= name %> <<%= email %>> (<%= humanizedWebsite %>)
Copyright (c) <%= name %> <<%= email %>> (<%= website %>)

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

Expand Down
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"author": {
"name": "Sindre Sorhus",
"email": "sindresorhus@gmail.com",
"url": "sindresorhus.com"
"url": "https://sindresorhus.com"
},
"engines": {
"node": ">=8"
Expand All @@ -32,7 +32,6 @@
"sindre"
],
"dependencies": {
"humanize-url": "^2.1.0",
"is-scoped": "^2.1.0",
"normalize-url": "^4.3.0",
"superb": "^4.0.0",
Expand Down

0 comments on commit c142c5b

Please # to comment.