-
Notifications
You must be signed in to change notification settings - Fork 8
/
scripts.json
128 lines (128 loc) · 3.95 KB
/
scripts.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
[
{
"title": "patch-release",
"description": "Publish a patch release of a package",
"key": "patch-release",
"script": "npm version patch && npm publish && git push --follow-tags",
"keywords": [
"npm",
"release",
"push",
"publish"
]
}, {
"title": "minor-release",
"description": "Publish a minor release of a package",
"key": "minor-release",
"script": "npm version minor && npm publish && git push --follow-tags",
"keywords": [
"npm",
"release",
"push",
"publish"
]
}, {
"title": "major-release",
"description": "Publish a major release of a package",
"key": "major-release",
"script": "npm version major && npm publish && git push --follow-tags",
"keywords": [
"npm",
"release",
"push",
"publish"
]
}, {
"title": "clean-up",
"description": "Clean your git repo state. All dirty files will be moved to the stash. It’s useful when transpiling code before publishing to NPM.",
"key": "clean-up",
"script": "git reset && echo '/node_modules/' > .gitignore && git add .gitignore && git stash save --include-untracked --keep-index '`npm run clean-up` trash can' && git clean --force -d && git reset --hard && echo '\nclean-up: All unstaged and ignored files within your git repo – except node_modules/* – have been moved to the stash. To restore them run `git stash pop --quiet; git checkout .gitignore`.",
"keywords": [
"npm",
"release",
"push",
"publish",
"clean"
]
}, {
"title": "Bower postinstall",
"description": "Bower install before npm",
"key": "postinstall",
"script": "bower install",
"keywords": [
"npm",
"bower",
"postinstall"
],
"dependencies": [
"bower"
]
}, {
"title": "gh-pages",
"description": "Pushs a folder (f.e. `docs`) to the `gh-pages` branch.",
"key": "update-gh-pages",
"script": "git push origin `git subtree split --prefix docs master`:gh-pages --force",
"keywords": [
"npm",
"gh-pages"
]
}, {
"title": "develop",
"description": "Watch JS files and run `npm test` on every change. Remember to install the dependencies before using this.",
"key": "develop",
"script": "nodangel --ignore node_modules --ignore coverage --exec 'npm run --silent test'",
"keywords": [
"test",
"workflow"
],
"dependencies": [
"nodangel"
]
}, {
"title": "diffy-package",
"description": "Make the package.json more diff-friendly. Remember to install the dependencies before adding this script. Add `\"postversion\": \"npm run diffy-package\"` as well to auto-format the package file after a version bump. Add `\"postinstall\": \"npm run diffy-package\"` if you’re not writing a library – your package file will be reformatted every time you run `npm install --save`.",
"key": "diffy-package",
"script": "format-json package.json | sponge package.json",
"keywords": [
"npm",
"pretty",
"formatting"
],
"dependencies": [
"format-json",
"sponge"
]
}, {
"title": "push tags",
"description": "Git push relevant annotated tags when pushing branches out.",
"key": "push",
"script": "git push --follow-tags",
"keywords": [
"git",
"push"
]
}, {
"title": "changelog",
"description": "Generate a changelog from git metadata.",
"key": "conventional-changelog",
"script": "conventional-changelog -p angular -i CHANGELOG.md -w",
"keywords": [
"changelog"
],
"dependencies": [
"conventional-changelog"
]
}, {
"title": "github-release",
"description": "Make a new GitHub release from git metadata.",
"key": "conventional-github-releaser",
"script": "conventional-github-releaser -p angular",
"keywords": [
"changelog",
"github-release"
],
"dependencies": [
"conventional-github-releaser"
]
}
]