forked from sebsauvage/Shaarli
-
Notifications
You must be signed in to change notification settings - Fork 297
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Manage frontend dependencies with npm/yarn and webpack #1072
Merged
ArthurHoaro
merged 5 commits into
shaarli:master
from
ArthurHoaro:feature/modern-front-end
Mar 28, 2018
Merged
Changes from all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
b3375c7
Webpack / Remove frontend dependencies from tpl/ & inc/ and move them…
ArthurHoaro a33c565
Webpack / Rewrite all JS to ES6 Syntax
ArthurHoaro 7e9bd97
Webpack / Update front paths in template files
ArthurHoaro 47978e8
Webpack / Configure webpack, ESLint, Travis, Makefile, npm/yarn and git
ArthurHoaro d7eb06b
Webpack / Documentation update
ArthurHoaro File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
module.exports = { | ||
"extends": "airbnb-base", | ||
"env": { | ||
"browser": true, | ||
}, | ||
"rules": { | ||
"no-param-reassign": 0, // manipulate DOM style properties | ||
"no-restricted-globals": 0, // currently Shaarli uses alert/confirm, could be be improved later | ||
"no-alert": 0, // currently Shaarli uses alert/confirm, could be be improved later | ||
"no-cond-assign": [2, "except-parens"], // assignment in while loops is readable and avoid assignment duplication | ||
} | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,20 +2,22 @@ sudo: false | |
dist: trusty | ||
language: php | ||
cache: | ||
yarn: true | ||
directories: | ||
- $HOME/.composer/cache | ||
- $HOME/.cache/yarn | ||
php: | ||
- 7.2 | ||
- 7.1 | ||
- 7.0 | ||
- 5.6 | ||
install: | ||
- composer self-update | ||
- yarn install | ||
- composer install --prefer-dist | ||
- locale -a | ||
before_script: | ||
- PATH=${PATH//:\.\/node_modules\/\.bin/} | ||
script: | ||
- make clean | ||
- make check_permissions | ||
- make eslint | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. frontend lint & tests should be run in a dedicated JS / Node matrix to avoid cluttering the PHP test environments this will be a bit tricky so it's OK to address this point in a separate PR |
||
- make all_tests |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<IfModule version_module> | ||
<IfVersion >= 2.4> | ||
Require all denied | ||
</IfVersion> | ||
<IfVersion < 2.4> | ||
Allow from none | ||
Deny from all | ||
</IfVersion> | ||
</IfModule> | ||
|
||
<IfModule !version_module> | ||
Require all denied | ||
</IfModule> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
import Blazy from 'blazy'; | ||
|
||
(() => { | ||
const picwall = document.getElementById('picwall_container'); | ||
if (picwall != null) { | ||
// Suppress ESLint error because that's how bLazy works | ||
/* eslint-disable no-new */ | ||
new Blazy(); | ||
} | ||
})(); |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
time to raise some issues then :)
I'm about to do the same for the TODOs concerning usage of
die()
andexit()
in PHP codeThere was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Issue raised in #1095