Skip to content

Commit

Permalink
Dev site v6 (#2546)
Browse files Browse the repository at this point in the history
* update to dev-site-v6

* update env variable for gh-pages deploy

* change logs

* forgot one

* update commands

* update package.json change logs and add a wdio.conf.js to each package.
  • Loading branch information
mjhenkes committed Jul 31, 2019
1 parent be9d528 commit 9109b5b
Show file tree
Hide file tree
Showing 173 changed files with 629 additions and 208 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Expand Up @@ -52,7 +52,7 @@ jobs:
- sudo chown -R travis:travis $HOME/docker
# Load cached docker images
- if [[ -d $HOME/docker ]]; then ls $HOME/docker/*.tar.gz | xargs -I {file} sh -c "zcat {file} | docker load"; fi
- "travis_wait docker-compose run --volume=$TRAVIS_BUILD_DIR/build:/opt/module/build -e TERRA_DEV_SITE_NEW_RELIC_LICENSE_KEY='c494ac44c8' -e TERRA_DEV_SITE_NEW_RELIC_APPLICATION_ID='142450088' test-ci npm run compile:prod"
- "travis_wait docker-compose run --volume=$TRAVIS_BUILD_DIR/build:/opt/module/build -e TERRA_DEV_SITE_NEW_RELIC_LICENSE_KEY='c494ac44c8' -e TERRA_DEV_SITE_NEW_RELIC_APPLICATION_ID='142450088' -e TERRA_DEV_SITE_PUBLIC_PATH='/terra-core/' test-ci npm run compile:prod"
deploy:
provider: pages
skip_cleanup: true
Expand Down
17 changes: 0 additions & 17 deletions dev-site-config/site.config.js
@@ -1,22 +1,5 @@

const siteConfig = {

themeImports: [
'../packages/terra-legacy-theme/src/scoped-theme',
],

appConfig: {

defaultTheme: 'Default Theme',

/* The themes to toggle in the site. */
themes: {
'Default Theme': '',
'Legacy Theme': 'terra-legacy-theme',
},
},

filterSideMenu: true,
includeTestEvidence: false,
};

Expand Down
16 changes: 8 additions & 8 deletions package.json
Expand Up @@ -59,19 +59,19 @@
"postinstall": "link-parent-bin && npm run compile && npm run bootstrap:hoist",
"release": "npm whoami && check-installed-dependencies && npm run compile && npm test && lerna publish",
"postrelease": "npm run docs && git add --all && git commit -m 'Update README.md'",
"start": "tt-serve --config node_modules/terra-dev-site/config/webpack/webpack.config.js",
"start": "tt-serve",
"start-heroku": "tt-serve-static --port $PORT --site './build'",
"start-prod": "tt-serve --config node_modules/terra-dev-site/config/webpack/webpack.config.js --env.disableHotReloading -p",
"start-prod": "tt-serve --env.disableHotReloading -p",
"start-static": "tt-serve-static --site ./build",
"test": "npm run jest && npm run wdio",
"wdio": "cross-env NODE_OPTIONS=--max-old-space-size=2048 wdio node_modules/terra-dev-site/config/wdio/wdio.conf.js"
"wdio": "cross-env NODE_OPTIONS=--max-old-space-size=2048 wdio node_modules/terra-toolkit/config/wdio/wdio.conf.js"
},
"devDependencies": {
"@babel/cli": "^7.4.4",
"@babel/core": "^7.4.4",
"@babel/plugin-proposal-object-rest-spread": "^7.4.4",
"@babel/cli": "^7.5.0",
"@babel/core": "^7.5.0",
"@babel/plugin-proposal-object-rest-spread": "^7.5.0",
"@babel/plugin-transform-object-assign": "^7.2.0",
"@babel/preset-env": "^7.4.4",
"@babel/preset-env": "^7.5.0",
"@babel/preset-react": "^7.0.0",
"babel-jest": "^24.8.0",
"browserslist-config-terra": "^1.0.0",
Expand Down Expand Up @@ -99,7 +99,7 @@
"stylelint": "^10.0.1",
"stylelint-config-terra": "^3.0.0",
"terra-aggregate-translations": "^1.0.0",
"terra-dev-site": "^5.0.0",
"terra-dev-site": "^6.0.0",
"terra-disclosure-manager": "^4.9.0",
"terra-enzyme-intl": "^3.0.0",
"terra-toolkit": "^5.0.0",
Expand Down
2 changes: 2 additions & 0 deletions packages/terra-action-footer/CHANGELOG.md
Expand Up @@ -3,6 +3,8 @@ ChangeLog

Unreleased
----------
### Changed
* updated package.json test scripts

2.18.0 - (July 30, 2019)
------------------
Expand Down
6 changes: 3 additions & 3 deletions packages/terra-action-footer/package.json
Expand Up @@ -38,8 +38,8 @@
"lint:js": "eslint --ext .js,.jsx . --ignore-path ../../.eslintignore",
"lint:scss": "stylelint src/**/*.scss",
"precompile": "rm -rf lib",
"test": "npm run test:jest && npm run test:wdio",
"test:jest": "jest --config ../../jestconfig.js",
"test:wdio": "../../node_modules/.bin/wdio ../../node_modules/terra-dev-site/config/wdio/wdio.conf.js"
"test": "npm run jest && npm run wdio",
"jest": "jest --config ../../jestconfig.js",
"wdio": "cd ../.. && npx wdio ./packages/$npm_package_name/wdio.conf.js"
}
}
6 changes: 6 additions & 0 deletions packages/terra-action-footer/wdio.conf.js
@@ -0,0 +1,6 @@
const path = require('path');
const wdioConf = require('../../node_modules/terra-toolkit/config/wdio/wdio.conf');

