-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from dolkensp/develop
Develop
- Loading branch information
Showing
25 changed files
with
192 additions
and
168 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -200,4 +200,5 @@ publish | |
# Ignore published packages | ||
*.zip | ||
*.xpi | ||
*.crx | ||
*.crx | ||
package-lock.json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
|
||
#---------------------------------# | ||
# general configuration # | ||
#---------------------------------# | ||
|
||
version: 3.2.{build} | ||
|
||
#---------------------------------# | ||
# environment configuration # | ||
#---------------------------------# | ||
|
||
#branches: | ||
# only: | ||
# - master | ||
|
||
# Start builds on tags only (GitHub and BitBucket) | ||
# skip_non_tags: true | ||
skip_tags: true | ||
|
||
#---------------------------------# | ||
# build configuration # | ||
#---------------------------------# | ||
|
||
install: | ||
- npm install | ||
|
||
build_script: | ||
- node --version | ||
- npm --version | ||
- node build.js %APPVEYOR_BUILD_VERSION% | ||
- node_modules\.bin\eslint src | ||
|
||
cache: | ||
- node_modules -> package.json | ||
|
||
#---------------------------------# | ||
# artifacts configuration # | ||
#---------------------------------# | ||
|
||
artifacts: | ||
# packaging chrome | ||
- path: dist\ptYou-chrome-v$(APPVEYOR_BUILD_VERSION).zip | ||
name: chrome | ||
|
||
# packaging firefox | ||
- path: dist\ptYou-firefox-v$(APPVEYOR_BUILD_VERSION).zip | ||
name: firefox | ||
|
||
# packaging edge | ||
- path: dist\ptYou-edge-v$(APPVEYOR_BUILD_VERSION).zip | ||
name: edge | ||
|
||
deploy: | ||
provider: GitHub | ||
auth_token: | ||
secure: Yi3KGQnx6Ui4ise0Dss0CRYo4FXHnN9xqWfol7mbKk13e13QDPQgNVfjPHGAg0ec | ||
artifact: /.*\.zip/ | ||
draft: false | ||
prerelease: false | ||
tag: v$(APPVEYOR_BUILD_VERSION) | ||
release: ptYou Browser Extensions | ||
description: View [ReadMe](https://github.com/dolkensp/ptYou/blob/master/README.md) for more instructions. | ||
on: | ||
branch: master |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
var fs = require('fs'); | ||
var path = require('path'); | ||
var JSZip = require('jszip'); | ||
|
||
var support = [ 'chrome', 'firefox', 'edge' ]; | ||
|
||
var manifest_master = JSON.parse(fs.readFileSync('src/manifest.json', 'utf8')); | ||
|
||
manifest_master.version = process.argv[2]; | ||
|
||
support.forEach((browser, index) => { | ||
var zip = new JSZip(); | ||
|
||
if (!fs.existsSync('dist')) fs.mkdirSync('dist'); | ||
|
||
var manifest = manifest_master; | ||
|
||
if (fs.existsSync('src/manifest.' + browser + '.json', 'utf8')) { | ||
var manifest_browser = JSON.parse(fs.readFileSync('src/manifest.' + browser + '.json', 'utf8')); | ||
manifest = { ...manifest, ...manifest_browser }; | ||
} | ||
|
||
zip.file('manifest.json', JSON.stringify(manifest, null, 2)); | ||
|
||
var addFiles = function(filePath) { | ||
var checkPath = path.basename(filePath.toLowerCase()); | ||
|
||
if (checkPath == 'debug') return; | ||
if (checkPath == 'screenshots') return; | ||
if (checkPath.startsWith('manifest.') && checkPath.endsWith('.json')) return; | ||
|
||
if (fs.lstatSync(filePath).isDirectory()) { | ||
files = fs.readdirSync(filePath); | ||
files.forEach(function(file) { addFiles(path.join(filePath, file)) }); | ||
} else { | ||
zip.file(filePath.substr(4), fs.readFileSync(filePath, 'binary'), { binary: true }); | ||
} | ||
} | ||
|
||
addFiles('src'); | ||
|
||
// TODO: Copy Files In | ||
|
||
zip.generateNodeStream({ type:'nodebuffer', compression: 'DEFLATE', streamFiles:true }).pipe(fs.createWriteStream('dist/' + manifest.short_name + '-' + browser + '-v' + manifest.version + '.zip')) | ||
}); |
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
{ | ||
"name": "ptYou", | ||
"description": "This extension persists friends between test/live environments on RobertsSpaceIndustries.com", | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/dolkensp/ptYou.git" | ||
}, | ||
"author": "/u/alluran (Peter Dolkens)", | ||
"bugs": { | ||
"url": "https://github.com/dolkensp/ptYou/issues" | ||
}, | ||
"homepage": "https://github.com/dolkensp/ptYou#readme", | ||
"dependencies": { | ||
"jszip": "^3.1.5" | ||
}, | ||
"devDependencies": { | ||
"eslint": "^5.0.1" | ||
}, | ||
"eslintConfig": { | ||
"env": { | ||
"browser": true, | ||
"es6": true, | ||
"jquery": true | ||
}, | ||
"extends": "eslint:recommended", | ||
"parserOptions": { | ||
"ecmaVersion": 2018 | ||
}, | ||
"rules": { | ||
"no-console": "off" | ||
}, | ||
"globals": { | ||
"Fuse": true, | ||
"chrome": true | ||
} | ||
}, | ||
"eslintIgnore": [ "src/vendor/**/*.js", "*.min.js" ] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"-ms-preload": { | ||
"backgroundScript": "vendor/edge/backgroundScriptsAPIBridge.js", | ||
"contentScript": "vendor/edge/contentScriptsAPIBridge.js" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{ | ||
"applications": { | ||
"gecko": { | ||
"id": "ptYou@ddrit.com" | ||
} | ||
} | ||
} |
Oops, something went wrong.