Code Monkey home page Code Monkey logo

website-builder's Introduction

website-builder

根据业务需求制作的网站生成器,适用于单层目录多页面的静态网站

特色

  • webpack、babel、sass
  • 支持多页面和多国际语言
  • 全局 jQuery 变量
  • 打包历史备份
  • html 模块化
  • 图片优化
  • 自动刷新
  • SEO 友好

使用

安装

$ git clone https://github.com/zhw2590582/website-builder.git
$ cd website-builder
$ npm install

开发

$ npm run dev

打包

$ npm run build

添加页面

$ npm run add pageName

删除页面

$ npm run remove pageName

配置

config.js

{
  // 开发端口
  port: 3000,
  // 打包是否添加hash
  hash: true,
  // 打包资源路径
  publicPath: "/website-builder/",
  // 多语言文件路径
  i18n: {
    zh: path.resolve('./src/languages/zh.json'),
    en: path.resolve('./src/languages/en.json'),
    jp: path.resolve('./src/languages/jp.json'),
  },
  // html文本替换
  htmlReplace: [{
    pattern: '@@email',
    replacement: '[email protected]'
  }, {
    pattern: '@@website',
    replacement: 'https://github.com/zhw2590582'
  }]
}

License

MIT © Harvey Zack

website-builder's People

Contributors

zhw2590582 avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

Forkers

lzbin wwwk

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.