diff --git a/README.md b/README.md index 1fa3c380..6b741065 100644 --- a/README.md +++ b/README.md @@ -155,9 +155,9 @@ Spee.ch also runs a sync tool, which decodes blocks from the `LBRY` blockchain a * `client/scss/` contains the CSS for the project * -* `client_custom` is a folder which can be used to override the default components in `client/` +* `config/custom` is a folder which can be used to override the default components in `client/` * The folder structure mimics that of the `client/` folder - * to customize spee.ch, place your own components and scss in the `client_custom/src/` and `client_custom/scss` folders. + * to customize spee.ch, place your own components and scss in the `config/custom/src/` and `config/custom/scss` folders. * `server/` contains all of the server code * `index.js` is the entry point for the server. It creates the [express app](https://expressjs.com/), requires the routes, syncs the database, and starts the server listening on the `PORT` designated in the config files. diff --git a/customize.md b/customize.md index 3291f830..98273136 100644 --- a/customize.md +++ b/customize.md @@ -3,14 +3,14 @@ _note: this guide assumes you have done the []quickstart](https://github.com/lbryio/spee.ch/blob/readme-update/README.md) or [fullstart](https://github.com/lbryio/spee.ch/blob/readme-update/fullstart.md) guide and have a working spee.ch server_ ## Custom Components -The components used by spee.ch are taken from the `client/` folder, but you can override those components by defining your own in the `client_custom/` folder. +The components used by spee.ch are taken from the `client/` folder, but you can override those components by defining your own in the `site/custom/` folder. ### Add a new custom Logo component. -To create your own custom component to override the defaults, create a folder and an `index.jsx` file for the component in the `client_custom/src/components/` folder. +To create your own custom component to override the defaults, create a folder and an `index.jsx` file for the component in the `site/custom/src/components/` folder. ``` -$ cd client_custom/src/components/ +$ cd site/custom/src/components/ $ mkdir Logo $ cd Logo $ touch index.jsx diff --git a/package.json b/package.json index 5014c201..d8990c75 100644 --- a/package.json +++ b/package.json @@ -22,14 +22,14 @@ "test": "mocha --recursive", "test:no-lbc": "npm test -- --grep @usesLbc --invert", "test:server": "mocha --recursive './server/**/*.test.js'", - "transpile": "builder concurrent transpile:server transpile:client transpile:client_custom", - "transpile:dev": "builder concurrent transpile:server:dev transpile:client:dev transpile:client_custom:dev", + "transpile": "builder concurrent transpile:server transpile:client transpile:custom", + "transpile:dev": "builder concurrent transpile:server:dev transpile:client:dev transpile:custom:dev", "transpile:server": "babel server/render/src -d server/render/build", "transpile:server:dev": "babel server/render/src -w -d server/render/build", "transpile:client": "babel client/src -d client/build", "transpile:client:dev": "babel client/src -w -d client/build", - "transpile:client_custom": "babel site/client_custom/src -d site/client_custom/build", - "transpile:client_custom:dev": "babel site/client_custom/src -w -d site/client_custom/build" + "transpile:custom": "babel site/custom/src -d site/custom/build", + "transpile:custom:dev": "babel site/custom/src -w -d site/custom/build" }, "repository": { "type": "git", diff --git a/utils/createModuleAliases.js b/utils/createModuleAliases.js index 9a8a5434..ca34d2e8 100644 --- a/utils/createModuleAliases.js +++ b/utils/createModuleAliases.js @@ -1,8 +1,8 @@ const { statSync, existsSync, readdirSync } = require('fs'); const { join, resolve } = require('path'); const DEFAULT_ROOT = 'client/build'; -const CUSTOM_ROOT = 'site/client_custom/build'; -const CUSTOM_SCSS_ROOT = 'site/client_custom/scss'; +const CUSTOM_ROOT = 'site/custom/build'; +const CUSTOM_SCSS_ROOT = 'site/custom/scss'; const getFolders = path => { if (existsSync(path)) {