wdioConf.config.specs = [path.join(__dirname, 'test*', 'wdio', '**', '*-spec.js')];

exports.config = wdioConf.config;
2 changes: 2 additions & 0 deletions packages/terra-action-header/CHANGELOG.md
Expand Up @@ -3,6 +3,8 @@ ChangeLog

Unreleased
----------
### Changed
* updated package.json test scripts

2.24.0 - (July 30, 2019)
------------------
Expand Down
6 changes: 3 additions & 3 deletions packages/terra-action-header/package.json
Expand Up @@ -39,8 +39,8 @@
"lint:js": "eslint --ext .js,.jsx . --ignore-path ../../.eslintignore",
"lint:scss": "stylelint src/**/*.scss",
"precompile": "rm -rf lib",
"test": "npm run test:jest && npm run test:wdio",
"test:jest": "jest --config ../../jestconfig.js",
"test:wdio": "../../node_modules/.bin/wdio ../../node_modules/terra-dev-site/config/wdio/wdio.conf.js"
"test": "npm run jest && npm run wdio",
"jest": "jest --config ../../jestconfig.js",
"wdio": "cd ../.. && npx wdio ./packages/$npm_package_name/wdio.conf.js"
}
}
6 changes: 6 additions & 0 deletions packages/terra-action-header/wdio.conf.js
@@ -0,0 +1,6 @@
const path = require('path');
const wdioConf = require('../../node_modules/terra-toolkit/config/wdio/wdio.conf');

wdioConf.config.specs = [path.join(__dirname, 'test*', 'wdio', '**', '*-spec.js')];

exports.config = wdioConf.config;
2 changes: 2 additions & 0 deletions packages/terra-alert/CHANGELOG.md
Expand Up @@ -3,6 +3,8 @@ Changelog

Unreleased
----------
### Changed
* updated package.json test scripts

4.7.0 - (July 30, 2019)
------------------
Expand Down
6 changes: 3 additions & 3 deletions packages/terra-alert/package.json
Expand Up @@ -41,8 +41,8 @@
"lint:js": "eslint --ext .js,.jsx . --ignore-path ../../.eslintignore",
"lint:scss": "stylelint src/**/*.scss",
"precompile": "rm -rf lib",
"test": "npm run test:jest && npm run test:wdio",
"test:jest": "jest --config ../../jestconfig.js",
"test:wdio": "../../node_modules/.bin/wdio ../../node_modules/terra-dev-site/config/wdio/wdio.conf.js"
"test": "npm run jest && npm run wdio",
"jest": "jest --config ../../jestconfig.js",
"wdio": "cd ../.. && npx wdio ./packages/$npm_package_name/wdio.conf.js"
}
}
6 changes: 6 additions & 0 deletions packages/terra-alert/wdio.conf.js
@@ -0,0 +1,6 @@
const path = require('path');
const wdioConf = require('../../node_modules/terra-toolkit/config/wdio/wdio.conf');

