feat: add expected build script

Fixes #12
This commit is contained in:
Karl-Philipp Wulfert
2019-04-16 10:23:25 +02:00
parent 77bed076bb
commit 34d3d43ff5
2 changed files with 2 additions and 1 deletions

View File

@@ -3,7 +3,7 @@
"version": "0.11.0", "version": "0.11.0",
"description": "A collection of configuration base files for StApps projects.", "description": "A collection of configuration base files for StApps projects.",
"scripts": { "scripts": {
"build": "npm run tslint && npm run compile && npm run documentation", "build": "npm run tslint && npm run compile",
"compile": "rimraf lib && tsc --outDir lib && prepend lib/cli.js '#!/usr/bin/env node\n'", "compile": "rimraf lib && tsc --outDir lib && prepend lib/cli.js '#!/usr/bin/env node\n'",
"changelog": "conventional-changelog -p angular -i CHANGELOG.md -s -r 0 && git add CHANGELOG.md && git commit -m 'docs: update changelog'", "changelog": "conventional-changelog -p angular -i CHANGELOG.md -s -r 0 && git add CHANGELOG.md && git commit -m 'docs: update changelog'",
"documentation": "typedoc --includeDeclarations --excludeExternals --mode modules --out docs src", "documentation": "typedoc --includeDeclarations --excludeExternals --mode modules --out docs src",

View File

@@ -56,6 +56,7 @@ export const NYC_CONFIGURATION = {
* Map of expected scripts * Map of expected scripts
*/ */
export const SCRIPTS: { [k: string]: string } = { export const SCRIPTS: { [k: string]: string } = {
'build': 'npm run tslint && npm run compile',
/* tslint:disable-next-line:max-line-length */ /* tslint:disable-next-line:max-line-length */
'changelog': 'conventional-changelog -p angular -i CHANGELOG.md -s -r 0 && git add CHANGELOG.md && git commit -m \'docs: update changelog\'', 'changelog': 'conventional-changelog -p angular -i CHANGELOG.md -s -r 0 && git add CHANGELOG.md && git commit -m \'docs: update changelog\'',
'check-configuration': 'openstapps-configuration', 'check-configuration': 'openstapps-configuration',