
Research
Security News
Lazarus Strikes npm Again with New Wave of Malicious Packages
The Socket Research Team has discovered six new malicious npm packages linked to North Korea’s Lazarus Group, designed to steal credentials and deploy backdoors.
@prismicio/prismic-generator-generator
Advanced tools
Used for generating prismic projects for use with the prismic-cli. It creates a customized [yeoman-generator](https://yeoman.io/authoring/) with some additional methods added by [prismic-yeoman-generator](../prismic-yeoman-generator/README.md).
Used for generating prismic projects for use with the prismic-cli. It creates a customized yeoman-generator with some additional methods added by prismic-yeoman-generator.
First install the latest version of the prismic cli
npm install -g prismic-cli@alpha
then run the create-generator
command.
Name of the generator, generator-prismic-
will be prefixed to the input. This is prefixed so prismic-cli
can determine which generators are compatible with the cli.
Both JavaScript and Typescript are supported as languages for writing a generator.
Use yarn or npm, yarn tends to work better with mono-repositories, but it's really down to personal preference.
This adds the file and folder structure for the sm commands.
After prompting the cli will generate a yeoman-generator
following file and folder structure.
When run this sub-generator should create a working sample project + prismic. there are three options to do this.
prismic-generator-nextjs
)prismic-generator-vue
or prismic-cli/src/generatos/theme
)prismic-generator-nuxt
)This sub-generator installs slicemachine-ui and configures the project to use slicemachine and installs dependacies like slice-zone
As the name suggests this sub-generator is run to add a new slice to the project. Only one file here needs to be modified and that's the templates/library/slice/index.js file. This file will be handed data from the user inputs during the prompts (sliceName) and create a generic slice in the language beiing used TODO: show example for svelt
This installs and configures storybook.
Storybook does have a cli to handle this, but I've not been able to reverse engineer it to be compatible with yeoman. yeoman's this.spawnCommand
might be te easiest way to install storybook, but this won't work until after the files have been writen out so try and put it in the end
part of the yeoman life cycle. Or run it and find what modifications where done and emulate those.
From the root of the generator run npm link
this will allow te generator to be discovered by the prismic new
and prismic sm
commands.
FAQs
Used for generating prismic projects for use with the prismic-cli. It creates a customized [yeoman-generator](https://yeoman.io/authoring/) with some additional methods added by [prismic-yeoman-generator](../prismic-yeoman-generator/README.md).
The npm package @prismicio/prismic-generator-generator receives a total of 4,945 weekly downloads. As such, @prismicio/prismic-generator-generator popularity was classified as popular.
We found that @prismicio/prismic-generator-generator demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 19 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.
Research
Security News
The Socket Research Team has discovered six new malicious npm packages linked to North Korea’s Lazarus Group, designed to steal credentials and deploy backdoors.
Security News
Socket CEO Feross Aboukhadijeh discusses the open web, open source security, and how Socket tackles software supply chain attacks on The Pair Program podcast.
Security News
Opengrep continues building momentum with the alpha release of its Playground tool, demonstrating the project's rapid evolution just two months after its initial launch.