├── .npmrc ├── src ├── views │ ├── index │ │ ├── index.scss │ │ ├── card.ejs │ │ ├── tpl.js │ │ ├── index.js │ │ └── index.ejs │ ├── fonts-page │ │ ├── index.js │ │ ├── tpl.js │ │ └── demo.scss │ ├── test-page │ │ ├── tpl.js │ │ ├── test-page.ejs │ │ ├── index.js │ │ └── test-page.scss │ └── login-page │ │ ├── login-page.scss │ │ ├── tpl.js │ │ ├── index.js │ │ └── login-page.ejs ├── common │ ├── js │ │ ├── footer.js │ │ ├── base.js │ │ └── header.js │ ├── assets │ │ ├── image │ │ │ ├── demo.png │ │ │ ├── loading_more.gif │ │ │ ├── webpack-seed.png │ │ │ └── webpack-seed-logo.png │ │ └── fonts │ │ │ ├── iconfont.eot │ │ │ ├── iconfont.ttf │ │ │ └── iconfont.woff │ ├── utils │ │ └── tools.js │ ├── libs │ │ ├── scriptTags.js │ │ └── index.js │ ├── css │ │ ├── common.scss │ │ ├── reset.scss │ │ └── variable.scss │ └── vendor │ │ ├── fix-ie │ │ ├── html5shiv.min.js │ │ └── respond.min.js │ │ └── common │ │ └── jquery-3.3.1.min.js ├── layout │ ├── base │ │ ├── footerBase │ │ │ └── footerBase.ejs │ │ ├── footer │ │ │ └── footer.ejs │ │ ├── header │ │ │ └── header.ejs │ │ └── headerBase │ │ │ └── headerBase.ejs │ ├── standardWithoutBase.ejs │ ├── standard.ejs │ └── index.js ├── constants │ └── template.js └── api │ ├── movie.js │ ├── request.js │ └── README.md ├── favicon.ico ├── .gitignore ├── .postcssrc.js ├── ws.config.js ├── bin ├── templates │ ├── index.hbs │ ├── config.js │ └── tpl.hbs ├── middleware │ ├── writefile.js │ └── desc.js ├── utils │ ├── getdirname.js │ └── utils.js └── index.js ├── .editorconfig ├── .prettierrc.js ├── .env.prod ├── .env.github ├── .env.staging ├── .prettierignore ├── .eslintignore ├── babel.config.js ├── .eslintrc.js ├── LICENSE ├── package.json └── README.md /.npmrc: -------------------------------------------------------------------------------- 1 | registry=https://registry.npm.taobao.org 2 | -------------------------------------------------------------------------------- /src/views/index/index.scss: -------------------------------------------------------------------------------- 1 | .ws-home { 2 | text-align: center; 3 | } 4 | -------------------------------------------------------------------------------- /favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BiYuqi/webpack-seed/HEAD/favicon.ico -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | /node_modules 2 | dist/ 3 | coverage/ 4 | .DS_Store 5 | *.DS_Store 6 | .idea 7 | -------------------------------------------------------------------------------- /.postcssrc.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | plugins: [ 3 | require('autoprefixer')() 4 | ] 5 | } -------------------------------------------------------------------------------- /ws.config.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | baseDir: '/', 3 | chainWebpack: config => {} 4 | } 5 | -------------------------------------------------------------------------------- /src/common/js/footer.js: -------------------------------------------------------------------------------- 1 | $('.ws-footer_btn').on('click', () => { 2 | alert('哎呦, 这都能被你发现~~') 3 | }) 4 | -------------------------------------------------------------------------------- /bin/templates/index.hbs: -------------------------------------------------------------------------------- 1 | /** 2 | * 默认样式+默认逻辑 3 | */ 4 | import '@/common/js/base' 5 | import './{{fileName}}.scss' 6 | -------------------------------------------------------------------------------- /src/common/assets/image/demo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BiYuqi/webpack-seed/HEAD/src/common/assets/image/demo.png -------------------------------------------------------------------------------- /src/common/assets/fonts/iconfont.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BiYuqi/webpack-seed/HEAD/src/common/assets/fonts/iconfont.eot -------------------------------------------------------------------------------- /src/common/assets/fonts/iconfont.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BiYuqi/webpack-seed/HEAD/src/common/assets/fonts/iconfont.ttf -------------------------------------------------------------------------------- /src/common/assets/fonts/iconfont.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BiYuqi/webpack-seed/HEAD/src/common/assets/fonts/iconfont.woff -------------------------------------------------------------------------------- /src/common/assets/image/loading_more.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BiYuqi/webpack-seed/HEAD/src/common/assets/image/loading_more.gif -------------------------------------------------------------------------------- /src/common/assets/image/webpack-seed.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BiYuqi/webpack-seed/HEAD/src/common/assets/image/webpack-seed.png -------------------------------------------------------------------------------- /src/common/js/base.js: -------------------------------------------------------------------------------- 1 | // 公用css 引入入口 2 | import '../css/common.scss' 3 | 4 | // 公用js逻辑编写区域 5 | import './header' 6 | import './footer' 7 | -------------------------------------------------------------------------------- /src/views/fonts-page/index.js: -------------------------------------------------------------------------------- 1 | /** 2 | * 默认样式+默认逻辑 common/js/base.js 3 | */ 4 | import '@/common/js/base' 5 | import './demo.scss' 6 | -------------------------------------------------------------------------------- /bin/templates/config.js: -------------------------------------------------------------------------------- 1 | // 供生成页面使用 2 | module.exports = { 3 | standard: 'Standard', 4 | standardWithoutBase: 'StandardWithoutBase' 5 | } 6 | -------------------------------------------------------------------------------- /src/common/assets/image/webpack-seed-logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BiYuqi/webpack-seed/HEAD/src/common/assets/image/webpack-seed-logo.png -------------------------------------------------------------------------------- /.editorconfig: -------------------------------------------------------------------------------- 1 | root = true 2 | 3 | [*] 4 | indent_style = space 5 | indent_size = 2 6 | trim_trailing_whitespace = true 7 | insert_final_newline = true 8 | -------------------------------------------------------------------------------- /src/views/index/card.ejs: -------------------------------------------------------------------------------- 1 | 2 | <% for (var i = 0; i < data.length; i++) {%> 3 |