Security News
Create React App Officially Deprecated Amid React 19 Compatibility Issues
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
gulp-dogen
Advanced tools
dogen is meant to be the scaffold-on-the-fly tool. Creating templates of files & directories of files for scaffolding should be easy. Sometimes, there's a need to copy & paste & change group of files (aka Modules). Currently, tools like yeoman provide impressive scaffold utilities, but sometimes there's a need to update the generators according to your project's guidelines - and that's not possible with yeoman. You're relied on the generator's author or creating your own. That's why I created dogen.
Be The Master of you own generators.
$ npm install --save-dev gulp-dogen
var gulp = require('gulp');
var dogen = require('gulp-dogen');
dogen.config({
templatesPath: 'gulp/templates',
gulp: gulp
});
// This will create this gulp task as:
// gulp dogen --endpoint the-name-to-be-scaffolded
dogen.task('endpoint', 'src/server/api/');
dogen.task('ngmodule', 'src/client/app/');
dogen.task('ngservice', 'src/client/common/services/');
Then in terminal, you can start using this gulp task:
gulp dogen --endpoint guitars
This task will do the following:
Sometimes, a sub destination path is required under the destination that was configured in the task function.
The dogen shell task can have a 2nd argument, "path" which will be concatenated as a suffix to the destination value of the task.
The following task:
gulp dogen --endpoint guitars --path music
places the new generated files/directories at: src/client/api/music.
Please note: the path value can be any nested path including several directories.
The examples directory includes a template of endpoint.
dogen relies on 2 simple variables:
The concept of simplicity in dogen is that you should put the name-of-flag anywhere in the file's & directories names and contents - so it will be replaced with the value of the-name-to-be-scaffolded.
dogen task method return a gulp task that can be used like a standard gulp task.
gulp dogen --list
displays all the localy available generators in the console.
MIT © orizens
FAQs
a fast & easy scaffold cli for any development (based on gulp)
We found that gulp-dogen 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
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.