Skip to content

Commit

Permalink
Enhancements (#8)
Browse files Browse the repository at this point in the history
* Update packages

* Valyrian 3.0.0 first draft.

* Return to mocha and leave exam to test benchmarks

* Add key diff algorithm

* Upgraded libraries.
  • Loading branch information
Masquerade-Circus committed Sep 8, 2019
1 parent 5895be9 commit e6fb137
Show file tree
Hide file tree
Showing 42 changed files with 5,700 additions and 4,661 deletions.
1 change: 0 additions & 1 deletion .eslintignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
tests
app
dist
.tmp
5 changes: 4 additions & 1 deletion .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
],
"valid-jsdoc": 2,
"no-var": "error",
"no-undef": 1,
"no-undef": 0,
"no-multi-spaces": "error",
"no-multiple-empty-lines": "error",
"one-var": "off",
Expand All @@ -55,6 +55,9 @@
"no-console": "warn",
"complexity": ["warn", 20],
"sonarjs/cognitive-complexity": ["warn", 20],
"sonarjs/no-duplicate-string": 0,
"sonarjs/prefer-object-literal": 0,
"sonarjs/no-identical-functions": 0,
"max-lines-per-function": [
"warn",
{ "max": 300, "skipBlankLines": true, "skipComments": true }
Expand Down
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -59,4 +59,6 @@ typings/

.tmp/**

!.tmp/favicon.ico
!.tmp/favicon.ico

.cache
12 changes: 12 additions & 0 deletions .size-snapshot.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"dist/valyrian.min.js": {
"bundled": 10068,
"minified": 3594,
"gzipped": 1689
},
"dist/store.min.js": {
"bundled": 11415,
"minified": 2488,
"gzipped": 955
}
}
14 changes: 7 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<img src="dist/logo.png" style="width: 60%"/>

[![npm version](https://img.shields.io/npm/v/valyrian.js.svg?style=flat)](https://npmjs.org/package/valyrian.js 'View this project on npm')
[![npm version](https://img.shields.io/npm/v/valyrian.js.svg?style=flat)](https://npmjs.org/package/valyrian.js "View this project on npm")
![](https://img.shields.io/bundlephobia/min/valyrian.js.svg?style=flat)
![](https://img.shields.io/bundlephobia/minzip/valyrian.js.svg?style=flat)

Expand All @@ -23,9 +23,9 @@ Lightweight steel to forge PWAs. (Minimal Frontend Framework with server side re

## Table of Contents

- [Tests](#tests)
- [Contributing](#contributing)
- [Legal](#legal)
- [Tests](#tests)
- [Contributing](#contributing)
- [Legal](#legal)

## Tests

Expand All @@ -35,9 +35,9 @@ For development use `yarn dev:test`

## Contributing

- Use prettify and eslint to lint your code.
- Add tests for any new or changed functionality.
- Update the readme with an example if you add or change any functionality.
- Use prettify and eslint to lint your code.
- Add tests for any new or changed functionality.
- Update the readme with an example if you add or change any functionality.

## Legal

Expand Down
Binary file modified app/public/icons/apple-touch-startup-image-1182x2208.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified app/public/icons/apple-touch-startup-image-1496x2048.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified app/public/icons/apple-touch-startup-image-748x1024.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion app/public/sw.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
let Log = () => {};

let config = {
version: 'v2.2.5::',
version: 'v2.7.0::',
name: 'valyrian.js',
urls: ["/","/hello"]
};
Expand Down
2 changes: 1 addition & 1 deletion buildAssets.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Require valyrian and main app
let nodePlugin = require('./plugins/node');
require('./dist/valyrian.min.js');
let v = require('./dist/valyrian.min.js');
v.use(nodePlugin);

// Require package json to obtain the version
Expand Down
27 changes: 27 additions & 0 deletions dev.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
const argv = require('yargs').argv;

let exam = require('exam');

let options = {
paths: ['test_benchmarks'],
reporter: 'console',
recursive: true,
hideProgress: false,
bench: true,
benchTime: 1000,
require: ['@babel/register', 'esm']
};

if (argv.w) {
options.watch = true;
} else {
options.done = () => {
process.exit(0);
};
}

if (argv.T) {
options.benchTime = argv.T;
}

exam(options);
Loading

0 comments on commit e6fb137

Please sign in to comment.