Skip to content

Commit

Permalink
fix: add support for legacy baseline CSS
Browse files Browse the repository at this point in the history
  • Loading branch information
blackfalcon committed Apr 14, 2020
1 parent 3233735 commit c017a59
Show file tree
Hide file tree
Showing 5 changed files with 30 additions and 7 deletions.
3 changes: 2 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ notifactions:
before_script:
- npm run copyFontsDist
- npm run copySass
- npm run buildCdnCss
- npm run buildEssentials
- npm run buildBaseline

after_success:
- npx semantic-release
Expand Down
9 changes: 5 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ none, xxxs, xxs, xs, sm, md, lg, xl, xxl, xxxl
See [API](http://alaskaairlines.github.io/OrionWebCoreStyleSheets/#utility-layout-mixin-auro_spacing)


## Pre-processed CDN resources
## Pre-processed bundled resources

At a limited scale, some files have been pre-processed to CSS so that it can be delivered via CDN and used in environments where this rendered resource is required.

Expand All @@ -184,9 +184,10 @@ At a limited scale, some files have been pre-processed to CSS so that it can be
unpkg.com/:package@:version/:file
```

| resource | CDN URL |
|---|---|
| essentials.scss<br>fonts.scss|https://unpkg.com/@alaskaairux/orion-web-core-style-sheets@:version/dist/cdn/essentials.css|
| resource | supports | CDN URL |
|---|---|---|
| essentials.scss<br>fonts.scss|Auro WCs|https://unpkg.com/@alaskaairux/orion-web-core-style-sheets@:version/dist/bundled/essentials.css|
| baseline.scss<br>fonts.scss|ODS WCs|https://unpkg.com/@alaskaairux/orion-web-core-style-sheets@:version/dist/bundled/baseline.css|

## †Deprecated

Expand Down
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,14 +50,15 @@
"copyFontsDist": "copyfiles -f -V './src/fonts/*.*' ./dist/fonts",
"sassLint": "sass-lint --verbose",
"buildCss": "node-sass --include-path scss tests/styleTest.scss --output-style expanded results/css/testBuild.css",
"buildCdnCss": "node-sass --include-path scss src/cdnUse/essentials.scss --output-style compressed -o dist/cdn/",
"buildBaseline": "node-sass --include-path scss src/bundled/baseline.scss --output-style compressed -o dist/bundled/",
"buildEssentials": "node-sass --include-path scss src/bundled/essentials.scss --output-style compressed -o dist/bundled/",
"cssLint": "stylelint './results/css/*.css'",
"jest": "jest",
"test": "npm-run-all sassLint buildCss cssLint jest",
"sassdoc": "sassdoc ./src -d ./docs && node scripts/sassdocTheme.js",
"serve": "node scripts/live-server.js",
"devBuild": "npm-run-all sassLint buildCss cssLint sassdoc jest",
"ciBuild": "npm-run-all test sassdoc copyFontsDist copySass buildCdnCss postinstall",
"ciBuild": "npm-run-all test sassdoc copyFontsDist copySass buildBaseline buildEssentials postinstall",
"watch": "nodemon -e scss --watch tests --watch src --exec npm run devBuild"
},
"husky": {
Expand Down
20 changes: 20 additions & 0 deletions src/bundled/baseline.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
/*
Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
See LICENSE in the project root for license information.
*/

/* --------------------------------------------------------------------- */

/*
This file is reserved for CDN consumption of web components
and not intended to be used with standard dynamic projects.
*/

// Import Sass variables
@import '../../node_modules/@alaskaairux/orion-design-tokens/dist/tokens/TokenVariables';
@import '../../node_modules/@alaskaairux/orion-design-tokens/dist/tokens/SCSSVariables';

// Import minimun essential files
@import '../breakpoints';
@import '../baseline';
@import '../fonts';
File renamed without changes.

0 comments on commit c017a59

Please sign in to comment.