Skip to content

Commit

Permalink
chore(build): update yarn to npm
Browse files Browse the repository at this point in the history
  • Loading branch information
cdcabrera committed Jan 29, 2021
1 parent 067b99b commit 431f95d
Show file tree
Hide file tree
Showing 8 changed files with 602 additions and 91 deletions.
2 changes: 1 addition & 1 deletion .npmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
package-lock = false
package-lock = true
18 changes: 9 additions & 9 deletions backend/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions frontend/config/transform.file.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
const path = require('path');

module.exports = {
process(src, filename) {
const assetFilename = JSON.stringify(path.basename(filename));
return `module.exports = ${assetFilename};`;
}
};
1 change: 1 addition & 0 deletions frontend/config/transform.style.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
module.exports = {};
4 changes: 2 additions & 2 deletions frontend/jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@ module.exports = {

// A map from regular expressions to module names that allow to stub out resources with a single module
moduleNameMapper: {
'\\.(css|less|sass|scss)$': '<rootDir>/__mocks__/styleMock.js',
'\\.(css|less|sass|scss)$': '<rootDir>/config/transform.style.js',
'\\.(jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$':
'<rootDir>/__mocks__/fileMock.js',
'<rootDir>/config/transform.file.js',
'@app/(.*)': '<rootDir>/src/app/$1'
},

Expand Down
170 changes: 93 additions & 77 deletions frontend/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 3 additions & 2 deletions frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,10 @@
"build:prod": "webpack --config ./config/webpack.prod.js",
"format": "prettier --write \"./**/*.ts\" \"./**/*.tsx\" \"./**/*.scss\"",
"start:dev": "webpack serve --hot --color --config ./config/webpack.dev.js",
"test": "run-s test:type-check test:lint test:ci",
"test": "run-s test:lint test:ci",
"test:ci": "export CI=true; jest --collectCoverage",
"test:clearCache": "jest --clearCache",
"test:dev": "run-s test:type-check test:lint test:local",
"test:dev": "run-s test:lint test:local",
"test:fix": "eslint --ext .json,.js,.ts,.jsx,.tsx ./src --fix",
"test:lint": "eslint --ext .json,.js,.ts,.jsx,.tsx ./src",
"test:local": "jest --watchAll",
Expand Down Expand Up @@ -87,6 +87,7 @@
"raw-loader": "^4.0.2",
"react-docgen-typescript-loader": "^3.7.2",
"react-router-dom": "^5.2.0",
"redux-mock-store": "^1.5.4",
"regenerator-runtime": "^0.13.7",
"rimraf": "^3.0.2",
"sass-loader": "^7.3.1",
Expand Down
Loading

0 comments on commit 431f95d

Please sign in to comment.