fix(core): update
This commit is contained in:
		| @@ -1,5 +1,5 @@ | ||||
| # gitzone ci_default | ||||
| image: hosttoday/ht-docker-node:npmci | ||||
| image: registry.gitlab.com/hosttoday/ht-docker-node:npmci | ||||
|  | ||||
| cache: | ||||
|   paths: | ||||
| @@ -50,13 +50,13 @@ testLTS: | ||||
|   - docker | ||||
|   - notpriv | ||||
|  | ||||
| testSTABLE: | ||||
| testBuild: | ||||
|   stage: test | ||||
|   script: | ||||
|   - npmci npm prepare | ||||
|   - npmci node install stable | ||||
|   - npmci node install lts | ||||
|   - npmci npm install | ||||
|   - npmci npm test | ||||
|   - npmci command npm run build | ||||
|   coverage: /\d+.?\d+?\%\s*coverage/ | ||||
|   tags: | ||||
|   - docker | ||||
| @@ -65,7 +65,7 @@ testSTABLE: | ||||
| release: | ||||
|   stage: release | ||||
|   script: | ||||
|   - npmci node install stable | ||||
|   - npmci node install lts | ||||
|   - npmci npm publish | ||||
|   only: | ||||
|   - tags | ||||
|   | ||||
| @@ -9,7 +9,7 @@ export const runCli = async () => { | ||||
|     const tsbundle = new TsBundle(); | ||||
|     const htmlHandler = new HtmlHandler(); | ||||
|     switch (true) { | ||||
|       case (argvArg.production) || process.env.CI: | ||||
|       case argvArg.production || process.env.CI: | ||||
|         await tsbundle.buildProduction(); | ||||
|         await htmlHandler.minifyHtml(); | ||||
|         break; | ||||
|   | ||||
| @@ -14,10 +14,7 @@ export class HtmlHandler { | ||||
|     if (!(await this.checkIfExists)) { | ||||
|       return; | ||||
|     } | ||||
|     await plugins.smartfile.fs.copy( | ||||
|       this.sourceFilePath, | ||||
|       this.targetFilePath | ||||
|     ); | ||||
|     await plugins.smartfile.fs.copy(this.sourceFilePath, this.targetFilePath); | ||||
|   } | ||||
|  | ||||
|   // copies and minifies the html | ||||
| @@ -35,7 +32,6 @@ export class HtmlHandler { | ||||
|       collapseWhitespace: true, | ||||
|       collapseInlineTagWhitespace: true, | ||||
|       removeComments: true | ||||
|  | ||||
|     }); | ||||
|     plugins.smartfile.memory.toFsSync(minifiedHtml, this.targetFilePath); | ||||
|   } | ||||
|   | ||||
| @@ -1,9 +1,7 @@ | ||||
| // node native | ||||
| import * as path from 'path'; | ||||
|  | ||||
| export { | ||||
|   path | ||||
| }; | ||||
| export { path }; | ||||
|  | ||||
| // pushrocks scope | ||||
| import * as smartcli from '@pushrocks/smartcli'; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user