File tree Expand file tree Collapse file tree 7 files changed +24
-14
lines changed Expand file tree Collapse file tree 7 files changed +24
-14
lines changed Original file line number Diff line number Diff line change 1
1
/*
2
- There here is YOUR config
3
- This var is an example of the assets you can use in your own application.
4
- The array KEYS correspond to the OUTPUT files/directories,
5
- The array VALUES contain a LIST OF SOURCE FILES
6
- */
2
+ * There here is YOUR config
3
+ * This var is an example of the assets you can use in your own application.
4
+ * The array KEYS correspond to the OUTPUT files/directories,
5
+ * The array VALUES contain a LIST OF SOURCE FILES
6
+ */
7
7
const config = {
8
8
9
9
// The base output directory for all your assets
Original file line number Diff line number Diff line change 1
- body {background : # fff }
1
+ body {background : # fff }
Original file line number Diff line number Diff line change 1
- ! function ( e ) { e ( "#element" ) . hide ( ) } ( jQuery ) ;
1
+ ! function ( e ) { e ( "#element" ) . hide ( ) } ( jQuery ) ;
Original file line number Diff line number Diff line change 1
- body {border-radius : 3px ;color : # 333 }
1
+ body {border-radius : 3px ;color : # 333 }
Original file line number Diff line number Diff line change 1
- body {border-radius : 3px ;color : # 333 }
1
+ body {border-radius : 3px ;color : # 333 }
Original file line number Diff line number Diff line change @@ -32,8 +32,8 @@ var gulpfileContents = fs
32
32
. readFileSync ( testsDir + '/../gulpfile.js' )
33
33
. toString ( )
34
34
. replace (
35
- / v a r c o n f i g = (?: [ ^ £ ] + ) ( \* ) + E n d c o n f i g / g,
36
- 'var config = ' + JSON . stringify ( config , null , 4 ) + ";\n" + '/$1 End config'
35
+ / c o n s t c o n f i g = (?: [ ^ £ ] + ) ( \* + ) E n d c o n f i g \* / g,
36
+ 'const config = ' + JSON . stringify ( config , null , 4 ) + ";\n" + '/$1 End config * '
37
37
)
38
38
;
39
39
Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
2
3
+ set -e
4
+
3
5
# Go back to root project directory
4
6
cd ` dirname $0 ` /../
5
7
8
+ echo " Directory: ` pwd` "
9
+
6
10
REINSTALL=0
7
11
8
12
while test $# -gt 0
@@ -23,11 +27,17 @@ if [[ ${REINSTALL} == 1 ]]; then
23
27
npm install
24
28
fi
25
29
26
- rm tests/output_tests/*
27
- rm tests/gulpfile.js
30
+ rm -f tests/output_tests/*
31
+ test -f tests/gulpfile.js && rm tests/gulpfile.js
28
32
29
33
echo " Preparing tests..."
30
34
node tests/prepare_tests.js
31
35
32
36
echo " Executing gulp dump..."
33
- ./node_modules/.bin/gulp --gulpfile tests/gulpfile.js dump --prod
37
+ node node_modules/gulp/bin/gulp.js --gulpfile tests/gulpfile.js dump --prod
38
+
39
+ echo " Test expected files are correctly dumped"
40
+ echo -e " > css.css\c" && cmp tests/output_expected/css.css tests/output_tests/css.css && echo -e " > OK"
41
+ echo -e " > js.js\c" && cmp tests/output_expected/js.js tests/output_tests/js.js && echo -e " > OK"
42
+ echo -e " > less.css\c" && cmp tests/output_expected/less.css tests/output_tests/less.css && echo -e " > OK"
43
+ echo -e " > sass.css\c" && cmp tests/output_expected/sass.css tests/output_tests/sass.css && echo -e " > OK"
You can’t perform that action at this time.
0 commit comments