wide / forge Goto Github PK
View Code? Open in Web Editor NEWZero-based configuration builder for frontend integration projects.
License: MIT License
Zero-based configuration builder for frontend integration projects.
License: MIT License
loadRC()
throws an error if no package.json
exists in the projet.
Should silently fail and return and empty object insteand.
It may be useful to create more than one output group.
Here's an example:
module.exports = {
sass: {
observe: '**/*.{scss,sass}',
entries: [
// group A
// -> desired output: assets/css/FILENAME.css
'assets/{scss,sass}/*.{scss,sass}',
// group B
// -> desired output: assets/css/components/FILENAME.css
'views/blocks/**/*.{scss,sass}',
'views/includes/**/*.{scss,sass}',
// group C
// -> desired output: assets/css/pages/FILENAME.css
'views/pages/**/*.{scss,sass}',
],
output: 'assets/css'
}
}
For the sass configuration, it does not seem possible to ignore the files in the entry point.
Here's an example:
module.exports = {
sass: {
observe: '**/*.{scss,sass}',
entries: [
'assets/{scss,sass}/*.{scss,sass}',
'!assets/{scss,sass}/core.{scss,sass}' // <-- this line not working :(
],
output: 'assets/css'
}
}
Hello,
We currently have a strange behavior with sass compilation using forge.
Here's a simplified concrete example:
@use '~/core' as *;
...
@use '@/organisms/page/header';
...
@include header.init;
@use '@/atoms/ui/link/link' as *;
%link {
text-decoration: underline
}
%link-test {
@extend %link;
height: auto;
}
@mixin init() {
.link-test {
@extend %link-test;
}
}
...
/* KO */
.link-test {
height: auto;
}
...
/* OK */
.link-test {
text-decoration: underline
}
...
It only happens when we use inheritance in sass files, otherwise compilation isn't creating other duplicate selectors.
We've disabled any post process to check but it also failed.
It was also tested with the latest versions of forge & modulus.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.