| Index: README.md |
| =================================================================== |
| --- a/README.md |
| +++ b/README.md |
| @@ -6,6 +6,15 @@ |
| tested within this repository, even though they might not work exactly the same |
| as they will do in the final product. |
| +Installing dependencies |
| +----------------------- |
| + |
| +Once you have cloned the repository, go into the folder and run: `npm install`. |
| + |
| +Both node dependencies and one python script will run to setup the folder. |
|
Thomas Greiner
2018/01/23 19:22:35
Detail: I know it's nit-picking but I noticed that
|
| + |
| +You need Python version 2 to ensure a successful `./buildtools` setup. |
|
Thomas Greiner
2018/01/23 19:22:35
What about mentioning that as part of a list of re
a.giammarchi
2018/01/24 10:52:36
Python 2 (or python 2) is available by default in
Thomas Greiner
2018/01/24 11:56:33
I guess that's a personal preference so as long as
|
| + |
| Directory structure |
| ------------------- |
| @@ -37,13 +46,23 @@ |
| In Firefox the HTML pages can be opened directly from the file system |
| and should be fully functional. Due to security restrictions in Chrome, there |
| you need to pass in the `--allow-file-access-from-files` command line flag when |
| -starting the application. Alternatively, you can run `test_server.py` (requires |
| -Python 2.7) and open the HTML pages under URLs like |
| -`http://127.0.0.1:5000/firstRun.html`. |
| +starting the application. Alternatively, you can run `npm start` and open |
| +the HTML pages under URLs like `http://127.0.0.1:5000/firstRun.html`. |
| + |
| +Various aspects of the pages can be tested by setting parameters in the URL. |
| +The only universal parameter is `locale`, e.g. `?locale=es-AR`. This parameter |
| +overrides browser's locale which will be used by default. |
| -Various aspects of the pages can be tested by setting parameters in the URL. The |
| -only universal parameter is `locale`, e.g. `?locale=es-AR`. This parameter |
| -overrides browser's locale which will be used by default. |
| +Linting |
| +------- |
| + |
| +You can lint both JS and CSS at once via `npm run lint`. |
| + |
| +You can also run only JS via `npm run lint:js`, or CSS via `npm run lint:css`. |
| + |
| +Remember, both `eslint` and `stylelint` can help fixing issues via `--fix` flag. |
| + |
| +You can try as example via `npx stylelint --fix skin/real-file-name.css`. |
|
Thomas Greiner
2018/01/23 19:22:35
I assume it's a typo but in case it's not: What do
a.giammarchi
2018/01/24 10:52:36
npx is the "node package executable" binary that c
Thomas Greiner
2018/01/24 11:56:33
I didn't know this was included in npm so thanks f
|
| Translations |
| ------------ |
| @@ -108,14 +127,3 @@ |
| [crowdin]: https://crowdin.com |
| - |
| -Linting |
| -------- |
| - |
| -You can lint the code using [ESLint](http://eslint.org). |
| - |
| - eslint *.js lib ext |
| - |
| -You will need to set up ESLint and our configuration first, see |
| -[eslint-config-eyeo](https://hg.adblockplus.org/codingtools/file/tip/eslint-config-eyeo) |
| -for more information. |