mirror of
				https://github.com/inventree/inventree-website.git
				synced 2025-11-04 07:25:46 +00:00 
			
		
		
		
	change pipeline to use postcss
This commit is contained in:
		@@ -1,3 +1,7 @@
 | 
				
			|||||||
source 'https://rubygems.org'
 | 
					source 'https://rubygems.org'
 | 
				
			||||||
gem 'jekyll'
 | 
					gem 'jekyll'
 | 
				
			||||||
gem 'jekyll-seo-tag'
 | 
					
 | 
				
			||||||
 | 
					group :jekyll_plugins do
 | 
				
			||||||
 | 
					    gem 'jekyll-postcss'
 | 
				
			||||||
 | 
					    gem 'jekyll-seo-tag'
 | 
				
			||||||
 | 
					end
 | 
				
			||||||
@@ -31,6 +31,7 @@ GEM
 | 
				
			|||||||
      rouge (~> 3.0)
 | 
					      rouge (~> 3.0)
 | 
				
			||||||
      safe_yaml (~> 1.0)
 | 
					      safe_yaml (~> 1.0)
 | 
				
			||||||
      terminal-table (~> 1.8)
 | 
					      terminal-table (~> 1.8)
 | 
				
			||||||
 | 
					    jekyll-postcss (0.5.0)
 | 
				
			||||||
    jekyll-sass-converter (2.1.0)
 | 
					    jekyll-sass-converter (2.1.0)
 | 
				
			||||||
      sassc (> 2.0.1, < 3.0)
 | 
					      sassc (> 2.0.1, < 3.0)
 | 
				
			||||||
    jekyll-seo-tag (2.7.1)
 | 
					    jekyll-seo-tag (2.7.1)
 | 
				
			||||||
@@ -69,6 +70,7 @@ PLATFORMS
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
DEPENDENCIES
 | 
					DEPENDENCIES
 | 
				
			||||||
  jekyll
 | 
					  jekyll
 | 
				
			||||||
 | 
					  jekyll-postcss
 | 
				
			||||||
  jekyll-seo-tag
 | 
					  jekyll-seo-tag
 | 
				
			||||||
 | 
					
 | 
				
			||||||
BUNDLED WITH
 | 
					BUNDLED WITH
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -15,6 +15,7 @@ url: "" # the base hostname & protocol for your site, e.g. http://example.com
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
plugins:
 | 
					plugins:
 | 
				
			||||||
  - jekyll-seo-tag
 | 
					  - jekyll-seo-tag
 | 
				
			||||||
 | 
					  - jekyll-postcss
 | 
				
			||||||
 | 
					
 | 
				
			||||||
exclude: [
 | 
					exclude: [
 | 
				
			||||||
  styles/index.css,
 | 
					  styles/index.css,
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -2,7 +2,7 @@
 | 
				
			|||||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
 | 
					<meta http-equiv="X-UA-Compatible" content="IE=edge">
 | 
				
			||||||
<meta name="viewport" content="width=device-width, initial-scale=1">
 | 
					<meta name="viewport" content="width=device-width, initial-scale=1">
 | 
				
			||||||
 | 
					
 | 
				
			||||||
<link rel="stylesheet" href="{{ "/dist/index.css" | relative_url }}">
 | 
					<link rel="stylesheet" href="{{ "/assets/index.css" | relative_url }}">
 | 
				
			||||||
<link rel="shortcut icon" type="image/png" href={{ "/assets/favicon.ico" | relative_url }}>
 | 
					<link rel="shortcut icon" type="image/png" href={{ "/assets/favicon.ico" | relative_url }}>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
<title>{{ site.title }}{% if page.title %} - {{ page.title }}{% endif %}</title>
 | 
					<title>{{ site.title }}{% if page.title %} - {{ page.title }}{% endif %}</title>
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1,6 +1,9 @@
 | 
				
			|||||||
@tailwind base;
 | 
					---
 | 
				
			||||||
@tailwind components;
 | 
					---
 | 
				
			||||||
@tailwind utilities;
 | 
					
 | 
				
			||||||
 | 
					@import "tailwindcss/base";
 | 
				
			||||||
 | 
					@import "tailwindcss/components";
 | 
				
			||||||
 | 
					@import "tailwindcss/utilities";
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@layer components {
 | 
					@layer components {
 | 
				
			||||||
							
								
								
									
										27387
									
								
								home/package-lock.json
									
									
									
										generated
									
									
									
								
							
							
						
						
									
										27387
									
								
								home/package-lock.json
									
									
									
										generated
									
									
									
								
							
										
											
												File diff suppressed because it is too large
												Load Diff
											
										
									
								
							@@ -1,24 +1,11 @@
 | 
				
			|||||||
{
 | 
					{
 | 
				
			||||||
    "name": "home.invenhost.com",
 | 
					 | 
				
			||||||
    "version": "0.0.1",
 | 
					 | 
				
			||||||
    "description": "A UI test",
 | 
					 | 
				
			||||||
    "scripts": {
 | 
					 | 
				
			||||||
        "preinstall": "npx npm-force-resolutions",
 | 
					 | 
				
			||||||
        "setup": "gem install bundler && bundle install && npm i",
 | 
					 | 
				
			||||||
        "start": "concurrently --kill-others \"npm run css:dev\" \"bundle exec jekyll serve\"",
 | 
					 | 
				
			||||||
        "build": "npm run css:rel && jekyll build",
 | 
					 | 
				
			||||||
        "css:dev": "parcel watch styles/index.css --no-source-maps",
 | 
					 | 
				
			||||||
        "css:rel": "parcel build styles/index.css --no-source-maps"
 | 
					 | 
				
			||||||
    },
 | 
					 | 
				
			||||||
  "devDependencies": {
 | 
					  "devDependencies": {
 | 
				
			||||||
        "@fullhuman/postcss-purgecss": "^4.0.3",
 | 
					 | 
				
			||||||
    "@tailwindcss/typography": "^0.4.1",
 | 
					    "@tailwindcss/typography": "^0.4.1",
 | 
				
			||||||
    "autoprefixer": "^10.4.0",
 | 
					    "autoprefixer": "^10.4.0",
 | 
				
			||||||
        "concurrently": "^6.3.0",
 | 
					    "cssnano": "^5.0.10",
 | 
				
			||||||
        "parcel": "^2.0.0",
 | 
					    "postcss": "^8.3.11",
 | 
				
			||||||
        "tailwindcss": "npm:@tailwindcss/postcss7-compat@^2.2.17"
 | 
					    "postcss-cli": "^9.0.2",
 | 
				
			||||||
    },
 | 
					    "postcss-import": "^14.0.2",
 | 
				
			||||||
    "resolutions": {
 | 
					    "tailwindcss": "^2.2.19"
 | 
				
			||||||
        "node-forge": "0.10.0"
 | 
					 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1,3 +1,10 @@
 | 
				
			|||||||
module.exports = {
 | 
					module.exports = {
 | 
				
			||||||
    plugins: [require("tailwindcss"), require("autoprefixer")],
 | 
					    plugins: [
 | 
				
			||||||
 | 
					        require('postcss-import'),
 | 
				
			||||||
 | 
					        require("tailwindcss"),
 | 
				
			||||||
 | 
					        require("autoprefixer"),
 | 
				
			||||||
 | 
					        require('cssnano')({
 | 
				
			||||||
 | 
					            preset: 'default',
 | 
				
			||||||
 | 
					        }),
 | 
				
			||||||
 | 
					    ],
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
		Reference in New Issue
	
	Block a user