Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
datawarehouse-ui
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Charles Girardot
datawarehouse-ui
Commits
c19e5be6
Commit
c19e5be6
authored
8 years ago
by
Charles Girardot
Browse files
Options
Downloads
Patches
Plain Diff
dd missign bin dir
parent
1dacbf3f
Branches
main
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
bin/api.js
+11
-0
11 additions, 0 deletions
bin/api.js
bin/server.js
+28
-0
28 additions, 0 deletions
bin/server.js
with
39 additions
and
0 deletions
bin/api.js
0 → 100644
+
11
−
0
View file @
c19e5be6
#!/usr/bin/env node
if
(
process
.
env
.
NODE_ENV
!==
'
production
'
)
{
if
(
!
require
(
'
piping
'
)({
hook
:
true
,
ignore
:
/
(\/\.
|~$|
\.
json$
)
/i
}))
{
return
;
}
}
require
(
'
../server.babel
'
);
// babel registration (runtime transpilation for node)
require
(
'
../api/api
'
);
This diff is collapsed.
Click to expand it.
bin/server.js
0 → 100644
+
28
−
0
View file @
c19e5be6
#!/usr/bin/env node
require
(
'
../server.babel
'
);
// babel registration (runtime transpilation for node)
var
path
=
require
(
'
path
'
);
var
rootDir
=
path
.
resolve
(
__dirname
,
'
..
'
);
/**
* Define isomorphic constants.
*/
global
.
__CLIENT__
=
false
;
global
.
__SERVER__
=
true
;
global
.
__DISABLE_SSR__
=
false
;
// <----- DISABLES SERVER SIDE RENDERING FOR ERROR DEBUGGING
global
.
__DEVELOPMENT__
=
process
.
env
.
NODE_ENV
!==
'
production
'
;
if
(
__DEVELOPMENT__
)
{
if
(
!
require
(
'
piping
'
)({
hook
:
true
,
ignore
:
/
(\/\.
|~$|
\.
json|
\.
scss$
)
/i
}))
{
return
;
}
}
// https://github.com/halt-hammerzeit/webpack-isomorphic-tools
var
WebpackIsomorphicTools
=
require
(
'
webpack-isomorphic-tools
'
);
global
.
webpackIsomorphicTools
=
new
WebpackIsomorphicTools
(
require
(
'
../webpack/webpack-isomorphic-tools
'
))
.
development
(
__DEVELOPMENT__
)
.
server
(
rootDir
,
function
()
{
require
(
'
../src/server
'
);
});
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment