+14
-6
@@ -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']); | ||
| }; |
+8
-1
| { | ||
| "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", |
+2
-0
@@ -6,2 +6,4 @@ css-layout [](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 @@ |
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
Found 1 instance in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
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
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
Found 1 instance in 1 package
1263466
0.04%14720
0.04%1
-50%141
1.44%18
5.88%