summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLibravatar Vijay A <avijayr@protonmail.com>2021-08-21 09:03:32 +0530
committerLibravatar Vijay A <avijayr@protonmail.com>2021-08-21 09:16:59 +0530
commit16d8de38b74c298fda27c22c804850a999183d57 (patch)
tree6c869677e3bb8472f5b86c92908bb256ec0c5be5
parentchore: typescript conversion (diff)
downloadferdium-app-16d8de38b74c298fda27c22c804850a999183d57.tar.gz
ferdium-app-16d8de38b74c298fda27c22c804850a999183d57.tar.zst
ferdium-app-16d8de38b74c298fda27c22c804850a999183d57.zip
chore: move build-time js files out of 'src' and into 'scripts'
so that they not packaged into final deployable artefact
-rw-r--r--gulpfile.babel.js2
-rw-r--r--package.json4
-rw-r--r--scripts/add-crowdin-contributors.js (renamed from src/scripts/add-crowdin-contributors.js)2
-rw-r--r--scripts/build-theme-info.js (renamed from src/scripts/build-theme-info.js)0
-rw-r--r--scripts/link-readme.js (renamed from src/scripts/link-readme.js)0
-rw-r--r--scripts/theme/default/legacy.js (renamed from src/theme/default/legacy.js)2
6 files changed, 5 insertions, 5 deletions
diff --git a/gulpfile.babel.js b/gulpfile.babel.js
index 625d52e19..f87958a77 100644
--- a/gulpfile.babel.js
+++ b/gulpfile.babel.js
@@ -19,7 +19,7 @@ import ts from 'gulp-typescript';
19import * as buildInfo from 'preval-build-info'; 19import * as buildInfo from 'preval-build-info';
20import config from './package.json'; 20import config from './package.json';
21 21
22import * as rawStyleConfig from './src/theme/default/legacy'; 22import * as rawStyleConfig from './scripts/theme/default/legacy';
23 23
24dotenv.config(); 24dotenv.config();
25 25
diff --git a/package.json b/package.json
index f49c71492..87e18f1c7 100644
--- a/package.json
+++ b/package.json
@@ -38,8 +38,8 @@
38 "apply-branding": "node ./src/i18n/apply-branding.js", 38 "apply-branding": "node ./src/i18n/apply-branding.js",
39 "update-submodules": "git submodule update --remote --force", 39 "update-submodules": "git submodule update --remote --force",
40 "prepare-code": "npm run lint && npm run reformat-files && npm run manage-translations && npm run apply-branding", 40 "prepare-code": "npm run lint && npm run reformat-files && npm run manage-translations && npm run apply-branding",
41 "build-theme-info": "node src/scripts/build-theme-info.js", 41 "build-theme-info": "node scripts/build-theme-info.js",
42 "link-readme": "node src/scripts/link-readme.js", 42 "link-readme": "node scripts/link-readme.js",
43 "minify-images": "./scripts/minify-images.sh", 43 "minify-images": "./scripts/minify-images.sh",
44 "start:server": "node src/internal-server/test.js" 44 "start:server": "node src/internal-server/test.js"
45 }, 45 },
diff --git a/src/scripts/add-crowdin-contributors.js b/scripts/add-crowdin-contributors.js
index ed29a0daf..05e377a94 100644
--- a/src/scripts/add-crowdin-contributors.js
+++ b/scripts/add-crowdin-contributors.js
@@ -48,7 +48,7 @@ console.clear();
48console.log(JSON.stringify(members)); 48console.log(JSON.stringify(members));
49 49
50 * 3. Paste the output of the script (JSON Array) below to set 'list' to that value 50 * 3. Paste the output of the script (JSON Array) below to set 'list' to that value
51 * 4. Execute this script using 'node src/scripts/add-crowdin-contributors.js' 51 * 4. Execute this script using 'node scripts/add-crowdin-contributors.js'
52 * 5. Regenerate the README table using the CLI ('all-contributors generate') 52 * 5. Regenerate the README table using the CLI ('all-contributors generate')
53 * Please check if the generated data is ok and no data is lost. 53 * Please check if the generated data is ok and no data is lost.
54*/ 54*/
diff --git a/src/scripts/build-theme-info.js b/scripts/build-theme-info.js
index 4058be942..4058be942 100644
--- a/src/scripts/build-theme-info.js
+++ b/scripts/build-theme-info.js
diff --git a/src/scripts/link-readme.js b/scripts/link-readme.js
index 1e47cddf8..1e47cddf8 100644
--- a/src/scripts/link-readme.js
+++ b/scripts/link-readme.js
diff --git a/src/theme/default/legacy.js b/scripts/theme/default/legacy.js
index 3f4bec5d5..015dca756 100644
--- a/src/theme/default/legacy.js
+++ b/scripts/theme/default/legacy.js
@@ -1,4 +1,4 @@
1/* legacy config, injected into sass */ 1/* legacy config, injected into sass at build time */
2export const themeBrandPrimary = '#7266F0'; 2export const themeBrandPrimary = '#7266F0';
3export const themeBrandSuccess = '#5cb85c'; 3export const themeBrandSuccess = '#5cb85c';
4export const themeBrandInfo = '#5bc0de'; 4export const themeBrandInfo = '#5bc0de';