Skip to content

Commit

Permalink
fix(build): package adjustments for semantic release update (#426)
Browse files Browse the repository at this point in the history
  • Loading branch information
dlabrecq committed Jul 24, 2018
1 parent 1441bf2 commit bfc1438
Show file tree
Hide file tree
Showing 4 changed files with 35 additions and 34 deletions.
7 changes: 4 additions & 3 deletions gulpfile.js
Expand Up @@ -45,6 +45,7 @@ function copyExamples() {
// Copy package files to dist
function copyPkgFiles() {
return copyToDist([
'./LICENSE.txt',
'./README.md',
'./package.json'
]);
Expand Down Expand Up @@ -124,14 +125,14 @@ function copyAssetsLess() {
return '@import \'';
}))
.pipe(rename({dirname: ''}))
.pipe(gulp.dest(libraryDist + '/less'));
.pipe(gulp.dest(libraryDist + '/dist/less'));
}

// Copy component LESS to dist/less in a flattened directory
function copyLess() {
return gulp.src(['./src/app/**/*.less'].concat(globalExcludes))
.pipe(rename({dirname: ''}))
.pipe(gulp.dest(libraryDist + '/less'));
.pipe(gulp.dest(libraryDist + '/dist/less'));
}

/**
Expand All @@ -142,7 +143,7 @@ function copyLess() {
function copyCss() {
return gulp.src(['./src/assets/stylesheets/*.css'], {base: './src/assets/stylesheets'})
.pipe(gulp.dest(function (file) {
return libraryDist + '/css' + file.base.slice(__dirname.length); // save directly to dist
return libraryDist + '/dist/css' + file.base.slice(__dirname.length); // save directly to dist
}));
}

Expand Down
58 changes: 29 additions & 29 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/scripts/bundle/rollup.config.js
Expand Up @@ -8,7 +8,7 @@ const resolve = require('rollup-plugin-node-resolve');
const rollup = require('rollup');

export const LIB_NAME = 'patternfly-ng';
export const PATH_SRC = 'dist/app/';
export const PATH_SRC = 'dist/';
export const PATH_DIST = 'dist/bundles/';

export const config = {
Expand Down
2 changes: 1 addition & 1 deletion tsconfig-prod.json
Expand Up @@ -4,7 +4,7 @@
"module": "es2015",
"moduleResolution": "node",
"baseUrl": ".",
"rootDir": "build/src",
"rootDir": "build/src/app",
"outDir": "dist",
"allowSyntheticDefaultImports": true,
"allowUnreachableCode": false,
Expand Down

0 comments on commit bfc1438

Please sign in to comment.