This repository has been archived by the owner on May 11, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathpackage.json
41 lines (41 loc) · 1.98 KB
/
package.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
{
"name": "github-toc",
"version": "0.2.5",
"description": "Adds a table of contents to repositories, gists and wikis on GitHub",
"author": "Arthur Hammer",
"homepage": "https://github.com/arthurhammer/github-toc",
"repository": {
"type": "git",
"url": "https://github.com/arthurhammer/github-toc"
},
"bugs": {
"url": "https://github.com/arthurhammer/github-toc/issues",
"email": "arthur@ahammer.me"
},
"license": "MIT",
"main": "index.js",
"scripts": {
"clean": "rm -rf dist/*",
"clean:build": "cd dist; rm -rf chrome firefox github-toc.js",
"build": "npm-run-all build:js --parallel build:chrome build:firefox build:safari build:userscript",
"build:js": "webpack",
"build:chrome": "dest=dist/chrome; mkdir -p $dest; cp -r dist/github-toc.js img/icons src/style.css src/chrome/* $dest",
"build:firefox": "dest=dist/firefox; mkdir -p $dest; cp -r dist/github-toc.js img/icons src/style.css src/firefox/* $dest",
"build:safari": "dest=dist/safari.safariextension; mkdir -p $dest; cp -r dist/github-toc.js src/style.css src/safari/Info.plist $dest; cp img/icons/icon128.png $dest/Icon.png",
"build:userscript": "TARGET=userscript webpack; cat src/userscript/header.txt dist/github-toc.user.js > dist/tmp; mv dist/tmp dist/github-toc.user.js",
"dist": "npm-run-all clean build --parallel dist:* --sequential clean:build",
"dist:chrome": "cd dist; zip -r chrome.zip chrome > /dev/null",
"dist:firefox": "cd dist/firefox; web-ext build -a=. && mv *.zip ../firefox.zip",
"dist:safari": "cp src/safari/SafariUpdate.plist dist",
"chrome": "'/Applications/Google Chrome.app/Contents/MacOS/Google Chrome' --load-extension=dist/chrome",
"firefox": "cd dist/firefox; web-ext run --start-url https://github.com/arthurhammer/github-toc"
},
"devDependencies": {
"html-loader": "^0.4.5",
"npm-run-all": "^4.0.2",
"raw-loader": "^0.5.1",
"uglifyjs-webpack-plugin": "^0.4.0",
"web-ext": "^1.8.1",
"webpack": "^2.3.3"
}
}