Security News
GitHub Removes Malicious Pull Requests Targeting Open Source Repositories
GitHub removed 27 malicious pull requests attempting to inject harmful code across multiple open source repositories, in another round of low-effort attacks.
@namics/blueprint
Advanced tools
Create blueprints and use them in you project to create components, packages ...
Create blueprints and use them in you project to create components, packages ...
npm i -D @namics/blueprint
.blueprintrc.js
module.exports = {
'react-app': {
title: 'Create a new react app',
src: './demo/test-package/example-app.zip',
},
};
interface IBlueprintrc {
[key: string]: {
title: string;
src: string;
overrideDestination?: () => string,
additionalQuestions?: (answers: { inquirer.Answers }) => Promise<inquirer.Questions>,
collectResult?: (answers: inquirer.Answers) => inquirer.Answers,
getCustomReplacements?: (answers: inquirer.Answers) => string[][],
}
}
import blueprint from '@namics/blueprint';
blueprint('react-app', {
srcFilePath: path.resolve(process.cwd(), 'blueprints', 'example-app.zip'),
targetPath: path.resolve(process.cwd(), 'packages'),
oldName: 'example-app',
newName: 'awesome-app',
customReplacements: [['BEM-placeholder', 'a']],
});
srcFilePath
: path to zip filetargetPath
: path in which the new app/component/* should be createdoldName
: old name is usually the filenamenewName
: the name of the app/component/*customReplacements
: define custom replacements forEach file data replacement$ blueprint --value awesome-app --blueprint react-app --config .blueprintrc.js --destination packages
-i
, --interactive
Use interactive command line user interface
-b
, --blueprint
The blueprint which should be used
-v
, --value
Name of the app/component/* which should be created
-d
, --destination
Destination path
-c
, --config
Path to config js file
FAQs
Create blueprints and use them in you project to create components, packages ...
The npm package @namics/blueprint receives a total of 0 weekly downloads. As such, @namics/blueprint popularity was classified as not popular.
We found that @namics/blueprint demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 6 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
GitHub removed 27 malicious pull requests attempting to inject harmful code across multiple open source repositories, in another round of low-effort attacks.
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.