Coder Social home page Coder Social logo

aisinomobi_ui_template_requirejs's Introduction

1 解压AisinoMobi_UI_template_requirejs

目录结构及推荐存放资源位置如下:

index.html :页面主文件,包含UI页面和模版

libs:库文件

css/custom.css: 如果需要定制个性化UI style,在此文件中添加样式

images:图片资源文件

2 打开命令行工具,执行以下步骤

cd www  
npm install -g grunt-cli
npm install

3 检查javascript代码错误

grunt check

4 生成release工程文件

grunt

此步骤自动处理以下流程:

(1)根据requirejs依赖关系,生成唯一压缩过的js文件,其中包含所有js目录中各个文件内容,并且优化压缩

(2)压缩index.html和css文件

(3)新建built目录,拷贝以上生成文件及libs下所有资源到built目录

将built目录下内容拷贝到对应平台目录下,编译即可

5 清除所有生成文件

grunt clean

注意:不要在任何js文件的define前加任何注释,影响r.js optimer 编译结果

aisinomobi_ui_template_requirejs's People

Contributors

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