-
Notifications
You must be signed in to change notification settings - Fork 292
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* migrated grunt/tasks * migrated grunt/tasks * clean up * linting * more linting * proper linting * Fix scripts grunt task * code review
- Loading branch information
1 parent
cc76fe0
commit 5a2e36d
Showing
42 changed files
with
1,313 additions
and
1,123 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
/* | ||
* Wire | ||
* Copyright (C) 2017 Wire Swiss GmbH | ||
* | ||
* This program is free software: you can redistribute it and/or modify | ||
* it under the terms of the GNU General Public License as published by | ||
* the Free Software Foundation, either version 3 of the License, or | ||
* (at your option) any later version. | ||
* | ||
* This program is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
* GNU General Public License for more details. | ||
* | ||
* You should have received a copy of the GNU General Public License | ||
* along with this program. If not, see http://www.gnu.org/licenses/. | ||
* | ||
*/ | ||
|
||
'use strict'; | ||
|
||
// https://github.com/MathieuLoutre/grunt-aws-s3 | ||
|
||
module.exports = { | ||
default: { | ||
files: [{ | ||
dest: '/<%= grunt.config("aws.deploy.options.version") %>.zip', | ||
src: '<%= dir.aws.s3 %>/ebs.zip', | ||
stream: true, | ||
}], | ||
options: { | ||
bucket: 'wire-webapp', | ||
}, | ||
}, | ||
options: { | ||
accessKeyId: process.env.AWS_ACCESS_KEY_ID, | ||
region: 'eu-west-1', | ||
secretAccessKey: process.env.AWS_SECRET_ACCESS_KEY, | ||
}, | ||
}; |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
/* | ||
* Wire | ||
* Copyright (C) 2017 Wire Swiss GmbH | ||
* | ||
* This program is free software: you can redistribute it and/or modify | ||
* it under the terms of the GNU General Public License as published by | ||
* the Free Software Foundation, either version 3 of the License, or | ||
* (at your option) any later version. | ||
* | ||
* This program is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
* GNU General Public License for more details. | ||
* | ||
* You should have received a copy of the GNU General Public License | ||
* along with this program. If not, see http://www.gnu.org/licenses/. | ||
* | ||
*/ | ||
|
||
'use strict'; | ||
|
||
// https://github.com/yatskevich/grunt-bower-task | ||
|
||
const path = require('path'); | ||
|
||
module.exports = { | ||
install: { | ||
options: { | ||
layout(type, component) { | ||
if (['js', '__untyped__'].includes(type)) { | ||
return 'js'; | ||
} | ||
return path.join(type, component); | ||
}, | ||
targetDir: '<%= dir.app.ext %>', | ||
verbose: true, | ||
}, | ||
}, | ||
}; |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
/* | ||
* Wire | ||
* Copyright (C) 2017 Wire Swiss GmbH | ||
* | ||
* This program is free software: you can redistribute it and/or modify | ||
* it under the terms of the GNU General Public License as published by | ||
* the Free Software Foundation, either version 3 of the License, or | ||
* (at your option) any later version. | ||
* | ||
* This program is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
* GNU General Public License for more details. | ||
* | ||
* You should have received a copy of the GNU General Public License | ||
* along with this program. If not, see http://www.gnu.org/licenses/. | ||
* | ||
*/ | ||
|
||
'use strict'; | ||
|
||
// https://github.com/gruntjs/grunt-contrib-clean | ||
|
||
|
||
/* eslint sort-keys: "off"*/ | ||
|
||
module.exports = { | ||
//############################################################################## | ||
// Local/Test deployment related | ||
//############################################################################## | ||
dist: '<%= dir.dist %>', | ||
dist_app: '<%= dir.dist %>/app', | ||
docs: '<%= dir.docs %>', | ||
docs_coverage: '<%= dir.docs.coverage %>', | ||
ext: '<%= dir.app.ext %>/*', | ||
temp: '<%= dir.temp %>', | ||
|
||
//############################################################################## | ||
// Production/Staging/Edge deployment related | ||
//############################################################################## | ||
deploy: '<%= dir.deploy %>', | ||
deploy_app: '<%= dir.deploy %>/app', | ||
deploy_script: [ | ||
'<%= dir.deploy %>/ext/js', | ||
'<%= dir.deploy %>/script', | ||
], | ||
prod: [ | ||
'<%= dir.deploy %>/audio/buzzer', | ||
'<%= dir.deploy %>/audio/digits', | ||
'<%= dir.deploy %>/image/debug', | ||
'<%= dir.deploy %>/min/*.map', | ||
], | ||
|
||
//############################################################################## | ||
// Amazon Web Services related | ||
//############################################################################## | ||
aws: '<%= dir.aws.static %>', | ||
aws_app: '<%= dir.aws.templates %>/app', | ||
aws_s3: '<%= dir.aws.s3 %>', | ||
}; |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
/* | ||
* Wire | ||
* Copyright (C) 2017 Wire Swiss GmbH | ||
* | ||
* This program is free software: you can redistribute it and/or modify | ||
* it under the terms of the GNU General Public License as published by | ||
* the Free Software Foundation, either version 3 of the License, or | ||
* (at your option) any later version. | ||
* | ||
* This program is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
* GNU General Public License for more details. | ||
* | ||
* You should have received a copy of the GNU General Public License | ||
* along with this program. If not, see http://www.gnu.org/licenses/. | ||
* | ||
*/ | ||
|
||
'use strict'; | ||
|
||
// https://github.com/gruntjs/grunt-contrib-coffee | ||
|
||
module.exports = { | ||
//############################################################################## | ||
// Production/Staging/Edge deployment related | ||
//############################################################################## | ||
deploy: { | ||
cwd: '<%= dir.app_ %>', | ||
dest: '<%= dir.deploy %>', | ||
expand: true, | ||
ext: '.js', | ||
src: '**/*.coffee', | ||
}, | ||
|
||
//############################################################################## | ||
// Local/Test deployment related | ||
//############################################################################## | ||
dist: { | ||
cwd: '<%= dir.app_ %>', | ||
dest: '<%= dir.dist %>', | ||
expand: true, | ||
ext: '.js', | ||
src: '**/*.coffee', | ||
}, | ||
}; |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.