fixed conflicts
This commit is contained in:
2
front-ui/.gitignore
vendored
2
front-ui/.gitignore
vendored
@@ -18,6 +18,8 @@ coverage
|
||||
|
||||
# Compiled binary addons (http://nodejs.org/api/addons.html)
|
||||
build/Release
|
||||
build/**/*.js
|
||||
build/**/*.css
|
||||
build/*.js
|
||||
build/*.css
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
module.exports = function(grunt) {
|
||||
grunt.initConfig({
|
||||
browserify: {
|
||||
basic: {
|
||||
dev: {
|
||||
src: ['app/ribica.js'],
|
||||
dest: 'build/ribica.bundle.js',
|
||||
options: {
|
||||
@@ -12,7 +12,16 @@ module.exports = function(grunt) {
|
||||
},
|
||||
watch: true
|
||||
}
|
||||
|
||||
},
|
||||
prod: {
|
||||
src: ['app/ribica.js'],
|
||||
dest: 'build/ribica.bundle.js',
|
||||
options: {
|
||||
transform: ['reactify'],
|
||||
browserifyOptions: {
|
||||
standalone: 'RIBICA'
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
watch: {
|
||||
@@ -39,7 +48,7 @@ module.exports = function(grunt) {
|
||||
uglify: {
|
||||
my_target: {
|
||||
files: {
|
||||
'build/ribica.min.js': ['build/ribica.js']
|
||||
'build/ribica.js': ['build/ribica.js']
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -47,7 +56,8 @@ module.exports = function(grunt) {
|
||||
dev: {
|
||||
options: {
|
||||
variables: {
|
||||
apiEndpoint: 'http://192.168.1.35:4567'
|
||||
apiEndpoint: 'http://localhost:4567'
|
||||
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -103,7 +113,7 @@ module.exports = function(grunt) {
|
||||
grunt.registerTask('default', []);
|
||||
grunt.registerTask('config-dev', ['config:dev', 'replace']);
|
||||
grunt.registerTask('config-prod', ['config:prod', 'replace']);
|
||||
grunt.registerTask('dev', ['browserify', 'config-dev', 'concat:css', 'concat:js', 'connect:server:keepalive']);
|
||||
grunt.registerTask('build', ['browserify', 'config-prod', 'concat:css', 'concat:js']);
|
||||
grunt.registerTask('dev', ['browserify:dev', 'config-dev', 'concat:css', 'concat:js', 'connect:server:keepalive']);
|
||||
grunt.registerTask('build', ['browserify:prod', 'config-prod', 'concat:css', 'concat:js', 'uglify']);
|
||||
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user