Security News
RubyGems.org Adds New Maintainer Role
RubyGems.org has added a new "maintainer" role that allows for publishing new versions of gems. This new permission type is aimed at improving security for gem owners and the service overall.
generator-nitro
Advanced tools
Yeoman generator for Nitro - lets you quickly set up a frontend project with sensible defaults and best practices.
Nitro is a Node.js application for simple and complex frontend development with a tiny footprint.
It provides a proven but flexible structure to develop your frontend code, even in a large team.
Keep track of your code with a modularized frontend. This app and the suggested
atomic design and BEM
concepts could help.
Nitro is simple, fast and flexible. It works on macOS, Windows and Linux. Use this app for all your frontend work.
Before using, you need of course node installed.
Nitro and the Nitro generator are tested with the current "Active" LTS version
and with the LTS maintenance versions.
Make sure you are in an existing git repo, or create one with git init
.
This creates a new project in the current directory using npx (npm >= 5.2):
npx -p yo -p generator-nitro@latest -- yo nitro
then install with desired node version
npm install
Updating a project to the newest nitro version is quite simple:
npm run nitro:update
... then
npm run clean
npm install
On creating a new project, you will be guided through some configuration options:
--name=
(default: current directory name)--templateEngine=
(hbs
or twig
; default: hbs
)--jsCompiler=
(ts
or js
; default: ts
)--themes
(default: false)--clientTpl
(default: false)--exampleCode
(default: false)--exporter
(default: false)It's possible to pass in these options through the command line:
npx -p yo -p generator-nitro@latest -- yo nitro --name=myproject --templateEngine=hbs --jsCompiler=ts --themes --clientTpl --exampleCode --exporter
You may bypass the questions with --skip-questions
. This will use the defaults for not specified options
npx -p yo -p generator-nitro@latest -- yo nitro --name=myproject --clientTpl --exporter --skip-questions
If you start the generator in an existing project, you will be asked to update the project. It is best to overwrite all local files and check the differences after.
Updating to a new major version needs some more work. Please check the release notes
Available generators:
yo nitro
(aka yo nitro:app
/ generate or update a project)yo nitro:pattern [name]
(create or update a pattern)yo nitro:server
(create an executable light version of the project)Note: Generators are to be run from the root directory of your project.
Have a look at the sample project which contains the examples of a generated project and was statified with the default configuration of the "nitro-exporter".
See how to use the generated app
We are more than happy to accept external contributions to the project in the form of feedback, bug reports and pull requests :)
See the contributing docs
Recent changes can be viewed on GitHub on the Releases Page
FAQs
Yeoman generator for the nitro frontend framework
We found that generator-nitro demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 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
RubyGems.org has added a new "maintainer" role that allows for publishing new versions of gems. This new permission type is aimed at improving security for gem owners and the service overall.
Security News
Node.js will be enforcing stricter semver-major PR policies a month before major releases to enhance stability and ensure reliable release candidates.
Security News
Research
Socket's threat research team has detected five malicious npm packages targeting Roblox developers, deploying malware to steal credentials and personal data.