Skip to content
New issue

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

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

Already on GitHub? # to your account

Update dependencies #43

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 10 additions & 1 deletion .babelrc
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
{
"stage": 0
"presets": [
[
"@babel/preset-env",
{
"targets": {
"node": true
}
}
]
]
}
4 changes: 2 additions & 2 deletions .eslintrc → .eslintrc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
# babel support more syntax stuff than eslint for now
parser: babel-eslint

ecmaFeatures:
modules: true
parserOptions:
ecmaVersion: 6

env:
es6: true
Expand Down
3 changes: 2 additions & 1 deletion __tests__/logs.es
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import fs from "fs"
import tape from "tape"
import chalk from "chalk"
import stripAnsi from "strip-ansi"

import {
noopExceptErr,
Expand All @@ -27,7 +28,7 @@ tape("metalsmith-watch/logs", t => {
{
log: (log) => {
// console.log("## " + log)
logs.push(chalk.stripColor(log))
logs.push(stripAnsi(log))
},
}
)
Expand Down
6 changes: 2 additions & 4 deletions __tests__/paths.es
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import {
} from "./utils"

tape("metalsmith-watch/paths", (test) => {
test.test('relative source root', t => {
test.test("relative source root", t => {
const key = "relative"
const siblingFolder = `${__dirname}/tmp-${key}/templates`
prepareTests(
Expand Down Expand Up @@ -38,7 +38,7 @@ tape("metalsmith-watch/paths", (test) => {
)
})

test.test('absolute paths', t => {
test.test("absolute paths", t => {
const key = "absolute"
const siblingFolder = `${__dirname}/tmp-${key}/templates`
prepareTests(
Expand Down Expand Up @@ -66,6 +66,4 @@ tape("metalsmith-watch/paths", (test) => {
`${__dirname}/tmp-${key}`
)
})


})
2 changes: 1 addition & 1 deletion __tests__/utils/index.es
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export function cleanTests(key) {
rm(`${__dirname}/../tmp-${key}`)
}

export function prepareTests(key, testCb, assertionCb, options, beforeWatch, source = './src') {
export function prepareTests(key, testCb, assertionCb, options, beforeWatch, source = "./src") {
const folder = normalize(`${__dirname}/../tmp-${key}`)
const metalsmith = new Metalsmith(folder)

Expand Down
Loading