Skip to content

Commit f7af6af

Browse files
committed
Styling minification updated
1 parent 774a21b commit f7af6af

File tree

11 files changed

+16
-17
lines changed

11 files changed

+16
-17
lines changed

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,9 @@ npm start
4242

4343
## Release History
4444

45+
* 0.1.3
46+
* Folder structure changed
47+
* Styling minification updated
4548
* 0.1.2
4649
* Back-end Node support added
4750
* 0.1.1

app/app.component.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
File renamed without changes.

gulpfile.js

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
var gulp = require('gulp');
22

33
/* DEV FOLDERS */
4-
var appDev = 'src/';
5-
var assetsDev = 'assets/';
4+
var appDev = 'client/';
5+
var assetsDev = 'client/assets/';
66

77
/* PROD FOLDERS */
88
var appProd = 'app/';
@@ -51,17 +51,17 @@ gulp.task('build-ts', function () {
5151
.pipe(sourcemaps.init())
5252
.pipe(typescript(tsProject))
5353
.pipe(sourcemaps.write())
54-
//.pipe(jsuglify())
54+
//.pipe(uglify())
5555
.pipe(gulp.dest(appProd));
5656
});
5757

5858
gulp.task('build-css', function () {
59-
return gulp.src(assetsDev + 'scss/*.scss')
59+
return gulp.src(assetsDev + 'styles/*.scss')
6060
.pipe(sourcemaps.init())
6161
.pipe(postcss([precss, autoprefixer, cssnano]))
6262
.pipe(sourcemaps.write())
6363
.pipe(ext_replace('.css'))
64-
.pipe(gulp.dest(assetsProd + 'css/'));
64+
.pipe(gulp.dest(assetsProd + 'styles/'));
6565
});
6666

6767
gulp.task('build-img', function () {
@@ -109,7 +109,7 @@ gulp.task('browser-sync', ['nodemon'], function() {
109109
// notice that the default port is 3000, which would clash with our expressjs
110110
port: 4000,
111111
// open the proxied app in chrome
112-
browser: 'google chrome'
112+
//browser: 'google chrome'
113113
});
114114
});
115115

@@ -119,7 +119,7 @@ gulp.task('bs-reload', function() {
119119

120120
gulp.task('watch', function () {
121121
gulp.watch(appDev + '**/*.ts', ['build-ts', browserSync.reload]);
122-
gulp.watch(assetsDev + 'scss/**/*.scss', ['build-css', browserSync.reload]);
122+
gulp.watch(assetsDev + 'styles/**/*.scss', ['build-css', browserSync.reload]);
123123
gulp.watch(assetsDev + 'img/*', ['build-img', browserSync.reload]);
124124
gulp.watch('*.html', ['bs-reload']);
125125
});

index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<title>Angular 2 boilerplate</title>
66
<meta name="viewport" content="width=device-width, initial-scale=1">
77
<script src="app/vendor.min.js"></script>
8-
<link rel="stylesheet" href="app/assets/css/app.css">
8+
<link rel="stylesheet" href="app/assets/styles/app.css">
99
</head>
1010
<body>
1111
<my-app>Loading...</my-app>

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "angular2-gulp-browserify-boilerplate",
3-
"version": "0.1.2",
3+
"version": "0.1.3",
44
"description": "Angular 2, Express, Gulp, Browserify and SASS/Stylus boilerplate",
55
"scripts": {
66
"lite": "lite-server",

server.js

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,6 @@ app.use(router);
1111

1212
app.use('/app', express.static(__dirname + '/app'));
1313

14-
// app.set('views', __dirname + '/server/views');
15-
// app.set('view engine', 'ejs');
16-
// app.engine('html', require('ejs').renderFile);
17-
1814
var server = app.listen(3001, function () {
1915
var host = server.address().address;
2016
var port = server.address().port;

0 commit comments

Comments
 (0)