https://github.com/niieani/scaffold
beemo-based scaffold
https://github.com/niieani/scaffold
Last synced: 7 months ago
JSON representation
beemo-based scaffold
- Host: GitHub
- URL: https://github.com/niieani/scaffold
- Owner: niieani
- License: mit
- Created: 2021-09-07T09:05:23.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2025-03-10T12:21:45.000Z (7 months ago)
- Last Synced: 2025-03-16T15:13:01.881Z (7 months ago)
- Language: TypeScript
- Homepage:
- Size: 7.23 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 10
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# @niieani/scaffold
Installation steps:
```
yarn set version berry
yarn init # add --workspace if monorepo
echo 'nodeLinker: "node-modules"' >> .yarnrc.yml
yarn add @niieani/scaffold --dev
```Setup your `.config/beemo.ts`, for example:
```ts
import type {ScaffoldConfig} from '@niieani/scaffold'const config: ScaffoldConfig = {
module: '@niieani/scaffold',
drivers: ['babel', 'eslint', 'jest', 'prettier', 'typescript', 'webpack'],
settings: {
node: true,
name: 'MyProject',
engineTarget: 'web',
codeTarget: 'es6',
umd: {
filename: 'myproject.js',
export: 'default',
},
},
}export default config
```Run scaffolding:
```
yarn beemo run-script init-project
```Make it into a repo:
```
git init
```Add `NPM_TOKEN` secret to GitHub repo for semantic-release to work.
Use "preSCRIPTNAME" and "postSCRIPTNAME" to customize built-in scripts.
Profit!