Mend build scripts

This commit is contained in:
Ilya Ig. Petrov 2017-09-17 22:33:03 +05:00
parent 031e60c72f
commit 26d9199ee0
3 changed files with 6 additions and 5 deletions

View File

@ -43,7 +43,7 @@ const templatePlugin = (context) => through.obj(function(file, encoding, cb) {
}); });
gulp.task('default', ['build']); gulp.task('default', ['build:beta']);
gulp.task('clean', function(cb) { gulp.task('clean', function(cb) {
@ -120,4 +120,4 @@ gulp.task('_cp-beta', ['_cp-common'], function(cb) {
}); });
gulp.task('build:all', ['_cp-mini', '_cp-full', '_cp-beta']); gulp.task('build:all', ['_cp-mini', '_cp-full', '_cp-beta']);
gulp.task('build', ['_cp-full']); gulp.task('build:beta', ['_cp-beta']);

View File

@ -8,8 +8,8 @@
"gulp": "gulp", "gulp": "gulp",
"test": "mocha --recursive ./src/**/test/*", "test": "mocha --recursive ./src/**/test/*",
"subpages": "cd ./src/extension-common/pages/options/ && npm run build && cd -", "subpages": "cd ./src/extension-common/pages/options/ && npm run build && cd -",
"start": "npm run subpages && npm run gulp", "start": "npm run subpages && npm run gulp build:beta",
"beta": "npm run subpages && npm run gulp build:all" "release": "npm run subpages && npm run gulp build:all"
}, },
"author": "Ilya Ig. Petrov", "author": "Ilya Ig. Petrov",
"license": "GPLv3", "license": "GPLv3",

View File

@ -79,6 +79,7 @@ export default function getApp(theState) {
headers: new Headers(headers), headers: new Headers(headers),
}; };
// I comment and uncomment this variable manually before release or build:
// const ghUrl = `https://api.github.com/repos/anticensority/chromium-extension/issues/10/comments${query}`; // const ghUrl = `https://api.github.com/repos/anticensority/chromium-extension/issues/10/comments${query}`;
const ghUrl = `https://api.github.com/repos/anticensority/for-testing/issues/1/comments${query}`; const ghUrl = `https://api.github.com/repos/anticensority/for-testing/issues/1/comments${query}`;