Skip to content

Commit 5e7d902

Browse files
author
Rafael Grigorian
committed
Fixed GH-72
1 parent 2af2f69 commit 5e7d902

File tree

5 files changed

+49
-32
lines changed

5 files changed

+49
-32
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
.DS_Store
2+
yarn-error.log
23
/node_modules/
34
/staging/
45
/build/

gulpfile.js

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ const sass = require ("gulp-sass")
1111
const uglify = require ("gulp-uglify")
1212
const webpack = require ("webpack")
1313
const webpackStream = require ("webpack-stream")
14+
const gulpIgnore = require ("gulp-ignore")
1415
const webpackConfig = require ( path.join ( __dirname, "webpack.config.js" ) )
1516
const tar = require ("gulp-tar")
1617

@@ -49,9 +50,9 @@ gulp.task ( "build-styles", [ "init" ], ( callback ) => {
4950

5051
gulp.task ( "build-scripts", [ "init" ], ( callback ) => {
5152
gulp.src ( path.join ( SOURCE_PATH, MAGENTO_SKIN_JS, MODULE_SHORT_NAME, "index.js" ) )
52-
.pipe ( webpackStream ( webpackConfig ), webpack )
53+
.pipe ( webpackStream ( webpackConfig ), webpack )
5354
.pipe ( minifyJs ({ ext: { min: ".min.js" } }) )
54-
.pipe ( gulp.dest ( path.join ( BUILD_PATH, MAGENTO_SKIN_JS, MODULE_SHORT_NAME ) ) )
55+
.pipe ( gulp.dest ( path.join ( BUILD_PATH, MAGENTO_SKIN_JS, MODULE_SHORT_NAME ) ) )
5556
.on ( "end", () => {
5657
fs.unlinkSync ( path.join ( BUILD_PATH, MAGENTO_SKIN_JS, MODULE_SHORT_NAME, "bundle.js" ) )
5758
callback ()
@@ -88,9 +89,10 @@ gulp.task ( "package", () => {
8889
"output": "package.xml",
8990
"version": EXTENSION_VERSION
9091
}
91-
gulp.src ([ path.join ( BUILD_PATH, "**", "*" ) ])
92+
gulp.src ([ path.join ( BUILD_PATH, "**", "*" ) ])
9293
.pipe ( magepack ( options ) )
94+
.pipe ( gulpIgnore.exclude ("package.xml") )
9395
.pipe ( tar (`${EXTENSION_NAMESPACE}-${EXTENSION_VERSION}`) )
94-
.pipe ( gzip ({ extension: "tgz" }) )
95-
.pipe ( gulp.dest ("dist") )
96+
.pipe ( gzip ({ extension: "tgz" }) )
97+
.pipe ( gulp.dest ("dist") )
9698
})

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
"gulp": "^3.9.1",
1515
"gulp-concat": "^2.6.1",
1616
"gulp-gzip": "^1.4.2",
17+
"gulp-ignore": "^2.0.2",
1718
"gulp-magepack": "^1.0.3",
1819
"gulp-minify": "^2.1.0",
1920
"gulp-minify-css": "^1.2.4",

package.xml

Lines changed: 26 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?xml version="1.0"?>
22
<package>
3-
<date>2018-06-27</date>
4-
<time>12:55:53</time>
3+
<date>2018-07-02</date>
4+
<time>15:06:13</time>
55
<version>1.0.0</version>
66
<contents>
77
<target name="magecommunity">
@@ -38,16 +38,16 @@
3838
<dir name="SslController.php" hash="65ed76a240167c40d809f29ed86ac338"/>
3939
<dir name="Tls13Controller.php" hash="704c46bf4db3037e4a81686ef776f94e"/>
4040
</dir>
41+
<dir name="Dns">
42+
<dir name="CloudflareNameserversController.php" hash="de0dbecb4baf89d7c5ce37f0dae8f7ad"/>
43+
<dir name="DnsRecordsController.php" hash="966b3a5e42f6b79898edbd183fa32461"/>
44+
</dir>
4145
<dir name="Firewall">
4246
<dir name="AccessRulesController.php" hash="f2454cfe250cacf1a171055a4ad5ad0d"/>
4347
<dir name="ChallengePassageController.php" hash="8ed38de3c3b0fad63d7849df32e2249f"/>
4448
<dir name="SecurityLevelController.php" hash="a98061a3e73f53ce4f80acf6048c27ac"/>
4549
<dir name="UserAgentBlockingController.php" hash="56e88562fddc5e49f68758ea9b7bf4c4"/>
4650
</dir>
47-
<dir name="Dns">
48-
<dir name="CloudflareNameserversController.php" hash="de0dbecb4baf89d7c5ce37f0dae8f7ad"/>
49-
<dir name="DnsRecordsController.php" hash="966b3a5e42f6b79898edbd183fa32461"/>
50-
</dir>
5151
<dir name="Network">
5252
<dir name="Http2Controller.php" hash="825798572e555bab0c787e50fecc1e23"/>
5353
<dir name="IpGeolocationController.php" hash="a9a4e8f065afa5f3e814bf04f03e86a7"/>
@@ -95,6 +95,17 @@
9595
<dir name="PageGetter.php" hash="6d251bb3712ceff4d1ef1ddeffd178ae"/>
9696
<dir name="Request.php" hash="dd4db11fb957d79be6568949c3e67c0e"/>
9797
<dir name="Setter.php" hash="2dc6f66fb656b7cb8a7d65b4adc26d33"/>
98+
<dir name="Caching">
99+
<dir name="AlwaysOnline.php" hash="0204885c4ade41cca61410d9ce82f715"/>
100+
<dir name="BrowserCacheExpiration.php" hash="bd41074f07281e9c1562b5583380d981"/>
101+
<dir name="CachingLevel.php" hash="d9e0cbe306812a0c82063237b52202d9"/>
102+
<dir name="DevelopmentMode.php" hash="c4127f2bff6018154d8d625d28a446ee"/>
103+
<dir name="PurgeCache.php" hash="c413c455ed036d6cd1efb335d2c9ffb6"/>
104+
</dir>
105+
<dir name="Dns">
106+
<dir name="CloudflareNameservers.php" hash="c00d418680fae6c13ab9d9716598dbb1"/>
107+
<dir name="DnsRecords.php" hash="bede95054d21264ac29df86e0ce7001c"/>
108+
</dir>
98109
<dir name="Crypto">
99110
<dir name="AlwaysUseHttps.php" hash="f5b62f6f627edf83485501b89207f543"/>
100111
<dir name="AuthenticatedOriginPulls.php" hash="669b9bbb8e919b07b21bbb727320de94"/>
@@ -107,17 +118,6 @@
107118
<dir name="Ssl.php" hash="3fe60a7b6046edce68a35fcdee460557"/>
108119
<dir name="Tls13.php" hash="cfb2536708367ca4abfa4eed2e6a336c"/>
109120
</dir>
110-
<dir name="Caching">
111-
<dir name="AlwaysOnline.php" hash="0204885c4ade41cca61410d9ce82f715"/>
112-
<dir name="BrowserCacheExpiration.php" hash="bd41074f07281e9c1562b5583380d981"/>
113-
<dir name="CachingLevel.php" hash="d9e0cbe306812a0c82063237b52202d9"/>
114-
<dir name="DevelopmentMode.php" hash="c4127f2bff6018154d8d625d28a446ee"/>
115-
<dir name="PurgeCache.php" hash="c413c455ed036d6cd1efb335d2c9ffb6"/>
116-
</dir>
117-
<dir name="Dns">
118-
<dir name="CloudflareNameservers.php" hash="c00d418680fae6c13ab9d9716598dbb1"/>
119-
<dir name="DnsRecords.php" hash="bede95054d21264ac29df86e0ce7001c"/>
120-
</dir>
121121
<dir name="Firewall">
122122
<dir name="AccessRules.php" hash="2c80be81aaba7cf6dfd3e76a30494aad"/>
123123
<dir name="ChallengePassage.php" hash="0b5dbe0180dc1d1c939d634fb8a23489"/>
@@ -132,7 +132,7 @@
132132
<dir name="Websockets.php" hash="f3879096f241d33e51e82ee134d8c6db"/>
133133
</dir>
134134
<dir name="Overview">
135-
<dir name="Configuration.php" hash="c853ceffd491dcd97aca7628f3521f81"/>
135+
<dir name="Configuration.php" hash="65ef2ba5192efc4bff3f3cde6562303c"/>
136136
<dir name="Status.php" hash="cee8801bdac5b05ad661d3a27a8cb676"/>
137137
</dir>
138138
<dir name="PageRules">
@@ -251,6 +251,14 @@
251251
<dir name="adminhtml">
252252
<dir name="base">
253253
<dir name="default">
254+
<dir name="css">
255+
<dir name="cloudflare">
256+
<dir name="bundle.min.css" hash="8a9b5c81c0f4a641bfbc60d26e57f8f9"/>
257+
<dir name="fonts">
258+
<dir name="cloudflare-font.woff" hash="23613915553427be651a4781521f0ec9"/>
259+
</dir>
260+
</dir>
261+
</dir>
254262
<dir name="images">
255263
<dir name="cloudflare">
256264
<dir name="cloudflare.svg" hash="e7bcf4c627debf23d51cf96418cdf130"/>
@@ -261,14 +269,6 @@
261269
<dir name="search.svg" hash="b83bec273c1f0f3e5b009d8bdf733fac"/>
262270
</dir>
263271
</dir>
264-
<dir name="css">
265-
<dir name="cloudflare">
266-
<dir name="bundle.min.css" hash="8a9b5c81c0f4a641bfbc60d26e57f8f9"/>
267-
<dir name="fonts">
268-
<dir name="cloudflare-font.woff" hash="23613915553427be651a4781521f0ec9"/>
269-
</dir>
270-
</dir>
271-
</dir>
272272
<dir name="js">
273273
<dir name="cloudflare">
274274
<dir name="bundle.min.js" hash="2b593a7e02d39d405200050751db76fe"/>

yarn.lock

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1578,6 +1578,13 @@ gulp-gzip@^1.4.2:
15781578
stream-to-array "^2.3.0"
15791579
through2 "^2.0.3"
15801580

1581+
gulp-ignore@^2.0.2:
1582+
version "2.0.2"
1583+
resolved "https://registry.yarnpkg.com/gulp-ignore/-/gulp-ignore-2.0.2.tgz#5c2ea2a0a4402e0ab4a2bcd12efd9295344d78f2"
1584+
dependencies:
1585+
gulp-match "^1.0.3"
1586+
through2 "^2.0.1"
1587+
15811588
gulp-magepack@^1.0.3:
15821589
version "1.0.3"
15831590
resolved "https://registry.yarnpkg.com/gulp-magepack/-/gulp-magepack-1.0.3.tgz#a053f5212931f173380e938570212a35774c707b"
@@ -1593,6 +1600,12 @@ gulp-magepack@^1.0.3:
15931600
vinyl "^2.1.0"
15941601
xml2js "^0.4.19"
15951602

1603+
gulp-match@^1.0.3:
1604+
version "1.0.3"
1605+
resolved "https://registry.yarnpkg.com/gulp-match/-/gulp-match-1.0.3.tgz#91c7c0d7f29becd6606d57d80a7f8776a87aba8e"
1606+
dependencies:
1607+
minimatch "^3.0.3"
1608+
15961609
gulp-minify-css@^1.2.4:
15971610
version "1.2.4"
15981611
resolved "https://registry.yarnpkg.com/gulp-minify-css/-/gulp-minify-css-1.2.4.tgz#b6164957602ea27f9e5ad88227695dd205778c06"
@@ -2690,7 +2703,7 @@ minimalistic-crypto-utils@^1.0.0, minimalistic-crypto-utils@^1.0.1:
26902703
version "1.0.1"
26912704
resolved "https://registry.yarnpkg.com/minimalistic-crypto-utils/-/minimalistic-crypto-utils-1.0.1.tgz#f6c00c1c0b082246e5c4d99dfb8c7c083b2b582a"
26922705

2693-
"minimatch@2 || 3", minimatch@^3.0.0, minimatch@^3.0.2, minimatch@^3.0.4, minimatch@~3.0.2:
2706+
"minimatch@2 || 3", minimatch@^3.0.0, minimatch@^3.0.2, minimatch@^3.0.3, minimatch@^3.0.4, minimatch@~3.0.2:
26942707
version "3.0.4"
26952708
resolved "https://registry.yarnpkg.com/minimatch/-/minimatch-3.0.4.tgz#5166e286457f03306064be5497e8dbb0c3d32083"
26962709
dependencies:

0 commit comments

Comments
 (0)