Skip to content

Commit 5f615ae

Browse files
author
Manuel Mujica
authored
Merge pull request #3 from bit-docs/add-publish-scripts
Add npm publish scripts
2 parents 091facc + d329ba3 commit 5f615ae

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

.editorconfig

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,7 @@ end_of_line = LF
44
indent_style = tab
55
trim_trailing_whitespace = false
66
insert_final_newline = true
7+
8+
[{package.json,*.yml}]
9+
indent_style = space
10+
indent_size = 2

package.json

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,12 @@
44
"description": "Old school DocumentJS theme",
55
"main": "static/docjs",
66
"scripts": {
7-
"test": "echo \"Error: no test specified\" && exit 1"
7+
"test": "echo \"testing\"",
8+
"postversion": "git push --tags && git push",
9+
"release:pre": "npm version prerelease && npm publish",
10+
"release:patch": "npm version patch && npm publish",
11+
"release:minor": "npm version minor && npm publish",
12+
"release:major": "npm version major && npm publish"
813
},
914
"repository": {
1015
"type": "git",

0 commit comments

Comments
 (0)