Security News
ESLint is Now Language-Agnostic: Linting JSON, Markdown, and Beyond
ESLint has added JSON and Markdown linting support with new officially-supported plugins, expanding its versatility beyond JavaScript.
gulp-gh-pages
Advanced tools
Gulp plugin to publish to Github pages.
First, install gulp-gh-pages
as a development dependency
npm install --save-dev gulp-gh-pages
If your repository does not have a gh-pages
branch, it is advised that you create one first. I used git subtree push --prefix <dist folder> origin gh-pages
.
Then define a deploy
task in your gulpfile.js
(as below) which can be used to push to gh-pages
going forward.
var deploy = require("gulp-gh-pages");
gulp.task('deploy', function () {
gulp.src("./dist/**/*")
.pipe(deploy(gitRemoteUrl, remote));
});
Two different signatures are supported.
Type: String
Required: true
Your git remote url. Ensure you have write access to the repository.
Type: String
Default: "origin"
Git remote.
Type: String
Default: undefined
Required: true
Your git remote url. Ensure you have write access to the repository.
Type: String
Default: "origin"
Git remote.
Type: String
Default: "gh-pages"
The branch where deploy will by done. Change to "master" for username.github.io
projects.
Type: String
Default: a temporary folder
Useful to keep a cache of the repo to avoid fresh clone all the time.
Type: Boolean
Default: true
Allow you to make a build on the defined branch without pushing it to master. Useful for dry run.
FAQs
gulp plugin to publish contents to Github pages
We found that gulp-gh-pages demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers 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
ESLint has added JSON and Markdown linting support with new officially-supported plugins, expanding its versatility beyond JavaScript.
Security News
Members Hub is conducting large-scale campaigns to artificially boost Discord server metrics, undermining community trust and platform integrity.
Security News
NIST has failed to meet its self-imposed deadline of clearing the NVD's backlog by the end of the fiscal year. Meanwhile, CVE's awaiting analysis have increased by 33% since June.