Skip to content

Commit

Permalink
* (bluefox) Optimize package
Browse files Browse the repository at this point in the history
  • Loading branch information
GermanBluefox committed Jul 23, 2024
1 parent e4dc502 commit f7affbd
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 6 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -781,6 +781,9 @@ The best practice is to replace `padding` with `p` and `margin` with `m`, so you
-->

## Changelog
### **WORK IN PROGRESS**
* (bluefox) Optimize package

### 6.1.5 (2024-07-20)
* (bluefox) Added sources to package

Expand Down
8 changes: 4 additions & 4 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,15 +50,15 @@ gulp.task('npm', () => {
gulp.task('copy', () => Promise.all([
gulp.src(['src/**/*.d.ts']).pipe(gulp.dest('dist')),
gulp.src(['src/vendor/*.*']).pipe(gulp.dest('dist/vendor')),
gulp.src(['src/assets/*.*']).pipe(gulp.dest('dist/assets')),
gulp.src(['src/assets/*.*', '!parseNames.js']).pipe(gulp.dest('dist/assets')),
gulp.src(['README.md']).pipe(gulp.dest('dist')),
gulp.src(['LICENSE']).pipe(gulp.dest('dist')),
gulp.src(['src/*.css']).pipe(gulp.dest('dist')),
gulp.src(['src/Components/*.css']).pipe(gulp.dest('dist/Components')),
gulp.src(['src/Components/**/*.css']).pipe(gulp.dest('dist/Components')),
gulp.src(['src/Components/assets/*.*']).pipe(gulp.dest('dist/Components/assets')),
gulp.src(['src/assets/devices/*.*']).pipe(gulp.dest('dist/assets/devices')),
gulp.src(['src/assets/rooms/*.*']).pipe(gulp.dest('dist/assets/rooms')),
gulp.src(['src/assets/devices/*.*', '!src/assets/devices/parseNames.js', '!src/assets/devices/list.json', '!src/assets/devices/names.txt']).pipe(gulp.dest('dist/assets/devices')),
gulp.src(['src/assets/rooms/*.*', '!src/assets/rooms/parseNames.js', '!src/assets/rooms/list.json', '!src/assets/rooms/names.txt']).pipe(gulp.dest('dist/assets/rooms')),
gulp.src(['craco-module-federation.js']).pipe(gulp.dest('dist')),
gulp.src(['modulefederation.admin.config.js']).pipe(gulp.dest('dist')),
new Promise(resolve => {
Expand All @@ -81,7 +81,7 @@ gulp.task('patchReadme', async () => {

gulp.task('compile', gulp.parallel('copy',
() => Promise.all([
gulp.src(['src/*/*.tsx', 'src/*/*.css'])
gulp.src(['src/*/*.tsx', 'src/*/*.css', '!src/assets/devices/parseNames.js'])
.pipe(gulp.dest('dist/src')),
gulp.src(['src/*.tsx', 'src/*.css'])
.pipe(gulp.dest('dist/src')),
Expand Down
8 changes: 6 additions & 2 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -75,5 +75,9 @@
"./src/**/*.tsx",
"./src/**/*.d.ts"
],
"exclude": ["gulpfile.js"]
}
"exclude": [
"gulpfile.js",
"src/assets/devices/parseNames.js",
"src/assets/rooms/parseNames.js"
]
}

0 comments on commit f7affbd

Please sign in to comment.