-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
29 changed files
with
2,160 additions
and
1,839 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
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 |
---|---|---|
@@ -1 +1 @@ | ||
15 | ||
16 |
Large diffs are not rendered by default.
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 |
---|---|---|
@@ -1,8 +1,19 @@ | ||
{ | ||
"name": "@studiometa/webpack-config-root", | ||
"version": "2.9.3", | ||
"version": "3.0.0", | ||
"private": true, | ||
"type": "commonjs", | ||
"workspaces": [ | ||
"packages/*" | ||
] | ||
], | ||
"scripts": { | ||
"lint": "eslint packages/webpack-config/src packages/demo/src --ext=.js,.vue", | ||
"fix": "npm run lint -- --fix" | ||
}, | ||
"devDependencies": { | ||
"@studiometa/eslint-config": "^2.1.3", | ||
"@studiometa/prettier-config": "^2.0.1", | ||
"eslint": "^7.32.0", | ||
"prettier": "^2.3.2" | ||
} | ||
} |
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,3 @@ | ||
module.exports = { | ||
extends: '@studiometa/stylelint-config', | ||
}; |
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 |
---|---|---|
@@ -1,23 +1,24 @@ | ||
{ | ||
"name": "@studiometa/webpack-config-demo", | ||
"version": "2.9.3", | ||
"version": "3.0.0", | ||
"private": true, | ||
"type": "commonjs", | ||
"scripts": { | ||
"dev": "meta dev", | ||
"build": "meta build" | ||
"dev": "node ../webpack-config/bin/cli.js dev", | ||
"build": "node ../webpack-config/bin/cli.js build" | ||
}, | ||
"devDependencies": { | ||
"@studiometa/eslint-config": "^2.1.3", | ||
"@studiometa/prettier-config": "^2.0.1", | ||
"@studiometa/stylelint-config": "^2.0.0", | ||
"@studiometa/webpack-config": "file:../webpack-config", | ||
"eslint": "^7.28.0", | ||
"prettier": "^2.3.1", | ||
"eslint": "^7.32.0", | ||
"prettier": "^2.3.2", | ||
"stylelint": "^13.13.1", | ||
"tailwindcss": "^2.1.4" | ||
"tailwindcss": "^2.2.9" | ||
}, | ||
"dependencies": { | ||
"@studiometa/js-toolkit": "^1.3.1", | ||
"@studiometa/js-toolkit": "^1.6.1", | ||
"vue": "^2.6.14" | ||
} | ||
} |
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 |
---|---|---|
@@ -1,5 +1,7 @@ | ||
@tailwind base; | ||
|
||
@tailwind components; | ||
|
||
@tailwind utilities; | ||
|
||
body { | ||
|
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
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
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 |
---|---|---|
@@ -1,10 +1,22 @@ | ||
const getMetaConfig = require('./utils/get-config.js'); | ||
const getWebpackConfig = require('./webpack.prod.config.js'); | ||
import getMetaConfig from './utils/get-config.js'; | ||
import getWebpackProdConfig from './webpack.prod.config.js'; | ||
|
||
module.exports = { | ||
createConfig: (config) => config, | ||
getWebpackConfig: () => { | ||
const config = getMetaConfig(); | ||
return getWebpackConfig(config); | ||
}, | ||
}; | ||
/** | ||
* Create a configuration. | ||
* | ||
* @param {MetaConfig} config | ||
* @return {MetaConfig} | ||
*/ | ||
export function createConfig(config) { | ||
return config; | ||
} | ||
|
||
/** | ||
* Get the generated Webpack configuration. | ||
* | ||
* @return {import('webpack').Configuration} | ||
*/ | ||
export function getWebpackConfig() { | ||
const config = getMetaConfig(); | ||
return getWebpackProdConfig(config); | ||
} |
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
Oops, something went wrong.