4.1.0 • Published 6 years ago

generator-koa-humble v4.1.0

Weekly downloads
5
License
MIT
Repository
github
Last release
6 years ago

generator-koa-humble

alt tag

Humble koa generator for yeoman. Koa v2 + (Moongose/Sequelize) + Angular v2 + Typescript + Less/Sass/Stylus + Pug (Jade)

Installation

	$ npm install -g generator-koa-humble

Usage

	$ yo koa-humble

Npm commands list

	$ npm start # Launches the app.
	$ npm test # Launches tests.
	$ npm run-script tslint # Starts code check with tslint.
	$ npm run start:dev # Launches the app in dev mode (along with dev app build using koa-webpack).
	$ npm run start:prod # Same as npm start.
	$ npm run build:prod # Initiates project's rebuild and prepares it for production.

Structure

Generated project has the following structure:

	.
	├── ./controllers # Stores your controllers
	│   └── ./controllers/views.js
	├── ./dev # Development folder. Stores Angular2 project with your presets.
	│   ├── ./dev/app
	│   │   ├── ./dev/app/app.component.jade
	│   │   ├── ./dev/app/app.component.less
	│   │   ├── ./dev/app/app.component.ts
	│   │   ├── ./dev/app/app.module.ts
	│   │   ├── ./dev/app/app.routing.ts
	│   │   └── ./dev/app/home
	│   │       ├── ./dev/app/home/home.component.jade
	│   │       ├── ./dev/app/home/home.component.ts
	│   │       └── ./dev/app/home/icon.png
	│   ├── ./dev/index.jade
	│   ├── ./dev/main.ts
	│   ├── ./dev/polyfills.ts
	│   └── ./dev/vendor.ts
	├── ./public # Public folder. Users have access to it. Webpack sends processed files here.
	│   ├── ./public/app.[hash].css
	│   ├── ./public/app.[hash].css.map
	│   ├── ./public/app.[hash].js
	│   ├── ./public/app.[hash].js.map
	│   ├── ./public/img
	│   │   └── ./public/img/icon.png
	│   ├── ./public/polyfills.[hash].js
	│   ├── ./public/polyfills.[hash].js.map
	│   ├── ./public/vendor.[hash].js
	│   └── ./public/vendor.[hash].js.map
	├── ./test # Mocha's tests folder.
	│   └── ./test/routes.js
	├── ./views # Webpack sends processed jade files here.
	│   └── ./views/index.html
	├── ./app.js
	├── ./package.json
	├── ./tsconfig.json
	├── ./tslint.json
	└── ./webpack.config.js
4.1.0

6 years ago

4.0.1

6 years ago

4.0.0

7 years ago

3.0.1

7 years ago

3.0.0

7 years ago

2.7.0

7 years ago

2.6.0

7 years ago

2.5.0

7 years ago

2.4.2

7 years ago

2.4.1

7 years ago

2.4.0

7 years ago

2.3.0

7 years ago

2.2.0

7 years ago

2.1.0

7 years ago

2.0.0

7 years ago

1.1.2

7 years ago

1.1.1

7 years ago

1.1.0

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago

0.4.1

7 years ago

0.4.0

7 years ago

0.3.1

7 years ago

0.3.0

8 years ago

0.2.0

8 years ago

0.1.1

8 years ago

0.1.0

8 years ago

0.0.2

8 years ago

0.0.1

8 years ago