From 9d1abd8d51d853268dd8b5e035305b6e93d3034d Mon Sep 17 00:00:00 2001 From: Colin Eberhardt Date: Mon, 31 Aug 2015 22:05:14 +0100 Subject: [PATCH 1/4] added keywords --- package.json | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/package.json b/package.json index c558a813..d07511f2 100644 --- a/package.json +++ b/package.json @@ -12,6 +12,10 @@ "type": "git", "url": "https://github.com/facebook/css-layout.git" }, + "keywords": [ + "css", + "flexbox" + ], "author": "", "license": "BSD", "bugs": { -- 2.50.1.windows.1 From 5dd14821487d89bd509b22017ba857b997a4fa3e Mon Sep 17 00:00:00 2001 From: Colin Eberhardt Date: Mon, 31 Aug 2015 22:09:30 +0100 Subject: [PATCH 2/4] Minor build change removed duplication of the step that creates the 'dist' folder --- Gruntfile.js | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/Gruntfile.js b/Gruntfile.js index 14478afd..00aafa56 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -170,20 +170,23 @@ module.exports = function(grunt) { grunt.registerTask('test-javascript', ['eslint', 'karma']); // Packages the JavaScript as a single UMD module and minifies - grunt.registerTask('package-javascript', ['mkdir:dist', 'includereplace', 'uglify']); + grunt.registerTask('package-javascript', ['includereplace', 'uglify']); // Packages the Java as a JAR - grunt.registerTask('package-java', ['mkdir:dist', 'shell:javaPackage']); + grunt.registerTask('package-java', ['shell:javaPackage']); // Packages the C code as a single header - grunt.registerTask('package-c', ['mkdir:dist', 'concat']); + grunt.registerTask('package-c', ['concat']); + + // package all languages + grunt.registerTask('package-all', ['package-javascript', 'package-java', 'package-c']); // Default build, performs the full works! - grunt.registerTask('build', ['test-javascript', 'transpile', 'clean:dist', 'package-javascript', 'package-java', 'package-c']); + grunt.registerTask('build', ['test-javascript', 'transpile', 'clean:dist', 'mkdir:dist', 'package-all']); // The JavaScript unit tests require Chrome (they need a faithful flexbox implementation // to test against), so under CI this step is skipped. - grunt.registerTask('ci', ['eslint', 'transpile', 'clean:dist', 'package-javascript', 'package-java', 'package-c']); + grunt.registerTask('ci', ['eslint', 'transpile', 'clean:dist', 'mkdir:dist', 'package-all']); grunt.registerTask('default', ['build']); }; -- 2.50.1.windows.1 From baf34484fe582e1d05788703b89fad8788287fcb Mon Sep 17 00:00:00 2001 From: Colin Eberhardt Date: Mon, 31 Aug 2015 22:13:44 +0100 Subject: [PATCH 3/4] Updated repo to include cdnjs / npm instructions --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index 3ce9f008..d604f1d0 100644 --- a/README.md +++ b/README.md @@ -3,6 +3,8 @@ css-layout [![Build Status](https://travis-ci.org/facebook/css-layout.svg?branch This project implements a subset of CSS including flexbox and the box model using pure JavaScript, then transpiled to C and Java. The goal is to have a small standalone library to layout elements. It doesn't rely on the DOM at all. +The Java, C and JavaScript version of the code is available via [npm](https://www.npmjs.com/package/css-layout) or directly from the `dist` folder of this repo. The JavaScript version is also available via [cdnjs](https://cdnjs.com/libraries/css-layout). + In order to make sure that the code is correct, it is developed in JavaScript using TDD where each commit adds a unit test and the associated code to make it work. All the unit tests are tested against Chrome's implementation of CSS. The JavaScript version has been implemented in a way that can be easily transpiled to C and Java via regexes. The layout function doesn't do any allocation nor uses any of the dynamic aspect of JavaScript. The tests are also transpiled to make sure that the implementations are correct everywhere. -- 2.50.1.windows.1 From ecb8f8e6100a7ed00f5a3cb411499270ac95f54e Mon Sep 17 00:00:00 2001 From: Colin Eberhardt Date: Tue, 1 Sep 2015 06:10:34 +0100 Subject: [PATCH 4/4] Added layout keyword --- package.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index d07511f2..9283a05d 100644 --- a/package.json +++ b/package.json @@ -14,7 +14,8 @@ }, "keywords": [ "css", - "flexbox" + "flexbox", + "layout" ], "author": "", "license": "BSD", -- 2.50.1.windows.1