From acae3992f5a85b97d2aaa3701af5f806ba32cf3c Mon Sep 17 00:00:00 2001 From: cpsdqs Date: Mon, 11 Sep 2017 17:20:53 +0200 Subject: [PATCH] Restructuring --- .eslintignore | 7 +++--- .gitignore | 2 -- README.md | 4 +-- _dev_router.php | 13 ++++++++++ build.sh | 45 +++++++++++++++++++++------------- css/.gitkeep | 0 dump_js_lang.php | 2 +- js/.gitkeep | 0 {jssrc => js}/appcommon.js | 0 {jssrc => js}/debug_screen.js | 0 {jssrc => js}/lang.js | 0 {jssrc => js}/lib/chibi.js | 0 {jssrc => js}/lib/keymaster.js | 0 {jssrc => js}/lib/polyfills.js | 0 {jssrc => js}/modal.js | 0 {jssrc => js}/notif.js | 0 {jssrc => js}/soft_keyboard.js | 0 {jssrc => js}/td/WebAudio.d.ts | 0 {jssrc => js}/term.js | 0 {jssrc => js}/term_conn.js | 0 {jssrc => js}/term_input.js | 0 {jssrc => js}/term_screen.js | 0 {jssrc => js}/term_upload.js | 0 {jssrc => js}/utils.js | 0 {jssrc => js}/wifi.js | 0 server.sh | 2 +- 26 files changed, 48 insertions(+), 27 deletions(-) create mode 100644 _dev_router.php delete mode 100644 css/.gitkeep delete mode 100644 js/.gitkeep rename {jssrc => js}/appcommon.js (100%) rename {jssrc => js}/debug_screen.js (100%) rename {jssrc => js}/lang.js (100%) rename {jssrc => js}/lib/chibi.js (100%) rename {jssrc => js}/lib/keymaster.js (100%) rename {jssrc => js}/lib/polyfills.js (100%) rename {jssrc => js}/modal.js (100%) rename {jssrc => js}/notif.js (100%) rename {jssrc => js}/soft_keyboard.js (100%) rename {jssrc => js}/td/WebAudio.d.ts (100%) rename {jssrc => js}/term.js (100%) rename {jssrc => js}/term_conn.js (100%) rename {jssrc => js}/term_input.js (100%) rename {jssrc => js}/term_screen.js (100%) rename {jssrc => js}/term_upload.js (100%) rename {jssrc => js}/utils.js (100%) rename {jssrc => js}/wifi.js (100%) diff --git a/.eslintignore b/.eslintignore index 5db3e80..76fd6af 100644 --- a/.eslintignore +++ b/.eslintignore @@ -1,9 +1,8 @@ # possibly minified output -js -out +out/**/* # libraries -jssrc/lib +js/lib/* # php generated file -jssrc/lang.js +js/lang.js diff --git a/.gitignore b/.gitignore index 744d0a9..0de9aaf 100644 --- a/.gitignore +++ b/.gitignore @@ -1,6 +1,4 @@ _env.php -js/* -css/* out/* !.gitkeep node_modules/ diff --git a/README.md b/README.md index 83861f9..a0e5ebf 100644 --- a/README.md +++ b/README.md @@ -12,7 +12,7 @@ PHP is used to build the HTML files and apply substitutions. ## Development -JavaScript source files can be found in the `jssrc/` folder, SASS +JavaScript source files can be found in the `js/` folder, SASS files in the `sass/` folder. Fontello (icon font) is maintained in the `fontello/` folder. To update Fontello, replace @@ -20,7 +20,7 @@ the `fontello.zip` file and run `unpack.sh` in the same folder. This will extrac from the zip file and put them into the `sass/` folder to be included with the other styles. To test you changes (after building JS and CSS), run a PHP local server in the project -directory using the `server.sh` script or by a command like `php -S 0.0.0.0:2000`. +directory using the `server.sh` script or by a command like `php -S 0.0.0.0:2000 _dev_router.php`. Template substitutions (that are normally done by the ESPTerm's webserver) applied to the files fior testing can be defined in `_debug_replacements.php`. diff --git a/_dev_router.php b/_dev_router.php new file mode 100644 index 0000000..641c482 --- /dev/null +++ b/_dev_router.php @@ -0,0 +1,13 @@ +