All Projects → eggjs → Egg Init

eggjs / Egg Init

Licence: mit
Init egg app helper tools

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to Egg Init

Egg Mock
Mock library for egg testing.
Stars: ✭ 137 (-5.52%)
Mutual labels:  egg
Angular9 Example App
Angular 13 Example App + Angular CLI + i18n + GraphQL
Stars: ✭ 1,769 (+1120%)
Mutual labels:  boilerplate
Vue Plugin Boilerplate
🔩 Boilerplate for Vue.js plugin
Stars: ✭ 143 (-1.38%)
Mutual labels:  boilerplate
Automatic Gatsbyjs App Landing Page
Automatic GatsbyJS App Landing Page - Automatically generate iOS app landing page using GatsbyJS
Stars: ✭ 137 (-5.52%)
Mutual labels:  boilerplate
Kickup
🚚 Boilerplate for your perfect front-end environment (utilizing Gulp.js, Babel, and more)
Stars: ✭ 139 (-4.14%)
Mutual labels:  boilerplate
Project Webcube
Continuously updated JS infrastructure for modern web dev
Stars: ✭ 141 (-2.76%)
Mutual labels:  boilerplate
React Starter Boilerplate Hmr
React starter boilerplate with React Fast Refresh, React 17 and Webpack 5
Stars: ✭ 137 (-5.52%)
Mutual labels:  boilerplate
Js Stack Boilerplate
Final boilerplate code of the JavaScript Stack from Scratch tutorial –
Stars: ✭ 145 (+0%)
Mutual labels:  boilerplate
React Hooks Redux Registration Login Example
React Hooks + Redux - User Registration and Login Tutorial & Example
Stars: ✭ 138 (-4.83%)
Mutual labels:  boilerplate
Uicard
Generic UI for card games like Hearthstone, Magic Arena and Slay the Spire...
Stars: ✭ 142 (-2.07%)
Mutual labels:  boilerplate
Octopus
Scala library for boilerplate-free validation
Stars: ✭ 138 (-4.83%)
Mutual labels:  boilerplate
React Universally
This starter kit contains all the build tooling and configuration you need to kick off your next universal React project, whilst containing a minimal "project" set up allowing you to make your own architecture decisions (Redux/MobX etc).
Stars: ✭ 1,704 (+1075.17%)
Mutual labels:  boilerplate
Django React Typescript
A boilerplate with Django on the backend, React on the frontend, and much more!
Stars: ✭ 142 (-2.07%)
Mutual labels:  boilerplate
Redux React Starter
DEPRECATED use the new https://github.com/didierfranc/react-webpack-4
Stars: ✭ 137 (-5.52%)
Mutual labels:  boilerplate
Iceberg
Front-End Boilerplate built with React + Babel + Webpack + SASS
Stars: ✭ 144 (-0.69%)
Mutual labels:  boilerplate
Generator Create Redux App
Add redux, emotion-js and other useful libraries like react-router in top of create-react-app
Stars: ✭ 137 (-5.52%)
Mutual labels:  boilerplate
Typescript React Native Starter
A highly scalable foundation with a focus on best pratices and simplicity to start your React Native project in seconds.
Stars: ✭ 141 (-2.76%)
Mutual labels:  boilerplate
Egg Multipart
multipart plugin for egg
Stars: ✭ 145 (+0%)
Mutual labels:  egg
Nextjs Netlify Blog Template
Next.js blogging template for Netlify
Stars: ✭ 141 (-2.76%)
Mutual labels:  boilerplate
Laravel Scaffold
The base for developing awesome projects
Stars: ✭ 142 (-2.07%)
Mutual labels:  boilerplate

egg-init

NPM version build status Test coverage David deps Known Vulnerabilities npm download

Init egg app helper tools.

Install

$ npm i egg-init -g
$ egg-init -h

Create a simple type application

$ egg-init --type simple [dest]

Or select a boilerplate by yourself

$ egg-init dest
? Please select a boilerplate type (Use arrow keys)
❯ simple - Simple egg app
  plugin - egg plugin

Command

Usage: egg-init [dir] --type=simple

Options:
  --type          boilerplate type                                                [string]
  --dir           target directory                                                [string]
  --force, -f     force to override directory                                     [boolean]
  --template      local path to boilerplate                                       [string]
  --package       boilerplate package name                                        [string]
  --registry, -r  npm registry, support china/npm/custom, default to auto detect  [string]
  --silent        don't ask, just use default value                               [boolean]
  --version       Show version number                                             [boolean]
  -h, --help      Show help                                                       [boolean]

Custom a boilerplate

We use npm package to manager boilerplate, you can follow this steps:

  • Create a new repo like egg-boilerplate-plugin

  • Put all files under boilerplate dir

  • Use egg-init --template=PATH to check

  • index.js can define variables which can be useed on template, like {{name}}, but \{{name}} will ignore.

    module.exports = {
      name: {
        desc: 'package-name',
      },
      pluginName: {
        desc: 'plugin-name',
        default(vars) {
          return vars.name;
        },
        filter(v) {
          return 'egg-' + v;
        },
      },
      description: {
        desc: 'my best plugin',
      },
      author: {
        desc: 'author',
        default: 'eggjs team'
      },
    };
    
  • Write unit test, see npm scripts at egg-boilerplate-simple

  • Add your package name to egg-init-config's package.json config.boilerplate property

  • Publish your package to npm

License

MIT

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].