Skip to content

Commit

Permalink
prepare initial release
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexHaxe committed Aug 20, 2018
1 parent 0f40857 commit 930a830
Show file tree
Hide file tree
Showing 3 changed files with 78 additions and 2 deletions.
6 changes: 4 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
## version 1.0.0 (2018-08-xx)
## dev branch / next version (1.x.x)

- initial release
## version 1.0.0 (2018-08-20)

- initial release
45 changes: 45 additions & 0 deletions gruntfile.js
Original file line number Diff line number Diff line change
@@ -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"
}
};
}
29 changes: 29 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -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": "[email protected]"
},
"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"
}
}

0 comments on commit 930a830

Please sign in to comment.