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

Commit 6de9f1f

Browse files
Updated template branch, bug fix for component pattern (#195)
* Updated branch to master * Fixed bug with ignore components pattern * Updated unit tests
1 parent 1085d54 commit 6de9f1f

5 files changed

+9
-6
lines changed

config/protractor/protractor-dev.conf.js

+4-3
Original file line numberDiff line numberDiff line change
@@ -19,15 +19,16 @@ let config = {
1919

2020
return new Promise((resolve, reject) => {
2121
const url = 'https://github.com/blackbaud/skyux-template';
22+
const branch = 'master';
2223
common.exec(`rm`, [`-rf`, `${common.tmp}`])
2324

2425
.then(() => common.exec(`git`, [
2526
`clone`,
2627
`-b`,
27-
`update-package-dependencies`,
28+
branch,
2829
`--single-branch`,
29-
`${url}`,
30-
`${common.tmp}`
30+
url,
31+
common.tmp
3132
]))
3233

3334
.then(() => common.exec(`npm`, [`i`, '--only=prod'], common.cwdOpts))

config/sky-pages/sky-pages.config.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ module.exports = {
7171
},
7272
command: command,
7373
componentsPattern: '**/*.component.ts',
74-
componentsIgnorePattern: './public/',
74+
componentsIgnorePattern: './public/**/*',
7575
includeRouteModule: true,
7676
routesPattern: '**/index.html',
7777
runtimeAlias: 'sky-pages-internal/runtime',

test/sky-pages-component-generator.spec.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
/*jshint jasmine: true, node: true */
22
'use strict';
33

4+
const path = require('path');
5+
46
describe('SKY UX Builder component generator', () => {
57

68
const runtimeUtils = require('../utils/runtime-test-utils');
@@ -142,7 +144,7 @@ describe('SKY UX Builder component generator', () => {
142144

143145
it('should ignore components in the public directory', () => {
144146
let config = runtimeUtils.getDefaultRuntime();
145-
config.srcPath = './fixtures';
147+
config.srcPath = path.resolve(__dirname, 'fixtures');
146148
const components = generator.getComponents({
147149
runtime: config
148150
});

utils/runtime-test-utils.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ module.exports = {
1313
},
1414
command: '',
1515
componentsPattern: '**/*.component.ts',
16-
componentsIgnorePattern: './public/',
16+
componentsIgnorePattern: './public/**/*',
1717
includeRouteModule: true,
1818
routes: [],
1919
routesPattern: '**/index.html',

0 commit comments

Comments
 (0)