Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/git/git-scm.com.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJason Long <jlong@github.com>2018-01-16 17:30:54 +0300
committerJason Long <jlong@github.com>2018-01-16 17:30:54 +0300
commitd483f9b61e3442fb997268e5b5769cc9d95cc4ce (patch)
tree79ab079a14495f7c140c5d55fb6338b9ea917460
parent93aec6989e7070891ffcb641ab8a6773055a30ab (diff)
Remove sass compilation stuff for now
-rw-r--r--Gruntfile.js31
-rw-r--r--doc/css-stats.md24
-rw-r--r--package-lock.json36
-rw-r--r--package.json4
4 files changed, 54 insertions, 41 deletions
diff --git a/Gruntfile.js b/Gruntfile.js
index 8ff6748b..e6ff62fe 100644
--- a/Gruntfile.js
+++ b/Gruntfile.js
@@ -4,20 +4,6 @@ module.exports = function(grunt) {
// Project configuration.
pkg: grunt.file.readJSON('package.json'),
- // Compiles our Sass
- sass: {
- options: {
- precision: 6,
- sourceComments: false,
- outputStyle: 'compressed'
- },
- dist: {
- files: {
- 'tmp/css/git-scm.css': 'app/assets/stylesheets/git-scm.scss'
- }
- }
- },
-
// Handle vendor prefixing
autoprefixer: {
options: {
@@ -56,23 +42,16 @@ module.exports = function(grunt) {
],
},
- // Build tooling
-
- watch: {
- sass: {
- files: 'scss/**/*.scss',
- tasks: ['sass', 'autoprefixer', 'parker']
- }
- },
+ stylelint: {
+ all: ['app/assets/**/*.scss']
+ }
});
// Load dependencies
grunt.loadNpmTasks('grunt-autoprefixer');
- grunt.loadNpmTasks('grunt-build-control');
- grunt.loadNpmTasks('grunt-contrib-watch');
grunt.loadNpmTasks('grunt-parker');
- grunt.loadNpmTasks('grunt-sass');
+ grunt.loadNpmTasks('grunt-stylelint');
// Generate and format the CSS
- grunt.registerTask('default', ['sass', 'autoprefixer', 'parker']);
+ grunt.registerTask('default', ['stylelint', 'autoprefixer', 'parker']);
};
diff --git a/doc/css-stats.md b/doc/css-stats.md
index 12c6dc54..9bf12f9e 100644
--- a/doc/css-stats.md
+++ b/doc/css-stats.md
@@ -7,17 +7,17 @@
### tmp/css/git-scm.css
- **Total Stylesheets:** 1
-- **Total Stylesheet Size:** 82330
+- **Total Stylesheet Size:** 76185
- **Total Media Queries:** 5
-- **Total Rules:** 660
-- **Selectors Per Rule:** 1.853030303030303
-- **Total Selectors:** 1223
-- **Identifiers Per Selector:** 3.659852820932134
-- **Specificity Per Selector:** 43.937040065412916
-- **Top Selector Specificity:** 310
-- **Top Selector Specificity Selector:** #flippy-book #book-cover.close #book-cover-outside
-- **Total Id Selectors:** 75
-- **Total Identifiers:** 4476
-- **Total Declarations:** 1679
+- **Total Rules:** 651
+- **Selectors Per Rule:** 1.8556067588325653
+- **Total Selectors:** 1208
+- **Identifiers Per Selector:** 3.439569536423841
+- **Specificity Per Selector:** 22.730960264900663
+- **Top Selector Specificity:** 61
+- **Top Selector Specificity Selector:** .edition2 pre[data-code-language="console"] .man-page .listingblock .go.content
+- **Total Id Selectors:** 0
+- **Total Identifiers:** 4142
+- **Total Declarations:** 1518
- **Total Unique Colors:** 106
-- **Total Important Keywords:** 36
+- **Total Important Keywords:** 33
diff --git a/package-lock.json b/package-lock.json
index 4653395e..9b40bd9e 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -1820,6 +1820,42 @@
}
}
},
+ "grunt-stylelint": {
+ "version": "0.9.0",
+ "resolved": "https://registry.npmjs.org/grunt-stylelint/-/grunt-stylelint-0.9.0.tgz",
+ "integrity": "sha512-+eC6pRdt+6ZupNFbDYVBB7DtEdohjTNf3BRAXhCqMk2eqEYg/q+Bl3r6lFC6qGRNxmpfHR+qWnzb+KKCqKalaw==",
+ "dev": true,
+ "requires": {
+ "chalk": "1.1.3"
+ },
+ "dependencies": {
+ "ansi-styles": {
+ "version": "2.2.1",
+ "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-2.2.1.tgz",
+ "integrity": "sha1-tDLdM1i2NM914eRmQ2gkBTPB3b4=",
+ "dev": true
+ },
+ "chalk": {
+ "version": "1.1.3",
+ "resolved": "https://registry.npmjs.org/chalk/-/chalk-1.1.3.tgz",
+ "integrity": "sha1-qBFcVeSnAv5NFQq9OHKCKn4J/Jg=",
+ "dev": true,
+ "requires": {
+ "ansi-styles": "2.2.1",
+ "escape-string-regexp": "1.0.5",
+ "has-ansi": "2.0.0",
+ "strip-ansi": "3.0.1",
+ "supports-color": "2.0.0"
+ }
+ },
+ "supports-color": {
+ "version": "2.0.0",
+ "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-2.0.0.tgz",
+ "integrity": "sha1-U10EXOa2Nj+kARcIRimZXp3zJMc=",
+ "dev": true
+ }
+ }
+ },
"har-schema": {
"version": "2.0.0",
"resolved": "https://registry.npmjs.org/har-schema/-/har-schema-2.0.0.tgz",
diff --git a/package.json b/package.json
index aaaa1d95..cfcea219 100644
--- a/package.json
+++ b/package.json
@@ -6,10 +6,8 @@
"devDependencies": {
"grunt": "~0.4.5",
"grunt-autoprefixer": "~2.2.0",
- "grunt-build-control": "~0.2.0",
"grunt-parker": "~0.1.0",
- "grunt-sass": "~0.18.0",
- "grunt-contrib-watch": "~0.6.1"
+ "grunt-stylelint": "^0.9.0"
},
"dependencies": {
"stylelint": "7.13.0",