GithubHelp home page GithubHelp logo

fybug / aout.ass Goto Github PK

View Code? Open in Web Editor NEW
0.0 0.0 0.0 27.99 MB

基于 PDWebpack 的 web 自动化构建手脚架

Home Page: https://fybug.gitee.io/projectsby/aout.ass.html

License: Apache License 2.0

JavaScript 99.59% HTML 0.35% CSS 0.06%
webframe web webpack

aout.ass's Introduction

Icon

aout.ass

基于 PDWebpack 制作的 web 自动化构建手脚架。自动扫描按规范目录开发的内容,随后使用 PDWebpack 生成配置,并添加到 webpack 中进行打包。

扫描的内容采用注册在框架中的方式临时保存,可在用户代码文件中进行调整或追加新的模块。

架构

┃
┣ build // 编译文件夹
┃
┣ webpackRun // 框架运行目录
┃ ┃
┃ ┣ config    // 框架配置相关
┃ ┃ ┃
┃ ┃ ┗ webpack    // webpack 配置相关
┃ ┃
┃ ┣ lib       // 框架运行相关的依赖
┃ ┣ load      // 框架加载相关
┃ ┣ run       // 手脚架内容扫描相关
┃ ┃
┃ ┣ aout.ass.js // 框架对象代码
┃ ┗ run.js    // 用户代码,在此处使用和调整框架 
┃
┣ src   // 源码存放位置
┃ ┃
┃ ┣ lib       // 该网站中公共代码部分
┃ ┃ ┃
┃ ┃ ┣ css      // 公共样式文件夹,手动在 ../js/main.js 中导入
┃ ┃ ┃ ┃     ## 可以随意修改
┃ ┃ ┃ ┗ main.pcss     // 项目样式
┃ ┃ ┃
┃ ┃ ┣ static   // 全局公共代码依赖资源,比如字体
┃ ┃ ┃
┃ ┃ ┗ js       // 公共 js 文件夹
┃ ┃   ┃
┃ ┃   ┣ INCL           // 导入库,建议外部框架如 jQuery 放这里,会自动扫描
┃ ┃   ┃
┃ ┃   ┗ main.js        // 公共模块入口文件,固定的入口,首先检查该入口
┃ ┃
┃ ┣ page      // 页面存放模块
┃ ┃  ┃
┃ ┃  ┗ dome    // 页面模块示例,实际名称自己定,该文件夹的名称将是页面的名称
┃ ┃    ┃
┃ ┃    ┣ css        // 该页面的 css
┃ ┃    ┃ ┃  ## 可随意修改
┃ ┃    ┃ ┗ main.pcss    // 样式,需手动在 js 中导入
┃ ┃    ┃
┃ ┃    ┣ js         // 该页面的 js
┃ ┃    ┃ ┃
┃ ┃    ┃ ┗ main.js     // 该页面的入口 js 文件,固定的入口,首先检查该入口
┃ ┃    ┃
┃ ┃    ┗ index.html // 该页面的内容,固定的文件
┃ ┃
┃ ┣ static      // 静态资源,页面内的静态内容应放在页面的 static 中
┃ ┃ ┃
┃ ┃ ┗ img
┃ ┃   ┃
┃ ┃   ┗ favicon.png // 图标
┃ ┃
┃ ┗ index.html  // 根目录入口文件,请指定它跳转到你的首页中,首页不该是这个
┃
┣ package.json
┣ postcss.config.js     // postcss 配置文件
┣ webpack.conf.js       // webpack 公共配置
┣ webpack.dev.js        // webpack 开发用配置
┗ webpack.prod.js       // webpack 生产配置

可通过 WIKI 学习原理和使用

使用方法

下载或 clone 本项目,直接解压作为项目文件夹然后按照下列提示即可

建议克隆 release 分支,或者去发行版下载
配置完成后可以使用 package.json 中声明的 debug / bulic 命令运行 webpack

需要先安装 Node.js ,自行百度

在项目文件夹中运行 npm -y init 初始化

安装项目依赖

npm install --save-dev

包含了 webpackwebpack-dev-server

额外

安装 postcss

npm install postcss-loader -D

使用的 postcss 模块

autoprefixer
postcss-import
postcss-apply
postcss-nested

不使用可以无视

分支说明

dev:当前的开发分支,不建议 clone 本分支

master:当前主分支,稳定版的源码

release:当前发布分支,发行版的源码

提供bug反馈或建议

aout.ass's People

Contributors

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