tree: c4c1d742c460746baf05a77e8473cbe9d1cd17e1 [path history] [tgz]
  1. BUILD.bazel
  2. Makefile
  3. README.md
  4. generate_elements_sk_scss_imports/
  5. go/
  6. html-webpack-inject-attributes-plugin.d.ts
  7. html_insert_nonce_attribute/
  8. index.bzl
  9. karma.common.ts
  10. karma.conf.ts
  11. karma_test/
  12. modules/
  13. pulito/
  14. rollup.config.js
  15. sk_demo_page_server/
  16. themes.scss
  17. ts_library.bzl
  18. tsconfig.json
  19. webpack.config.ts
infra-sk/README.md

This is the common set of custom elements used by Skia Infrastructure. It is built on common-sk and elements-sk using pulito

There is documentation for each element.

Use

To use this library you should add the following to your webpack config:

const { resolve } = require('path')

module.exports = (env, argv) => {
  let config = commonBuilder(env, argv, __dirname);
  config.resolve = config.resolve || {};
  config.resolve.modules = [resolve(__dirname, 'node_modules')];
  return config;
}

This change forces module resolution to happen only in the directory where the project's webpack.config.js sits, i.e. the node_modules directory under infra_sk will be ignored, which means that all dependencies for infra-sk have to exist in the projects package.json file.

Disclaimer

This is not an officially supported Google product.