Skip to content

Commit

Permalink
test(e2e): introduce web components build script for isolated compone…
Browse files Browse the repository at this point in the history
…nts (#6258)

### Related Ticket(s)

#6250 

### Description

This PR will remove the older integration bundle build tests, and replace with a new script that will build all code sandbox examples. 

In addition, a CI flow has been drafted, and will be updated to point to the main repo once this is merged in.

There is a follow-on issue #6251 that will add cypress to testing each individual component based on the built isolated components.

### Changelog

**New**

- e2e test build script for web components

**Removed**

- original integration bundle/build script

<!-- React and Web Component deploy previews are enabled by default. -->
<!-- To enable additional available deploy previews, apply the following -->
<!-- labels for the corresponding package: -->
<!-- *** "package: services": Services -->
<!-- *** "package: utilities": Utilities -->
<!-- *** "package: styles": Carbon Expressive -->
<!-- *** "RTL": React / Web Components (RTL) -->
<!-- *** "feature flag": React / Web Components (experimental) -->
  • Loading branch information
jeffchew authored Jun 7, 2021
1 parent da474d6 commit e03d810
Show file tree
Hide file tree
Showing 166 changed files with 154,815 additions and 604 deletions.
1 change: 1 addition & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,4 @@ carbon-tools
CHANGELOG.md
packages/**/src/internal/vendor
packages/web-components/tests/snapshots
packages/web-components/tests/e2e/build/examples-scaffold
Binary file not shown.
Binary file added .yarn/offline-mirror/@cypress-request-2.88.5.tgz
Binary file not shown.
Binary file added .yarn/offline-mirror/@cypress-xvfb-1.2.4.tgz
Binary file not shown.
Binary file added .yarn/offline-mirror/@types-node-14.17.1.tgz
Binary file not shown.
Binary file not shown.
Binary file added .yarn/offline-mirror/@types-sizzle-2.3.3.tgz
Binary file not shown.
Binary file added .yarn/offline-mirror/arch-2.2.0.tgz
Binary file not shown.
Binary file added .yarn/offline-mirror/blob-util-2.0.2.tgz
Binary file not shown.
Binary file added .yarn/offline-mirror/cachedir-2.3.0.tgz
Binary file not shown.
Binary file added .yarn/offline-mirror/chalk-4.1.1.tgz
Binary file not shown.
Binary file added .yarn/offline-mirror/check-more-types-2.24.0.tgz
Binary file not shown.
Binary file added .yarn/offline-mirror/ci-info-3.1.1.tgz
Binary file not shown.
Binary file added .yarn/offline-mirror/cli-cursor-1.0.2.tgz
Binary file not shown.
Binary file added .yarn/offline-mirror/cli-table3-0.6.0.tgz
Binary file not shown.
Binary file removed .yarn/offline-mirror/commander-2.20.3.tgz
Binary file not shown.
Binary file added .yarn/offline-mirror/commander-7.2.0.tgz
Binary file not shown.
Binary file added .yarn/offline-mirror/common-tags-1.8.0.tgz
Binary file not shown.
Binary file added .yarn/offline-mirror/cypress-7.4.0.tgz
Binary file not shown.
Binary file added .yarn/offline-mirror/dayjs-1.10.5.tgz
Binary file not shown.
Binary file added .yarn/offline-mirror/debug-4.3.2.tgz
Binary file not shown.
Binary file added .yarn/offline-mirror/eventemitter2-6.4.4.tgz
Binary file not shown.
Binary file added .yarn/offline-mirror/execa-4.1.0.tgz
Binary file not shown.
Binary file added .yarn/offline-mirror/executable-4.1.1.tgz
Binary file not shown.
Binary file added .yarn/offline-mirror/exit-hook-1.1.1.tgz
Binary file not shown.
Binary file added .yarn/offline-mirror/fs-extra-10.0.0.tgz
Binary file not shown.
Binary file added .yarn/offline-mirror/getos-3.2.1.tgz
Binary file not shown.
Binary file added .yarn/offline-mirror/global-dirs-3.0.0.tgz
Binary file not shown.
Binary file added .yarn/offline-mirror/ini-2.0.0.tgz
Binary file not shown.
Binary file added .yarn/offline-mirror/is-ci-3.0.0.tgz
Binary file not shown.
Binary file not shown.
Binary file added .yarn/offline-mirror/lazy-ass-1.6.0.tgz
Binary file not shown.
Binary file added .yarn/offline-mirror/lodash.once-4.1.1.tgz
Binary file not shown.
Binary file added .yarn/offline-mirror/onetime-1.1.0.tgz
Binary file not shown.
Binary file added .yarn/offline-mirror/ospath-1.2.2.tgz
Binary file not shown.
Binary file added .yarn/offline-mirror/pretty-bytes-5.6.0.tgz
Binary file not shown.
Binary file added .yarn/offline-mirror/ramda-0.27.1.tgz
Binary file not shown.
Binary file added .yarn/offline-mirror/request-progress-3.0.0.tgz
Binary file not shown.
Binary file added .yarn/offline-mirror/restore-cursor-1.0.1.tgz
Binary file not shown.
Binary file added .yarn/offline-mirror/supports-color-8.1.1.tgz
Binary file not shown.
Binary file added .yarn/offline-mirror/throttleit-1.0.0.tgz
Binary file not shown.
Binary file added .yarn/offline-mirror/tmp-0.2.1.tgz
Binary file not shown.
Binary file added .yarn/offline-mirror/untildify-4.0.0.tgz
Binary file not shown.
8 changes: 6 additions & 2 deletions gulp-tasks/lint.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* Copyright IBM Corp. 2020
* Copyright IBM Corp. 2020, 2021
*
* This source code is licensed under the Apache-2.0 license found in the
* LICENSE file in the root directory of this source tree.
Expand Down Expand Up @@ -58,7 +58,11 @@ module.exports = {
});
const glob = paths.reduce(
(acc, item) => acc.concat(gitignoreToGlob(item)),
['**/*.{js,ts,tsx,scss,html}', '!**/examples/**']
[
'**/*.{js,ts,tsx,scss,html}',
'!**/examples/**',
'!**/examples-scaffold/**',
]
);
await promisifyStream(() =>
gulp.src(glob, { allowEmpty: true }).pipe(gulpCheckLicense())
Expand Down
1 change: 1 addition & 0 deletions packages/web-components/.prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
/src/internal/vendor
/tests/coverage
/tests/snapshots
/tests/e2e/build/examples-scaffold
es
lib
node_modules
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,9 @@
"license": "Apache-2",
"main": "index.html",
"scripts": {
"clean": "rimraf node_modules dist .cache",
"start": "parcel index.html --port=9000 --no-hmr",
"build": "parcel build index.html --no-minify"
"build": "parcel build index.html --no-minify --public-url ./"
},
"dependencies": {
"@carbon/ibmdotcom-web-components": "canary",
Expand All @@ -16,6 +17,7 @@
},
"devDependencies": {
"@babel/core": "^7.0.0-0",
"parcel-bundler": "1.12.3"
"parcel-bundler": "1.12.3",
"rimraf": "^3.0.2"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,9 @@
"license": "Apache-2",
"main": "index.html",
"scripts": {
"clean": "rimraf node_modules dist .cache",
"start": "parcel index.html --port=9000 --no-hmr",
"build": "parcel build index.html --no-minify"
"build": "parcel build index.html --no-minify --public-url ./"
},
"dependencies": {
"@carbon/ibmdotcom-web-components": "canary",
Expand All @@ -16,6 +17,7 @@
},
"devDependencies": {
"@babel/core": "^7.0.0-0",
"parcel-bundler": "1.12.3"
"parcel-bundler": "1.12.3",
"rimraf": "^3.0.2"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,9 @@
"license": "Apache-2",
"main": "index.html",
"scripts": {
"clean": "rimraf node_modules dist .cache",
"start": "NODE_ENV=* parcel index.html --port=9000 --no-hmr",
"build": "parcel build index.html --no-minify"
"build": "parcel build index.html --no-minify --public-url ./"
},
"dependencies": {
"@carbon/ibmdotcom-web-components": "canary",
Expand All @@ -16,6 +17,7 @@
},
"devDependencies": {
"@babel/core": "^7.0.0-0",
"parcel-bundler": "1.12.3"
"parcel-bundler": "1.12.3",
"rimraf": "^3.0.2"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,9 @@
"license": "Apache-2",
"main": "index.html",
"scripts": {
"clean": "rimraf node_modules dist .cache",
"start": "parcel index.html --port=9000 --no-hmr",
"build": "parcel build index.html --no-minify"
"build": "parcel build index.html --no-minify --public-url ./"
},
"dependencies": {
"@carbon/ibmdotcom-web-components": "canary",
Expand All @@ -16,6 +17,7 @@
},
"devDependencies": {
"@babel/core": "^7.0.0-0",
"parcel-bundler": "1.12.3"
"parcel-bundler": "1.12.3",
"rimraf": "^3.0.2"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,9 @@
"license": "Apache-2",
"main": "index.html",
"scripts": {
"clean": "rimraf node_modules dist .cache",
"start": "parcel index.html --port=9000 --no-hmr",
"build": "parcel build index.html --no-minify"
"build": "parcel build index.html --no-minify --public-url ./"
},
"dependencies": {
"@carbon/ibmdotcom-web-components": "canary",
Expand All @@ -16,6 +17,7 @@
},
"devDependencies": {
"@babel/core": "^7.0.0-0",
"parcel-bundler": "1.12.3"
"parcel-bundler": "1.12.3",
"rimraf": "^3.0.2"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,9 @@
"license": "Apache-2",
"main": "index.html",
"scripts": {
"clean": "rimraf node_modules dist .cache",
"start": "parcel index.html --port=9000 --no-hmr",
"build": "parcel build index.html --no-minify"
"build": "parcel build index.html --no-minify --public-url ./"
},
"dependencies": {
"@carbon/ibmdotcom-web-components": "canary",
Expand All @@ -16,6 +17,7 @@
},
"devDependencies": {
"@babel/core": "^7.0.0-0",
"parcel-bundler": "1.12.3"
"parcel-bundler": "1.12.3",
"rimraf": "^3.0.2"
}
}
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
{
"name": "ibmdotcom-web-components-button-example",
"name": "ibmdotcom-web-components-card-in-card-example",
"version": "0.1.0",
"private": true,
"description": "Sample project for getting started with the Web Components from Carbon for IBM.com.",
"license": "Apache-2",
"main": "index.html",
"scripts": {
"clean": "rimraf node_modules dist .cache",
"start": "parcel index.html --port=9000 --no-hmr",
"build": "parcel build index.html --no-minify"
"build": "parcel build index.html --no-minify --public-url ./"
},
"dependencies": {
"@carbon/ibmdotcom-web-components": "canary",
Expand All @@ -16,6 +17,7 @@
},
"devDependencies": {
"@babel/core": "^7.0.0-0",
"parcel-bundler": "1.12.3"
"parcel-bundler": "1.12.3",
"rimraf": "^3.0.2"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,9 @@
"license": "Apache-2",
"main": "index.html",
"scripts": {
"clean": "rimraf node_modules dist .cache",
"start": "parcel index.html --port=9000 --no-hmr",
"build": "parcel build index.html --no-minify"
"build": "parcel build index.html --no-minify --public-url ./"
},
"dependencies": {
"@carbon/ibmdotcom-web-components": "canary",
Expand All @@ -16,6 +17,7 @@
},
"devDependencies": {
"@babel/core": "^7.0.0-0",
"parcel-bundler": "1.12.3"
"parcel-bundler": "1.12.3",
"rimraf": "^3.0.2"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,9 @@
"license": "Apache-2",
"main": "index.html",
"scripts": {
"clean": "rimraf node_modules dist .cache",
"start": "parcel index.html --port=9000 --no-hmr",
"build": "parcel build index.html --no-minify"
"build": "parcel build index.html --no-minify --public-url ./"
},
"dependencies": {
"@carbon/ibmdotcom-web-components": "canary",
Expand All @@ -16,6 +17,7 @@
},
"devDependencies": {
"@babel/core": "^7.0.0-0",
"parcel-bundler": "1.12.3"
"parcel-bundler": "1.12.3",
"rimraf": "^3.0.2"
}
}
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"includePaths": ["node_modules"],
}
"includePaths": ["node_modules", "../../node_modules"],
}
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,9 @@
"license": "Apache-2",
"main": "index.html",
"scripts": {
"clean": "rimraf node_modules dist .cache",
"start": "parcel index.html --port=9000 --no-hmr",
"build": "parcel build index.html --no-minify"
"build": "parcel build index.html --no-minify --public-url ./"
},
"dependencies": {
"@carbon/ibmdotcom-web-components": "canary",
Expand All @@ -16,6 +17,7 @@
},
"devDependencies": {
"@babel/core": "^7.0.0-0",
"parcel-bundler": "1.12.3"
"parcel-bundler": "1.12.3",
"rimraf": "^3.0.2"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,9 @@
"license": "Apache-2",
"main": "index.html",
"scripts": {
"clean": "rimraf node_modules dist .cache",
"start": "parcel index.html --port=9000 --no-hmr",
"build": "parcel build index.html --no-minify"
"build": "parcel build index.html --no-minify --public-url ./"
},
"dependencies": {
"@carbon/ibmdotcom-web-components": "canary",
Expand All @@ -16,6 +17,7 @@
},
"devDependencies": {
"@babel/core": "^7.0.0-0",
"parcel-bundler": "1.12.3"
"parcel-bundler": "1.12.3",
"rimraf": "^3.0.2"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,9 @@
"license": "Apache-2",
"main": "index.html",
"scripts": {
"clean": "rimraf node_modules dist .cache",
"start": "parcel index.html --port=9000 --no-hmr",
"build": "parcel build index.html --no-minify"
"build": "parcel build index.html --no-minify --public-url ./"
},
"dependencies": {
"@carbon/ibmdotcom-web-components": "canary",
Expand All @@ -16,6 +17,7 @@
},
"devDependencies": {
"@babel/core": "^7.0.0-0",
"parcel-bundler": "1.12.3"
"parcel-bundler": "1.12.3",
"rimraf": "^3.0.2"
}
}
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"includePaths": ["node_modules"],
}
"includePaths": ["node_modules", "../../node_modules"],
}
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,9 @@
"license": "Apache-2",
"main": "index.html",
"scripts": {
"clean": "rimraf node_modules dist .cache",
"start": "parcel index.html --port=9000 --no-hmr",
"build": "parcel build index.html --no-minify"
"build": "parcel build index.html --no-minify --public-url ./"
},
"dependencies": {
"@carbon/ibmdotcom-web-components": "canary",
Expand All @@ -16,7 +17,9 @@
},
"devDependencies": {
"@babel/core": "^7.0.0-0",
"carbon-components": "^10.36.0",
"parcel-bundler": "1.12.3",
"rimraf": "^3.0.2",
"sass": "^1.32.13"
}
}
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"includePaths": ["node_modules"],
}
"includePaths": ["node_modules", "../../node_modules"],
}
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,9 @@
"license": "Apache-2",
"main": "index.html",
"scripts": {
"clean": "rimraf node_modules dist .cache",
"start": "NODE_ENV=* parcel index.html --port=9000 --no-hmr",
"build": "parcel build index.html --no-minify"
"build": "parcel build index.html --no-minify --public-url ./"
},
"dependencies": {
"@carbon/ibmdotcom-web-components": "canary",
Expand All @@ -16,7 +17,9 @@
},
"devDependencies": {
"@babel/core": "^7.0.0-0",
"carbon-components": "^10.36.0",
"parcel-bundler": "1.12.3",
"rimraf": "^3.0.2",
"sass": "^1.32.13"
}
}
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"includePaths": ["node_modules"],
}
"includePaths": ["node_modules", "../../node_modules"],
}
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,9 @@
"license": "Apache-2",
"main": "index.html",
"scripts": {
"clean": "rimraf node_modules dist .cache",
"start": "parcel index.html --port=9000 --no-hmr",
"build": "parcel build index.html --no-minify"
"build": "parcel build index.html --no-minify --public-url ./"
},
"dependencies": {
"@carbon/ibmdotcom-web-components": "canary",
Expand All @@ -16,7 +17,9 @@
},
"devDependencies": {
"@babel/core": "^7.0.0-0",
"carbon-components": "^10.36.0",
"parcel-bundler": "1.12.3",
"rimraf": "^3.0.2",
"sass": "^1.32.13"
}
}
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"includePaths": ["node_modules"],
}
"includePaths": ["node_modules", "../../node_modules"],
}
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,9 @@
"license": "Apache-2",
"main": "index.html",
"scripts": {
"clean": "rimraf node_modules dist .cache",
"start": "parcel index.html --port=9000 --no-hmr",
"build": "parcel build index.html --no-minify"
"build": "parcel build index.html --no-minify --public-url ./"
},
"dependencies": {
"@carbon/ibmdotcom-web-components": "canary",
Expand All @@ -16,7 +17,9 @@
},
"devDependencies": {
"@babel/core": "^7.0.0-0",
"carbon-components": "^10.36.0",
"parcel-bundler": "1.12.3",
"rimraf": "^3.0.2",
"sass": "^1.32.13"
}
}
Loading

0 comments on commit e03d810

Please sign in to comment.