1
0
mirror of https://github.com/nostalgic-css/NES.css.git synced 2025-08-01 12:10:10 +02:00

build: Make build versions dynamic

Hehehehe, this is really cool. I've removed the hardcoded version number from `nes.scss` and
replaced it with a custom function. This function does all sorts of cool stuff.

1. **Injects the framework version from `package.json`
  This prevents us from having to inject the version number manually.
2. **Adds build info…**
  The branch that the CSS was built from, when it was built, what version of Node was used… All of the useful information that we could possibly provide. If it’s built on CircleCI, it even includes the build number.
3. **…but not too much build info**
  If the build is running against the `master` branch, we only inject the framework version. No need to bloat production builds with all the other junk. 😁
This commit is contained in:
Trezy
2018-12-16 21:12:04 -06:00
parent 0e66d0b81e
commit a34cac4aca
3 changed files with 33 additions and 4 deletions

View File

@@ -1,8 +1,8 @@
@charset "utf-8";
/*!
* NES.css v0.0.2(alpha)
*/
/*****************************************************************************\
#{version()}
\*****************************************************************************/
@import "base/_index.scss";
@import "utilities/_index.scss";