Skip to content

Commit 0b9b017

Browse files
author
schowdhury
committed
(Less): Preprocessor added with **gulp task** as compiler. Execute
> bootstrap01@1.0.0 build:style C:\www\redux-observable\bootstrap01 > gulp compile-less [13:15:06] Using gulpfile C:\www\redux-observable\bootstrap01\gulpfile.js [13:15:06] Starting 'compile-less'... [13:15:06] Finished 'compile-less' after 48 ms or [13:15:07] Using gulpfile C:\www\redux-observable\bootstrap01\gulpfile.js [13:15:07] Starting 'compile-less'... [13:15:07] Finished 'compile-less' after 49 ms in cli
1 parent bdf3f9a commit 0b9b017

File tree

9 files changed

+2224
-386
lines changed

9 files changed

+2224
-386
lines changed

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,7 @@
22
React + Redux + Redux-Observable + TypeScript
33

44
A React.js (Webpack and Babel) boilerplate using - Redux, Rxjs (redux observable), TypeScript
5+
6+
## Requirement
7+
8+
- npm install gulp -g

app/features/auth/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ class _Auth extends React.PureComponent<ISignupProps> {
2020
const props = this.props;
2121
return (
2222
<div>
23-
<h4>Status: {props.status.toString()}</h4>
23+
<h4>Is logged in? : {props.status.toString()}</h4>
2424
<button onClick={props.onLoadCheckLogin}>Login please</button>
2525
</div>
2626
);

app/features/auth/style/auth.css

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
body {
2+
background: cyan;
3+
}

app/features/auth/style/auth.less

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
body{
2+
background: cyan;
3+
}

auth/style/auth.css

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
body {
2+
background: cyan;
3+
}

gulpfile.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
const gulp = require("gulp");
2+
const less = require("gulp-less")
3+
4+
gulp.task('compile-less', () => {
5+
return gulp.src(['./**/*.less', '!./node_modules/**'])
6+
.pipe(less())
7+
.pipe(gulp.dest('./'))
8+
})

0 commit comments

Comments
 (0)