2.1.5 • Published 5 years ago

yss-cli v2.1.5

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

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           #
2.1.5

5 years ago

2.1.4

5 years ago

2.1.3

5 years ago

2.1.2

5 years ago

2.1.1

5 years ago

2.1.0

5 years ago

2.0.9

5 years ago

2.0.8

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago