WhatSock / accdc

The Standalone AccDC API is a scalable, cross-browser and cross-platform compatible Dynamic Content Management System built with JavaScript that automates the rendering of dynamic content to ensure accessibility for screen reader and keyboard only users.
http://whatsock.com/
MIT License
26 stars 7 forks source link

Formt.bat seems to be missing dependancies. #13

Open LaurenceRLewis opened 4 years ago

LaurenceRLewis commented 4 years ago

Format.bat does not load in the JavaScript files required.

(call prettier --write "./Acc.DC.API.U.js")

Requires something like

(call prettier --write "./**/{Acc.DC.API.U.js,accdc_bootstrap.js,modals.js,ParseLoad.js,tooltip_module.js,acordion_generator.js,aria_combobox_module.js,aria_data_grid_module.js,aria_listbox_generator.js,aria_menu_module.js,aria_radio_generator.js,aria_slider.js,aria_tabs_module.js,aria_toggler.js,aria_tree_module.js,banner_module.js,calendar_generator.js,carousel_module.js,css_drag_drop_module_for_jquery.js,css_drag_drop_module_for_standalone_dojo_and_mootools.js,footnote_generator.js,form_field_validator.js,modal_module.js,popup_module.js,progress_bar.js,scrollable_div_generator.js}")

accdc commented 4 years ago

Hi, I just tried this, and it's working on my end.

Within the https://github.com/whatsock/accdc project for the main WhatSock.com website, the file Acc.DC.API.U.js is located in the root folder where format.bat is located, which is why it's not set to parse subfolders.

E.G. open the Git CMD app to open the github commandline, and cd into the folder for the project, then run the following command: .\format.bat

Please let me know if I'm missing something.

LaurenceRLewis commented 4 years ago

Thanks for the quick reply.

It is probably me that's missing somehing :-) I was expecting the module files i.e. acordion_generator.js etc. to load into the folder. From memory these files were available in the zip archive prior to the current extraction method.

I ran the Format.bat using GitBash with the results: (in other words no files changed from those current in the zipped folder). Running the bootstrapped version these files are loaded inside js\modules. The Pages folder is also extracted.

Please excuse my ignorance in how this works.

C:\Users\laure\downloads\accdc-master>(call prettier --write "./Acc.DC.API.U.js" ) Acc.DC.API.U.js 718ms

C:\Users\laure\downloads\accdc-master>(call prettier --write "./**/{demo.js,helpers.js,ready.js}" ) js\demo.js 87ms js\helpers.js 53ms js\ready.js 64ms

C:\Users\laure\downloads\accdc-master>(call prettier --write "./*/{.css,.json}" ) css\global.css 213ms

C:\Users\laure\downloads\accdc-master>(call js-beautify -r --type="html" "./*/.{htm,html}" ) beautified AccDC.htm - unchanged beautified files\core\s1.htm - unchanged beautified files\core\s2.htm - unchanged beautified files\core\s3.htm - unchanged beautified files\core\s4.htm - unchanged beautified files\core\s5.htm - unchanged beautified files\core\s6.htm - unchanged beautified files\core\s7.htm - unchanged beautified files\core\s8.htm - unchanged beautified files\core\s9.htm - unchanged beautified files\left_tabs\mcContact.html - unchanged beautified files\left_tabs\mcDemo.html - unchanged beautified files\left_tabs\mcOverview.html - unchanged beautified files\policy_tabs\mcAbout.html - unchanged beautified files\policy_tabs\mcLegal.html - unchanged beautified files\policy_tabs\mcPrivacy.html - unchanged beautified files\policy_tabs\mcTerms.html - unchanged

C:\Users\laure\downloads\accdc-master>(call js-beautify -r --type="html" "./AccDC.htm" ) beautified AccDC.htm - unchanged

C:\Users\laure\downloads\accdc-master>(call .\minify.bat )

C:\Users\laure\downloads\accdc-master>call uglifyjs Acc.DC.API.U.js --comments /!/ --compress --mangle --output Acc.DC.API.js 'uglifyjs' is not recognized as an internal or external command, operable program or batch file.

C:\Users\laure\downloads\accdc-master>