Skip to content

Commit 64b0c3f

Browse files
committed
Beta, change GPL to MIT, update version, readme
2 parents 46d0013 + 0348fed commit 64b0c3f

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

64 files changed

+4991
-4022
lines changed

LICENSE

Lines changed: 21 additions & 674 deletions
Large diffs are not rendered by default.

README.md

Lines changed: 23 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<img src="https://bunnyjs.com/img/bunnyjs-logo.png" alt="BunnyJS Logo">
44
</p>
55

6-
# BunnyJS v 0.11.7 (Alpha)
6+
# BunnyJS v 0.12.0 (Beta)
77

88
[Website](https://bunnyjs.com) [![NPM downloads/month](http://img.shields.io/npm/dm/bunnyjs.svg?style=flat-square)](https://www.npmjs.org/package/bunnyjs) [![NPM version](http://img.shields.io/npm/v/bunnyjs.svg?style=flat-square)](https://www.npmjs.org/package/bunnyjs)
99

@@ -25,13 +25,6 @@
2525

2626
For help & ideas - [DM me on Twitter](https://twitter.com/Mevrael)
2727

28-
## Contributors wanted
29-
30-
* Become a contributor of a fast growing open source project
31-
* Share your ideas to the world
32-
* Help yourself and millions of developers around the world solving JavaScript fatigue and modern overendineered problem
33-
* Help building a tool which will provide a best user experience, performance, security, durability and load time for billions of the Internet users with smart usage of Computer's and Mobile device's resources
34-
3528
## Browser support
3629

3730
IE9+, last 2 versions of Chrome, Firefox, Safari, Android 4.4+, iOS 9+
@@ -40,8 +33,12 @@ IE9+, last 2 versions of Chrome, Firefox, Safari, Android 4.4+, iOS 9+
4033

4134
1. Install via `npm install bunnyjs --save`
4235
2. [Rollup.js](http://rollupjs.org) with babel and npm plugins is recommended for transpiling and bundling.
43-
3. Or just include into HTML JS scripts from `dists` folder or any CDN.
44-
4. Probably some polyfills might be required depending on Component. They all available in `bunnyjs/src/bunny`
36+
3. Or just include into HTML already transpiled and minified JS from `dists` folder or any [CDN](https://unpkg.com/bunnyjs/dist).
37+
4. Probably some polyfills for IE might be required depending on Component.
38+
39+
```html
40+
<script src="https://unpkg.com/bunnyjs/dist/..."></script>
41+
```
4542

4643
## Extending BunnyJS and Vanilla JS objects
4744

@@ -96,8 +93,22 @@ export const Component = Object.assign({}, BunnyComponent, {
9693
1. Object composition over inheritance
9794
1. Dependency injection
9895

96+
97+
## Contributors wanted
98+
99+
* Become a contributor of a fast growing open source project
100+
* Share your ideas to the world
101+
* Help yourself and millions of developers around the world solving JavaScript fatigue and modern overendineered problem
102+
* Help building a tool which will provide a best user experience, performance, security, durability and load time for billions of the Internet users with smart usage of Computer's and Mobile device's resources
103+
104+
## Local development, examples and dists generation
105+
106+
* Make sure to install npm dev dependencies first with `npm install`
107+
* Examples in `examples` folder. `index.html` can be opened in browser to view examples. Examples are generated with `npm build`
108+
* To generate dists - `npm build dist -p`
109+
99110
---
100111

101-
&copy; Mev-Rael
112+
&copy; [Mev-Rael](https://twitter.com/Mevrael)
102113

103-
GPL 3.0
114+
[MIT License](https://github.com/mevrael/bunny/blob/master/LICENSE)

build.js

Lines changed: 52 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,49 @@ function build_example(folder) {
3535

3636
if (Core.args[0] === 'dist') {
3737
const dists = [
38-
['Dropdown', 'dropdown.min', ['src/utils/DOM/events.js']],
39-
['Autocomplete', 'autocomplete.min', ['src/utils/DOM/events.js', 'src/Dropdown.js', 'src/utils/core.js']],
38+
// Polyfills
39+
['polyfills/Promise', 'polyfill-promise.min'],
40+
['polyfills/ObjectAssign', 'polyfill-object-assign.min'],
41+
['polyfills/fetch', 'polyfill-fetch.min'],
42+
43+
// BunnyJS specific core helpers
4044
['utils/core', 'core-helpers.min'],
41-
['utils/DOM/events', 'utils-dom.min']
45+
46+
// Utility (helper) functions
47+
['utils/DOM/events', 'utils-dom.min'],
48+
['utils/svg', 'utils-svg.min'],
49+
['utils/string', 'utils-string.min'],
50+
51+
// Basic components, JavaScript extensions
52+
['url', 'url.min'],
53+
['BunnyDate', 'date.min'],
54+
['BunnyElement', 'element.min'],
55+
56+
// Basic app components
57+
['bunny.template', 'template.min'],
58+
['bunny.route', 'route.min'],
59+
60+
// AJAX and files
61+
['bunny.ajax', 'ajax.min'],
62+
['file/file', 'file.min'],
63+
['file/image', 'image.min', ['src/file/file.js']],
64+
65+
// Components
66+
['Pagination', 'pagination.min', ['src/url.js']],
67+
['Spinner', 'spinner.min', ['src/utils/svg.js']],
68+
['TabSection', 'tabsection.min'],
69+
['bunny.datepicker', 'datepicker.min'],
70+
71+
// Dropdown components
72+
['Dropdown', 'dropdown.min', ['src/utils/DOM.js', 'src/utils/core.js']],
73+
['CustomSelect', 'customselect.min', ['src/Dropdown.js', 'src/utils/core.js']],
74+
['Autocomplete', 'autocomplete.min', ['src/utils/DOM.js', 'src/Dropdown.js', 'src/utils/core.js']],
75+
['plugins/AutocompleteIcons', 'autocomplete.icons.min', ['src/utils/DOM.js', 'src/Autocomplete.js']],
76+
77+
// Higher-level components
78+
['Validation', 'validation.min', ['src/file/file.js', 'src/file/image.js', 'src/bunny.ajax.js', 'src/BunnyElement.js']],
79+
['DataTable', 'datatable.min', ['src/bunny.ajax.js', 'src/bunny.template.js', 'src/Pagination.js', 'src/utils/DOM.js', 'src/url.js', 'src/BunnyElement.js']],
80+
4281
];
4382

4483
dists.forEach(dist => {
@@ -48,6 +87,16 @@ if (Core.args[0] === 'dist') {
4887
buildJs(null, entryFile, destFile, ignoreFiles).catch(e => console.error(e));
4988
})
5089

90+
} else if (Core.args[0] === 'svg') {
91+
const exec = require('child_process').exec;
92+
const cmd = 'svg-sprite-generate -d examples/autocomplete2/icons -o examples/autocomplete2/sprites.svg';
93+
94+
exec(cmd, function(error, stdout, stderr) {
95+
console.log(stdout);
96+
if (stderr) {
97+
console.error(stderr);
98+
}
99+
});
51100
} else {
52101
const examples = fs.readdirSync('examples');
53102

dist/ajax.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/autocomplete.icons.min.js

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)