Skip to content
This repository has been archived by the owner on May 15, 2024. It is now read-only.

Commit

Permalink
feat(deps): update generated module deps (#153)
Browse files Browse the repository at this point in the history
  • Loading branch information
James Singleton authored Sep 24, 2020
1 parent ae959fa commit 865bf24
Show file tree
Hide file tree
Showing 4 changed files with 31 additions and 29 deletions.
20 changes: 10 additions & 10 deletions packages/generator-one-app-module/__tests__/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -135,14 +135,14 @@ describe('generator-one-app-module', () => {
dependencies: {
'@americanexpress/one-app-ducks': '^4.0.0',
immutable: '^3.8.2',
'prop-types': '^15.5.9',
'react-intl': '^4.5.3',
'react-redux': '^7.1.3',
redux: '^4.0.4',
'prop-types': '^15.7.2',
'react-intl': '^5.8.2',
'react-redux': '^7.2.1',
redux: '^4.0.5',
},
devDependencies: {
glob: '^7.1.6',
'@babel/polyfill': '^7.8.3',
'@babel/polyfill': '^7.11.5',
},
jest: {
setupFilesAfterEnv: './test-setup.js',
Expand Down Expand Up @@ -203,14 +203,14 @@ describe('generator-one-app-module', () => {
dependencies: {
'@americanexpress/one-app-ducks': '^4.0.0',
immutable: '^3.8.2',
'prop-types': '^15.5.9',
'react-intl': '^4.5.3',
'react-redux': '^7.1.3',
redux: '^4.0.4',
'prop-types': '^15.7.2',
'react-intl': '^5.8.2',
'react-redux': '^7.2.1',
redux: '^4.0.5',
},
devDependencies: {
glob: '^7.1.6',
'@babel/polyfill': '^7.8.3',
'@babel/polyfill': '^7.11.5',
},
jest: {
setupFilesAfterEnv: './test-setup.js',
Expand Down
18 changes: 9 additions & 9 deletions packages/generator-one-app-module/generators/app/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@ const helper = require('./promptValidations');
const packagejs = require('../../package.json');

const isNegativeAnswer = (answer) => (answer === false)
|| (
typeof answer === 'string'
&& /^n+o?/i.test(answer.trim())
);
|| (
typeof answer === 'string'
&& /^n+o?/i.test(answer.trim())
);

module.exports = class extends Generator {
_printOneAppLogo() {
Expand Down Expand Up @@ -171,14 +171,14 @@ module.exports = class extends Generator {
dependencies: {
'@americanexpress/one-app-ducks': '^4.0.0',
immutable: '^3.8.2',
'prop-types': '^15.5.9',
'react-intl': '^4.5.3',
'react-redux': '^7.1.3',
redux: '^4.0.4',
'prop-types': '^15.7.2',
'react-intl': '^5.8.2',
'react-redux': '^7.2.1',
redux: '^4.0.5',
},
devDependencies: {
glob: '^7.1.6',
'@babel/polyfill': '^7.8.3',
'@babel/polyfill': '^7.11.5',
'jest-json-schema': '^2.1.0',

},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,28 +20,30 @@
},
"runner": {
"dockerImage": "oneamex/one-app-dev:latest",
"modules": ["."]
"modules": [
"."
]
}
},
"dependencies": {
"@americanexpress/one-app-router": "^1.0.0",
"holocron": "^1.1.0",
"react": "^16.12.0"
"react": "^16.13.1"
},
"devDependencies": {
"@americanexpress/one-app-bundler": "^6.0.0",
"@americanexpress/one-app-runner": "^6.0.0",
"amex-jest-preset-react": "^6.0.0",
"babel-eslint": "^8.2.6",
"babel-preset-amex": "^3.2.0",
"babel-eslint": "^10.1.0",
"babel-preset-amex": "^3.4.0",
"enzyme": "^3.11.0",
"enzyme-to-json": "^3.4.4",
"eslint": "^6.8.0",
"eslint-config-amex": "^11.1.0",
"jest": "^25.1.0",
"enzyme-to-json": "^3.5.0",
"eslint": "^7.9.0",
"eslint-config-amex": "^13.1.0",
"jest": "^26.4.2",
"rimraf": "^3.0.0"
},
"jest": {
"preset": "amex-jest-preset-react"
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ describe('appConfig', () => {
jest.resetModules();
process.env.ONE_CLIENT_REPORTING_URL = 'example.com';
});

it('should be a valid csp string', () => {
// eslint-disable-next-line global-require
const cspString = require('../src/csp').default;
Expand Down

0 comments on commit 865bf24

Please sign in to comment.