From cd30857ba4dd12449286be727aa9de1fde2a8f02 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rafa=C5=82=20Filipek?= Date: Mon, 8 Dec 2014 10:45:30 +0100 Subject: [PATCH 1/5] Convention --- License.txt => LICENSE | 0 Readme.md => README.md | 0 2 files changed, 0 insertions(+), 0 deletions(-) rename License.txt => LICENSE (100%) rename Readme.md => README.md (100%) diff --git a/License.txt b/LICENSE similarity index 100% rename from License.txt rename to LICENSE diff --git a/Readme.md b/README.md similarity index 100% rename from Readme.md rename to README.md From 608c498f95760ba24b7484045d74ab13f676c4d3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rafa=C5=82=20Filipek?= Date: Mon, 8 Dec 2014 10:45:52 +0100 Subject: [PATCH 2/5] Missing bower.json --- bower.json | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 bower.json diff --git a/bower.json b/bower.json new file mode 100644 index 0000000..2f23d4f --- /dev/null +++ b/bower.json @@ -0,0 +1,25 @@ +{ + "name": "Squire", + "version": "0.0.1", + "homepage": "https://github.com/neilj/Squire", + "authors": [ + "Neil Jenkins " + ], + "description": "Squire is an HTML5 rich text editor, which provides powerful cross-browser normalisation, whilst being supremely lightweight and flexible.", + "main": "build/squire.js", + "keywords": [ + "wysiwyg", + "editor", + "text", + "html", + "squire" + ], + "license": "MIT", + "ignore": [ + "**/.*", + "node_modules", + "bower_components", + "test", + "tests" + ] +} From 9107a34ee5228d88e6521c0ea7466d892145491c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rafa=C5=82=20Filipek?= Date: Mon, 8 Dec 2014 10:46:01 +0100 Subject: [PATCH 3/5] Missing package.json --- package.json | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 package.json diff --git a/package.json b/package.json new file mode 100644 index 0000000..85d5259 --- /dev/null +++ b/package.json @@ -0,0 +1,29 @@ +{ + "name": "Squire", + "version": "0.0.1", + "description": "Squire is an HTML5 rich text editor, which provides powerful cross-browser normalisation, whilst being supremely lightweight and flexible.", + "main": "build/squire.js", + "scripts": { + "test": "echo \"Error: no test specified\" && exit 1" + }, + "repository": { + "type": "git", + "url": "https://github.com/neilj/Squire.git" + }, + "keywords": [ + "wysiwyg", + "editor", + "text", + "html", + "squire" + ], + "author": "Neil Jenkins", + "license": "MIT", + "bugs": { + "url": "https://github.com/neilj/Squire/issues" + }, + "homepage": "https://github.com/neilj/Squire", + "devDependencies": { + "uglify-js": "^2.4.15" + } +} From 65e2f62073bf3e9d6867f92699ef6e9bef1ee031 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rafa=C5=82=20Filipek?= Date: Mon, 8 Dec 2014 10:46:15 +0100 Subject: [PATCH 4/5] Default .gitignore --- .gitignore | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 .gitignore diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..a088b6f --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +node_modules +bower_components From 0394b4c3d87add7073006c90f10d0e7e5c93eb57 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rafa=C5=82=20Filipek?= Date: Mon, 8 Dec 2014 10:46:35 +0100 Subject: [PATCH 5/5] Updated Makefile --- Makefile | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 7218dd2..b3991f2 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,9 @@ .PHONY: all build clean -all: build +all: install build + +intall: + npm install clean: rm -rf build @@ -12,7 +15,7 @@ build/squire-raw.js: source/intro.js source/Constants.js source/TreeWalker.js so cat $^ >$@ build/squire.js: build/squire-raw.js - uglifyjs $^ -c -m -o $@ + ./node_modules/uglify-js/bin/uglifyjs $^ -c -m -o $@ build/document.html: source/document.html mkdir -p $(@D)