Git Product home page Git Product logo

cnpost's Introduction

Ai Design 单页应用项目工程模板

本模版用于构建基于 Ai Design Taurus 组件库单页项目工程。

本模版中涉及的国际化语言资源是通过工程编译来加载的。

开发

首先,打开命令行控制台,进入工程根目录,然后执行下面的命令进行预打包:

# 将项目第三方依赖包预打包,提升项目开发编译速度
aid vendor

注意:如果第三方包被更新需要重新运行这个命令以提升开发效率

执行以下命令启动本地开发服务器:

aid dev

你可以通过-p参数指定服务器端口:

aid dev -p 3000

本地开发服务器启动完毕后会自动打开默认浏览器并跳转至项目首页。

单元测试

单元测试用例写在test/unit/spec目录下,执行下面的命令运行单元测试:

aid test --watch

集成测试

集成测试用例写在test/e2e/spec目录下,执行下面的命令运行集成测试:

aid test --e2e

注意:集成测试默认使用 chrome 浏览器

打包发布

通过以下命令进行工程编译:

aid build

工程编译后的文件默认会保存到dist目录下。

cnpost's People

Contributors

wuazhu avatar

Watchers

 avatar  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.