From a85386e3a66e5b9e94b36bb68830aa2c957a1160 Mon Sep 17 00:00:00 2001 From: dntzhang Date: Thu, 18 May 2017 09:09:18 +0800 Subject: [PATCH] update scaffolding --- scaffolding/README.md | 9 ++--- scaffolding/gitignore | 5 +++ scaffolding/package.json | 9 ++--- scaffolding/src/component/footer/index.html | 4 +- scaffolding/src/component/header/index.css | 27 +++++++++++++ scaffolding/src/component/header/index.js | 7 +--- scaffolding/src/index.html | 42 +++++++++++---------- scaffolding/src/js/index.js | 8 ++-- scaffolding/webpack.config.js | 38 +++++++++---------- 9 files changed, 88 insertions(+), 61 deletions(-) create mode 100644 scaffolding/gitignore create mode 100644 scaffolding/src/component/header/index.css diff --git a/scaffolding/README.md b/scaffolding/README.md index c14229077..6ff4aabd7 100644 --- a/scaffolding/README.md +++ b/scaffolding/README.md @@ -1,16 +1,15 @@ -## Omi脚手架 +## Omi Gulp脚手架 -使用 Gulp + Webpack + Babel + BrowserSync 搭建 的脚手架。 +本项目使用 Gulp + Webpack + Babel + BrowserSync 搭建的脚手架。 -你可以修改你的目录名,也可通过npm init去修改你的项目信息。 +如果想要使用 webpack + hot reload 请使用 omi-cli 初始化项目。 -## 安装开发依赖包 +## 安装 ``` js npm install ``` - ## 开发 ``` js diff --git a/scaffolding/gitignore b/scaffolding/gitignore new file mode 100644 index 000000000..823ac9614 --- /dev/null +++ b/scaffolding/gitignore @@ -0,0 +1,5 @@ +/dist +/dev +/node_modules +/.idea +/rev diff --git a/scaffolding/package.json b/scaffolding/package.json index 43ab26bb4..2ed15e658 100644 --- a/scaffolding/package.json +++ b/scaffolding/package.json @@ -10,15 +10,14 @@ "omi": "latest" }, "devDependencies": { - "babel-core": "^6.22.1", - "babel-loader": "^6.2.10", + "babel-core":"^6.24.1", + "babel-loader":"^6.4.1", "babel-plugin-transform-es3-member-expression-literals": "^6.22.0", "babel-plugin-transform-es3-property-literals": "^6.22.0", "babel-preset-es2015": "^6.22.0", "babel-preset-stage-0": "^6.22.0", "browser-sync": "^2.18.6", - "cdn-replace-loader": "^0.4.0", - "css-loader": "^0.27.3", + "cdn-replace-loader": "^0.4.1", "del": "^2.2.2", "gulp": "^3.9.1", "gulp-csso": "^2.0.0", @@ -30,9 +29,7 @@ "html-webpack-plugin": "^2.26.0", "node-sass": "^4.5.0", "run-sequence": "^1.2.2", - "sass-loader": "^6.0.3", "string-loader": "0.0.1", - "style-loader": "^0.13.2", "webpack": "^2.2.1", "webpack-stream": "^3.2.0" }, diff --git a/scaffolding/src/component/footer/index.html b/scaffolding/src/component/footer/index.html index 6ff99fd46..c3d5c7e73 100644 --- a/scaffolding/src/component/footer/index.html +++ b/scaffolding/src/component/footer/index.html @@ -1,3 +1,3 @@ -