![Oracle Drags Its Feet in the JavaScript Trademark Dispute](https://cdn.sanity.io/images/cgdhsj6q/production/919c3b22c24f93884c548d60cbb338e819ff2435-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
generator-fish
Advanced tools
AKFish's generator
First, install Yeoman and generator-fish using npm (we assume you have pre-installed node.js).
npm install -g yo
npm install -g generator-fish
Then generate your new project:
yo fish
In your project folder, run:
yo fish
Then follow the instructions.
Select tasks via CLI argument:
yo fish --coffee --mocha
Or run in standalone mode:
yo fish:coffee
Supported gulp tasks:
(Optional) You can override configurations with CLI arguments passed to gulp
command.
Run:
yo fish:cli
To configure CLI mapping.
Yeoman has a heart of gold. He's a person with feelings and opinions, but he's very easy to work with. If you think he's too opinionated, he can be easily convinced. Feel free to learn more about him.
fish:fish
generator in generator-fish
project folder:yo fish:fish
generators/#new#/index.js
'use strict';
var yeoman = require('yeoman-generator');
var chalk = require('chalk');
var Fish = require('../../lib/base');
module.exports = Fish.buildTask('coffee', ['gulp-coffee'],
{
defaultSrc: "./coffee/**/*.coffee",
defaultDst: "./lib",
ignoreSrc: false, // toggle `src` question
ignoreDst: false, // toggle `dst` question
supportSourceMap: true, // toggle `sourceMap` question
questions: [
{
type: 'confirm',
name: 'bare',
message: '--bare',
default: true
},
]
},
{
// TODO: custom prototype methods
});
When running, the prompts will generate props
in its 'flatten' form:
{
src: '',
dst: '',
// other fields
}
When stored to gulpconfig.json
under the task's namespace, fields other than generic and private ones will be moved to opts
field.
{
src: '',
dst: '',
// other fields
opts: {
// other fields
}
}
The opts
field will be used as gulp plugin options.
Notes:
taskName
src
, toggled by ignoreSrc
dst
, toggled by ignoreDst
sourceMap
, toggled by supportSourceMap
_
as prefix in their names are private._doPrompt
- called right after this.props
is set but before it's stored to gulpconfig
_doWriting
- called after gulpfile.coffee
, gulpconfig.json
and task templates are written_doInstall
- called after fish:app
and task's dependencies are installedgenerators/#new#/templates/task.coffee
A typical task.coffee
should be like this:
# require dependencies
module.exports = (profile = 'default') ->
cfg = config["name:#{profile}"]
# gulp.task
this.props
as its parametersprofile
name as the only optiongulpfile.coffee
:
gulp
heap
- gulp-heap
config
- all configurationsconfig[name:profile]
MIT © akfish
FAQs
AKFish's generator
We found that generator-fish 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
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.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.