Skip to content
This repository has been archived by the owner on Apr 3, 2020. It is now read-only.

Commit

Permalink
Updating frontend dependencies
Browse files Browse the repository at this point in the history
Creating simple frontend test script to test the new TypeScript cookie class and spinner.
  • Loading branch information
euantorano committed Nov 6, 2016
1 parent 7569372 commit 8692e81
Show file tree
Hide file tree
Showing 25 changed files with 4,189 additions and 1,114 deletions.
3 changes: 3 additions & 0 deletions .babelrc
@@ -0,0 +1,3 @@
{
"presets": ["es2015-rollup"],
}
55 changes: 35 additions & 20 deletions gulpfile.js
Expand Up @@ -4,12 +4,13 @@ const
gulp = require("gulp"),
imagemin = require('gulp-imagemin'),
elixir = require("laravel-elixir"),
browserify = require('browserify'),
source = require('vinyl-source-stream'),
tsify = require("tsify"),
uglify = require('gulp-uglify'),
sourcemaps = require('gulp-sourcemaps'),
buffer = require('vinyl-buffer');
rollup = require('rollup-stream'),
typescript = require('rollup-plugin-typescript'),
babel = require("rollup-plugin-babel"),
uglify = require('rollup-plugin-uglify'),
source = require('vinyl-source-stream');


elixir.config.sourcemaps = true;

Expand Down Expand Up @@ -39,21 +40,35 @@ gulp.task("images", () => {
});

gulp.task("typescript", () => {
return browserify({
basedir: ".",
debug : !gulp.env.production,
entries: ["resources/assets/typescript/mybb.ts"],
cache: {},
packageCache: {}
})
.plugin(tsify)
.bundle()
.pipe(source("mybb.js"))
.pipe(buffer())
.pipe(sourcemaps.init({loadMaps: true}))
.pipe(uglify())
.pipe(sourcemaps.write('./'))
.pipe(gulp.dest("public/assets/js"));
return rollup({
entry: 'resources/assets/typescript/mybb.ts',
format: 'iife',
sourceMap: 'inline',
plugins: [
typescript(),
babel({
exclude: 'node_modules/**',
}),
//uglify()
]
}).pipe(source('mybb.js'))
.pipe(gulp.dest('./public/assets/js'));

// return browserify({
// basedir: ".",
// debug : !gulp.env.production,
// entries: ["resources/assets/typescript/mybb.ts"],
// cache: {},
// packageCache: {}
// })
// .plugin(tsify)
// .bundle()
// .pipe(source("mybb.js"))
// .pipe(buffer())
// .pipe(sourcemaps.init({loadMaps: true}))
// .pipe(uglify())
// .pipe(sourcemaps.write('./'))
// .pipe(gulp.dest("public/assets/js"));
});

elixir(mix => {
Expand Down
18 changes: 9 additions & 9 deletions package.json
Expand Up @@ -25,29 +25,29 @@
"@claviska/jquery-dropdown": "^2.0.3",
"Stepper": "git+ssh://git@github.com/FormStoneClassic/Stepper.git",
"autosize": "^3.0.15",
"browserify": "^13.1.0",
"babel-preset-es2015-rollup": "^1.2.0",
"datetimepicker": "^0.1.30",
"dropit": "^1.0.0",
"dropzone": "^4.3.0",
"fastclick": "^1.0.6",
"font-awesome": "^4.6.3",
"gulp": "^3.9.1",
"gulp-imagemin": "^3.0.1",
"gulp-sourcemaps": "^1.6.0",
"gulp-typescript": "^2.13.6",
"gulp-uglify": "^2.0.0",
"gulp-sourcemaps": "^2.2.0",
"hideshowpassword": "^2.0.10",
"jquery": "^3.1.0",
"jquery-jcrop": "^0.9.13",
"jquery-modal": "^0.7.0",
"jquery-modal": "^0.8.0",
"jquery-powertip": "^1.2.0",
"jquery.cookie": "^1.4.1",
"lang.js": "git+ssh://git@github.com/euantorano/Lang.js.git",
"laravel-elixir": "^5.0.0",
"laravel-elixir": "^6.0.0-13",
"modernizr": "^3.3.1",
"normalize-scss": "^5.0.3",
"tsify": "^1.0.5",
"vinyl-buffer": "^1.0.0",
"normalize-scss": "^6.0.0",
"rollup-plugin-babel": "^2.6.1",
"rollup-plugin-typescript": "^0.8.1",
"rollup-plugin-uglify": "^1.0.1",
"rollup-stream": "^1.14.0",
"vinyl-source-stream": "^1.1.0"
}
}

0 comments on commit 8692e81

Please sign in to comment.