Skip to content

Commit

Permalink
Feature (#1)
Browse files Browse the repository at this point in the history
* 3.18 正式版1.1
opt:   启动配置优化
opt:修复开发环境启动cpu占用异常问题。(node 子进程启动http server 不知道为什么cpu就会被大量占用,现改成直接命令启动)
opt:修改启动打印日志方便快速访问
opt:build 整理,webpack ie 8 兼容设置
opt:定位ie 8 兼容问题点,require 异步加载js时,在ie 8 中编辑直接出错,ie9 中 加入es6-promise后能够解决。
opt:ie8 开发环境调试完毕,在xp ie8中还存在问题  promise为定义
opt:  整理项目,移除过期文件;加入测试环境依赖
opt:  确定最终目录结构
opt:  兼容ie8样式,修复路径,静态资源放入static,dev可用
add:  引入已封装的自定义layui组件
opt:调整自定义layui组件资源路径,layui能够正常使用
opt:css 分模块打包;
opt:引入h5boilerplate 相关兼容性包 (css、js)
  • Loading branch information
mango-csl authored Mar 18, 2019
1 parent 47e6ce1 commit c8f849f
Show file tree
Hide file tree
Showing 242 changed files with 15,499 additions and 1,001 deletions.
33 changes: 33 additions & 0 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
{
"presets": [
[
"env",
{
"targets": {
"browsers": [
"ie>=8",
"chrome>=49"
]
},
"loose": true,
"modules": false,
"debug": false,
"uglify": false,
"useBuiltIns": true
}
],
"es2015-loose",
"stage-0"
],
"plugins": [
[
"transform-runtime",
{
"corejs": false,
"helpers": false,
"polyfill": false,
"regenerator": true
}
]
]
}
66 changes: 29 additions & 37 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,41 +1,33 @@
// https://eslint.org/docs/user-guide/configuring
// const rules = require('./eslint/rules');
module.exports = {
root: true,
parser: "babel-eslint",
parserOptions: {
ecmaVersion: 6,
sourceType: 'module',
},
env: {
browser: true,
// mocha: true,
es6: true,
node: true,
amd: true,
// jasmine: false
},
globals: {
describe: false,
it: false,
afterEach:false
},
extends: [
// https://github.com/vuejs/eslint-plugin-vue#priority-a-essential-error-prevention
// consider switching to `plugin:vue/strongly-recommended` or `plugin:vue/recommended` for stricter rules.
// 'plugin:vue/essential',
// https://github.com/standard/standard/blob/master/docs/RULES-en.md
'eslint:recommended',
'djcps'
],
// required to lint *.vue files
plugins: [
"html",
"import",
"json",
"node",
"promise"
],
// add your custom rules here
rules: {}
root: true,
env: {
browser: true,
node: true
},
globals: {
describe: false,
it: false,
afterEach: false,
'jQuery': true,
'$': true,
'layui': true
},
extends: [
// https://github.com/vuejs/eslint-plugin-vue#priority-a-essential-error-prevention
// consider switching to `plugin:vue/strongly-recommended` or `plugin:vue/recommended` for stricter rules.
// 'plugin:vue/essential',
// https://github.com/standard/standard/blob/master/docs/RULES-en.md
'eslint:recommended',
'djcps'
],
plugins: [
"html",
"json",
"node",
"promise"
],
// add your custom rules here
rules: {}
};
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@ node_modules
package-lock.json
.idea
temp_views
src/compileViews
dist
/bin/config/dev.config.js
10 changes: 10 additions & 0 deletions .postcssrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
// https://github.com/michael-ciniawsky/postcss-load-config

module.exports = {
"plugins": {
"postcss-import": {},
"postcss-url": {},
// to edit target browsers: use "browserslist" field in package.json
"autoprefixer": {}
}
}
74 changes: 0 additions & 74 deletions app.js

This file was deleted.

152 changes: 0 additions & 152 deletions app_temp.js

This file was deleted.

Loading

0 comments on commit c8f849f

Please sign in to comment.