@block-dev/create-block
Usage
npm init @block-dev/block@latest
# OR
yarn create @block-dev/block
# OR
pnpx @block-dev/create-block
Relation
Config in this package is created by following code:
import { genConfigFiles } from '@block-dev/create-config';
genConfigFiles({
name: '@block-dev/create-block',
description: '🔨 Scaffolding a well linted project',
license: 'MIT',
author: 'OrekiSH <orekish@163.com> (https://github.com/OrekiSH)',
repository: 'https://github.com/OrekiSH/block-dev',
ts: true,
ts_esm: true,
editorconfig: false,
gitignore: false,
custom_dev_dependencies: {
'npm-run-all': '^4.1.5',
'@types/prompts': '^2.0.14',
},
custom_dependencies: {
kolorist: '^1.5.0',
minimist: '^1.2.5',
prompts: '^2.4.1',
'@block-dev/create-config': '^0.1.2'
},
custom_scripts: {
build: 'npm-run-all --parallel build:*',
'build:es': 'tsc --p ./tsconfig.es.json',
'build:cjs': 'tsc',
'lint:js': 'eslint . --ignore-path .eslintignore',
},
custom_package_json_fields: {
bin: {
'create-block': 'lib/index.js'
}
}
});