Skip to content

Commit

Permalink
v.1.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
andrearufo committed Mar 18, 2019
1 parent 420d463 commit 7b44993
Show file tree
Hide file tree
Showing 5 changed files with 74 additions and 13 deletions.
6 changes: 6 additions & 0 deletions css/nova.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion css/nova.css.map

Large diffs are not rendered by default.

27 changes: 18 additions & 9 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,23 @@ var paths = {
}
};

var gulp = require('gulp'),
sass = require('gulp-sass'),
size = require('gulp-size'),
postcss = require('gulp-postcss'),
concat = require('gulp-concat'),
autoprefixer = require('autoprefixer'),
sourcemaps = require('gulp-sourcemaps'),
cssnano = require('cssnano'),
log = require('fancy-log');
const pkg = require("./package.json");
const comment = `/**
* Nova.css v${pkg.version}
* By Andrea Rufo, www.andrearufo.com
* https://andrearufo.github.io/nova.css/
*/\r\n`;

var gulp = require('gulp');
var sass = require('gulp-sass');
var size = require('gulp-size');
var postcss = require('gulp-postcss');
var concat = require('gulp-concat');
var autoprefixer = require('autoprefixer');
var sourcemaps = require('gulp-sourcemaps');
var cssnano = require('cssnano');
var header = require('gulp-header');
var log = require('fancy-log');

function style() {
log.info('Starting style!');
Expand All @@ -23,6 +31,7 @@ function style() {
.pipe(sourcemaps.init())
.pipe(sass().on('error', sass.logError))
.pipe(postcss([autoprefixer()]))
.pipe(header(comment + "\r\n"))
.pipe(sourcemaps.write('.'))
.pipe(size())
.pipe(gulp.dest(paths.styles.dest))
Expand Down
43 changes: 43 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 6 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,11 @@
"name": "nova.css",
"version": "1.0.0",
"description": "Super simple and light CSS framework",
"main": "index.js",
"main": "./css/nova.css",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
"test": "echo \"Error: no test specified\" && exit 1",
"build": "gulp style",
"watch": "gulp"
},
"repository": {
"type": "git",
Expand All @@ -23,13 +25,14 @@
"bugs": {
"url": "https://github.com/andrearufo/nova.css/issues"
},
"homepage": "https://github.com/andrearufo/nova.css#readme",
"homepage": "https://andrearufo.github.io/nova.css",
"devDependencies": {
"autoprefixer": "^9.5.0",
"cssnano": "^4.1.10",
"fancy-log": "^1.3.3",
"gulp": "^4.0.0",
"gulp-concat": "^2.6.1",
"gulp-header": "^2.0.7",
"gulp-postcss": "^8.0.0",
"gulp-sass": "^4.0.2",
"gulp-size": "^3.0.0",
Expand Down

0 comments on commit 7b44993

Please sign in to comment.