Skip to content

Commit

Permalink
Merge pull request #20 from ravasthi/package-upgrades
Browse files Browse the repository at this point in the history
Package upgrades
  • Loading branch information
ravasthi authored Sep 18, 2021
2 parents b67a6a6 + 8b05594 commit 8c507e3
Show file tree
Hide file tree
Showing 5 changed files with 2,204 additions and 3,910 deletions.
55 changes: 29 additions & 26 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "css3-foundation",
"version": "7.2.2",
"version": "7.3.0",
"description": "A simple CSS3/HTML5 bootstrap for static sites and web apps",
"main": "index.html",
"repository": "[email protected]:ravasthi/css3-foundation.git",
Expand All @@ -11,50 +11,53 @@
"node": ">=8.5.0"
},
"devDependencies": {
"autoprefixer": "^9.1.5",
"autoprefixer": "^10.3.4",
"browser-sync": "^2.26.3",
"browser-sync-webpack-plugin": "^2.2.2",
"clean-webpack-plugin": "^3.0.0",
"clean-webpack-plugin": "^4.0.0",
"cross-env": "^7.0.2",
"css-loader": "^4.1.1",
"eslint": "^7.2.0",
"eslint-config-airbnb": "^18.1.0",
"eslint-config-prettier": "^6.11.0",
"eslint-plugin-import": "^2.21.2",
"eslint-plugin-jsx-a11y": "^6.2.3",
"eslint-plugin-react": "^7.20.0",
"eslint-plugin-sort-imports-es6-autofix": "^0.5.0",
"file-loader": "^6.0.0",
"mini-css-extract-plugin": "^0.9.0",
"node-sass": "^4.5.3",
"css-loader": "^6.2.0",
"eslint": "^7.32.0",
"eslint-config-airbnb": "^18.2.1",
"eslint-config-prettier": "^8.3.0",
"eslint-plugin-import": "^2.24.2",
"eslint-plugin-jsx-a11y": "^6.4.1",
"eslint-plugin-react": "^7.25.2",
"eslint-plugin-react-hooks": "^4.2.0",
"eslint-plugin-sort-imports-es6-autofix": "^0.6.0",
"file-loader": "^6.2.0",
"mini-css-extract-plugin": "^2.2.2",
"node-sass": "^6.0.1",
"npm-run-all": "^4.1.1",
"postcss-loader": "^3.0.0",
"postcss": "^8.3.6",
"postcss-loader": "^6.1.1",
"prettier": "^2.0.5",
"reset-css": "^5.0.1",
"rimraf": "^3.0.2",
"sass-loader": "^9.0.2",
"style-loader": "^1.2.1",
"stylelint": "^13.2.0",
"sass-loader": "^12.1.0",
"style-loader": "^3.2.1",
"stylelint": "^13.13.1",
"stylelint-config-prettier": "^8.0.1",
"stylelint-config-standard": "^20.0.0",
"stylelint-config-standard": "^22.0.0",
"stylelint-order": "^4.0.0",
"susy": "^3.0.1",
"url-loader": "^4.1.0",
"webpack": "^4.44.1",
"webpack-cli": "^3.3.12",
"webpack-dev-server": "^3.10.3",
"susy": "^3.0.7",
"url-loader": "^4.1.1",
"webpack": "^5.51.2",
"webpack-cli": "^4.8.0",
"webpack-dev-server": "^4.1.0",
"webpack-merge": "^5.0.9"
},
"dependencies": {
"@fortawesome/fontawesome-free": "^5.4.1",
"jquery": "^3.2.1"
},
"scripts": {
"clean-extra": "rimraf distribution/scripts/ie.js distribution/scripts/print.js distribution/scripts/styles.js",
"clean-fonts": "rimraf distribution/*.eot distribution/*.svg distribution/*.ttf distribution/*.woff distribution/*.woff2",
"clean-extra": "rimraf distribution/scripts/ie.js distribution/scripts/print.js distribution/scripts/styles.js distribution/scripts/*.LICENSE.txt",
"lint:js": "eslint 'source/**/*.js' --config .eslintrc.js",
"lint:scss": "stylelint 'source/**/*.scss' --syntax scss --config stylelint.config.js",
"compile": "cross-env NODE_ENV=production webpack --config webpack.config.production.js",
"build": "run-s lint:js lint:scss compile clean-extra",
"start": "cross-env NODE_ENV=development webpack-dev-server --config webpack.config.development.js"
"start": "cross-env NODE_ENV=development webpack serve --config webpack.config.development.js"
}
}
29 changes: 8 additions & 21 deletions webpack.config.common.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
const path = require('path');
const MiniCssExtractPlugin = require('mini-css-extract-plugin');

const { CleanWebpackPlugin } = require('clean-webpack-plugin');

const DIST_SLUG = 'distribution';
const DIST = path.resolve(__dirname, DIST_SLUG);

Expand All @@ -18,6 +16,7 @@ module.exports = {
filename: 'scripts/[name].js',
path: DIST,
publicPath: `/${DIST_SLUG}/`,
clean: true,
},
module: {
rules: [
Expand All @@ -35,9 +34,10 @@ module.exports = {
{
loader: 'postcss-loader',
options: {
// eslint-disable-next-line global-require
plugins: () => [require('autoprefixer')],
sourceMap: true,
postcssOptions: {
plugins: ['autoprefixer'],
sourceMap: true,
},
},
},
{
Expand All @@ -54,13 +54,9 @@ module.exports = {
{
// Capture eot, svg, ttf, woff, and woff2
test: /\.(eot|svg|ttf|woff|woff2)(\?v=\d+\.\d+\.\d+)?$/,
use: {
loader: 'url-loader',
options: {
limit: 10000,
name: 'fonts/[name].[ext]',
publicPath: '../',
},
type: 'asset/resource',
generator: {
filename: 'fonts/[name][ext][query]',
},
},
],
Expand All @@ -69,15 +65,6 @@ module.exports = {
extensions: ['.js', '.json', '.css', '.scss'],
},
plugins: [
new CleanWebpackPlugin({
cleanOnceBeforeBuildPatterns: [
`${DIST_SLUG}/*.*`,
`${DIST_SLUG}/scripts/*.*`,
`${DIST_SLUG}/styles/*.*`,
`${DIST_SLUG}/fonts/*.*`,
],
cleanAfterEveryBuildPatterns: [`!${DIST_SLUG}/fonts/*.*`],
}),
new MiniCssExtractPlugin({
filename: 'styles/[name].css',
chunkFilename: 'styles/[id].css',
Expand Down
4 changes: 1 addition & 3 deletions webpack.config.development.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,10 @@ module.exports = merge(common, {
mode: 'development',
devtool: 'inline-source-map',
devServer: {
contentBase: [__dirname, path.join(__dirname, DIST_SLUG)],
static: [__dirname, path.join(__dirname, DIST_SLUG)],
compress: true,
hot: true,
overlay: true,
port: PORT,
watchContentBase: true,
},
plugins: [
new BrowserSyncPlugin(
Expand Down
3 changes: 2 additions & 1 deletion webpack.config.production.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
const common = require('./webpack.config.common');
const merge = require('webpack-merge');

const { merge } = require('webpack-merge');

module.exports = merge(common, {
mode: 'production',
Expand Down
Loading

0 comments on commit 8c507e3

Please sign in to comment.