Giter VIP home page Giter VIP logo

helloseajs's Introduction

#HelloSeaJS

####文件目录

HelloSeaJS
	|-- html.........................................用于存放html文件,真实项目不一定在这里
		|-- index.........
			|-- index.html
	|-- node_modules.................................Grunt以及构建时候需要的插件
	|-- sea-modules..................................seajs模块目录
		|-- jquery...................................类库jquery
		|-- seajs....................................sea.js以及插件
		|-- src......................................通过源码src文件夹构建而来
	|-- src..........................................源码目录
		|-- component................................通用组件
			|-- dialog...............................每个组件建立单独的文件夹,包含样式和脚本文件
				|-- dialog.js
				|-- dialog.css
		|-- css......................................样式文件
			|-- reset.css............................网站框架样式
			|-- layout.css...........................网站框架样式
			|-- index................................业务页面样式
				|-- index.css
		|-- js.......................................脚本文件
			|-- main.js..............................网站框架脚本
			|-- index................................业务页面脚本
				|-- index.js
		|-- images...................................图片文件
	|-- Gruntfile.js.................................Grunt配置文件
	|-- package.json.................................项目配置文件
	|-- seajs-config.js..............................seajs配置文件
  • sea-modules里的标准模块通过spm安装,src目录是构建打包后的线上代码。
  • 打包内容包含了src源码目录中的通用组件模块、业务模块、所有图片
  • 将alias配置进了package.json里面,方便Gruntfile调用。
  • seajs-config.js里设置了一个 ISDEV 变量,代表是否处于开发环境,通过这个开关可以很好的控制网站是否启用构建打包后的资源

helloseajs's People

Contributors

iancj avatar

Stargazers

 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.