Skip to content

Commit

Permalink
Merge pull request #28 from lassjs/update-deps
Browse files Browse the repository at this point in the history
update deps, tests and snapshots
  • Loading branch information
OmgImAlexis authored Nov 23, 2017
2 parents 701497a + f15fd01 commit 523b833
Show file tree
Hide file tree
Showing 5 changed files with 470 additions and 384 deletions.
31 changes: 16 additions & 15 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,35 +30,36 @@
],
"dependencies": {
"auto-bind": "^1.1.0",
"cac": "^4.2.1",
"cac": "^4.2.4",
"camelcase": "^4.1.0",
"github-username": "^4.1.0",
"github-username-regex": "^1.0.0",
"global": "^4.3.2",
"is-email": "^1.0.0",
"is-url": "^1.2.2",
"is-valid-npm-name": "^0.0.4",
"npm-conf": "^1.1.2",
"npm-name-exists": "^1.0.2",
"sao": "^0.22.2",
"npm-conf": "^1.1.3",
"npm-name-exists": "^1.0.3",
"sao": "^0.22.9",
"semver": "^5.4.1",
"spdx-license-list": "^3.0.1",
"speakingurl": "^14.0.1",
"superb": "^1.3.0",
"update-notifier": "^2.2.0",
"superb": "^2.0.0",
"update-notifier": "^2.3.0",
"uppercamelcase": "^3.0.0"
},
"devDependencies": {
"ava": "^0.22.0",
"codecov": "^2.3.0",
"cross-env": "^5.0.5",
"eslint": "^4.6.0",
"eslint-config-prettier": "^2.4.0",
"eslint-plugin-prettier": "^2.2.0",
"ava": "^0.23.0",
"codecov": "^3.0.0",
"cross-env": "^5.1.1",
"eslint": "^4.11.0",
"eslint-config-prettier": "^2.8.0",
"eslint-plugin-prettier": "^2.3.1",
"husky": "^0.14.3",
"lint-staged": "^4.0.4",
"nyc": "^11.1.0",
"prettier": "^1.6.1",
"lint-staged": "^5.0.0",
"multimatch": "^2.1.0",
"nyc": "^11.3.0",
"prettier": "^1.8.2",
"remark-cli": "^4.0.0",
"remark-preset-github": "^0.0.7",
"xo": "^0.19.0"
Expand Down
4 changes: 2 additions & 2 deletions sao.js
Original file line number Diff line number Diff line change
Expand Up @@ -116,8 +116,8 @@ module.exports = {
},
validate: val => {
return isURL(val) &&
val.indexOf('https://github.com/') === 0 &&
val.lastIndexOf('/') !== val.length - 1
val.indexOf('https://github.com/') === 0 &&
val.lastIndexOf('/') !== val.length - 1
? true
: 'Please include a valid GitHub.com URL without a trailing slash';
}
Expand Down
8 changes: 8 additions & 0 deletions test/snapshots/test.js.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
## Table of Contents

* [Features](#features)
* [Prerequisities](#prerequisities)
* [Install](#install)
* [Usage](#usage)
* [Create a package](#create-a-package)
Expand Down Expand Up @@ -64,6 +65,13 @@
* Automatically inserts license year/name/email/website for MIT license if selected


## Prerequisities

* Node.JS ^7.10.1

It is necessary to have version `^7.10.1` of [Node.JS](https://nodejs.org/) installed, since **lass** uses native [async/await](http://node.green/#ES2017-features-async-functions) to generate our template.


## Install

[npm][]:
Expand Down
8 changes: 7 additions & 1 deletion test/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,13 @@ test('defaults', async t => {
name: 'my-package-name'
})
);
t.snapshot(stream.fileList, 'generated files');

const ignoredFiles = ['yarn-error.log'];
t.snapshot(
stream.fileList.filter(path => !ignoredFiles.includes(path)),
'generated files'
);

const content = stream.fileContents('README.md');
t.snapshot(content, 'content of README.md');
});
Expand Down
Loading

0 comments on commit 523b833

Please sign in to comment.