File tree Expand file tree Collapse file tree 3 files changed +8
-16
lines changed Expand file tree Collapse file tree 3 files changed +8
-16
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"extends": [
3
- // @if css
4
3
"stylelint-config-standard",
5
- // @endif
6
4
// @if css-module
7
5
"stylelint-config-css-modules"
8
6
// @endif
Original file line number Diff line number Diff line change 30
30
"globals" : " ^15.14.0" ,
31
31
"@aurelia/testing" : /* @if latest */"latest"/* @endif *//* @if dev */"dev"/* @endif */,
32
32
"stylelint" : " ^16.12.0" ,
33
- // @if css
34
33
"stylelint-config-standard" : " ^36.0.1" ,
35
- // @endif
36
34
// @if css-module
37
35
"stylelint-config-css-modules" : " ^4.4.0" ,
38
36
// @endif
39
37
},
40
38
"scripts" : {
41
39
"lint:js" : " eslint src/* @if !no-unit-tests */ test/* @endif *//* @if playwright */ e2e/* @endif */" ,
42
- // @if css
43
40
"lint:css" : " stylelint \" src/**/*.css\" " ,
44
- // @endif
45
- // Fallback for when css is not present
46
- "lint:css" : " echo \" No CSS linting required\" " ,
47
41
"lint" : " npm run lint:js && npm run lint:css" ,
48
42
"pretest" : " npm run lint"
49
43
}
Original file line number Diff line number Diff line change @@ -103,11 +103,12 @@ function buildJs(src) {
103
103
. pipe ( gulpif ( ! isProduction , plumber ( ) ) )
104
104
. pipe ( au2 ( ) )
105
105
// @if babel
106
- . pipe ( babel ( ) ) ;
106
+ . pipe ( babel ( ) )
107
107
// @endif
108
108
// @if typescript
109
- . pipe ( ts ( ) ) ;
110
- // @endif
109
+ . pipe ( ts ( ) )
110
+ // @endif
111
+ ;
111
112
}
112
113
113
114
function buildHtml ( src ) {
@@ -118,11 +119,12 @@ function buildHtml(src) {
118
119
// If you turn on "closed" mode, there will be difficulty to perform e2e
119
120
// tests (such as Playwright). Because shadowRoot is not accessible through
120
121
// standard DOM APIs in "closed" mode.
121
- . pipe ( au2 ( { defaultShadowOptions : { mode : 'open' } , hmr : false } ) ) ;
122
+ . pipe ( au2 ( { defaultShadowOptions : { mode : 'open' } , hmr : false } ) )
122
123
// @endif
123
124
// @if !shadow-dom
124
- . pipe ( au2 ( { hmr : false } ) ) ;
125
- // @endif
125
+ . pipe ( au2 ( { hmr : false } ) )
126
+ // @endif
127
+ ;
126
128
}
127
129
128
130
function buildCss ( src ) {
@@ -158,9 +160,7 @@ function build() {
158
160
buildJs ( 'src/**/*.ts' ) ,
159
161
// @endif
160
162
buildHtml ( 'src/**/*.html' ) ,
161
- // @if css
162
163
buildCss ( 'src/**/*.css' )
163
- // @endif
164
164
)
165
165
// Note we did extra call `dr()` here, this is designed to cater watch mode.
166
166
// dumber here consumes (swallows) all incoming Vinyl files,
You can’t perform that action at this time.
0 commit comments