Skip to content

Commit 10a12d7

Browse files
committed
First commit v0.1.0
1 parent 2695ac4 commit 10a12d7

File tree

14 files changed

+3442
-0
lines changed

14 files changed

+3442
-0
lines changed

DEVELOPMENT.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# How to run in development
2+
3+
To run in dev mode you need to `npm link` generator-bitloops first.

README.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# generator-bitloops
2+
3+
The Yeoman Bitloops Generator is used by the Bitloops Platform to setup your Bitloops projects.
4+
5+
Nonetheless, you can use it independently to setup your next next.js project with TypeScript, Tailwind, Storybook and Cypress all ready to go!
6+
7+
## How to run it
8+
9+
`npx yo bitloops:setup --project="Your Project Name" --nextjs --typescript --tailwind --storybook --cypress`

app/index.js

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
import Generator from 'yeoman-generator';
2+
3+
export default class extends Generator {
4+
constructor(args, opts) {
5+
// Calling the super constructor is important so our generator is correctly set up
6+
super(args, opts);
7+
8+
// Next, add your custom code
9+
this.option('next'); // This method adds support for a `--next` flag
10+
this.option('typescript'); // This method adds support for a `--typescript` flag
11+
this.option('tailwind'); // This method adds support for a `--tailwind` flag
12+
this.option('storybook'); // This method adds support for a `--storybook` flag
13+
this.option('cypress'); // This method adds support for a `--cypress` flag
14+
}
15+
16+
message() {
17+
this.log('You need to select a sub-method. E.g. `npx yo bitloops:setup`');
18+
}
19+
20+
};

0 commit comments

Comments
 (0)