diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 8ebc8b5..9a4467e 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -19,23 +19,35 @@ mirror: stage: security script: - npmci git mirror + only: + - tags tags: - lossless - docker - notpriv -audit: +auditProductionDependencies: + image: registry.gitlab.com/hosttoday/ht-docker-node:npmci + stage: security + script: + - npmci npm prepare + - npmci command npm install --production --ignore-scripts + - npmci command npm config set registry https://registry.npmjs.org + - npmci command npm audit --audit-level=high --only=prod --production + tags: + - docker + +auditDevDependencies: image: registry.gitlab.com/hosttoday/ht-docker-node:npmci stage: security script: - npmci npm prepare - npmci command npm install --ignore-scripts - npmci command npm config set registry https://registry.npmjs.org - - npmci command npm audit --audit-level=high + - npmci command npm audit --audit-level=high --only=dev tags: - - lossless - docker - - notpriv + allow_failure: true # ==================== # test stage @@ -50,9 +62,7 @@ testStable: - npmci npm test coverage: /\d+.?\d+?\%\s*coverage/ tags: - - lossless - docker - - priv testBuild: stage: test @@ -63,9 +73,7 @@ testBuild: - npmci command npm run build coverage: /\d+.?\d+?\%\s*coverage/ tags: - - lossless - docker - - notpriv release: stage: release @@ -85,6 +93,8 @@ release: codequality: stage: metadata allow_failure: true + only: + - tags script: - npmci command npm install -g tslint typescript - npmci npm prepare diff --git a/.vscode/settings.json b/.vscode/settings.json index 01d2b8d..3648eaa 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -15,7 +15,7 @@ "properties": { "projectType": { "type": "string", - "enum": ["website", "element", "service", "npm"] + "enum": ["website", "element", "service", "npm", "wcc"] } } } diff --git a/package.json b/package.json index 9d61948..55b330f 100644 --- a/package.json +++ b/package.json @@ -35,5 +35,8 @@ "cli.js", "npmextra.json", "readme.md" + ], + "browserslist": [ + "last 1 chrome versions" ] -} +} \ No newline at end of file diff --git a/ts/index.ts b/ts/index.ts index 50fec8f..a01d549 100644 --- a/ts/index.ts +++ b/ts/index.ts @@ -1 +1 @@ -export * from './parcel.classes.parcel'; \ No newline at end of file +export * from './parcel.classes.parcel'; diff --git a/ts/parcel.classes.parcel.ts b/ts/parcel.classes.parcel.ts index 093c7b2..a065f2a 100644 --- a/ts/parcel.classes.parcel.ts +++ b/ts/parcel.classes.parcel.ts @@ -42,16 +42,15 @@ export class Parcel { public async build() { const bundler = new plugins.parcel(this.entryFiles, { ...this.options, - watch: false + watch: false, }); // Run the bundler, this returns the main bundle // Use the events if you're using watch mode as this promise will only trigger once and not for every rebuild - const bundle = await bundler.bundle().catch(e => { + const bundle = await bundler.bundle().catch((e) => { console.error(e); throw e; }); - } constructor(fromArg: string | string[], outputDirArg: string, outputFileArg: string) { diff --git a/ts/smartparcel.plugins.ts b/ts/smartparcel.plugins.ts index 3858fba..d083865 100644 --- a/ts/smartparcel.plugins.ts +++ b/ts/smartparcel.plugins.ts @@ -6,9 +6,7 @@ export { path }; // @pushrocks scope import * as smartpath from '@pushrocks/smartpath'; -export { - smartpath -}; +export { smartpath }; // third party scope import parcel from 'parcel-bundler';