Skip to content

Commit

Permalink
Merge 4.0.0-beta changes
Browse files Browse the repository at this point in the history
  • Loading branch information
dioslaska committed Dec 1, 2017
1 parent daf0d65 commit fae9741
Show file tree
Hide file tree
Showing 86 changed files with 4,560 additions and 1,952 deletions.
8 changes: 4 additions & 4 deletions bundles/mobiscroll.angular.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 2 additions & 4 deletions bundles/mobiscroll.common.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,17 +35,15 @@ import '../src/js/i18n/vi';
import '../src/js/i18n/zh';

// Themes
import '../src/js/themes/android-holo';
import '../src/js/themes/ios';
import '../src/js/themes/material';
import '../src/js/themes/wp';
import '../src/js/themes/windows';

// Custom themes
import '../src/js/themes/android-holo-light';
import '../src/js/themes/ios-dark';
import '../src/js/themes/material-dark';
import '../src/js/themes/mobiscroll-dark';
import '../src/js/themes/wp-light';
import '../src/js/themes/windows-dark';

// Auto Theme
import '../src/js/themes/auto-theme';
10 changes: 0 additions & 10 deletions bundles/mobiscroll.knockout.js

This file was deleted.

12 changes: 4 additions & 8 deletions bundles/mobiscroll.less
Original file line number Diff line number Diff line change
Expand Up @@ -2,21 +2,17 @@
@import "../src/less/forms";
@import "../src/less/scroller";
// Themes
// Android Holo
@import "../src/less/themes/android-holo.forms.less";
@import "../src/less/themes/android-holo.scroller.less";
// iOS
@import "../src/less/themes/ios.forms.less";
@import "../src/less/themes/ios.scroller.less";
// Material
@import "../src/less/themes/material.forms.less";
@import "../src/less/themes/material.scroller.less";
// Windows Phone
@import "../src/less/themes/wp.forms.less";
@import "../src/less/themes/wp.scroller.less";
// Windows
@import "../src/less/themes/windows.forms.less";
@import "../src/less/themes/windows.scroller.less";
// Custom themes
@import (less) "../src/less/themes/android-holo-light.css";
@import (less) "../src/less/themes/ios-dark.css";
@import (less) "../src/less/themes/material-dark.css";
@import (less) "../src/less/themes/mobiscroll-dark.css";
@import (less) "../src/less/themes/wp-light.css";
@import (less) "../src/less/themes/windows-dark.css";
1 change: 1 addition & 0 deletions examples/kitchen-sink/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Run `npm install` and `grunt build` to build the necessary css and js files into the `dist` folder.
4 changes: 3 additions & 1 deletion grunt/aliases.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,16 @@ module.exports = {
'babel',
'less',
'run:transpile',
'rollup:dev'
'rollup:dev',
'copy:icons'
],
build: [
'babel',
'less',
'run:transpile',
'rollup:dev',
'rollup:prod',
'copy:icons',
'copy:metadata',
'copy:dist'
]
Expand Down
1 change: 0 additions & 1 deletion grunt/bump.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ module.exports = {
'packages/angularjs/package.json',
'packages/javascript/package.json',
'packages/jquery/package.json',
'packages/knockout/package.json',
'packages/react/package.json'
],
updateConfigs: [],
Expand Down
14 changes: 9 additions & 5 deletions grunt/copy.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,22 @@ module.exports = {
expand: true,
cwd: 'bundles/',
src: ['*.d.ts', '*.metadata.json'],
dest: 'dist/js/',
dest: 'dist/js/'
}, {
expand: true,
cwd: 'src/',
src: ['**/*.d.ts'],
dest: 'dist/src/'
}]
},
icons: {
files: [{
expand: true,
cwd: 'src/less/',
src: ['icons_mobiscroll.ttf', 'icons_mobiscroll.woff'],
dest: 'dist/css/'
}]
},
dist: {
files: [{
expand: true,
Expand All @@ -29,10 +37,6 @@ module.exports = {
expand: true,
src: ['dist/**', 'LICENSE'],
dest: 'packages/jquery/'
}, {
expand: true,
src: ['dist/**', 'LICENSE'],
dest: 'packages/knockout/'
}, {
expand: true,
src: ['dist/**', 'LICENSE'],
Expand Down
25 changes: 6 additions & 19 deletions grunt/less.js
Original file line number Diff line number Diff line change
@@ -1,17 +1,4 @@
module.exports = {
androidHoloLight: {
options: {
modifyVars: {
theme: 'android-holo-light',
input1: '#31b7e8',
input2: '#f5f5f5',
input3: '#000000'
}
},
files: {
'src/less/themes/android-holo-light.css': 'src/less/templates/android-holo.less'
}
},
iosDark: {
options: {
modifyVars: {
Expand Down Expand Up @@ -52,17 +39,17 @@ module.exports = {
'src/less/themes/mobiscroll-dark.css': 'src/less/templates/mobiscroll.less'
}
},
wpLight: {
windowsDark: {
options: {
modifyVars: {
theme: 'wp-light',
theme: 'windows-dark',
input1: '#1ca1e3',
input2: '#dedede',
input3: '#000000'
input2: '#1f1f1f',
input3: '#ffffff'
}
},
files: {
'src/less/themes/wp-light.css': 'src/less/templates/wp.less'
'src/less/themes/windows-dark.css': 'src/less/templates/windows.less'
}
},
dev: {
Expand All @@ -81,4 +68,4 @@ module.exports = {
'dist/css/mobiscroll.min.css': 'bundles/mobiscroll.less'
}
}
};
};
4 changes: 0 additions & 4 deletions grunt/rollup.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ var uglify = require('rollup-plugin-uglify');
var globals = {
angular: 'angular',
jquery: 'jQuery',
knockout: 'ko',
react: 'React',
'react-dom': 'ReactDOM',
'prop-types': 'PropTypes',
Expand All @@ -20,7 +19,6 @@ var globals = {
var external = [
'angular',
'jquery',
'knockout',
'prop-types',
'react',
'react-dom',
Expand Down Expand Up @@ -55,7 +53,6 @@ module.exports = {
files: {
'dist/js/mobiscroll.angular.js': 'bundles/mobiscroll.angular.min.js',
'dist/js/mobiscroll.angularjs.js': 'bundles/mobiscroll.angularjs.js',
'dist/js/mobiscroll.knockout.js': 'bundles/mobiscroll.knockout.js',
'dist/js/mobiscroll.javascript.js': 'bundles/mobiscroll.javascript.js',
'dist/js/mobiscroll.jquery.js': 'bundles/mobiscroll.jquery.js',
'dist/js/mobiscroll.react.js': 'bundles/mobiscroll.react.js'
Expand Down Expand Up @@ -88,7 +85,6 @@ module.exports = {
files: {
'dist/js/mobiscroll.angular.min.js': 'bundles/mobiscroll.angular.min.js',
'dist/js/mobiscroll.angularjs.min.js': 'bundles/mobiscroll.angularjs.js',
'dist/js/mobiscroll.knockout.min.js': 'bundles/mobiscroll.knockout.js',
'dist/js/mobiscroll.javascript.min.js': 'bundles/mobiscroll.javascript.js',
'dist/js/mobiscroll.jquery.min.js': 'bundles/mobiscroll.jquery.js',
'dist/js/mobiscroll.react.min.js': 'bundles/mobiscroll.react.js'
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "mobiscroll",
"version": "3.2.6",
"version": "4.0.0-beta",
"description": "Cross platform UI controls for progressive web an hybrid apps",
"homepage": "https://mobiscroll.com/",
"license": "Apache-2.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/angular/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "mobiscroll-angular",
"version": "3.2.6",
"version": "4.0.0-beta",
"description": "Angular UI library for progressive web and hybrid apps",
"homepage": "https://mobiscroll.com/",
"license": "Apache-2.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/angularjs/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "mobiscroll-angularjs",
"version": "3.2.6",
"version": "4.0.0-beta",
"description": "AngularJS UI library for progressive web and hybrid apps",
"homepage": "https://mobiscroll.com/",
"license": "Apache-2.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/javascript/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "mobiscroll-javascript",
"version": "3.2.6",
"version": "4.0.0-beta",
"description": "Framework agnostic UI library for progressive web and hybrid apps",
"homepage": "https://mobiscroll.com/",
"license": "Apache-2.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/jquery/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "mobiscroll-jquery",
"version": "3.2.6",
"version": "4.0.0-beta",
"description": "jQuery and jQuery Mobile UI library for progressive web and hybrid apps",
"homepage": "https://mobiscroll.com/",
"license": "Apache-2.0",
Expand Down
Loading

0 comments on commit fae9741

Please sign in to comment.