Skip to content
Merged
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
47 changes: 0 additions & 47 deletions ivi-v0.7.0/gulpfile.js

This file was deleted.

26 changes: 0 additions & 26 deletions ivi-v0.7.0/package.json

This file was deleted.

189 changes: 0 additions & 189 deletions ivi-v0.7.0/src/main.js

This file was deleted.

File renamed without changes.
49 changes: 49 additions & 0 deletions ivi-v0.8.0-keyed/gulpfile.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
const gulp = require('gulp');
const del = require('del');
const rollup = require('rollup');
const rollupReplace = require('rollup-plugin-replace');
const rollupNodeResolve = require('rollup-plugin-node-resolve');
const closureCompiler = require('google-closure-compiler-js').gulp();

gulp.task('clean', function () {
return del(['build', 'dist']);
});

gulp.task('bundle', ['clean'], function (done) {
return rollup.rollup({
format: 'es6',
entry: 'src/main.js',
plugins: [
rollupNodeResolve({
module: true,
}),
rollupReplace({
values: {
__IVI_DEV__: false,
__IVI_BROWSER__: true
}
})
]
}).then(function (bundle) {
return bundle.write({
format: 'es',
dest: 'build/bundle.js'
});
});
});

gulp.task('build', ['bundle'], function () {
return gulp.src(['build/bundle.js'])
.pipe(closureCompiler({
js_output_file: 'main.js',
compilation_level: 'ADVANCED',
language_in: 'ECMASCRIPT6_STRICT',
language_out: 'ECMASCRIPT5_STRICT',
use_types_for_optimization: true,
assume_function_wrapper: true,
output_wrapper: '(function(){%output%}).call(this);',
warning_level: 'QUIET',
rewrite_polyfills: false
}))
.pipe(gulp.dest('dist'));
});
9 changes: 6 additions & 3 deletions ivi-v0.7.0/index.html → ivi-v0.8.0-keyed/index.html
Original file line number Diff line number Diff line change
@@ -1,12 +1,15 @@
<!DOCTYPE html>
<html lang="en">

<head>
<meta charset="UTF-8">
<title>ivi v0.7.0</title>
<link href="/css/currentStyle.css" rel="stylesheet"/>
<title>ivi v0.8.0</title>
<link href="/css/currentStyle.css" rel="stylesheet" />
</head>

<body>
<div id="main"></div>
<script src="dist/main.js"></script>
</body>
</html>

</html>
32 changes: 32 additions & 0 deletions ivi-v0.8.0-keyed/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
{
"private": true,
"name": "js-framework-benchmark-ivi",
"version": "0.8.0",
"description": "Benchmark for ivi",
"author": "Stefan Krause",
"license": "Apache-2",
"homepage": "https://github.com/krausest/js-framework-benchmark",
"repository": "https://github.com/krausest/js-framework-benchmark",
"keywords": [],
"scripts": {
"build-dev": "gulp build",
"build-prod": "gulp build"
},
"dependencies": {
"ivi-core": "0.1.0",
"ivi-dom": "0.1.0",
"ivi-scheduler": "0.1.0",
"ivi-html": "0.1.0",
"ivi-events": "0.1.0",
"ivi-state": "0.1.0",
"ivi": "0.8.0"
},
"devDependencies": {
"del": "3.0.0",
"google-closure-compiler-js": "20170626.0.0",
"gulp": "3.9.1",
"rollup": "0.45.2",
"rollup-plugin-node-resolve": "3.0.0",
"rollup-plugin-replace": "1.1.1"
}
}
Loading