/wordsearchjs

Playing around with web tech while prototyping for projects

Primary LanguageJavaScript

Word Search JS

Simple word search game used as a test bed for learning and experimenting with web technologies.

By Ahmed Tawfik

Run requirements

Due to the use of JS modules, CORS browser policies prevent running directly from the filesystem. Running this HTML requires running from a web server.

Building

Install application dependencies via NPM, then build a production build:

npm install
npm run build

Now contents of dist folder are ready to be deployed to a static web server.

You may use preview mode to verify correct build in dist folder:

npm run preview

Running in dev mode

npm run dev

Click on the link printed in the console to open in the default browser. Note that this will also enter the console and browser into watch mode, updating the browser on every change under ./src.

Linting

npm run lint

Running unit tests

Run via terminal or via IntelliJ ViTest run configuration:

npm run test

Note that this will also enter the console into watch mode.