Giter Club home page Giter Club logo

san-cli's Introduction

San-CLI

A CLI Tooling based on San.js for rapid development
NPM version Issues License

English | 简体中文

🎉 Features

  • Complete project scaffolding
  • webpack-based with zero configuration
  • Extensible command line and webpack packaging plugins

San CLI takes into account the San ecosystem while trying to achieve universal configuration. At the beginning of the design phase, we aimed to be not limited to the San application scope, but to make a general and customizable front-end development tooling.

📦 Installation

San CLI requires Node.js version 12.0 or above (12.0+ recommended).

# use npm
npm install -g san-cli
# or use yarn
yarn global add san-cli

If you want to use San CLI only in the project, you can add it to the devDependencies of the project package.json and then use npm-scripts.

After installation, you can view the help information with the following command:

san -h

For more information, visit https://ecomfe.github.io/san-cli.

🤝 Contributing PRs Welcome

San CLI uses Yarn Workspaces for local development.

First clone the project to your computer, then install dependencies:

# install dependencies
yarn

For design details, please read architecture.

🔨 Testing

# test all
yarn test
# or test one specific package
yarn test [packageName]
# such as
yarn test san-cli

🐛 Debug Log

The debug module is used in the San CLI, so if you need to debug or see some information you can use the DEBUG variable. In San CLI, the scope of debug is san-cli:, and common variables include:

  • perf: Output performance log of San CLI itself.
  • babel: Output Babel related configuration.
  • service: Output service layer log.
  • webpack:closeDevtool: Close Devtools and no longer output eval type code. Directly output the packaged code for debugging.
  • webpack:build: Output webpack build related configuration.
  • webpack:serve: Output webpack serve related configuration.
  • webpack:config: Output the final config object of webpack.

📝 Documentation

For detailed documentation, please check the San CLI docs.

🍻 Companions

☀️ License

MIT

san-cli's People

Contributors

clark-t avatar harttle avatar jiangxinge avatar jinzhan avatar justineo avatar kidnes avatar ksky521 avatar leo-me avatar lohoyo avatar luoyimaid avatar rayjune avatar snyk-bot avatar zhixinbao avatar zhongkai avatar zttonly avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.