Skip to content
This repository was archived by the owner on Nov 4, 2019. It is now read-only.

Commit 26e411e

Browse files
author
Abhinav Asthana
committed
First commit
1 parent 0484e74 commit 26e411e

18 files changed

+696
-0
lines changed

.gitignore

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
.DS_Store
2+
.sass-cache/
3+
.idea/
4+
node_modules/
5+
design/
6+
screenshots/
7+
tests/selenium/chromedriver.log
8+
*.crx
9+
*.pem
10+
*.zip
11+
#*
12+
.#*
13+
*.pyc
14+
tests/selenium/pmtests/*.pyc
15+
chromedriver.log
16+
chrome/manifest_key.json
17+
chrome/js/requester.js
18+
chrome/js/requester.min.js
19+
chrome/js/test_runner.js
20+
chrome/js/test_runner.min.js
21+
chrome/requester.html
22+
chrome/css/.sass-cache/
23+
postman.sublime-project
24+
postman.sublime-workspace
25+
tests/chromedriver.log
26+
versions/
27+
build/
28+
releases/

Gruntfile.js

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
/*global module:false*/
2+
module.exports = function(grunt) {
3+
// Project configuration.
4+
grunt.initConfig({
5+
manifest: grunt.file.readJSON('extension/manifest.json'),
6+
7+
shell: {
8+
configure_release: {
9+
options: { stdout: true, stderr: true },
10+
command: 'python scripts/configure.py --web_url production'
11+
},
12+
13+
configure_staging: {
14+
options: { stdout: true },
15+
command: 'python scripts/configure.py --web_url staging'
16+
},
17+
18+
configure_dev: {
19+
options: { stdout: true },
20+
command: 'python scripts/configure.py --web_url dev'
21+
},
22+
23+
configure_local: {
24+
options: { stdout: true },
25+
command: 'python scripts/configure.py --web_url local'
26+
}
27+
},
28+
29+
compress: {
30+
main: {
31+
options: {
32+
archive: 'releases/v<%= manifest.version %>.zip'
33+
},
34+
files: [
35+
{src: ['extension/**', '!extension/tests/**', '!extension/manifest_key.json', '!extension/tester.html'], dest: '/'}, // includes files in path and its subdirs
36+
]
37+
}
38+
}
39+
});
40+
41+
// These plugins provide necessary tasks.
42+
grunt.loadNpmTasks('grunt-contrib-handlebars');
43+
grunt.loadNpmTasks('grunt-contrib-concat');
44+
grunt.loadNpmTasks('grunt-contrib-jshint');
45+
grunt.loadNpmTasks('grunt-contrib-uglify');
46+
grunt.loadNpmTasks('grunt-mindirect');
47+
grunt.loadNpmTasks('grunt-contrib-watch');
48+
grunt.loadNpmTasks('grunt-contrib-sass');
49+
grunt.loadNpmTasks('grunt-contrib-compress');
50+
grunt.loadNpmTasks('grunt-shell');
51+
52+
grunt.registerTask('package_release', ['shell:configure_release', 'compress']);
53+
grunt.registerTask('package_staging', ['shell:configure_staging', 'compress']);
54+
grunt.registerTask('package_dev', ['shell:configure_dev', 'compress']);
55+
grunt.registerTask('package_local', ['shell:configure_local']);
56+
grunt.registerTask('configure_test', ['shell:configure_test']);
57+
58+
};
234 KB
Loading
3.31 KB
Loading

extension/background.html

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<!DOCTYPE html>
2+
<html>
3+
<head>
4+
<meta charset="utf-8">
5+
</head>
6+
<body>
7+
<script src="base64-arraybuffer.js"></script>
8+
<script src="config.js"></script>
9+
<script src="background_page.js"></script>
10+
</body>
11+
</html>

0 commit comments

Comments
 (0)