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

Commit b68d64b

Browse files
committed
Merge branch 'release/0.2.0'
2 parents d31f542 + 59693d2 commit b68d64b

File tree

6 files changed

+1315
-669
lines changed

6 files changed

+1315
-669
lines changed

Dockerfile

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
FROM node:10
2+
3+
WORKDIR /app
4+
5+
# Install dependencies
6+
COPY package.json yarn.* ./
7+
RUN yarn install
8+
9+
# Copy our code on top
10+
COPY lib ./lib
11+
COPY bin ./bin
12+
13+
ENTRYPOINT ["bin/pug-lint-vue"]

docker-compose.yml

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
version: '3'
2+
services:
3+
app:
4+
build: .
5+
volumes:
6+
- ./:/app
7+
entrypoint: tail -F /dev/null

lib/reporter.js

+5-7
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,11 @@ class Reporter {
1313
total += messages.length
1414

1515
output += chalk.underline(filename) + '\n'
16-
output += table(messages.map((msg) => {
17-
return [
18-
'',
19-
`${msg.line}:${msg.column}`,
20-
msg.msg
21-
]
22-
}))
16+
output += table(messages.map((msg) => [
17+
'',
18+
`${msg.line}${msg.column != null ? `:${msg.column}` : ''}`,
19+
msg.msg
20+
]))
2321

2422
output += '\n\n'
2523
}

package.json

+15-11
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "pug-lint-vue",
3-
"version": "0.1.3",
3+
"version": "0.2.0",
44
"description": "Command line tool to lint Pug templates in Vue single file components.",
55
"keywords": [
66
"lint",
@@ -30,17 +30,21 @@
3030
"precommit": "npm run lint"
3131
},
3232
"dependencies": {
33-
"chalk": "^1.1.3",
34-
"cheerio": "^0.22.0",
35-
"commander": "^2.9.0",
36-
"eslint": "^3.14.1",
37-
"eslint-config-standard": "^6.2.1",
38-
"eslint-plugin-promise": "^3.4.0",
39-
"eslint-plugin-standard": "^2.0.1",
33+
"chalk": "^2.4.2",
34+
"cheerio": "^1.0.0-rc.3",
35+
"commander": "^2.20.0",
4036
"htmlparser2": "^3.9.2",
41-
"husky": "^0.13.1",
42-
"pug-lint": "^2.3.0",
37+
"pug-lint": "^2.5.0",
4338
"text-table": "^0.2.0",
44-
"walk": "^2.3.9"
39+
"walk": "^2.3.14"
40+
},
41+
"devDependencies": {
42+
"eslint": "^5.16.0",
43+
"eslint-config-standard": "^12.0.0",
44+
"eslint-plugin-import": "^2.17.3",
45+
"eslint-plugin-node": "^9.1.0",
46+
"eslint-plugin-promise": "^4.1.1",
47+
"eslint-plugin-standard": "^4.0.0",
48+
"husky": "^2.4.1"
4549
}
4650
}

readme.md

+15
Original file line numberDiff line numberDiff line change
@@ -33,3 +33,18 @@ The following example scans the `assets` directory for `.vue` files and outputs
3333
```
3434
$ pug-lint-vue assets
3535
```
36+
37+
## Development
38+
39+
Build the docker container via:
40+
41+
```
42+
$ docker build . -t pug-lint-vue
43+
```
44+
45+
Use docker compose to work on the files:
46+
47+
```
48+
$ docker-compose up
49+
$ docker-compose exec app bash
50+
```

0 commit comments

Comments
 (0)