Comparing version 0.0.6 to 1.0.0
@@ -152,3 +152,8 @@ 'use strict'; | ||
} | ||
} | ||
}, | ||
watch: { | ||
files: ['src/Layout.js'], | ||
tasks: ['ci'], | ||
}, | ||
}); | ||
@@ -169,18 +174,21 @@ | ||
// 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']); | ||
}; |
{ | ||
"name": "css-layout", | ||
"version": "0.0.6", | ||
"version": "1.0.0", | ||
"description": "Reimplementation of CSS layout using pure JavaScript", | ||
"main": "dist/css-layout.js", | ||
"scripts": { | ||
"watch": "grunt watch", | ||
"test": "grunt ci", | ||
@@ -14,2 +15,7 @@ "postversion": "git push --tags upstream HEAD:master" | ||
}, | ||
"keywords": [ | ||
"css", | ||
"flexbox", | ||
"layout" | ||
], | ||
"author": "", | ||
@@ -28,2 +34,3 @@ "license": "BSD", | ||
"grunt-contrib-uglify": "^0.9.1", | ||
"grunt-contrib-watch": "^0.6.1", | ||
"grunt-eslint": "^17.1.0", | ||
@@ -30,0 +37,0 @@ "grunt-execute": "^0.2.2", |
@@ -6,2 +6,4 @@ css-layout [![Build Status](https://travis-ci.org/facebook/css-layout.svg?branch=master)](https://travis-ci.org/facebook/css-layout) | ||
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. | ||
@@ -8,0 +10,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
1263466
5159
0
141
18