Skip to content

Commit 76d1d27

Browse files
committed
added prettier as a dev dep and added script to travis ci
1 parent 87e97b2 commit 76d1d27

File tree

2 files changed

+24
-38
lines changed

2 files changed

+24
-38
lines changed

.travis.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ before_install:
2121

2222
install:
2323
- npm install
24+
- npm run prettier
2425
- npm run vscode:prepublish
2526

2627
script:

package.json

Lines changed: 23 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -16,36 +16,29 @@
1616
"bugs": {
1717
"url": "https://github.com/JohnstonCode/svn-scm/issues"
1818
},
19-
"categories": [
20-
"Other",
21-
"SCM Providers"
22-
],
23-
"keywords": [
24-
"multi-root ready",
25-
"scm",
26-
"svn"
27-
],
28-
"activationEvents": [
29-
"*"
30-
],
19+
"categories": ["Other", "SCM Providers"],
20+
"keywords": ["multi-root ready", "scm", "svn"],
21+
"activationEvents": ["*"],
3122
"main": "./out/extension",
3223
"scripts": {
3324
"vscode:prepublish": "tsc -p ./",
3425
"compile": "tsc -watch -p ./",
3526
"postinstall": "node ./node_modules/vscode/bin/install",
36-
"test": "node ./node_modules/vscode/bin/test"
27+
"test": "node ./node_modules/vscode/bin/test",
28+
"prettier": "prettier --list-different 'src/**/*.js'"
3729
},
3830
"dependencies": {
3931
"iconv-lite": "^0.4.19",
4032
"jschardet": "^1.6.0"
4133
},
4234
"devDependencies": {
43-
"typescript": "^2.6.1",
44-
"vscode": "^1.1.6",
45-
"mocha": "^3.5.0",
46-
"eslint": "^4.6.1",
4735
"@types/mocha": "^2.2.42",
48-
"@types/node": "^7.0.43"
36+
"@types/node": "^7.0.43",
37+
"eslint": "^4.6.1",
38+
"mocha": "^3.5.0",
39+
"prettier": "^1.9.0",
40+
"typescript": "^2.6.1",
41+
"vscode": "^1.1.6"
4942
},
5043
"contributes": {
5144
"commands": [
@@ -144,41 +137,33 @@
144137
"default": true
145138
},
146139
"svn.path": {
147-
"type": [
148-
"string",
149-
"null"
150-
],
140+
"type": ["string", "null"],
151141
"description": "Path to the svn executable",
152142
"default": null,
153143
"isExecutable": true
154144
},
155145
"svn.diff.withHead": {
156146
"type": "boolean",
157-
"description": "Show diff changes using latest revision in the repository. Set false to use latest revision in local folder",
147+
"description":
148+
"Show diff changes using latest revision in the repository. Set false to use latest revision in local folder",
158149
"default": true
159150
},
160151
"svn.layout.trunk": {
161-
"type": [
162-
"string",
163-
"null"
164-
],
165-
"description": "Relative path for 'trunk' in SVN URL, 'null' to disable. (Ex.: 'trunk', 'main')",
152+
"type": ["string", "null"],
153+
"description":
154+
"Relative path for 'trunk' in SVN URL, 'null' to disable. (Ex.: 'trunk', 'main')",
166155
"default": "trunk"
167156
},
168157
"svn.layout.branches": {
169-
"type": [
170-
"string",
171-
"null"
172-
],
173-
"description": "Relative path for 'branches' in SVN URL, 'null' to disable. (Ex.: 'branches', 'versions')",
158+
"type": ["string", "null"],
159+
"description":
160+
"Relative path for 'branches' in SVN URL, 'null' to disable. (Ex.: 'branches', 'versions')",
174161
"default": "branches"
175162
},
176163
"svn.layout.tags": {
177-
"type": [
178-
"string",
179-
"null"
180-
],
181-
"description": "Relative path for 'tags' in SVN URL, 'null' to disable. (Ex.: 'tags', 'stamps')",
164+
"type": ["string", "null"],
165+
"description":
166+
"Relative path for 'tags' in SVN URL, 'null' to disable. (Ex.: 'tags', 'stamps')",
182167
"default": "tags"
183168
},
184169
"svn.multipleFolders.enabled": {

0 commit comments

Comments
 (0)