Skip to content

Commit

Permalink
grunt config to create zip file for registry
Browse files Browse the repository at this point in the history
  • Loading branch information
fdecampredon committed Dec 14, 2013
1 parent 8574d6c commit f7f395c
Show file tree
Hide file tree
Showing 6 changed files with 43 additions and 6 deletions.
21 changes: 21 additions & 0 deletions Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,27 @@ module.exports = function (grunt) {
test: {
src: ['src/test/**/*.ts']
}
},

compress: {
main: {
options: {
archive: 'brackets-typescript.zip',
mode: 'zip'
},
files: [
{
cwd: 'release-templates/',
src: '*',
dest: '/',
filter: 'isFile'
}, {
expand : true,
src: ['main.js', 'bin/**/*', 'third_party/**/*'],
dest : '/'
}
]
}
}
});

Expand Down
5 changes: 2 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,9 @@ Using brackets-typescript:
To benefits from all brackets-typescript features create a file '.brackets-typescript' in any folder under your project root folder (included).
This config file has to be valid json, here is a complete list of availabel options options :

`sources` `string[]`
An array of string describing in '[minimatch](https://github.com/isaacs/minimatch)' format the sources of your project
* `sources` *(`string[]`)* , **mandatory** : An array of string describing in '[minimatch](https://github.com/isaacs/minimatch)' format the sources of your project

* `compileOnSave` *(`boolean`, default `false`)*, **mandatory** : if true compile the project files when a file is saved (not implemented yet)
* `compileOnSave` *(`boolean`, default `false`)*: if true compile the project files when a file is saved (not implemented yet)

* `propagateEnumConstants` *(`boolean`, default `false`)* : see `propagateEnumConstants` options of the typescript compiler

Expand Down
4 changes: 2 additions & 2 deletions config.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"isDebug": false,
"logLevel": "error"
"isDebug": true,
"logLevel": "warning"
}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"version": "0.1.0",
"author": "François de Campredon <[email protected]> (http://francois.de-campredon.fr)",
"license": "Apache 2.0",
"keywords": ["typescript"]
"keywords": ["typescript"],
"engines": {
"brackets": ">=0.34.0"
},
Expand Down
4 changes: 4 additions & 0 deletions release-templates/config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"isDebug": false,
"logLevel": "error"
}
13 changes: 13 additions & 0 deletions release-templates/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"name": "fdecampredon.brackets-typescript",
"title": "Brackets TypeScript ",
"description": "Language Support for brackets in typescript",
"homepage": "https://github.com/fdecampredon/brackets-typescript",
"version": "0.1.0",
"author": "François de Campredon <[email protected]> (http://francois.de-campredon.fr)",
"license": "Apache 2.0",
"keywords": ["typescript"],
"engines": {
"brackets": ">=0.34.0"
}
}

0 comments on commit f7f395c

Please sign in to comment.