* Added build:all script

* Reworked other commands
* Added main workflow (main.yml)
* Builds once to both test and publish through the baileysBuilt artifact
  (Only lib, docs and package.json)
* Using npm install instead of npm ci due to lockfiles not being included with the repo.
  Might cause a small slowdown in building
This commit is contained in:
AZMCode
2020-08-17 15:18:35 -04:00
parent 391eb6f751
commit 4acbae8cad
2 changed files with 117 additions and 1 deletions

View File

@@ -17,11 +17,12 @@
"automation"
],
"scripts": {
"prepare": "npm run build",
"test": "mocha --timeout 60000 -r ts-node/register src/Tests/Tests.*.ts",
"lint": "eslint '*/*.ts' --quiet --fix",
"build:tsc": "tsc",
"build:docs": "typedoc",
"build:all": "npm run build:tsc && npm run build:docs",
"build": "",
"example": "npx ts-node Example/example.ts",
"browser-decode": "npx ts-node src/BrowserMessageDecoding.ts"
},