Repository navigation
Expand file tree
/
Copy pathpackage.json
More file actions
36 lines (36 loc) · 1.49 KB
/
Copy pathpackage.json
File metadata and controls
36 lines (36 loc) · 1.49 KB
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
{
"name": "codecopy",
"version": "1.2.0",
"description": "Because copy to clipboard buttons should exist on every code snippet",
"main": "src/scripts/main.js",
"repository": "zenorocha/codecopy",
"license": "MIT",
"dependencies": {
"clipboard": "2.0.4",
"primer-buttons": "2.6.1",
"primer-tooltips": "1.5.8",
"webext-domain-permission-toggle": "^0.1.0",
"webext-dynamic-content-scripts": "^5.0.2"
},
"devDependencies": {
"babel-preset-es2015": "6.9.0",
"babelify": "7.3.0",
"browserify": "13.0.1",
"node-sass": "3.7.0",
"onchange": "2.4.0",
"parallelshell": "2.0.0",
"watchify": "3.7.0"
},
"scripts": {
"start": "npm run build",
"build": "npm run build:scripts && npm run build:styles",
"build:scripts": "browserify src/scripts/main.js -t [ babelify --presets es2015 ] -o dist/scripts/main.js && browserify src/scripts/background.js -t [ babelify --presets es2015 ] -o dist/scripts/background.js",
"build:styles": "node-sass src/styles/main.scss dist/styles/main.css -q --include-path node_modules",
"watch": "parallelshell 'npm run watch:scripts' 'npm run watch:styles'",
"watch:scripts": "onchange 'src/scripts/*.js' -- npm run build:scripts",
"watch:styles": "onchange 'src/styles/*.scss' -- npm run build:styles",
"package": "npm run package:blink && npm run package:gecko",
"package:blink": "cd dist && zip -r ../codecopy.zip * && cd ..",
"package:gecko": "cd dist && zip -r ../codecopy.xpi * && cd .."
}
}