Skip to content
This repository has been archived by the owner on Oct 19, 2020. It is now read-only.

Commit

Permalink
Merge branch 'release/0.2.0'
Browse files Browse the repository at this point in the history
  • Loading branch information
pehbehbeh committed Jun 18, 2019
2 parents d31f542 + 59693d2 commit b68d64b
Show file tree
Hide file tree
Showing 6 changed files with 1,315 additions and 669 deletions.
13 changes: 13 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
FROM node:10

WORKDIR /app

# Install dependencies
COPY package.json yarn.* ./
RUN yarn install

# Copy our code on top
COPY lib ./lib
COPY bin ./bin

ENTRYPOINT ["bin/pug-lint-vue"]
7 changes: 7 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
version: '3'
services:
app:
build: .
volumes:
- ./:/app
entrypoint: tail -F /dev/null
12 changes: 5 additions & 7 deletions lib/reporter.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,11 @@ class Reporter {
total += messages.length

output += chalk.underline(filename) + '\n'
output += table(messages.map((msg) => {
return [
'',
`${msg.line}:${msg.column}`,
msg.msg
]
}))
output += table(messages.map((msg) => [
'',
`${msg.line}${msg.column != null ? `:${msg.column}` : ''}`,
msg.msg
]))

output += '\n\n'
}
Expand Down
26 changes: 15 additions & 11 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "pug-lint-vue",
"version": "0.1.3",
"version": "0.2.0",
"description": "Command line tool to lint Pug templates in Vue single file components.",
"keywords": [
"lint",
Expand Down Expand Up @@ -30,17 +30,21 @@
"precommit": "npm run lint"
},
"dependencies": {
"chalk": "^1.1.3",
"cheerio": "^0.22.0",
"commander": "^2.9.0",
"eslint": "^3.14.1",
"eslint-config-standard": "^6.2.1",
"eslint-plugin-promise": "^3.4.0",
"eslint-plugin-standard": "^2.0.1",
"chalk": "^2.4.2",
"cheerio": "^1.0.0-rc.3",
"commander": "^2.20.0",
"htmlparser2": "^3.9.2",
"husky": "^0.13.1",
"pug-lint": "^2.3.0",
"pug-lint": "^2.5.0",
"text-table": "^0.2.0",
"walk": "^2.3.9"
"walk": "^2.3.14"
},
"devDependencies": {
"eslint": "^5.16.0",
"eslint-config-standard": "^12.0.0",
"eslint-plugin-import": "^2.17.3",
"eslint-plugin-node": "^9.1.0",
"eslint-plugin-promise": "^4.1.1",
"eslint-plugin-standard": "^4.0.0",
"husky": "^2.4.1"
}
}
15 changes: 15 additions & 0 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,3 +33,18 @@ The following example scans the `assets` directory for `.vue` files and outputs
```
$ pug-lint-vue assets
```

## Development

Build the docker container via:

```
$ docker build . -t pug-lint-vue
```

Use docker compose to work on the files:

```
$ docker-compose up
$ docker-compose exec app bash
```
Loading

0 comments on commit b68d64b

Please sign in to comment.