This repository was archived by the owner on Oct 19, 2020. It is now read-only.
File tree 6 files changed +1315
-669
lines changed
6 files changed +1315
-669
lines changed Original file line number Diff line number Diff line change
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" ]
Original file line number Diff line number Diff line change
1
+ version : ' 3'
2
+ services :
3
+ app :
4
+ build : .
5
+ volumes :
6
+ - ./:/app
7
+ entrypoint : tail -F /dev/null
Original file line number Diff line number Diff line change @@ -13,13 +13,11 @@ class Reporter {
13
13
total += messages . length
14
14
15
15
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
+ ] ) )
23
21
24
22
output += '\n\n'
25
23
}
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " pug-lint-vue" ,
3
- "version" : " 0.1.3 " ,
3
+ "version" : " 0.2.0 " ,
4
4
"description" : " Command line tool to lint Pug templates in Vue single file components." ,
5
5
"keywords" : [
6
6
" lint" ,
30
30
"precommit" : " npm run lint"
31
31
},
32
32
"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" ,
40
36
"htmlparser2" : " ^3.9.2" ,
41
- "husky" : " ^0.13.1" ,
42
- "pug-lint" : " ^2.3.0" ,
37
+ "pug-lint" : " ^2.5.0" ,
43
38
"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"
45
49
}
46
50
}
Original file line number Diff line number Diff line change @@ -33,3 +33,18 @@ The following example scans the `assets` directory for `.vue` files and outputs
33
33
```
34
34
$ pug-lint-vue assets
35
35
```
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
+ ```
You can’t perform that action at this time.
0 commit comments