Skip to content
This repository has been archived by the owner on Mar 8, 2023. It is now read-only.

Commit

Permalink
feat(cdn): introduce dist folder for CDN artifacts (#682)
Browse files Browse the repository at this point in the history
* chore(gulp): clean up of gulp tasks

* feat(cdn): introduce CDN artifacts

This introduces a new `dist` folder, which includes artifacts that can
be manually included in a project, or hosted on a CDN. Each component
folder has its own artifact that can be used, e.g. accordion.min.js.

* chore(prettier): adding `dist` folder to prettierignore

* fix(cdn): updating cdn links in code example
  • Loading branch information
jeffchew authored Aug 13, 2021
1 parent da9ca0d commit 4c12f2e
Show file tree
Hide file tree
Showing 53 changed files with 2,272 additions and 482 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
custom-elements.json
docs/js
dist
es
lib
node_modules
Expand Down
1 change: 1 addition & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,5 @@
.github
.yarn
es
dist
node_modules
Binary file added .yarn/offline-mirror/@types-resolve-0.0.8.tgz
Binary file not shown.
Binary file added .yarn/offline-mirror/builtin-modules-3.2.0.tgz
Binary file not shown.
Binary file added .yarn/offline-mirror/core-js-3.16.1.tgz
Binary file not shown.
Binary file added .yarn/offline-mirror/cssnano-4.1.11.tgz
Binary file not shown.
Binary file not shown.
Binary file added .yarn/offline-mirror/estree-walker-0.6.1.tgz
Binary file not shown.
Binary file added .yarn/offline-mirror/fast-glob-3.2.7.tgz
Binary file not shown.
Binary file added .yarn/offline-mirror/glob-parent-5.1.2.tgz
Binary file not shown.
Binary file added .yarn/offline-mirror/is-module-1.0.0.tgz
Binary file not shown.
Binary file added .yarn/offline-mirror/micromatch-4.0.4.tgz
Binary file not shown.
Binary file added .yarn/offline-mirror/picomatch-2.3.0.tgz
Binary file not shown.
Binary file added .yarn/offline-mirror/postcss-svgo-4.0.3.tgz
Binary file not shown.
Binary file added .yarn/offline-mirror/rollup-2.56.2.tgz
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added .yarn/offline-mirror/rollup-pluginutils-2.8.2.tgz
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added .yarn/offline-mirror/terser-3.17.0.tgz
Binary file not shown.
22 changes: 22 additions & 0 deletions examples/codesandbox/cdn/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# See https://help.github.com/ignore-files/ for more about ignoring files.

# dependencies
/node_modules

# testing
/coverage

# production
/build

# misc
.DS_Store
.cache
.env.local
.env.development.local
.env.test.local
.env.production.local

npm-debug.log*
yarn-debug.log*
yarn-error.log*
670 changes: 670 additions & 0 deletions examples/codesandbox/cdn/index.html

Large diffs are not rendered by default.

17 changes: 17 additions & 0 deletions examples/codesandbox/cdn/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"name": "carbon-web-components-cdn-example",
"version": "0.1.0",
"private": true,
"description": "Test page using carbon-web-components CDN packages",
"license": "Apache-2",
"main": "index.html",
"scripts": {
"clean": "rimraf node_modules dist .cache",
"start": "parcel index.html --port=9000 --no-hmr",
"build": "parcel build *.html --no-minify --public-url ./"
},
"devDependencies": {
"parcel-bundler": "1.12.3",
"rimraf": "^3.0.2"
}
}
3 changes: 3 additions & 0 deletions examples/codesandbox/cdn/sandbox.config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"template": "node"
}
Loading

0 comments on commit 4c12f2e

Please sign in to comment.