wdioConf.config.specs = [path.join(__dirname, 'test*', 'wdio', '**', '*-spec.js')];

exports.config = wdioConf.config;
2 changes: 2 additions & 0 deletions packages/terra-arrange/CHANGELOG.md
Expand Up @@ -3,6 +3,8 @@ Changelog

Unreleased
----------
### Changed
* updated package.json test scripts

3.17.0 - (July 30, 2019)
------------------
Expand Down
6 changes: 3 additions & 3 deletions packages/terra-arrange/package.json
Expand Up @@ -26,9 +26,9 @@
"lint:js": "eslint --ext .js,.jsx . --ignore-path ../../.eslintignore",
"lint:scss": "stylelint src/**/*.scss",
"precompile": "rm -rf lib",
"test": "npm run test:jest && npm run test:wdio",
"test:jest": "jest --config ../../jestconfig.js",
"test:wdio": "../../node_modules/.bin/wdio ../../node_modules/terra-dev-site/config/wdio/wdio.conf.js"
"test": "npm run jest && npm run wdio",
"jest": "jest --config ../../jestconfig.js",
"wdio": "cd ../.. && npx wdio ./packages/$npm_package_name/wdio.conf.js"
},
"peerDependencies": {
"react": "^16.8.5",
Expand Down
6 changes: 6 additions & 0 deletions packages/terra-arrange/wdio.conf.js
@@ -0,0 +1,6 @@
const path = require('path');
const wdioConf = require('../../node_modules/terra-toolkit/config/wdio/wdio.conf');

wdioConf.config.specs = [path.join(__dirname, 'test*', 'wdio', '**', '*-spec.js')];

exports.config = wdioConf.config;
2 changes: 2 additions & 0 deletions packages/terra-avatar/CHANGELOG.md
Expand Up @@ -3,6 +3,8 @@ ChangeLog

Unreleased
----------
### Changed
* updated package.json test scripts

2.23.0 - (July 30, 2019)
------------------
Expand Down
6 changes: 3 additions & 3 deletions packages/terra-avatar/package.json
Expand Up @@ -37,8 +37,8 @@
"lint:js": "eslint --ext .js,.jsx . --ignore-path ../../.eslintignore",
"lint:scss": "stylelint src/**/*.scss",
"precompile": "rm -rf lib",
"test": "npm run test:jest && npm run test:wdio",
"test:jest": "jest --config ../../jestconfig.js",
"test:wdio": "../../node_modules/.bin/wdio ../../node_modules/terra-dev-site/config/wdio/wdio.conf.js"
"test": "npm run jest && npm run wdio",
"jest": "jest --config ../../jestconfig.js",
"wdio": "cd ../.. && npx wdio ./packages/$npm_package_name/wdio.conf.js"
}
}
6 changes: 6 additions & 0 deletions packages/terra-avatar/wdio.conf.js
@@ -0,0 +1,6 @@
const path = require('path');
const wdioConf = require('../../node_modules/terra-toolkit/config/wdio/wdio.conf');

wdioConf.config.specs = [path.join(__dirname, 'test*', 'wdio', '**', '*-spec.js')];

exports.config = wdioConf.config;
2 changes: 2 additions & 0 deletions packages/terra-badge/CHANGELOG.md
Expand Up @@ -3,6 +3,8 @@ Changelog

Unreleased
----------
### Changed
* updated package.json test scripts

