Metawork |
---|
This help article discusses the metawork necessary to develop and maintain my website. My IDE (Integrated Development Environment) is Visual Studio Code (VS Code), and my languages are PHP and TypeScript (which is translated into JavaScript). I use Node.js to automate several tasks.
Node.jsMost of my work is done by the Filer.js module in the metawork/server folder. Note: When running on the server (node mode), the Viewer object references the filer in the server folder. When running in the browser, the Viewer object references a stub in the viewer folder.
JavaScript files with the extension ".mjs", which indicates to Node.js it is a module file. I name my JavaScript "metaworkers" in all lowercase with hyphens for spaces. The first line in the file "hints" that the following JavaScript targets version ES6:
/* jshint esversion: 6 */
This version introduced keywords like import
and const
. To run a JavaScript module, you first need to open a Terminal window, and change the current working directory (cwd) to where the module resides. Then you execute the script using node
. The following example is for my development computer:
cd /projects/mysterymaster.com/metawork/js/server node my-name.mjs
Below is a list of my metawork articles.