Compare commits

...
5 Commits
Author SHA1 Message Date
Gaël Métais a319e84831 v2.2.0 2022-02-24 14:27:05 +01:00
Gaël MétaisandGitHub d38781400e Merge pull request #359 from EXXETA/add-storage-handling
Storage handling feature from phantomas 2.4.0
2022-02-24 14:21:32 +01:00
Kevin Kammleiter cbcc6647f2 feat(storage-handling): passthrough session and local storage 2022-01-17 13:13:07 +01:00
Gaël MétaisandGitHub e795b3369d Merge pull request #344 from YellowLabTools/develop
Split YLT into two repositories
2021-05-07 16:10:53 +01:00
Gaël Métais 2f26c7db96 Fix documentation after split 2021-05-07 16:03:39 +01:00
4 changed files with 11 additions and 3 deletions
+1 -1
View File
@@ -70,7 +70,7 @@ By the way, it's free because I am a geek, not businessmen. In return, you can a
If your project is not accessible from outside or if you want to test your localhost, you might want to run your own instance of Yellow Lab Tools. If your project is not accessible from outside or if you want to test your localhost, you might want to run your own instance of Yellow Lab Tools.
The classical way is to clone the project's GitHub repository and run it on Linux of MacOS. The documentation is [here](https://github.com/YellowLabTools/YellowLabTools/wiki/Install-your-private-server). The classical way is to clone the YLT server's GitHub repository and run it on Linux or MacOS. The documentation is [here](https://github.com/YellowLabTools/YellowLabTools/wiki/Install-your-private-server).
The new recommended solution is to run Yellow Lab Tools inside a Docker virtual machine. My friend Ousama Ben Younes maintains [this ready-to-use Docker image based on Alpine](https://github.com/ousamabenyounes/docker-yellowlabtools)). The new recommended solution is to run Yellow Lab Tools inside a Docker virtual machine. My friend Ousama Ben Younes maintains [this ready-to-use Docker image based on Alpine](https://github.com/ousamabenyounes/docker-yellowlabtools)).
+6
View File
@@ -24,6 +24,8 @@ var cli = meow({
' --allow-domain Only allow requests to given (comma-separated) domains.', ' --allow-domain Only allow requests to given (comma-separated) domains.',
' --no-externals Block all domains except the main one.', ' --no-externals Block all domains except the main one.',
' --reporter The output format: "json" or "xml". Default is "json".', ' --reporter The output format: "json" or "xml". Default is "json".',
' --local-storage Ability to set a local storage, key-value pairs (e.g. "bar=foo;domain=url")',
' --session-storage Ability to set a session storage, key-value pairs (e.g. "bar=foo;domain=url")',
'' ''
].join('\n'), ].join('\n'),
pkg: require('../package.json') pkg: require('../package.json')
@@ -75,6 +77,10 @@ options.blockDomain = cli.flags.blockDomain || null;
options.allowDomain = cli.flags.allowDomain || null; options.allowDomain = cli.flags.allowDomain || null;
options.noExternals = cli.flags.noExternals || null; options.noExternals = cli.flags.noExternals || null;
// Storage injection
options.localStorage = cli.flags.localStorage;
options.sessionStorage = cli.flags.sessionStorage;
// Output format // Output format
if (cli.flags.reporter && cli.flags.reporter !== 'json' && cli.flags.reporter !== 'xml') { if (cli.flags.reporter && cli.flags.reporter !== 'json' && cli.flags.reporter !== 'xml') {
console.error('Incorrect parameters: reporter has to be "json" or "xml"'); console.error('Incorrect parameters: reporter has to be "json" or "xml"');
+2
View File
@@ -43,6 +43,8 @@ var PhantomasWrapper = function() {
'block-domain': task.options.blockDomain, 'block-domain': task.options.blockDomain,
'allow-domain': task.options.allowDomain, 'allow-domain': task.options.allowDomain,
'no-externals': task.options.noExternals, 'no-externals': task.options.noExternals,
'local-storage': task.options.localStorage,
'session-storage': task.options.sessionStorage,
// Mandatory // Mandatory
'analyze-css': true, 'analyze-css': true,
+2 -2
View File
@@ -1,6 +1,6 @@
{ {
"name": "yellowlabtools", "name": "yellowlabtools",
"version": "2.1.0", "version": "2.2.0",
"description": "A tool that audits a webpage for performance and front-end quality issues", "description": "A tool that audits a webpage for performance and front-end quality issues",
"license": "GPL-2.0", "license": "GPL-2.0",
"author": { "author": {
@@ -48,7 +48,7 @@
"md5": "2.2.1", "md5": "2.2.1",
"meow": "5.0.0", "meow": "5.0.0",
"parse-color": "1.0.0", "parse-color": "1.0.0",
"phantomas": "2.2.0", "phantomas": "2.4.0",
"q": "1.5.1", "q": "1.5.1",
"request": "2.88.0", "request": "2.88.0",
"ttf2woff2": "4.0.1", "ttf2woff2": "4.0.1",