Skip to content

Commit

Permalink
Merge pull request #73 from baoduy/develop
Browse files Browse the repository at this point in the history
Fixing the Circle build
  • Loading branch information
baoduy authored Aug 23, 2018
2 parents b689087 + 4a08dc8 commit b9e69de
Show file tree
Hide file tree
Showing 4 changed files with 58 additions and 53 deletions.
16 changes: 8 additions & 8 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@
#
version: 2
jobs:
environment:
BUNDLESIZE_GITHUB_TOKEN: db653f709087e90a090a40510044830499543f62
build:
docker:
# specify the version you desire here
Expand All @@ -21,8 +19,6 @@ jobs:
steps:
#Check out code
- checkout
#Download 'configs' sub modules
- run: git submodule update --init 'configs'

# Download and cache dependencies
- restore_cache:
Expand All @@ -32,16 +28,20 @@ jobs:
- v1-dependencies-

- run: npm install
- run: npm install codecov
- run: npm install codecov bundlesize

- save_cache:
paths:
- node_modules
key: v1-dependencies-{{ checksum "package.json" }}

# Build
- run: npm run build
- run: npm run git-webpack && npm run build
# run test bundle size
- run: npm run test-bundle
- run:
name: run test-bundle
command: npm run test-bundle
#environment:
# BUNDLESIZE_GITHUB_TOKEN: dca74b5808660e8e1b09dccbe38b3b79b21bef6c
# run tests
- run: npm run test-ci
#- run: npm run git-jest && npm run test-ci
2 changes: 1 addition & 1 deletion configs/webpack
91 changes: 48 additions & 43 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,25 +25,24 @@
},
"homepage": "https://github.com/baoduy/React-MaterialUI-Started-Kit",
"scripts": {
"git:jest": "git submodule update --init --remote configs/jest",
"git:webpack": "git submodule update --init --remote configs/webpack",
"git-jest": "git submodule update --init --remote configs/jest",
"git-webpack": "git submodule update --init --remote configs/webpack",
"prod-server": "node sm-react-node-express/express.js",
"build": "npm run clean-dist && webpack -p --progress --config=configs/webpack/prod",
"build-analysis": "npm run clean-analysis && webpack -p --progress --config=configs/webpack/analyzer",
"build-analysis": "npm run clean-dist && webpack -p --progress --config=configs/webpack/analyzer",
"build-dev": "webpack-dev-server --config=configs/webpack/dev",
"clean-dist": "rimraf -f -rmdir dist",
"clean-analysis": "rimraf -f -rmdir analysis",
"lint": "npm-run-all lint-js lint-less",
"lint-js": "jshint",
"lint-less": "lesshint ./src/assets/less",
"start": "npm-run-all git:webpack build-dev",
"start-prod": "npm-run-all git:webpack build prod-server",
"start": "build-dev",
"start-prod": "npm-run-all build prod-server",
"start-analysis": "npm run build-analysis",
"test-bundle": "bundlesize",
"cost": "const-of-modules --no-install",
"test": "npm-run-all git:jest && jest --watch --coverage --config=configs/jest/jest.json",
"test-ci": "npm-run-all git:jest && jest --ci --coverage --config=configs/jest/jest.json && codecov -t 75b11d17-22d7-4b30-81b1-4c39fa2f7582",
"check": "npm-check ignores='eslint,babel-*'"
"test": "jest --watch --coverage --config=configs/jest/jest.json",
"test-ci": "jest --ci --coverage --config=configs/jest/jest.json && codecov -t 75b11d17-22d7-4b30-81b1-4c39fa2f7582",
"check": "npm-check",
"cost": "cost-of-modules --no-install"
},
"devDependencies": {
"@babel/cli": "^7.0.0-beta.56",
Expand All @@ -59,76 +58,77 @@
"@babel/preset-env": "^7.0.0-beta.56",
"@babel/preset-react": "^7.0.0-beta.56",
"@babel/register": "^7.0.0-beta.56",
"@types/googlemaps": "3.30.11",
"@types/markerclustererplus": "2.1.33",
"@types/prop-types": "15.5.5",
"@types/googlemaps": "^3.30.11",
"@types/markerclustererplus": "^2.1.33",
"@types/prop-types": "^15.5.5",
"babel-core": "^7.0.0-bridge.0",
"babel-eslint": "8.2.6",
"babel-eslint": "^8.2.6",
"babel-jest": "^23.4.2",
"babel-loader": "^8.0.0-beta.4",
"babel-plugin-lodash": "^3.3.4",
"babel-plugin-module-resolver": "^3.1.1",
"bundlesize": "^0.17.0",
"compression": "1.7.3",
"compression": "^1.7.3",
"copy-webpack-plugin": "^4.5.2",
"css-loader": "^1.0.0",
"cssnano": "^4.0.5",
"enzyme": "^3.4.0",
"enzyme-adapter-react-16": "^1.5.0",
"enzyme-adapter-react-16": "^1.2.0",
"enzyme-to-json": "^3.3.4",
"eslint": "5.3.0",
"eslint-plugin-react": "^7.10.0",
"eslint": "^5.3.0",
"eslint-plugin-react": "^7.11.1",
"express": "^4.16.3",
"extract-css-chunks-webpack-plugin": "^3.0.11",
"file-loader": "^1.1.11",
"file-loader": "^1.1.0",
"html-webpack-plugin": "^3.2.0",
"identity-obj-proxy": "^3.0.0",
"imagemin": "6.0.0",
"imagemin": "^6.0.0",
"img-loader": "^3.0.0",
"jest": "23.4.2",
"jest": "^23.4.2",
"jest-html-reporter": "^2.4.2",
"jsdom-global": "^3.0.2",
"jshint": "2.9.6",
"less": "3.8.1",
"jshint": "^2.9.6",
"less": "^3.8.1",
"less-loader": "^4.1.0",
"lesshint": "^5.1.0",
"npm-run-all": "^4.1.3",
"postcss-loader": "3.0.0",
"postcss-loader": "^3.0.0",
"react-addons-test-utils": "^15.6.2",
"react-hot-loader": "4.3.4",
"react-hot-loader": "^4.3.4",
"redux-devtools-extension": "^2.13.5",
"redux-immutable-state-invariant": "^2.1.0",
"regenerator-runtime": "^0.12.1",
"rimraf": "^2.6.2",
"style-loader": "^0.22.0",
"url-loader": "^1.0.1",
"webpack": "4.16.5",
"style-loader": "^0.22.1",
"url-loader": "^1.1.0",
"webpack": "^4.16.5",
"webpack-bundle-analyzer": "^2.13.1",
"webpack-cli": "^3.1.0",
"webpack-dev-middleware": "^3.1.3",
"webpack-dev-server": "3.1.5",
"webpack-merge": "4.1.4"
"webpack-dev-server": "^3.1.5",
"webpack-merge": "^4.1.4"
},
"dependencies": {
"@babel/runtime": "^7.0.0-beta.56",
"@material-ui/core": "1.5.0",
"@material-ui/icons": "2.0.2",
"@material-ui/core": "^1.5.0",
"@material-ui/icons": "^2.0.2",
"axios": "^0.18.0",
"chartist": "0.11.0",
"classnames": "2.2.6",
"chartist": "^0.11.0",
"classnames": "^2.2.6",
"dayjs": "^1.7.5",
"linq": "^3.1.0",
"lodash": "^4.17.10",
"perfect-scrollbar": "1.4.0",
"react": "16.4.2",
"react-chartist": "0.13.1",
"react-dom": "16.4.2",
"perfect-scrollbar": "^1.4.0",
"react": "^16.4.2",
"react-chartist": "^0.13.1",
"react-dom": "^16.4.2",
"react-google-maps": "^9.4.5",
"react-redux": "^5.0.7",
"react-redux-thunk-store": "0.0.7",
"react-router-dom": "4.3.1",
"redux": "4.0.0",
"redux-thunk": "2.3.0",
"react-redux-thunk-store": "^0.0.7",
"react-router-dom": "^4.3.1",
"redux": "^4.0.0",
"redux-thunk": "^2.3.0",
"redux-toolbelt": "^2.1.5",
"redux-toolbelt-thunk": "^2.0.4",
"url-join": "^4.0.0",
"uuid": "^3.3.2"
Expand All @@ -141,7 +141,12 @@
{
"path": "./dist/*.*",
"compression": "gzip",
"maxSize": "200 kB"
"maxSize": "100 kB"
},
{
"path": "./dist/*.*",
"compression": "none",
"maxSize": "300 kB"
}
]
}
2 changes: 1 addition & 1 deletion sm-react-service-fabric

0 comments on commit b9e69de

Please sign in to comment.