Skip to content
Snippets Groups Projects
Commit bcd5ba84 authored by Wilson JALLET's avatar Wilson JALLET :money_with_wings:
Browse files

Fixed ES6 exports

parent fb9a3116
No related branches found
No related tags found
No related merge requests found
...@@ -69,4 +69,5 @@ typings/ ...@@ -69,4 +69,5 @@ typings/
# Generated files # Generated files
doc/ doc/
build/ build/
ldap_config.json ldap_config.json
\ No newline at end of file sigma-back.service
\ No newline at end of file
...@@ -32,7 +32,7 @@ build: ...@@ -32,7 +32,7 @@ build:
paths: paths:
- build/ - build/
- node_modules/ - node_modules/
expire_in: 40 min expire_in: 240 min
tags: tags:
- database - database
- build - build
...@@ -48,8 +48,8 @@ test:lint: ...@@ -48,8 +48,8 @@ test:lint:
deploy_staging: deploy_staging:
stage: deploy stage: deploy
script: script:
- npm start & sleep 5 - npm run build
- exit 0 - cp --parents -r build/ /opt/sigma-back/build/
environment: environment:
name: staging name: staging
url: http://129.104.210.10:3000 url: http://129.104.210.10:3000
......
[Unit]
Description=Sigma-back
Wants=network-online.target
After=network-online.target
[Service]
Environment=NODE_ENV=development
WorkingDirectory=/opt/sigma-back
ExecStart=/usr/bin/node app.js
Restart=always
[Install]
WantedBy=multi-user.target
\ No newline at end of file
...@@ -111,7 +111,6 @@ const getAvailableGroupUID = (initialUID) => { ...@@ -111,7 +111,6 @@ const getAvailableGroupUID = (initialUID) => {
return(getAvailableGroupUID(rasUID + 'n')); return(getAvailableGroupUID(rasUID + 'n'));
} }
}); });
return rasUID;
}; };
const createGroupIfLegal = (user, args) => { const createGroupIfLegal = (user, args) => {
...@@ -136,7 +135,7 @@ const createGroupIfLegal = (user, args) => { ...@@ -136,7 +135,7 @@ const createGroupIfLegal = (user, args) => {
description : args.description, description : args.description,
school : args.school school : args.school
}).then( res => { }).then( res => {
return getGroupIfVisible(user, rasUID); return getGroupIfVisible(user, rasUID);
}); });
})); }));
}); });
......
...@@ -293,6 +293,6 @@ function creerGroupe(param) { ...@@ -293,6 +293,6 @@ function creerGroupe(param) {
//rechercheLDAP(user, "uid=quentin.chevalier,ou=eleves,dc=frankiz,dc=net","(displayName=${cn})",{ cn: "Sire hawkspar" }, ["jpegPhoto"]).then(res => console.log(res)); //rechercheLDAP(user, "uid=quentin.chevalier,ou=eleves,dc=frankiz,dc=net","(displayName=${cn})",{ cn: "Sire hawkspar" }, ["jpegPhoto"]).then(res => console.log(res));
/* Partage pour le reste du monde ; même remarque synthaxe que pour l'import */ /* Partage pour le reste du monde ; même remarque synthaxe que pour l'import */
export { listGroups, listMembers, TOL }; export { rens, listAdmins, listGroups, listMembers, TOL };
/*module.exports ={ listGroups, listMembers, listAdmins, rens, idTOL, TOL }; */ /*module.exports ={ listGroups, listMembers, listAdmins, rens, idTOL, TOL }; */
...@@ -8,7 +8,14 @@ var config = { ...@@ -8,7 +8,14 @@ var config = {
filename: 'bundle.js', filename: 'bundle.js',
path: path.resolve(__dirname, 'build') path: path.resolve(__dirname, 'build')
}, },
externals: [nodeExternals()] externals: [nodeExternals()],
module: {
loaders: [{
test: /\.(png|jpg|ico)/,
exclude: /node_modules/,
loader: 'url-loader'
}]
}
}; };
module.exports = config; module.exports = config;
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment