Skip to content

Commit

Permalink
Refactor build
Browse files Browse the repository at this point in the history
  • Loading branch information
cagataycivici committed May 20, 2023
1 parent c0f7495 commit 62ff074
Show file tree
Hide file tree
Showing 39 changed files with 486 additions and 20,999 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ tsconfig.tsbuildinfo

# production
/dist
/dist-lib
/build

# misc
Expand Down
9 changes: 9 additions & 0 deletions LICENSE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
The MIT License (MIT)

Copyright (c) 2016-2023 PrimeTek

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
23 changes: 23 additions & 0 deletions gulpfile.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
'use strict';

var gulp = require('gulp'),
rename = require('gulp-rename');

gulp.task('copy-package-json', function() {
return gulp.src([
'package-lib.json'
])
.pipe(rename('package.json'))
.pipe(gulp.dest('dist-lib/'));
});

gulp.task('copy-lib', function() {
return gulp.src([
'styles/lib/**/*',
'README.md',
'LICENSE.md'
])
.pipe(gulp.dest('dist-lib/'));
});

gulp.task('build-lib', gulp.series('copy-package-json', 'copy-lib'));
16 changes: 16 additions & 0 deletions package-lib.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"name": "primeflex",
"version": "3.3.0",
"description": "PrimeFlex is a lightweight responsive CSS utility library to accompany Prime UI libraries and static webpages as well.",
"repository": {
"type": "git",
"url": "git+https://github.com/primefaces/primeflex.git"
},
"keywords": ["grid", "responsive", "flex", "css utility"],
"author": "PrimeTek",
"license": "MIT",
"bugs": {
"url": "https://github.com/primefaces/primeflex/issues"
},
"homepage": "https://primeflex.org"
}
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@
"format": "prettier --write \"{components,pages}/**/*.{js,ts,tsx,d.ts}\"",
"format:check": "prettier --check \"{components,pages}/**/*.{js,ts,tsx,d.ts}\"",
"lint": "next lint --max-warnings=0 --ignore-path .gitignore .",
"lint:fix": "next lint --fix --ignore-path .gitignore ."
"lint:fix": "next lint --fix --ignore-path .gitignore .",
"build-lib": "sass --update styles/lib/primeflex.scss:dist-lib/primeflex.css --no-source-map && sass --update styles/lib/primeflex.scss:dist-lib/primeflex.min.css --no-source-map --style compressed && sass --update styles/lib/themes:dist-lib/themes --no-source-map && gulp build-lib"
},
"dependencies": {
"@docsearch/react": "^3.3.3",
Expand Down
5 changes: 2 additions & 3 deletions pages/_app.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
import '@docsearch/css';
import 'primeicons/primeicons.css';
import 'primereact/resources/primereact.min.css';
import 'primereact/resources/primereact.css';
import { useEffect, useRef, useState } from 'react';
import Layout from '../components/layout/layout';
import '../styles/demo/demo.scss';
import '../styles/layout/layout.scss';
import '../styles/primeflex.css';
import '../styles/lib/primeflex.scss';
import '../styles/prism.scss';

export default function MyApp({ Component }) {
Expand Down
25 changes: 0 additions & 25 deletions styles/demo/demo.scss

This file was deleted.

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
25 changes: 25 additions & 0 deletions styles/lib/primeflex.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
@import './core/_variables';
@import './core/_mixins';
@import './core/_grid';
@import './core/_colors';
@import './core/_formlayout';
@import './core/_display';
@import './core/_typography';
@import './core/_flexbox';
@import './core/_gap';
@import './core/_spacing';
@import './core/_elevation';
@import './core/_border';
@import './core/_borderradius';
@import './core/_size';
@import './core/_position';
@import './core/_overflow';
@import './core/_zindex';
@import './core/_image';
@import './core/_userselect';
@import './core/_liststyle';
@import './core/_misc';
@import './core/_transition';
@import './core/_transform';
@import './core/_animation';
@import './core/_utils';
136 changes: 136 additions & 0 deletions styles/lib/themes/arya-blue.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,136 @@
:root {
--text-color:rgba(255, 255, 255, 0.87);
--text-color-secondary:rgba(255, 255, 255, 0.6);
--primary-color:#64B5F6;
--primary-color-text:#212529;
--font-family:-apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica, Arial, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol;
--surface-0: #121212;
--surface-50: #2a2a2a;
--surface-100: #414141;
--surface-200: #595959;
--surface-300: #717171;
--surface-400: #898989;
--surface-500: #a0a0a0;
--surface-600: #b8b8b8;
--surface-700: #d0d0d0;
--surface-800: #e7e7e7;
--surface-900: #ffffff;
--surface-ground:#121212;
--surface-section:#121212;
--surface-card:#1e1e1e;
--surface-overlay:#1e1e1e;
--surface-border:#383838;
--content-padding:1rem;
--inline-spacing:0.5rem;
--border-radius:3px;
--blue-50:#f4fafe;
--blue-100:#cae6fc;
--blue-200:#a0d2fa;
--blue-300:#75bef8;
--blue-400:#4baaf5;
--blue-500:#2196f3;
--blue-600:#1c80cf;
--blue-700:#1769aa;
--blue-800:#125386;
--blue-900:#0d3c61;
--green-50:#f6fbf6;
--green-100:#d4ecd5;
--green-200:#b2ddb4;
--green-300:#90cd93;
--green-400:#6ebe71;
--green-500:#4caf50;
--green-600:#419544;
--green-700:#357b38;
--green-800:#2a602c;
--green-900:#1e4620;
--yellow-50:#fffcf5;
--yellow-100:#fef0cd;
--yellow-200:#fde4a5;
--yellow-300:#fdd87d;
--yellow-400:#fccc55;
--yellow-500:#fbc02d;
--yellow-600:#d5a326;
--yellow-700:#b08620;
--yellow-800:#8a6a19;
--yellow-900:#644d12;
--cyan-50:#f2fcfd;
--cyan-100:#c2eff5;
--cyan-200:#91e2ed;
--cyan-300:#61d5e4;
--cyan-400:#30c9dc;
--cyan-500:#00bcd4;
--cyan-600:#00a0b4;
--cyan-700:#008494;
--cyan-800:#006775;
--cyan-900:#004b55;
--pink-50:#fef4f7;
--pink-100:#fac9da;
--pink-200:#f69ebc;
--pink-300:#f1749e;
--pink-400:#ed4981;
--pink-500:#e91e63;
--pink-600:#c61a54;
--pink-700:#a31545;
--pink-800:#801136;
--pink-900:#5d0c28;
--indigo-50:#f5f6fb;
--indigo-100:#d1d5ed;
--indigo-200:#acb4df;
--indigo-300:#8893d1;
--indigo-400:#6372c3;
--indigo-500:#3f51b5;
--indigo-600:#36459a;
--indigo-700:#2c397f;
--indigo-800:#232d64;
--indigo-900:#192048;
--teal-50:#f2faf9;
--teal-100:#c2e6e2;
--teal-200:#91d2cc;
--teal-300:#61beb5;
--teal-400:#30aa9f;
--teal-500:#009688;
--teal-600:#008074;
--teal-700:#00695f;
--teal-800:#00534b;
--teal-900:#003c36;
--orange-50:#fff8f2;
--orange-100:#fde0c2;
--orange-200:#fbc791;
--orange-300:#f9ae61;
--orange-400:#f79530;
--orange-500:#f57c00;
--orange-600:#d06900;
--orange-700:#ac5700;
--orange-800:#874400;
--orange-900:#623200;
--bluegray-50:#f7f9f9;
--bluegray-100:#d9e0e3;
--bluegray-200:#bbc7cd;
--bluegray-300:#9caeb7;
--bluegray-400:#7e96a1;
--bluegray-500:#607d8b;
--bluegray-600:#526a76;
--bluegray-700:#435861;
--bluegray-800:#35454c;
--bluegray-900:#263238;
--purple-50:#faf4fb;
--purple-100:#e7cbec;
--purple-200:#d4a2dd;
--purple-300:#c279ce;
--purple-400:#af50bf;
--purple-500:#9c27b0;
--purple-600:#852196;
--purple-700:#6d1b7b;
--purple-800:#561561;
--purple-900:#3e1046;
--gray-50:#e7e7e7;
--gray-100: #d0d0d0;
--gray-200: #b8b8b8;
--gray-300: #a0a0a0;
--gray-400: #898989;
--gray-500: #717171;
--gray-600: #595959;
--gray-700: #414141;
--gray-800: #2a2a2a;
--gray-900: #121212;
}
Loading

0 comments on commit 62ff074

Please sign in to comment.