初始化项目
Showing
.gitignore
0 → 100644
config/scripts/constant.js
0 → 100644
config/scripts/utils.js
0 → 100644
config/webpack.dev.config.js
0 → 100644
mock/index.js
0 → 100644
npm知识库.jpg
deleted
100644 → 0
522 KB
package-lock.json
0 → 100644
This diff is collapsed.
package.json
0 → 100644
{ | |||
"name": "webpack base", | |||
"private": true, | |||
"scripts": { | |||
"dev": "npm run assets && cross-env PAGE=index node ./config/webpack.dev.config.js 8089", | |||
"dev:share": "npm run assets && cross-env PAGE=share node ./config/webpack.dev.config.js", | |||
"prod": "npm version patch --no-git-tag-version && cross-env PAGE=index node ./config/webpack.prod.config.js", | |||
"prod:share": "npm version patch --no-git-tag-version && cross-env PAGE=share node ./config/webpack.prod.config.js", | |||
"build": "npm run assets && npm run imgminup && cross-env npm run prod", | |||
"build:share": "npm run assets && cross-env PAGE=share npm run imgminup && cross-env PAGE=share npm run prod:share", | |||
"assets": "node ./config/scripts/assets/generateAssetList.js", | |||
"imgmin": "node ./config/scripts/assets/index.js imgmin", | |||
"imgup": "node ./config/scripts/assets/index.js imgup", | |||
"imgminup": "node ./config/scripts/assets/index.js imgmin imgup" | |||
}, | |||
"dependencies": { | |||
"@spark/share": "^2.0.276", | |||
"@spark/svgaplayer": "^2.0.5", | |||
"@spark/ui": "^2.1.8", | |||
"@spark/utils": "^2.0.82", | |||
"css-loader": "^3.6.0", | |||
"dayjs": "^1.10.8", | |||
"duiba-utils": "^1.0.12", | |||
"history": "^4.10.1", | |||
"mobx": "^6.2.0", | |||
"mobx-react": "^7.1.0", | |||
"postcss-loader": "^3.0.0", | |||
"prettier": "^2.0.5", | |||
"react": "^16.4.1", | |||
"react-dom": "^16.4.1", | |||
"react-router-dom": "^5.2.0", | |||
"spark-wrapper-fyge": "^1.1.21", | |||
"style-loader": "^1.2.1" | |||
}, | |||
"devDependencies": { | |||
"@babel/core": "^7.12.10", | |||
"@babel/plugin-proposal-decorators": "^7.13.15", | |||
"@babel/plugin-transform-runtime": "^7.12.10", | |||
"@babel/preset-env": "^7.12.11", | |||
"@babel/preset-react": "^7.12.10", | |||
"@types/react": "^17.0.43", | |||
"autoprefixer": "^9.8.6", | |||
"babel-loader": "^8.2.2", | |||
"chalk": "^4.1.0", | |||
"clean-webpack-plugin": "^3.0.0", | |||
"cross-env": "^7.0.3", | |||
"eslint-loader": "^4.0.2", | |||
"fs-extra": "^9.0.1", | |||
"html-webpack-plugin": "^4.5.1", | |||
"less": "^4.1.0", | |||
"less-loader": "^7.2.1", | |||
"mini-css-extract-plugin": "^1.3.4", | |||
"mocker-api": "^2.7.5", | |||
"mockjs": "^1.1.0", | |||
"optimize-css-assets-webpack-plugin": "^5.0.4", | |||
"postcss-px2rem-exclude": "0.0.6", | |||
"progress-bar-webpack-plugin": "^2.1.0", | |||
"script-ext-html-webpack-plugin": "^2.1.5", | |||
"spark-assets": "^1.1.6", | |||
"spark-log-event": "^1.0.4", | |||
"url-loader": "^4.1.1", | |||
"webpack": "^4.43.0", | |||
"webpack-bundle-analyzer": "^4.5.0", | |||
"webpack-cli": "^4.3.1", | |||
"webpack-dev-server": "^3.11.0", | |||
"webpack-merge": "^4.2.2" | |||
} | |||
} |
project.settings.json
0 → 100644
public/favicon.ico
0 → 100644
3.78 KB
public/index.html
0 → 100644
public/share.html
0 → 100644
spark.config.json
0 → 100644
sparkrc.js
0 → 100644
src/api/apicfg.js
0 → 100644
src/api/error-handler.js
0 → 100644
src/api/index.js
0 → 100644
src/assetList.json
0 → 100644
src/index.jsx
0 → 100644
src/index.less
0 → 100644
src/md-index.js
0 → 100644
src/modal/modal.jsx
0 → 100644
src/res.less
0 → 100644
src/utils/preload1.3.js
0 → 100644
src/utils/share.js
0 → 100644
src/utils/utils.js
0 → 100644
This diff is collapsed.