
Security News
Axios Supply Chain Attack Reaches OpenAI macOS Signing Pipeline, Forces Certificate Rotation
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.
A rollup cli: create a dev-environment includes Rollup, TypeScrit, Babel, Git, ESlint, Prettier...
A rollup cli : create a dev-environment includes Rollup, TypeScrit, Babel, Git, ESlint, Prettier...
npx rolib-cli my-app
cd my-app
npm start
If you've previously installed
rolib-cliglobally vianpm install -g rolib-cli, we recommend you uninstall the package usingnpm uninstall -g rolib-clioryarn global remove rolib-clito ensure thatnpxalways uses the latest version.
(npx comes with npm 5.2+ and higher, see instructions for older npm versions)
my-app
├─ .git/
├─ .husky/
├─ node_modules/
├─ src
│ └─ index.ts
├─ .cz-config.js
├─ .eslintignore
├─ .eslintrc.js
├─ .gitignore
├─ .prettierignore
├─ .prettierrc.js
├─ babel.config.js
├─ commitlint.config.js
├─ package-lock.json
├─ package.json
├─ rollup.config.ts
└─ tsconfig.json
We can add some dev-libs by enriching installFeatures.
Example
// src/utils/installName.ts
// you need to prefix "install" in the filename
// "Name" is the value that user select feature via inquirer.prompt
export async function installName(){
// code...
}
// src/utils/index.ts
import { installName } from './installName'
export const installMethods = {
installName,
}
// src/utils/initPro.ts
export async function selectFeature() {
const questions: inquirer.Answers = [
{
type: 'checkbox',
name: 'multiple',
choices: [
{
name: 'Install Name1?',
value: 'Name1', // relate to installName1
checked: true,
},
{
name: 'Install Name2?',
value: 'Name2', // relate to installName2
},
],
},
{
type: 'confirm',
name: 'Name3',
message: 'Install Name3 ?', // relate to installName3
default: true,
},
];
const answers = await inquirer.prompt(questions);
const features = [...(answers.multiple|| [])]; // type checkbox
const confirmIds: string[] = []; // type confirm
questions.slice(1).forEach(q => {
q.type === 'confirm' && confirmIds.push(q.name);
});
confirmIds.forEach(v => {
answers[v] && features.push(v);
});
await installFeatures(features);
}
Jay-Ohhh
Contributions, issues and feature requests are welcome!
Feel free to check [issues page](Issues · Jay-Ohhh/rolib-cli · GitHub). You can also take a look at the contributing guide.
Give a ⭐️ if this project helped you!
Copyright © 2022 Jay-Ohhh.
This project is MIT licensed.
FAQs
A rollup cli: create a dev-environment includes Rollup, TypeScrit, Babel, Git, ESlint, Prettier...
The npm package rolib-cli receives a total of 0 weekly downloads. As such, rolib-cli popularity was classified as not popular.
We found that rolib-cli 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
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.

Security News
Open source is under attack because of how much value it creates. It has been the foundation of every major software innovation for the last three decades. This is not the time to walk away from it.

Security News
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.