
Security News
Axios Supply Chain Attack Reaches OpenAI macOS Signing Pipeline, Forces Certificate Rotation
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.
showcar-gulp
Advanced tools
Unified frontend build pipeline for projects using the ShowCar UI Library
npm install showcar-gulp -D
Install gulp
npm install gulp -D
Once a new build is ready to be published to NPM as a new package version, you'll first need to login to NPM with the AS24 account. You can get the information from LastPass.
Then update the semver for the showcar-gulp package:
# 0.0.1
npm version patch
# 0.1.0
npm version minor
# 1.0.0
npm version major
Lastly, publish the updated package to NPM:
npm publish
Install showcar-gulp in your project.
npm install -d showcar-gulp
Create your own gulpfile.js with the following structure
// gulpfile.js
const gulp = require('gulp');
const scgulp = require('showcar-gulp')(gulp);
// gulp tasks alliases
gulp.task('set-dev', () => {
scgulp.config.devmode = true;
});
gulp.task('build', ['scss', 'js']);
gulp.task('dev', ['set-dev', 'scss:watch', 'js:watch', 'serve']);
gulp.task('default', ['build']);
JS Build and minify your js files
gulp.task(
'js',
scgulp.js({
entry: 'src/main.js',
out: 'dist/main.min.js'
})
);
SCSS Build and minify css from sass files
gulp.task('scss', scgulp.scss({
entry: 'src/main.scss',
out: 'dist/showcar.min.css'
});
TypeScript Build and minify your ts files
gulp.task(
'ts',
scgulp.ts({
entry: 'src/main.ts',
out: 'dist/tsmain.min.js'
})
);
Tasks for linting JS and CSS code style
JS
gulp.task('eslint', scgulp.eslint({
files: 'src/**/*.js'
});
TypeScript
gulp.task(
'tslint',
scgulp.tslint({
files: 'src/**/*.ts'
})
);
CSS
gulp.task('stylelint', scgulp.stylelint({
files: 'src/**/*.scss'
});
For running linter tasks you will also need to create configuration files in your project.
.eslintrc.js for eslint task
.stylelintrc.js for stylelint task
Runs a local server on localhost:3000 by default
gulp.task('serve', scgulp.serve({
dir: 'dist'
});
Removes files according to the files pattern
gulp.task('clean', scgulp.clean({
files: ['dist/**/*']
});
Runs karma tests
gulp.task('jstest' scgulp.js({
entry: 'src/main.spec.js',
out: 'dist/main.min.spec.js',
watch: ['test-src/**/*.js', 'js-src/**/*.js'],
});
gulp.task('karma', ['jstest'], scgulp.karma({
files: ['dist/index.spec.js']
});
gulp.task('jstest:watch', () => {
gulp.watch(['test-src/**/*.js', 'js-src/**/*.js'], ['karma']);
});
FAQs
Shared build steps for projects using the ShowCar UI Library
We found that showcar-gulp demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.

Security News
Open source is under attack because of how much value it creates. It has been the foundation of every major software innovation for the last three decades. This is not the time to walk away from it.

Security News
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.