3.19.0 - (July 30, 2019)
------------------
Expand Down
6 changes: 3 additions & 3 deletions packages/terra-badge/package.json
Expand Up @@ -26,9 +26,9 @@
"lint:js": "eslint --ext .js,.jsx . --ignore-path ../../.eslintignore",
"lint:scss": "stylelint src/**/*.scss",
"precompile": "rm -rf lib",
"test": "npm run test:jest && npm run test:wdio",
"test:jest": "jest --config ../../jestconfig.js",
"test:wdio": "../../node_modules/.bin/wdio ../../node_modules/terra-dev-site/config/wdio/wdio.conf.js"
"test": "npm run jest && npm run wdio",
"jest": "jest --config ../../jestconfig.js",
"wdio": "cd ../.. && npx wdio ./packages/$npm_package_name/wdio.conf.js"
},
"peerDependencies": {
"react": "^16.8.5",
Expand Down
6 changes: 6 additions & 0 deletions packages/terra-badge/wdio.conf.js
@@ -0,0 +1,6 @@
const path = require('path');
const wdioConf = require('../../node_modules/terra-toolkit/config/wdio/wdio.conf');

wdioConf.config.specs = [path.join(__dirname, 'test*', 'wdio', '**', '*-spec.js')];

exports.config = wdioConf.config;
2 changes: 2 additions & 0 deletions packages/terra-base/CHANGELOG.md
Expand Up @@ -3,6 +3,8 @@ Changelog

Unreleased
----------
### Changed
* updated package.json test scripts

5.15.0 - (July 30, 2019)
------------------
Expand Down
6 changes: 3 additions & 3 deletions packages/terra-base/package.json
Expand Up @@ -37,8 +37,8 @@
"lint:js": "eslint --ext .js,.jsx . --ignore-path ../../.eslintignore",
"lint:scss": "stylelint src/**/*.scss",
"precompile": "rm -rf lib",
"test": "npm run test:jest && npm run test:wdio",
"test:jest": "jest --config ../../jestconfig.js",
"test:wdio": "../../node_modules/.bin/wdio ../../node_modules/terra-dev-site/config/wdio/wdio.conf.js"
"test": "npm run jest && npm run wdio",
"jest": "jest --config ../../jestconfig.js",
"wdio": "cd ../.. && npx wdio ./packages/$npm_package_name/wdio.conf.js"
}
}
6 changes: 6 additions & 0 deletions packages/terra-base/wdio.conf.js
@@ -0,0 +1,6 @@
const path = require('path');
const wdioConf = require('../../node_modules/terra-toolkit/config/wdio/wdio.conf');

wdioConf.config.specs = [path.join(__dirname, 'test*', 'wdio', '**', '*-spec.js')];

exports.config = wdioConf.config;
2 changes: 2 additions & 0 deletions packages/terra-breakpoints/CHANGELOG.md
Expand Up @@ -3,6 +3,8 @@ ChangeLog

Unreleased
----------
### Changed
* updated package.json test scripts

2.14.0 - (July 30, 2019)
------------------
Expand Down
6 changes: 3 additions & 3 deletions packages/terra-breakpoints/package.json
Expand Up @@ -35,8 +35,8 @@
"lint:js": "eslint --ext .js,.jsx . --ignore-path ../../.eslintignore",
"lint:scss": "stylelint src/**/*.scss",
"precompile": "rm -rf lib",
"test": "npm run test:jest && npm run test:wdio",
"test:jest": "jest --config ../../jestconfig.js",
"test:wdio": "../../node_modules/.bin/wdio ../../node_modules/terra-dev-site/config/wdio/wdio.conf.js"
"test": "npm run jest && npm run wdio",
"jest": "jest --config ../../jestconfig.js",
"wdio": "cd ../.. && npx wdio ./packages/$npm_package_name/wdio.conf.js"
}
}
6 changes: 6 additions & 0 deletions packages/terra-breakpoints/wdio.conf.js
@@ -0,0 +1,6 @@
const path = require('path');
const wdioConf = require('../../node_modules/terra-toolkit/config/wdio/wdio.conf');

wdioConf.config.specs = [path.join(__dirname, 'test*', 'wdio', '**', '*-spec.js')];

exports.config = wdioConf.config;
2 changes: 2 additions & 0 deletions packages/terra-button-group/CHANGELOG.md
Expand Up @@ -3,6 +3,8 @@ Changelog

Unreleased
----------
### Changed
* updated package.json test scripts

