From 25f3011c54506ebf7038680e2928e2076bcc98d7 Mon Sep 17 00:00:00 2001 From: Chris Kankiewicz Date: Fri, 31 Jan 2020 15:18:40 -0700 Subject: [PATCH] Moved views out of resources folder and removed pre-compiled resouces from release artifacts --- Makefile | 9 ++++++--- app/assets/.gitignore | 1 - app/resources/images/favicon.dark.png | Bin 0 -> 1928 bytes app/resources/images/favicon.light.png | Bin 0 -> 1889 bytes app/src/Providers/TwigProvider.php | 2 +- app/{resources => }/views/404.twig | 0 app/{resources => }/views/components/file.twig | 0 app/{resources => }/views/components/footer.twig | 0 .../views/components/google-analytics.twig | 0 app/{resources => }/views/components/header.twig | 0 app/{resources => }/views/components/readme.twig | 0 .../views/components/scroll-to-top.twig | 0 app/{resources => }/views/index.twig | 0 app/{resources => }/views/layouts/app.twig | 0 webpack.mix.js | 2 ++ 15 files changed, 9 insertions(+), 5 deletions(-) create mode 100644 app/resources/images/favicon.dark.png create mode 100644 app/resources/images/favicon.light.png rename app/{resources => }/views/404.twig (100%) rename app/{resources => }/views/components/file.twig (100%) rename app/{resources => }/views/components/footer.twig (100%) rename app/{resources => }/views/components/google-analytics.twig (100%) rename app/{resources => }/views/components/header.twig (100%) rename app/{resources => }/views/components/readme.twig (100%) rename app/{resources => }/views/components/scroll-to-top.twig (100%) rename app/{resources => }/views/index.twig (100%) rename app/{resources => }/views/layouts/app.twig (100%) diff --git a/Makefile b/Makefile index c19cbbf..5e9808c 100644 --- a/Makefile +++ b/Makefile @@ -20,15 +20,18 @@ test: # Run coding standards/static analysis checks and tests tunnel: # Expose the application via secure tunnel @ngrok http -host-header=rewrite http://directory-lister.local:80 +clear-assets: # Clear the compiled assets + @rm app/assets/* -rfv + clear-cache: # Clear the application cache @rm app/cache/* -rfv tar: # Generate tarball - @tar --verbose --create --gzip --exclude-vcs --exclude app/cache/* \ + @tar --verbose --create --gzip --exclude-vcs --exclude app/cache/* --exclude app/resources \ --file artifacts/$(ARTIFACT_NAME).tar.gz $(ARTIFACT_FILES) zip: # Generate zip file - @zip --exclude "*.git*" --exclude "app/cache/**" \ + @zip --verbose --exclude "*.git*" "app/cache/**" "app/resources/*" \ --recurse-paths artifacts/$(ARTIFACT_NAME).zip $(ARTIFACT_FILES) -artifacts: production tar zip # Generate release artifacts +artifacts: clear-assets production tar zip # Generate release artifacts diff --git a/app/assets/.gitignore b/app/assets/.gitignore index 84c1711..d6b7ef3 100644 --- a/app/assets/.gitignore +++ b/app/assets/.gitignore @@ -1,3 +1,2 @@ * -!/images/ !.gitignore diff --git a/app/resources/images/favicon.dark.png b/app/resources/images/favicon.dark.png new file mode 100644 index 0000000000000000000000000000000000000000..b54f5dfa34e0be2c1779625e5547a0772d258dd9 GIT binary patch literal 1928 zcmV;32Y2|1P)1Cwu&))EzrFrk`uu+w&uj%}I>rXUo?PBpeRSjkjvv{MIMUJS~zdw1{C4}kTB zm)&KTW#Rv6@1AqdJIxk7~Td|qpcfj<*8UC<>Ui-Au8cLNE--L3(BK(B~& zDArlQX!ohD<&FB4U6GuhL}JjQwM~y17Wp8#3h9%0jtaD^NWED8Lwg%?PE1<@O4c1u zRKKTCVGHnuh`cW4j0is)aMgA`WQXZ|uG1eBGjaiy*KC%|^5GemYJKasH`P?ZRXfU*tk@vcw0 z52$KBv4J|XdwxOn$>rvx2`Jmp9)IPk>mA^$#1KSz*V{9H{X`@f6IpuKRaZ@{2|w&X zeJ$QOaImaQjgSc_&THPKu!$Ijs^)jKHNO^;3T(@5+Mpu8Vg^7}H&!)d9}1X&l6CJt zX!-3YfxDO)xN2F(vVBK0&Ih0ZDwf~=)(jFJ;4U$&14FUZ1S_C8w|Og~HRBo%8>Brx zhdJ|X_akTb-=kkT$xbf8`n#J3gT2a@Yvyit}2j6-_yPBY)U$ zZZ+|4N5whOD2{oy+pg^)&nWxphsJD6N={&V`7(aJ{|r8JbjQx;RW6=2@eBm?xD<1a zya2p<2LUDPjwf1v&$g*nPRHE1aodxU6ZqbbR*c)n)!EN$#is&OLzU7k-}v)SNAd|b zjG+2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c zS#0CH!k;ticyWG!$E(X{opZYH9MwO2FHtkxSNh{O4^QM1CXX^^{56Xh&!-e61-Wcq zov;=btcb0+|B|~~u=)$tYBe79>2Zj@$A9t2S%0NA`#VfAfq_Qw~^UrU0^T=y` zAd+QDAZ12HN>jt9WLlVH;*e4U+?dIYe{g0XCF`8(ADusGDr>xn`2Oj{!QXcA@V09x z&JQH@e0Gy29tScrQ!c2>dO%;4VO6#pEM_2 zt{C(JgFr#1cCeuc9{KXs6s@}S5`5i0#p7=bqG=|e7q~i81k`Q6j@3oe=U?yHd;=n% zq}$R&La!I$J(S8!5ipbR6ZqPu>$x)&$8o2pU~nYP?^^#wL(BPOoTpB&BAt>>B})Nv zukg({mKX5z?K{^I>9%S4_q;v9P9v_qvm9=-YYK9bh=w$39Q8Cq3RFNdt3^p@u`8<0 z-VUq0CsZGfs!Gx+vD?;_@M2-&{?z&S7&R}S&NN}|VXLaw3*fruxJdFj!MuQV>5(zBUUg1 zQz}EQnnpnnCFDMh8g@S4#oDVNCyA<Guu$ha08_Lja7|%AQ&5-HgOWQ?kx*Ji*tX@YK{k;|s#!u^jJHz(_c&-r8~g}4dt8m!O+iVC1AV> zx*6ECtRjEqFZO}pRz&pTgvdoUB063v9#}@=pY^Kqt&4@9o&X?RTh)bd-*S;&MDLxh zLu^I@0PNb(E5MW4ule#sTW#g9XBwY1DQedS9~AUh7R%ohaVz%EHo?rLJ5sDQz-w7} z^1nC5?(VtT=I2a{hxb;E=D7oR0Y|e)_+NO6ov);%U4H88F;w67gdz_vW!V)u6sfIv zXu2DJVFZk$qTaq+RFAUsI?6s4^!~O3mGf%wPAV+hXti87W<1A$+n0)y;~3BGj@t5h z`_-xVZ0-nhlSlUsa5Uz8sv&BXrKF~rmefpnT_otisaE6;;AWEeK5-l_LWj6| z+*Q*wk;Y0Xsp;0$N~^U{J+ehr)&uKM)~HBgetEnvironment()->setCache( $this->config->get('view.cache', 'app/cache/views') diff --git a/app/resources/views/404.twig b/app/views/404.twig similarity index 100% rename from app/resources/views/404.twig rename to app/views/404.twig diff --git a/app/resources/views/components/file.twig b/app/views/components/file.twig similarity index 100% rename from app/resources/views/components/file.twig rename to app/views/components/file.twig diff --git a/app/resources/views/components/footer.twig b/app/views/components/footer.twig similarity index 100% rename from app/resources/views/components/footer.twig rename to app/views/components/footer.twig diff --git a/app/resources/views/components/google-analytics.twig b/app/views/components/google-analytics.twig similarity index 100% rename from app/resources/views/components/google-analytics.twig rename to app/views/components/google-analytics.twig diff --git a/app/resources/views/components/header.twig b/app/views/components/header.twig similarity index 100% rename from app/resources/views/components/header.twig rename to app/views/components/header.twig diff --git a/app/resources/views/components/readme.twig b/app/views/components/readme.twig similarity index 100% rename from app/resources/views/components/readme.twig rename to app/views/components/readme.twig diff --git a/app/resources/views/components/scroll-to-top.twig b/app/views/components/scroll-to-top.twig similarity index 100% rename from app/resources/views/components/scroll-to-top.twig rename to app/views/components/scroll-to-top.twig diff --git a/app/resources/views/index.twig b/app/views/index.twig similarity index 100% rename from app/resources/views/index.twig rename to app/views/index.twig diff --git a/app/resources/views/layouts/app.twig b/app/views/layouts/app.twig similarity index 100% rename from app/resources/views/layouts/app.twig rename to app/views/layouts/app.twig diff --git a/webpack.mix.js b/webpack.mix.js index 7d9f9dd..943121c 100644 --- a/webpack.mix.js +++ b/webpack.mix.js @@ -15,6 +15,8 @@ mix.sass('app/resources/sass/app.scss', 'app/assets/app.css').options({ mix.js('app/resources/js/app.js', 'app/assets/app.js'); +mix.copyDirectory('app/resources/images', 'app/assets/images'); + mix.copyDirectory( 'node_modules/@fortawesome/fontawesome-free/webfonts', 'app/assets/webfonts'