forked from kmayo-ss/externallinks
-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
DEP Upgrade frontend build stack (#90)
- Loading branch information
1 parent
de87c35
commit 8ce91fb
Showing
13 changed files
with
6,374 additions
and
32 deletions.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
module.exports = require('@silverstripe/eslint-config/.eslintrc'); |
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,2 @@ | ||
/vendor/ | ||
node_modules/ |
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 @@ | ||
18 |
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,6 @@ | ||
{ | ||
"presets": [ | ||
"@babel/preset-env", | ||
"@babel/preset-react" | ||
] | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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 @@ | ||
.external-links-report__create-report,.external-links-report__report-progress{margin-top:20px} |
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
File renamed without changes.
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,28 @@ | ||
{ | ||
"name": "silverstripe-externallinks", | ||
"license": "BSD-3-Clause", | ||
"author": "SilverStripe Ltd", | ||
"engines": { | ||
"node": ">=18.x" | ||
}, | ||
"scripts": { | ||
"build": "yarn && yarn lint && rm -rf client/dist/* && NODE_ENV=production webpack --mode production --bail --progress", | ||
"dev": "NODE_ENV=development webpack --progress", | ||
"watch": "NODE_ENV=development webpack --watch --progress", | ||
"lint": "eslint client/src/js && sass-lint client/src/styles" | ||
}, | ||
"dependencies": { | ||
}, | ||
"devDependencies": { | ||
"@silverstripe/eslint-config": "^1.0.0-alpha6", | ||
"@silverstripe/webpack-config": "^2.0.0-alpha5", | ||
"webpack": "^5.74.0", | ||
"webpack-cli": "^5.0.0" | ||
}, | ||
"resolutions": { | ||
"colors": "1.4.0" | ||
}, | ||
"browserslist": [ | ||
"defaults" | ||
] | ||
} |
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,25 @@ | ||
const Path = require('path'); | ||
const { JavascriptWebpackConfig, CssWebpackConfig } = require('@silverstripe/webpack-config'); | ||
|
||
const PATHS = { | ||
ROOT: Path.resolve(), | ||
SRC: Path.resolve('client/src'), | ||
DIST: Path.resolve('client/dist'), | ||
}; | ||
|
||
const config = [ | ||
// Main JS bundle | ||
new JavascriptWebpackConfig('js', PATHS, 'silverstripe/externallinks') | ||
.setEntry({ | ||
BrokenExternalLinksReport: `${PATHS.SRC}/js/BrokenExternalLinksReport.js`, | ||
}) | ||
.getConfig(), | ||
// sass to css | ||
new CssWebpackConfig('css', PATHS) | ||
.setEntry({ | ||
BrokenExternalLinksReport: `${PATHS.SRC}/styles/BrokenExternalLinksReport.scss`, | ||
}) | ||
.getConfig(), | ||
]; | ||
|
||
module.exports = config; |
Oops, something went wrong.