3.19.0 - (July 30, 2019)
------------------
Expand Down
6 changes: 3 additions & 3 deletions packages/terra-button-group/package.json
Expand Up @@ -38,8 +38,8 @@
"lint:js": "eslint --ext .js,.jsx . --ignore-path ../../.eslintignore",
"lint:scss": "stylelint src/**/*.scss",
"precompile": "rm -rf lib",
"test": "npm run test:jest && npm run test:wdio",
"test:jest": "jest --config ../../jestconfig.js",
"test:wdio": "../../node_modules/.bin/wdio ../../node_modules/terra-dev-site/config/wdio/wdio.conf.js"
"test": "npm run jest && npm run wdio",
"jest": "jest --config ../../jestconfig.js",
"wdio": "cd ../.. && npx wdio ./packages/$npm_package_name/wdio.conf.js"
}
}
6 changes: 6 additions & 0 deletions packages/terra-button-group/wdio.conf.js
@@ -0,0 +1,6 @@
const path = require('path');
const wdioConf = require('../../node_modules/terra-toolkit/config/wdio/wdio.conf');

wdioConf.config.specs = [path.join(__dirname, 'test*', 'wdio', '**', '*-spec.js')];

exports.config = wdioConf.config;
6 changes: 2 additions & 4 deletions packages/terra-button/CHANGELOG.md
Expand Up @@ -3,11 +3,9 @@ Changelog

Unreleased
----------

3.19.0 - (July 30, 2019)
------------------
### Changed
* Minor dependency version bump
* Update tests for dev-site v6
* updated package.json test scripts

3.18.0 - (July 24, 2019)
------------------
Expand Down
6 changes: 3 additions & 3 deletions packages/terra-button/package.json
Expand Up @@ -26,9 +26,9 @@
"lint:js": "eslint --ext .js,.jsx . --ignore-path ../../.eslintignore",
"lint:scss": "stylelint src/**/*.scss",
"precompile": "rm -rf lib",
"test": "npm run test:jest && npm run test:wdio",
"test:jest": "jest --config ../../jestconfig.js",
"test:wdio": "../../node_modules/.bin/wdio ../../node_modules/terra-dev-site/config/wdio/wdio.conf.js"
"test": "npm run jest && npm run wdio",
"jest": "jest --config ../../jestconfig.js",
"wdio": "cd ../.. && npx wdio ./packages/$npm_package_name/wdio.conf.js"
},
"peerDependencies": {
"react": "^16.8.5",
Expand Down
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 0 additions & 1 deletion packages/terra-button/tests/wdio/button-spec.js
Expand Up @@ -20,7 +20,6 @@ Terra.describeViewports('Button', ['tiny'], () => {

describe('Neutral-Keyboard Focus', () => {
before(() => {
browser.url('/#/raw/tests/terra-button/button/variants/neutral-button');
browser.keys('Tab');
});

Expand Down
6 changes: 6 additions & 0 deletions packages/terra-button/wdio.conf.js
@@ -0,0 +1,6 @@
const path = require('path');
const wdioConf = require('../../node_modules/terra-toolkit/config/wdio/wdio.conf');

wdioConf.config.specs = [path.join(__dirname, 'test*', 'wdio', '**', '*-spec.js')];

exports.config = wdioConf.config;
2 changes: 2 additions & 0 deletions packages/terra-card/CHANGELOG.md
Expand Up @@ -3,6 +3,8 @@ ChangeLog

Unreleased
----------
### Changed
* updated package.json test scripts

3.15.0 - (July 30, 2019)
------------------
Expand Down
6 changes: 3 additions & 3 deletions packages/terra-card/package.json
Expand Up @@ -36,8 +36,8 @@
"lint:js": "eslint --ext .js,.jsx . --ignore-path ../../.eslintignore",
"lint:scss": "stylelint src/**/*.scss",
"precompile": "rm -rf lib",
"test": "npm run test:jest && npm run test:wdio",
"test:jest": "jest --config ../../jestconfig.js",
"test:wdio": "../../node_modules/.bin/wdio ../../node_modules/terra-dev-site/config/wdio/wdio.conf.js"
"test": "npm run jest && npm run wdio",
"jest": "jest --config ../../jestconfig.js",
"wdio": "cd ../.. && npx wdio ./packages/$npm_package_name/wdio.conf.js"
}
}
6 changes: 6 additions & 0 deletions packages/terra-card/wdio.conf.js
@@ -0,0 +1,6 @@
const path = require('path');
const wdioConf = require('../../node_modules/terra-toolkit/config/wdio/wdio.conf');

wdioConf.config.specs = [path.join(__dirname, 'test*', 'wdio', '**', '*-spec.js')];

exports.config = wdioConf.config;

0 comments on commit 9109b5b

Please sign in to comment.