This repository has been archived by the owner on Nov 3, 2021. It is now read-only.
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 #16074 from timdream/build-appdata-wappush
Bug 968703 - Migrate code snippet for wapppush customization, r=yurenju
- Loading branch information
Showing
6 changed files
with
39 additions
and
8 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 |
---|---|---|
@@ -1 +1 @@ | ||
js/whitelist.json | ||
/js/whitelist.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
-include $(PWD)/build/common.mk | ||
|
||
.PHONY: build | ||
build: | ||
@echo 'Building wappush app...' | ||
@$(call run-app-js-command, build) |
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,18 @@ | ||
'use strict'; | ||
|
||
/* global require, exports */ | ||
|
||
var utils = require('utils'); | ||
|
||
function execute(config) { | ||
var distDir = config.GAIA_DISTRIBUTION_DIR; | ||
|
||
var file = utils.getFile(config.GAIA_DIR, | ||
'apps', 'wappush', 'js', 'whitelist.json'); | ||
var defaultContent = []; | ||
var content = utils.getDistributionFileContent('wappush-whitelist', | ||
defaultContent, distDir); | ||
utils.writeContent(file, content); | ||
} | ||
|
||
exports.execute = execute; |
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
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 @@ | ||
["9871010079"] |