File tree 5 files changed +10
-11
lines changed
5 files changed +10
-11
lines changed Original file line number Diff line number Diff line change @@ -6,12 +6,12 @@ BASE_VERSION=$(shell python ./manage.py version | cut -d + -f 1)
6
6
FILENAME =$(CIRCLE_ARTIFACTS ) /$(NAME ) .$(VERSION ) .tar.gz
7
7
8
8
deps :
9
- if [ -d " ./client/app" ]; then cd client && npm install; fi
10
- if [ -d " ./client/app" ]; then cd client && npm run build; fi
9
+ if [ -d " ./client/app" ]; then npm install; fi
10
+ if [ -d " ./client/app" ]; then npm run build; fi
11
11
12
12
pack :
13
13
sed -ri " s/^__version__ = '([0-9.]*)'/__version__ = '$( FULL_VERSION) '/" redash/__init__.py
14
- tar -zcv -f $(FILENAME ) --exclude=" optipng*" --exclude=" .git*" --exclude=" *.pyc" --exclude=" *.pyo" --exclude=" venv" --exclude=" client/ node_modules" --exclude=" client/app" *
14
+ tar -zcv -f $(FILENAME ) --exclude=" optipng*" --exclude=" .git*" --exclude=" *.pyc" --exclude=" *.pyo" --exclude=" venv" --exclude=" node_modules" --exclude=" client/app" *
15
15
16
16
upload :
17
17
python bin/release_manager.py $(CIRCLE_SHA1 ) $(BASE_VERSION ) $(FILENAME )
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ dependencies:
15
15
- pip install pymongo==3.2.1
16
16
- make deps
17
17
cache_directories :
18
- - client/ node_modules/
18
+ - node_modules/
19
19
test :
20
20
override :
21
21
- nosetests --with-xunit --xunit-file=$CIRCLE_TEST_REPORTS/junit.xml --with-coverage --cover-package=redash tests/
File renamed without changes.
Original file line number Diff line number Diff line change 1
1
{
2
- "name" : " redash-frontend " ,
2
+ "name" : " redash-client " ,
3
3
"version" : " 1.0.0" ,
4
4
"description" : " The frontend part of Redash." ,
5
5
"main" : " index.js" ,
6
6
"scripts" : {
7
- "test" : " NODE_ENV=test karma start" ,
8
7
"start" : " webpack-dev-server --content-base app" ,
9
- "build" : " rm -rf dist/ && NODE_ENV=production node node_modules/.bin/webpack" ,
8
+ "build" : " rm -rf ./client/ dist/ && NODE_ENV=production node node_modules/.bin/webpack" ,
10
9
"watch" : " webpack --watch --progress --colors -d"
11
10
},
12
11
"repository" : {
Original file line number Diff line number Diff line change @@ -9,11 +9,11 @@ var path = require('path');
9
9
10
10
var config = {
11
11
entry : {
12
- app : './app/index.js'
12
+ app : './client/ app/index.js'
13
13
} ,
14
14
output : {
15
15
// path: process.env.NODE_ENV === 'production' ? './dist' : './dev',
16
- path : './dist' ,
16
+ path : './client/ dist' ,
17
17
filename : '[name].[chunkhash].js' ,
18
18
} ,
19
19
@@ -44,7 +44,7 @@ var config = {
44
44
} ) ,
45
45
new HtmlWebpackPlugin ( {
46
46
// template: __dirname + '/app/' + 'index.html'
47
- template : './app/index.html'
47
+ template : './client/ app/index.html'
48
48
} ) ,
49
49
new ExtractTextPlugin ( 'styles.[chunkhash].css' )
50
50
] ,
@@ -102,7 +102,7 @@ var config = {
102
102
} ;
103
103
104
104
if ( process . env . NODE_ENV === 'production' ) {
105
- config . output . path = __dirname + '/dist' ;
105
+ config . output . path = __dirname + '/client/ dist' ;
106
106
config . plugins . push ( new webpack . optimize . UglifyJsPlugin ( ) ) ;
107
107
config . devtool = 'source-map' ;
108
108
}
You can’t perform that action at this time.
0 commit comments