Use TypeScript in Webpack config

pull/15/head
Michał Górny 2021-05-28 23:47:04 +02:00
rodzic 2f0022e065
commit fbd4efdd03
6 zmienionych plików z 1627 dodań i 495 usunięć

9
.postcssrc.json 100644
Wyświetl plik

@ -0,0 +1,9 @@
{
"plugins": {
"postcss-import": {},
"postcss-preset-env": {
"browsers": "last 2 versions"
},
"cssnano": {}
}
}

2083
package-lock.json wygenerowano

Plik diff jest za duży Load Diff

Wyświetl plik

@ -16,13 +16,22 @@
"poland" "poland"
], ],
"author": "Michał Górny", "author": "Michał Górny",
"dependencies": {
"chartist": "^0.11.4",
"modern-normalize": "^0.5.0"
},
"devDependencies": { "devDependencies": {
"@babel/core": "^7.12.3", "@babel/core": "^7.12.3",
"@babel/preset-env": "^7.12.1", "@babel/preset-env": "^7.12.1",
"@babel/preset-typescript": "^7.12.1", "@babel/preset-typescript": "^7.12.1",
"@babel/register": "^7.12.1", "@babel/register": "^7.12.1",
"@types/chartist": "^0.9.46", "@types/chartist": "^0.9.46",
"@types/html-webpack-plugin": "^3.2.5",
"@types/mini-css-extract-plugin": "^1.4.3",
"@types/pug": "^2.0.4", "@types/pug": "^2.0.4",
"@types/webpack": "^4.41.29",
"@types/webpack-dev-server": "^3.11.4",
"@types/webpack-livereload-plugin": "^2.3.2",
"@typescript-eslint/eslint-plugin": "^4.6.1", "@typescript-eslint/eslint-plugin": "^4.6.1",
"@typescript-eslint/parser": "^4.6.1", "@typescript-eslint/parser": "^4.6.1",
"babel-loader": "^8.1.0", "babel-loader": "^8.1.0",
@ -31,11 +40,11 @@
"eslint": "^7.11.0", "eslint": "^7.11.0",
"eslint-config-airbnb-base": "^14.2.0", "eslint-config-airbnb-base": "^14.2.0",
"eslint-plugin-import": "^2.22.1", "eslint-plugin-import": "^2.22.1",
"eslint-webpack-plugin": "^2.1.0", "eslint-webpack-plugin": "^2.5.4",
"gh-pages": "^2.1.1", "gh-pages": "^2.1.1",
"html-webpack-plugin": "^3.2.0", "html-webpack-plugin": "^3.2.0",
"mini-css-extract-plugin": "^1.2.1", "mini-css-extract-plugin": "^1.2.1",
"postcss": "^8.2.10", "postcss": "^8.2.15",
"postcss-import": "^12.0.1", "postcss-import": "^12.0.1",
"postcss-loader": "^4.0.4", "postcss-loader": "^4.0.4",
"postcss-preset-env": "^6.7.0", "postcss-preset-env": "^6.7.0",
@ -49,9 +58,5 @@
"webpack-cli": "^3.3.12", "webpack-cli": "^3.3.12",
"webpack-dev-server": "^3.11.0", "webpack-dev-server": "^3.11.0",
"webpack-livereload-plugin": "^2.3.0" "webpack-livereload-plugin": "^2.3.0"
},
"dependencies": {
"chartist": "^0.11.4",
"modern-normalize": "^0.5.0"
} }
} }

Wyświetl plik

@ -1,9 +0,0 @@
module.exports = {
plugins: {
'postcss-import': {},
'postcss-preset-env': {
browsers: 'last 2 versions',
},
cssnano: {},
},
};

Wyświetl plik

@ -1,12 +1,12 @@
{ {
"compilerOptions": { "compilerOptions": {
"allowSyntheticDefaultImports": true, "allowSyntheticDefaultImports": true,
"module": "es6", "esModuleInterop": true,
"moduleResolution": "node", "moduleResolution": "node",
"outDir": "./dist/", "outDir": "./dist/",
"removeComments": true, "removeComments": true,
"sourceMap": true, "sourceMap": true,
"strict": true, "strict": true,
"target": "es5" "target": "ES5"
} }
} }