Skip to content

Commit 0915266

Browse files
authored
Merge pull request #1495 from danieltigse/master
automation with grunt
2 parents 380e038 + 9bfe7e4 commit 0915266

File tree

3 files changed

+247
-11
lines changed

3 files changed

+247
-11
lines changed

electron_app/Gruntfile.js

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
module.exports = function(grunt) {
2+
3+
grunt.initConfig({
4+
exec: {
5+
install_dependencies: {
6+
command: 'yarn install'
7+
},
8+
compile_alice: {
9+
command: 'node-gyp configure build',
10+
options: {
11+
cwd: '../signal_interface'
12+
}
13+
},
14+
clean_old_build: {
15+
command: 'yarn clear-build'
16+
},
17+
package_projects: {
18+
command: 'yarn package'
19+
},
20+
create_build: {
21+
command: 'yarn release'
22+
}
23+
}
24+
});
25+
26+
grunt.loadNpmTasks('grunt-exec');
27+
grunt.registerTask('default', ['exec']);
28+
29+
};

electron_app/package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,9 @@
147147
"@criptext/criptext-js-tools": "^0.5.2",
148148
"electron": "8.0.0",
149149
"electron-builder": "22.4.0",
150-
"electron-notarize": "^0.1.1"
150+
"electron-notarize": "^0.1.1",
151+
"grunt": "^1.2.1",
152+
"grunt-exec": "^3.0.0"
151153
},
152154
"dependencies": {
153155
"@criptext/api": "^0.17.1",

0 commit comments

Comments
 (0)