Sfoglia il codice sorgente

Comment out sprity and leave a not in README.md.

Paulo Reis 10 anni fa
parent
commit
040739ef7f
2 ha cambiato i file con 17 aggiunte e 10 eliminazioni
  1. 9 10
      services/web/Gruntfile.coffee
  2. 8 0
      services/web/README.md

+ 9 - 10
services/web/Gruntfile.coffee

@@ -19,7 +19,7 @@ module.exports = (grunt) ->
 	grunt.loadNpmTasks 'grunt-exec'
 	grunt.loadNpmTasks 'grunt-contrib-cssmin'
 	# grunt.loadNpmTasks 'grunt-contrib-imagemin'
-	grunt.loadNpmTasks 'grunt-sprity'
+	# grunt.loadNpmTasks 'grunt-sprity'
 
 	config =
 
@@ -60,15 +60,14 @@ module.exports = (grunt) ->
 		# 		interlaced:false
 		# 		optimizationLevel: 7
 
-		sprity:
-
-			sprite:
-				options:
-					cssPath:"/img/"
-					'style': '../../public/stylesheets/app/sprites.less'
-					margin: 0
-				src: ['./public/img/flags/24/*.png']
-				dest: './public/img/sprite',
+		# sprity:
+		# 	sprite:
+		# 		options:
+		# 			cssPath:"/img/"
+		# 			'style': '../../public/stylesheets/app/sprites.less'
+		# 			margin: 0
+		# 		src: ['./public/img/flags/24/*.png']
+		# 		dest: './public/img/sprite'
 
 
 		coffee:

+ 8 - 0
services/web/README.md

@@ -6,9 +6,17 @@ web-sharelatex is the front-end web service of the open-source web-based collabo
 It serves all the HTML pages, CSS and javascript to the client. web-sharelatex also contains 
 a lot of logic around creating and editing projects, and account management.
 
+
 The rest of the ShareLaTeX stack, along with information about contributing can be found in the 
 [sharelatex/sharelatex](https://github.com/sharelatex/sharelatex) repository.
 
+Build process
+----------------
+
+web-sharelatex uses [Grunt](http://gruntjs.com/) to build its front-end related assets.
+
+Image processing tasks are commented out in the gruntfile and the needed packages aren't presently in the project's `package.json`. If the images need to be processed again (minified and sprited), start by fetching the packages (`npm install grunt-contrib-imagemin grunt-sprity`), then *decomment* the tasks in `Gruntfile.coffee`. After this, the tasks can be called (explicitly, via `grunt imagemin` and `grunt sprity`).
+
 Unit test status
 ----------------