ff-stream-web

git clone git://archive.git.mtrnord.blog/MTRNord/ff-stream-web.git
Log | Files | Refs | README | LICENSE

commit ddd3f02f0c0220702fff6eabc60683671111737e
parent 274b1178630b15777d02624388712487546d3290
Author: Vladimir Kutepov <frenzzy.man@gmail.com>
Date:   Thu, 24 Nov 2016 23:24:52 +0400

Move the public folder to the root directory (#990)


Diffstat:
Mdocs/getting-started.md | 2+-
Rsrc/public/apple-touch-icon.png -> public/apple-touch-icon.png | 0
Rsrc/public/browserconfig.xml -> public/browserconfig.xml | 0
Rsrc/public/crossdomain.xml -> public/crossdomain.xml | 0
Rsrc/public/favicon.ico -> public/favicon.ico | 0
Rsrc/public/humans.txt -> public/humans.txt | 0
Rsrc/public/robots.txt -> public/robots.txt | 0
Rsrc/public/tile-wide.png -> public/tile-wide.png | 0
Rsrc/public/tile.png -> public/tile.png | 0
Mtools/copy.js | 7++++---
10 files changed, 5 insertions(+), 4 deletions(-)

diff --git a/docs/getting-started.md b/docs/getting-started.md @@ -17,12 +17,12 @@ Before you start, take a moment to see how the project structure looks like: ├── /build/ # The folder for compiled output ├── /docs/ # Documentation files for the project ├── /node_modules/ # 3rd-party libraries and utilities +├── /public/ # Static files which are copied into the /build/public folder ├── /src/ # The source code of the application │ ├── /components/ # React components │ ├── /content/ # Static pages like About Us, Privacy Policy etc. │ ├── /core/ # Core framework and utility functions │ ├── /data/ # GraphQL server schema and data models -│ ├── /public/ # Static files which are copied into the /build/public folder │ ├── /routes/ # Page/screen components along with the routing information │ ├── /client.js # Client-side startup script │ ├── /config.js # Global application settings diff --git a/src/public/apple-touch-icon.png b/public/apple-touch-icon.png Binary files differ. diff --git a/src/public/browserconfig.xml b/public/browserconfig.xml diff --git a/src/public/crossdomain.xml b/public/crossdomain.xml diff --git a/src/public/favicon.ico b/public/favicon.ico Binary files differ. diff --git a/src/public/humans.txt b/public/humans.txt diff --git a/src/public/robots.txt b/public/robots.txt diff --git a/src/public/tile-wide.png b/public/tile-wide.png Binary files differ. diff --git a/src/public/tile.png b/public/tile.png Binary files differ. diff --git a/tools/copy.js b/tools/copy.js @@ -29,19 +29,20 @@ async function copy() { }, null, 2)), copyFile('LICENSE.txt', 'build/LICENSE.txt'), copyDir('src/content', 'build/content'), - copyDir('src/public', 'build/public'), + copyDir('public', 'build/public'), ]); if (process.argv.includes('--watch')) { const watcher = await new Promise((resolve, reject) => { gaze([ 'src/content/**/*', - 'src/public/**/*', + 'public/**/*', ], (err, val) => (err ? reject(err) : resolve(val))); }); watcher.on('all', async (event, filePath) => { - const dist = path.join('build/', path.relative('src', filePath)); + const src = path.relative('./', filePath); + const dist = path.join('build/', src.startsWith('src') ? path.relative('src', src) : src); switch (event) { case 'added': case 'renamed':