Skip to content

Commit

Permalink
Update README, enable mangle uglify
Browse files Browse the repository at this point in the history
  • Loading branch information
Perkovec committed Aug 16, 2016
1 parent 44e0db2 commit fe91f05
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ If you have bot token in telegram, you can start from step 4
## Roadmap
- Attachments
- Link preview
- Telegram-style preview
- Sync scroll
- Two-column writing design
- Auto update
Expand All @@ -40,6 +39,7 @@ If you have bot token in telegram, you can start from step 4
- [Electron](http://electron.atom.io/) - framework for create cross-platform desktop applications using JavaScript, HTML and CSS
- [React](https://facebook.github.io/react/) - JavaScript library for building user interface
- react-dom
- react-addons-shallow-compare
- [Material-UI](http://www.material-ui.com) - A Set of React Components that Implement Google's Material Design
- [react-tap-event-plugin](https://github.com/zilverline/react-tap-event-plugin) - Instant TapEvents for React
- [XSS](https://github.com/leizongmin/js-xss) - HTML sanitizer
Expand All @@ -48,6 +48,9 @@ If you have bot token in telegram, you can start from step 4
- [universal-analytics](https://github.com/peaksandpies/universal-analytics) - Module for Google's Universal Analytics tracking
- [react-layout-pane](https://github.com/tomkp/react-layout-pane) - React layout component using flexbox
- [superagent](https://github.com/visionmedia/superagent) - small progressive client-side HTTP request library
- [velocity-animate](https://github.com/julianshapiro/velocity) - accelerated JavaScript animation
- [react-deep-force-update](https://github.com/gaearon/react-deep-force-update) - force-updates React component tree recursively


## How to build
#### 1. Install `electron-packager` and `gulp`:
Expand Down
4 changes: 2 additions & 2 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ gulp.task('clean', () => del.sync(['package/**', '!package', '!package/node_modu
gulp.task('build:jsx-release', ['clean'], () => gulp.src('src/**/*.jsx')
.pipe(changed('package'))
.pipe(react({ harmony: false, es6module: true }))
.pipe(minifier({}, uglifyjs))
.pipe(minifier({ mangle: true }, uglifyjs))
.pipe(extReplace('.js'))
.pipe(gulp.dest('package')));

Expand All @@ -38,7 +38,7 @@ gulp.task('build:jsx-debug', ['clean'], () => gulp.src('src/**/*.jsx')

gulp.task('build:js-release', ['build:jsx-release'], () => gulp.src('src/**/*.js')
.pipe(changed('package'))
.pipe(minifier({}, uglifyjs))
.pipe(minifier({ mangle: true }, uglifyjs))
.pipe(gulp.dest('package')));

gulp.task('build:js-debug', ['build:jsx-debug'], () => gulp.src('src/**/*.js')
Expand Down

0 comments on commit fe91f05

Please sign in to comment.