A 3D map engine
npm install @arcadecity/arcaAn npm package for demonstration purposes using TypeScript to build for both the ECMAScript Module format (i.e. ESM or ES Module) and CommonJS Module format (CJS). It can be used in Node.js and browser applications.
1. Run npm install in your terminal
1. Then run npm run build
1. Update the package.json file "name" field with your own package name. Example @username/package-name
1. Create an account with npm if you don't have one already. Also be sure to enable two-factor authentication
1. Sign in to your npm account in your terminal with npm login
1. Run npm publish --access=public to publish your package
1. Install developer dependencies using the following command in your terminal npm i -D mocha @type/mocha chai @types/chai ts-node
1. Create a new file .mocharc.json in the root directory with the following contents:
``json`
{
"extension": ["ts"],
"spec": "./*/.spec.ts",
"require": "ts-node/register"
}
tests
1. Create a folderindex.spec.ts
1. Create an file in the tests folderindex.spec.ts
1. Write unit tests in the file to test the code in index.ts"test"
1. Add a property in the package.json file and give it a value of "mocha"npm test` in your terminal from the root folder of the project
1. Run