From 272af74ace9029f6122055399c15b9128595131d Mon Sep 17 00:00:00 2001 From: Mathis Date: Thu, 11 Apr 2024 14:07:21 +0200 Subject: [PATCH] update conf --- .gitignore | 4 +++- .parcelrc | 32 +++++++++++++++++++++++++++----- .postcssrc | 5 +++++ .sassrc | 3 --- package.json | 33 +++++++++++++++++++++++++++++++++ tailwind.config.js | 10 ++++++++++ 6 files changed, 78 insertions(+), 9 deletions(-) create mode 100644 .postcssrc delete mode 100644 .sassrc create mode 100644 package.json create mode 100644 tailwind.config.js diff --git a/.gitignore b/.gitignore index dfd250c..4614f33 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,5 @@ node_modules pnpm-lock.yaml -yarn.lock \ No newline at end of file +yarn.lock +.parcel-cache +dist diff --git a/.parcelrc b/.parcelrc index 5318c69..28d2587 100644 --- a/.parcelrc +++ b/.parcelrc @@ -1,12 +1,34 @@ { - "extends": "@parcel/config-default", - "transformers": { - "*.{ts,tsx}": ["@parcel/transformer-typescript-tsc"] - }, "compressors": { "*.{html,css,js,svg,map}": [ + "...", "@parcel/compressor-gzip", "@parcel/compressor-brotli" ] - } + }, + "validators": { + "*.{ts,tsx}": ["@parcel/validator-typescript"] + }, + "transformers": { + "*.{ts,tsx}": [ + "@parcel/transformer-typescript-tsc" + ], + "bundle-text:*": [ + "...", + "@parcel/transformer-inline-string" + ], + "data-url:*": [ + "...", + "@parcel/transformer-inline-string" + ] + }, + "optimizers": { + "*.{jpg,jpeg,png}": [], + "data-url:*": [ + "...", + "@parcel/optimizer-data-url" + ] + }, + "extends": "@parcel/config-default", + "reporters": ["...", "parcel-reporter-clean-dist"] } \ No newline at end of file diff --git a/.postcssrc b/.postcssrc new file mode 100644 index 0000000..d42c370 --- /dev/null +++ b/.postcssrc @@ -0,0 +1,5 @@ +{ + "plugins": { + "tailwindcss": {} + } +} \ No newline at end of file diff --git a/.sassrc b/.sassrc deleted file mode 100644 index 077404a..0000000 --- a/.sassrc +++ /dev/null @@ -1,3 +0,0 @@ -{ - -} \ No newline at end of file diff --git a/package.json b/package.json new file mode 100644 index 0000000..4abfe92 --- /dev/null +++ b/package.json @@ -0,0 +1,33 @@ +{ + "name": "template-basic-front", + "version": "1.0.0", + "description": "Template pour les projets d'études 'frontend' HTML/SCSS/TS", + "browserslist": "> 0.5%, last 2 versions, not dead", + "private": true, + "source": "./src/scripts/main.ts", + "module": "./dist/index.js", + "scripts": { + "check": "tsc --noEmit", + "dev": "parcel serve -p 3000 'src/index.html' --lazy" + }, + "keywords": [], + "author": "Mathis H", + "license": "MIT", + "devDependencies": { + "@parcel/bundler-default": "^2.12.0", + "@parcel/compressor-brotli": "^2.12.0", + "@parcel/compressor-gzip": "^2.12.0", + "@parcel/config-default": "^2.12.0", + "@parcel/transformer-sass": "^2.12.0", + "@parcel/transformer-typescript-tsc": "^2.12.0", + "@parcel/validator-typescript": "^2.12.0", + "parcel": "latest", + "parcel-reporter-clean-dist": "^1.0.4", + "postcss": "^8.4.38", + "tailwindcss": "^3.4.3", + "typescript": ">=3.0.0" + }, + "dependencies": { + "@fontsource/viga": "^5.0.12" + } +} diff --git a/tailwind.config.js b/tailwind.config.js new file mode 100644 index 0000000..8faa6af --- /dev/null +++ b/tailwind.config.js @@ -0,0 +1,10 @@ +/** @type {import('tailwindcss').Config} */ +module.exports = { + content: [ + "./src/**/*.{html,js,ts,jsx,tsx}", + ], + theme: { + extend: {}, + }, + plugins: [], +} \ No newline at end of file