mirror of
				https://github.com/HabitRPG/habitica.git
				synced 2025-10-31 05:05:07 +01:00 
			
		
		
		
	* add files for new client side and reorg gulp tasks * add deps and script for new client * fix webpack paths so that building works * fix static assets not copied into prod build * fix linting * add eslint deps and re-enable it in webpack * add most missing deps for client side and split .babelrc for client * reorganize .eslintignore * update client tests paths and .gitignore * uncomment code * client: move App component * client: update oaths in App component * fix client tests and add more deps * add client side tests to npm test * fix typo in depencency name * update more deps * fix karma.conf.js and upgrade phantomjs * fix dep and move karma.conf to subdirectory * update karma.conf.js position in Gruntfile * try downgrading phantomjs * Fixup client tests (#8032) * Use phantom 2 * fix(tests): Fix refresher test * gitignore translation mock * Update karma version * disable e2e tests for new client from build * write vue templates with pug * add basic routing * remove unnecessary Function.bind shim * remove unused dependency
		
			
				
	
	
		
			32 lines
		
	
	
		
			868 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
			
		
		
	
	
			32 lines
		
	
	
		
			868 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
| import gulp from 'gulp';
 | |
| import browserify from 'browserify';
 | |
| import source from 'vinyl-source-stream';
 | |
| import buffer from 'vinyl-buffer';
 | |
| import uglify from 'gulp-uglify';
 | |
| import sourcemaps from 'gulp-sourcemaps';
 | |
| import babel from 'babelify';
 | |
| 
 | |
| gulp.task('browserify', function () {
 | |
|   let bundler = browserify({
 | |
|     entries: './website/common/browserify.js',
 | |
|     debug: true,
 | |
|     transform: [[babel, { compact: false }]],
 | |
|   });
 | |
| 
 | |
|   return bundler.bundle()
 | |
|     .pipe(source('habitrpg-shared.js'))
 | |
|     .pipe(buffer())
 | |
|     .pipe(sourcemaps.init({loadMaps: true}))
 | |
|     .pipe(uglify())
 | |
|     .on('error', function (err) {
 | |
|       console.error(err);
 | |
|       this.emit('end');
 | |
|     })
 | |
|     .pipe(sourcemaps.write('./'))
 | |
|     .pipe(gulp.dest('./website/client-old/js/'));
 | |
| });
 | |
| 
 | |
| gulp.task('browserify:watch', () => {
 | |
|   gulp.watch('./website/common/script/**/*.js', ['browserify']);
 | |
| });
 |