Skip to content

Commit 5fad5d6

Browse files
committed
UPDATE: Organize build scripts
1 parent 8580df8 commit 5fad5d6

File tree

2 files changed

+37
-10
lines changed

2 files changed

+37
-10
lines changed

Diff for: gulpfile-build.js

+34
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
/*
2+
* Copyright (c) 2022 Pycord Development
3+
*
4+
* Permission is hereby granted, free of charge, to any person obtaining a copy
5+
* of this software and associated documentation files (the "Software"), to deal
6+
* in the Software without restriction, including without limitation the rights
7+
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8+
* copies of the Software, and to permit persons to whom the Software is
9+
* furnished to do so, subject to the following conditions:
10+
*
11+
* The above copyright notice and this permission notice shall be included in all
12+
* copies or substantial portions of the Software.
13+
*
14+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20+
* SOFTWARE.
21+
*/
22+
23+
const gulp = require('gulp');
24+
const sass = require('gulp-sass')(require('sass'));
25+
26+
function buildMainSass() {
27+
return gulp.src('./packages/pycui/build.scss')
28+
.pipe(sass().on('error', sass.logError))
29+
.pipe(gulp.dest('./packages/pycui/'));
30+
}
31+
32+
exports.default = gulp.series(
33+
buildMainSass,
34+
);

Diff for: gulpfile.js renamed to gulpfile-tests.js

+3-10
Original file line numberDiff line numberDiff line change
@@ -23,19 +23,12 @@
2323
const gulp = require('gulp');
2424
const sass = require('gulp-sass')(require('sass'));
2525

26-
function buildMainSass() {
27-
return gulp.src('./packages/pycui/main.scss')
28-
.pipe(sass().on('error', sass.logError))
29-
.pipe(gulp.dest('./dist/css'));
30-
}
31-
3226
function buildTestSassVanilla() {
3327
return gulp.src(['./tests/vanilla/scss/main.test.scss'], { sourcemaps: true })
34-
.pipe(sass().on('error', sass.logError))
35-
.pipe(gulp.dest('./tests/vanilla/css/'));
28+
.pipe(sass().on('error', sass.logError))
29+
.pipe(gulp.dest('./tests/vanilla/css/'));
3630
}
3731

3832
exports.default = gulp.series(
39-
buildMainSass,
40-
buildTestSassVanilla
33+
buildTestSassVanilla,
4134
);

0 commit comments

Comments
 (0)