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

Build component libraries #198

Merged
merged 41 commits into from
Jul 12, 2017
Merged

Build component libraries #198

merged 41 commits into from
Jul 12, 2017

Conversation

Blackbaud-SteveBrush
Copy link
Member

@Blackbaud-SteveBrush Blackbaud-SteveBrush commented Jun 21, 2017

  • Surfaced new command, skyux build-public-library.
  • Bundles all files located in src/app/public as UMD module.
  • After the bundle is successfully created, the pipeline is responsible for publishing to NPM.

To test locally:

Blackbaud-PatrickOFriel and others added 15 commits June 16, 2017 21:20
* Updated dependencies

* Updated skyux2 version

* Updated dependencies

* Using template branch for testing

* Reverted protractor config

* Pointing to dev branch for local testing

* Updated package json

* Using explicit types

* Updated version of skyux

* Updated dependencies

* Fixed linting errors

* Added fontfaceobserver to types

* Fixed tslint errors

* Fixed tslint errors

* Ensure that the files are not directories

* Update tests for file processor

* Update plugin-file-processor.js

* Update plugin-file-processor.spec.js

* Updated version of skyux

* Updated config

* Added specific version of firefox

* Updated tsconfig

* Updating travis version

* Updated version of firefox

* Updated directconnect

* Updated protractor

* Added firfox launcher

* Removed directConnect

* Reverting back to directConnect

* Removed firefox

* Re-added firefox

* Accepting insecure certs

* Enabled directconnect

* use chrome with chromOptions in protractor-dev.conf.js

* add sources to travis.yml

* add dist: trusty

* Removed tsconfig paths

* Update typescript-loader

* Simpler method for avoiding directories

* As ts-node option and fix e2e test
* Using omnibarConfigMap for envid/svcid

* Fixing implicit any
* Fixed codelyzer path

* Added node_modules to excludes

* Readded node_modules
* Added ignore pattern to component generator

* Component generator should ignore public folder

* Updated ignore pattern
* Do not check directories

* Added nodir option
* Updated branch to master

* Fixed bug with ignore components pattern

* Updated unit tests
* Update CHANGELOG.md

* Update package.json
@codecov-io
Copy link

codecov-io commented Jun 22, 2017

Codecov Report

Merging #198 into master will not change coverage.
The diff coverage is 100%.

Impacted file tree graph

@@          Coverage Diff           @@
##           master   #198    +/-   ##
======================================
  Coverage     100%   100%            
======================================
  Files          42     47     +5     
  Lines         996   1110   +114     
  Branches      153    157     +4     
======================================
+ Hits          996   1110   +114
Flag Coverage Δ
#builder 100% <100%> (ø) ⬆️
#runtime 100% <ø> (ø) ⬆️
#srcapp 100% <ø> (ø) ⬆️
Impacted Files Coverage Δ
cli/utils/prepare-library-package.js 100% <100%> (ø)
cli/utils/stage-library-ts.js 100% <100%> (ø)
...fig/webpack/build-public-library.webpack.config.js 100% <100%> (ø)
cli/build.js 100% <100%> (ø) ⬆️
cli/utils/run-compiler.js 100% <100%> (ø)
index.js 100% <100%> (ø) ⬆️
cli/build-public-library.js 100% <100%> (ø)
... and 2 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 24811b2...40ccfc5. Read the comment docs.

Blackbaud-SteveBrush and others added 6 commits June 22, 2017 15:13
* Fixed type error

* Updated skyux

* Updated skyux
* Fixed type error

* Updated skyux

* Updated skyux

* Update package.json

* Update CHANGELOG.md
* Fixed typo in OmnibarConfigMap.  Allowing querystring params to be case insensitive

* Test cleanup

* Removed unnecessary mapping functionality
@Blackbaud-SteveBrush
Copy link
Member Author

@Blackbaud-BobbyEarl I still need to finish up the unit tests for this branch, but do you mind running through it quickly to make sure there aren't any glaring issues with my approach?

@Blackbaud-BobbyEarl
Copy link

Really the only thing that stands out, is the Travis shell scripts. Those make sense for our open source libraries, but not sure they'll be the same technique we use to publish to the VSTS registry through our pipeline. We may need to regroup on that aspect of things.

Blackbaud-SteveBrush and others added 5 commits June 28, 2017 14:56
* Removed tslint-loader
* Created custom sky-tslint loader
* Updated changelog, version

* Update CHANGELOG.md

* Update CHANGELOG.md
@Blackbaud-SteveBrush Blackbaud-SteveBrush changed the title [HOLD] Allow component libraries to release to NPM Build component libraries Jul 3, 2017
@Blackbaud-SteveBrush
Copy link
Member Author

@Blackbaud-BobbyEarl This is ready for an official review.

@Blackbaud-SteveBrush Blackbaud-SteveBrush changed the base branch from rc-ng4-upgrade to master July 5, 2017 15:54
const config = webpackConfig.getWebpackConfig(skyPagesConfig);
const compiler = webpack(config);

return new Promise((resolve, reject) => {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wonder if https://github.com/blackbaud/skyux-builder/blob/master/cli/build.js#L133-L163 is similar enough to factor this functionality out?

index.js Outdated
@@ -13,6 +13,9 @@ module.exports = {
case 'build':
require('./cli/build')(argv, skyPagesConfig, webpack);
break;
case 'build-public-library':
require('./cli/build-public-library')(skyPagesConfig);

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I probably originally did it for testing, but should we pass in webpack here to stay consistent?

Copy link

@Blackbaud-BobbyEarl Blackbaud-BobbyEarl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks good to me Steve!

Tagging @blackbaud-johnly for the new skyux build-public-library command.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants