From 5d52a5be2b25b7f81b303f2fc5c700cb4db7107b Mon Sep 17 00:00:00 2001 From: inikulin Date: Wed, 20 Aug 2014 12:32:18 +0400 Subject: [PATCH] .editorconfig for package.json, doctype.js was moved to tree_construction, because it's actually is not "common" in any way --- .editorconfig | 3 + lib/{common => tree_construction}/doctype.js | 0 lib/tree_construction/parser.js | 2 +- package.json | 82 ++++++++++---------- 4 files changed, 45 insertions(+), 42 deletions(-) rename lib/{common => tree_construction}/doctype.js (100%) diff --git a/.editorconfig b/.editorconfig index eefcf892..92ca23e9 100644 --- a/.editorconfig +++ b/.editorconfig @@ -10,3 +10,6 @@ insert_final_newline = true trim_trailing_whitespace = true indent_style = space indent_size = 4 + +[{package.json,.travis.yml}] +indent_size = 2 \ No newline at end of file diff --git a/lib/common/doctype.js b/lib/tree_construction/doctype.js similarity index 100% rename from lib/common/doctype.js rename to lib/tree_construction/doctype.js diff --git a/lib/tree_construction/parser.js b/lib/tree_construction/parser.js index f82f7060..d7c82826 100644 --- a/lib/tree_construction/parser.js +++ b/lib/tree_construction/parser.js @@ -1,8 +1,8 @@ var Tokenizer = require('../tokenization/tokenizer'), OpenElementStack = require('./open_element_stack'), FormattingElementList = require('./formatting_element_list'), + Doctype = require('./doctype'), DefaultTreeAdapter = require('../tree_adapters/default'), - Doctype = require('../common/doctype'), ForeignContent = require('../common/foreign_content'), UNICODE = require('../common/unicode'), HTML = require('../common/html'); diff --git a/package.json b/package.json index 0646afb0..528a3cdd 100644 --- a/package.json +++ b/package.json @@ -1,44 +1,44 @@ { - "name": "parse5", - "description": "Fast full-featured HTML parser for Node. Based on WHATWG HTML5 specification.", - "version": "1.1.2", - "author": "Ivan Nikulin (https://github.com/inikulin)", - "contributors": [ - "Sebastian Mayr (http://blog.smayr.name)", - "Sean Lang (http://slang.cx)" - ], - "devDependencies": { - "nodeunit": "0.8.0" - }, - "keywords": [ - "html", - "parser", - "html5", - "WHATWG", - "specification", - "fast", - "html parser", - "html5 parser", - "htmlparser", - "parse5", - "serializer", - "html serializer", - "htmlserializer", - "sax", - "simple api" - ], - "licenses": [ - { - "type": "MIT", - "url": "https://raw.github.com/inikulin/parse5/master/LICENSE" - } - ], - "main": "./index.js", - "repository": { - "type": "git", - "url": "git://github.com/inikulin/parse5.git" - }, - "scripts": { - "test": "node test/run_tests.js" + "name": "parse5", + "description": "Fast full-featured HTML parser for Node. Based on WHATWG HTML5 specification.", + "version": "1.1.2", + "author": "Ivan Nikulin (https://github.com/inikulin)", + "contributors": [ + "Sebastian Mayr (http://blog.smayr.name)", + "Sean Lang (http://slang.cx)" + ], + "devDependencies": { + "nodeunit": "0.8.0" + }, + "keywords": [ + "html", + "parser", + "html5", + "WHATWG", + "specification", + "fast", + "html parser", + "html5 parser", + "htmlparser", + "parse5", + "serializer", + "html serializer", + "htmlserializer", + "sax", + "simple api" + ], + "licenses": [ + { + "type": "MIT", + "url": "https://raw.github.com/inikulin/parse5/master/LICENSE" } + ], + "main": "./index.js", + "repository": { + "type": "git", + "url": "git://github.com/inikulin/parse5.git" + }, + "scripts": { + "test": "node test/run_tests.js" + } }