yss-cli

2.1.5 • Public • Published

this code copy and edit for demo

yss-cli

NPM version NPM downloads

  • 1.use ejs
  • 2.change the app-structure like demo
  • 3.crate app (or mobile app) for Git clone
  • 4.the template managed to Git

Getting Started

Install, create and start.

# Install
$ npm install yss-cli -g

# Create app
$ yss new myapp

# Start app
$ cd myapp
$ npm i 
$ npm start

Commands

We have 2 commands: new and generate(alias g).

yss new appName

Create app with new directory.

Usage Examples

$ yss new myapp

yss generate <?pagename> (short-cut alias: "g")

Generate page and component.

Usage Examples

$ yss g page home
#generate component '/src/pages/home/components/Table.js'
$ yss g component Table home  
#generate component '/src/components/Table.js'
$ yss g component Table 

Generated File Tree

.
├── mock                   # mock data
    ├── user.js            # the mock data test
├── public                 # index.html
├── src                    # Source directory
    ├── assets             # Store images, icons, ...
    ├── components         # UI components
    ├── layouts            # layouts
    ├── models             # global models    
    ├── pages              # all pages (auto create Route)
    ├── plugins            # demo plugins
    ├── services           # Used for communicate with server
    └── utils              # Utils
        ├── request.js     # A util wrapped model/fetch
        └── config.js      # global config (name,api...)
    
    ├── global.less        # global less
├── .editorconfig          #
├── .eslintrc              # Eslint config
├── .demorc.js              # demo
├── .demorc.mock.js         # demo mock
├── .webpackrc.js          # webpackrc extend(lick alias prexy)
├── .gitignore             #
└── package.json           #

Readme

Keywords

Package Sidebar

Install

npm i yss-cli

Weekly Downloads

0

Version

2.1.5

License

MIT

Unpacked Size

25 kB

Total Files

21

Last publish

Collaborators

  • terrecare