diff --git a/CHANGELOG.md b/CHANGELOG.md index b056457e..75241cda 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,5 @@ -## version 1.0.0 (2018-08-xx) +## dev branch / next version (1.x.x) -- initial release \ No newline at end of file +## version 1.0.0 (2018-08-20) + +- initial release diff --git a/gruntfile.js b/gruntfile.js new file mode 100644 index 00000000..14ebf0cb --- /dev/null +++ b/gruntfile.js @@ -0,0 +1,45 @@ +module.exports = function(grunt) { + grunt.initConfig({ + pkg: grunt.file.readJSON("package.json"), + shell: { + libs: { + command: "haxelib install haxeparser && " + + "haxelib install hxparse && " + + "haxelib install hxargs && " + + "haxelib install compiletime && " + + "haxelib install mcover && " + + "haxelib install munit && " + + "haxelib install tokentree && " + + "haxelib install json2object " + } + }, + haxe: haxeOptions(), + zip: { + release: { + src: [ + "src/**", + "run.n", "run.js", + "resources/formatter-schema.json", + "haxelib.json", "README.md", "CHANGELOG.md", "LICENSE" + ], + dest: "formatter.zip", + compression: "DEFLATE" + } + } + }); + grunt.loadNpmTasks("grunt-haxe"); + grunt.loadNpmTasks("grunt-zip"); + grunt.loadNpmTasks("grunt-shell"); + grunt.registerTask("default", ["shell", "haxe:build", "haxe:test"]); +} + +function haxeOptions() { + return { + build: { + hxml: "buildAll.hxml" + }, + test: { + hxml: "buildTest.hxml" + } + }; +} diff --git a/package.json b/package.json new file mode 100644 index 00000000..34ab31d6 --- /dev/null +++ b/package.json @@ -0,0 +1,29 @@ +{ + "name": "haxe-formatter", + "version": "1.0.0", + "description": "A code formatter for Haxe", + "repository": { + "type": "git", + "url": "https://github.com/HaxeCheckstyle/haxe-formatter" + }, + "keywords": [ + "haxe", + "formatter" + ], + "author": { + "name": "Alexander Blum", + "email": "Alexander.Blum@gmail.com" + }, + "dependencies": { + "grunt": "latest", + "grunt-cli": "latest" + }, + "bugs": "https://github.com/HaxeCheckstyle/haxe-formatter/issues", + "license": "MIT", + "devDependencies": { + "grunt": "^0.4.5", + "grunt-haxe": "^0.1.12", + "grunt-shell": "^1.1.1", + "grunt-zip": "^0.16.0" + } +}