Skip to content

Updated instructions for local development and gulpfile #2

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
components
deploy
deploy
node_modules
21 changes: 21 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,24 @@
### Polymer demo chat application

Demo chat application presented at [Polymer Summit 2015](https://www.youtube.com/watch?v=ZDjiUmx51y8).

## Instructions for developers


* Initialize package.json (ignore if you already have package.json)
$ npm init

* Install gulp
$ npm install gulp

* Install gulp-connect
$ npm install --save-dev gulp-connect

* Install gulp-less
$ npm install --save-dev gulp-less

* Check that gulpfile.js exists and has task server

* Run server as follows
$ gulp server

22 changes: 22 additions & 0 deletions gulpfile.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
var gulp = require('gulp'),
connect = require('gulp-connect'),
less = require('gulp-less');

gulp.task('server', function() {
connect.server({
livereload: true
});
});

gulp.task('less', function() {
gulp.src('styles/main.less')
.pipe(less())
.pipe(gulp.dest('styles'))
.pipe(connect.reload());
});

gulp.task('watch', function() {
gulp.watch('styles/*.less', ['less']);
})

gulp.task('default', ['less', 'server', 'watch']);
26 changes: 26 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
{
"name": "chat-view-paper",
"version": "1.0.0",
"description": "Demo chat application presented at [Polymer Summit 2015](https://www.youtube.com/watch?v=ZDjiUmx51y8).",
"main": "gulpfile.js",
"dependencies": {
"gulp": "^3.9.0"
},
"devDependencies": {
"gulp-connect": "^2.3.1",
"gulp-less": "^3.0.5"
},
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"repository": {
"type": "git",
"url": ""
},
"author": "",
"license": "ISC",
"bugs": {
"url": ""
},
"homepage": ""
}