These demos are intended for internal development and showcase various features.
For some more use-friendly demos see the PINF JavaScript Test Programs project.
See ./Setup.md
commonjs -v ./demos/HelloWorld
commonjs -v ./demos/AMD
commonjs -v ./demos/Mappings
commonjs -v ./demos/CommonJSModules1
commonjs -v ./demos/CommonJSModules1Script/script
commonjs -v ./demos/CommonJSModules2
commonjs -v ./demos/CommonJSModules2Script/script
commonjs -v ./demos/LoadExtraCode
commonjs -v ./demos/PINFCatalog
commonjs -v ./demos/MapModule
commonjs -v ./demos/NotAvailable
commonjs -v https://gist.github.com/823078
To run the programs on a different platform use:
commonjs -v --platform <PlatformAlias> ./demos/HelloWorld
Where <PlatformAlias>
is any of node
, gpsee
, v8cgi
, narwhal
or ringo
.
Drop the -v
to omit the loader progress output.
NOTE: Currently requires running with --platform node
(default) ONCE first to download dependencies due to incomplete
API adapters for the other platforms.
Server-based programs:
commonjs -v ./demos/BravoJS
commonjs -v ./demos/NodeUnit
commonjs -v ./demos/ReloadingJSGI
commonjs -v ./demos/PreloadCoffeeScript
commonjs -v ./demos/GithubArchiveDependency
commonjs -v ./demos/SystemDependencies
commonjs -v https://gist.github.com/823315
commonjs -v ./demos/PostCommitProgramReload
Browser-based programs:
commonjs -v ./demos/ProgramServer
commonjs -v ./demos/ACE
Via NPM:
npm install pinf-loader-js-demos-npmpackage
npm start pinf-loader-js-demos-npmpackage
Server-based programs: ./demos/GPSEE
gsr -f ./pinf-loader.js -- -v ./demos/HelloWorld
gsr -f ./pinf-loader.js -- -v ./demos/LoadExtraCode
gsr -f ./pinf-loader.js -- -v ./demos/Mappings
Server-based programs: ./demos/v8cgi
v8cgi ./pinf-loader.js -v ./demos/HelloWorld
v8cgi ./pinf-loader.js -v ./demos/LoadExtraCode
v8cgi ./pinf-loader.js -v ./demos/Mappings
Server-based programs:
commonjs -v ./demos/Narwhal
Firefox extensions:
# Jetpack (assuming SDK activated & FF 4 installed)
cfx --pkgdir=./demos/JetpackExtension/extension run
RingoJS-based programs: ./demos/RingoJS
ringo ../pinf-loader.js ../demos/HelloWorld
AdobeAir-based programs: ./demos/AdobeAir
Appcelerator Titanium-based programs: ./demos/Titanium