mmikowski / hi_score Goto Github PK
View Code? Open in Web Editor NEWThe UnFramework for Single Page Web Applications
The UnFramework for Single Page Web Applications
Hi Sir Michael
Just a quick note, for the app-ex01 and app-ex02 examples when you run bin/xhi build,dev_start you get an error in the terminal (everything works) and both app pages are blank, this is due to package.json line 682 app_table, looking for a file that is not in the js folder.
package.json -> line 695 "js/ex01-08_app-build.js" not in JS folder ; name in JS folder is ex01.08_app-build.js
package.json -> line 731 "js/ex02-08_app-build.js" not in JS folder ; name in JS folder is ex02.08_app-build.js
as result it generates an empty js/app-ex01-sp.js and js/app-ex02-sp.js once app is bulit.
Changing either the file name in package.json file or renaming the files in the JS folder fixes this.
thanks again.
Leo
The command in the quick start yields this error:
$ git clone [email protected]:mmikowski/hi_score.git
Cloning into 'hi_score'...
Permission denied (publickey).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
But I was able to clone with https:
$ git clone https://github.com/mmikowski/hi_score.git
Cloning into 'hi_score'...
remote: Counting objects: 1412, done.
remote: Total 1412 (delta 0), reused 0 (delta 0), pack-reused 1412
Receiving objects: 100% (1412/1412), 2.14 MiB | 795.00 KiB/s, done.
Resolving deltas: 100% (969/969), done.
Checking connectivity... done.
Thanks for your work on this!
Bill
Back in 2014/16 we used node v4 and/or v6. Based on the SPA book I was able to build my own web app. Back then we used npmbox to essentially tar up all the node modules after they were completely resolved and installed on an internet connected dev machine and then sneaker net the "box" files over to the disconnected dev machine.
In one fell swoop I would like todo the same thing for hi_score.
I know npmbox is not supported since node v5.
Do you have any suggestions or experience with this?
Thanks!
John
Hello
I am attempting to setup hi_score and I am getting the err below; am I missing something.
nodejs version v6.11.1; npm version: 3.10.10
command: bin/xhi install,setup
output:
/home/leo/test/heytest/bin/xhi:25
makeReadPromFn = promisifyFn( fsObj.readFile ),
^
TypeError: promisifyFn is not a function
at Object. (/home/leo/test/heytest/bin/xhi:25:20)
at Module._compile (module.js:570:32)
at Object.Module._extensions..js (module.js:579:10)
at Module.load (module.js:487:32)
at tryModuleLoad (module.js:446:12)
at Function.Module._load (module.js:438:3)
at Module.runMain (module.js:604:10)
at run (bootstrap_node.js:389:7)
at startup (bootstrap_node.js:149:9)
at bootstrap_node.js:504:3
thanks
Leo
Just checked out hi_score / master, did
$ bin/xhi build,dev_start
I have a failed test in 00_xhi_libs.js
function getTzCode ( test_obj ) {
var tz_code = utilObj._getTzCode_();
test_obj.expect( __1 );
// eslint-disable-next-line no-useless-escape
test_obj.ok( tz_code.match( /^[A-Za-z0-9+\- ]+$/ ),
'Code fails to match regex: ' + tz_code
);
test_obj.done();
}
tz_code
is "GMT+01:00" and is no match for the regexp (due to the colon)
Environment :
Ubuntu 19.10
node v12.16.1
npm 6.13.4
Locale fr_FR.UTF-8
Thank you for the great work ; really looking forward to reading SPA 2nd ed.!
Hi, I was trying to see what's the deal with the project (sounds interesting indeed), so I did the following:
git clone [email protected]:mmikowski/hi_score.git
npm i
npm run prep-libs
I intentionally cloned it, instead of getting it through npm, as it felt a bit weird that way โ cd
ing into node_modules/hi_score
and npm install
ing there etc.
Seems like there's something wrong in prep-libs script. It stays hung after outputting this error:
npm run prep-libs
> [email protected] prep-libs /Users/splash/workspace/hi_score
> bin/prep-libs.sh
prep-libs: start
prep-libs: start layout_variables
readlink: illegal option -- f
usage: readlink [-n] [file ...]
I have no idea about the problem there and I hope I'm doing everything correctly. Here's a recording of terminal on asciinema (Sorry it takes a bit long due to slow connection, error at 1:55):
I absolutely loved your SPA book. I used the concepts in my first web app. I downloaded the ova appliance and have started the tutorial/docs. I'm noticing lots of deprecated warnings doing the git clone and the repo hasn't been updated in a long time.
Are you too busy or is this concept overtaken by other technologies?
Thanks!
Mid 2019 is what I read in the README...any updates? We would really like to see a LOB type app.
Installing pandoc
was not enough, apparently I need to install some perl modules too. However, I do not know where to find them! I tried MacPorts but no dice:
$ sudo port install libgetopt-simple-perl libfile-slurp-perl
Error: Port libgetopt-simple-perl not found
$ sudo port install p5-libgetopt-simple p5-libfile-slurp
Error: Port p5-libgetopt-simple not found
$ bin/xhi build,dev_start
...
xhi> Distribtion directory exists. Wipe and recreate? (Y/n) Y
xhi> 02: Uglify JS and CSS...
xhi> 03: Save uglified JS and CSS...
xhi> 04: Superpack JS symbols...
xhi-error>
*** PLEASE ADD PERL LIBRARIES ***
It appears the following perl libraries are not installed:
sudo apt install libgetopt-simple-perl libfile-slurp-perl
Please install and try again!
xhi-warn> [Arguments] {}
xhi-abort> Stage 11 build : Fail
Understand that the publisher rules the day...any chance of a +- 3 months or so?
xhi dev_start
firefox http://localhost:8080/app-ex01.html
fix: comment out 02_fake and add 02,03,04 extensions to
'js/xhi/05_02_css_base.js',
'js/xhi/05_03_css_lb.js',
'js/xhi/05_04_css_shell.js',
'js/xhi/05_css.js',
ex01.08_app.js
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.