Skip to content

Commit 157a745

Browse files
jleveuglejleveugle
authored andcommitted
feat(app): add standalone app for SMS
1 parent fbdeac3 commit 157a745

File tree

4 files changed

+71
-0
lines changed

4 files changed

+71
-0
lines changed
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<!doctype html>
2+
<html>
3+
<head>
4+
<title>Sms App</title>
5+
</head>
6+
<body data-ng-app="smsApp">
7+
<div ui-view></div>
8+
</body>
9+
</html>

packages/manager/sms/app/index.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
import 'script-loader!jquery'; // eslint-disable-line
2+
import 'script-loader!lodash'; // eslint-disable-line
3+
4+
import angular from 'angular';
5+
import '@ovh-ux/manager-sms';
6+
7+
angular.module('smsApp', ['ovhManagerSms']);
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
{
2+
"name": "@ovh-ux/manager-sms-app",
3+
"version": "0.0.0",
4+
"private": true,
5+
"dependencies": {
6+
"@ovh-ux/manager-sms": "^0.0.0",
7+
"@ovh-ux/manager-telecom-styles": "^1.0.0-beta.0",
8+
"@ovh-ux/ovh-angular-contracts": "^3.0.0-beta.0",
9+
"@ovh-ux/telecom-universe-components": "^1.4.0",
10+
"@uirouter/angularjs": "^1.0.15",
11+
"angular": "1.7.5",
12+
"at-internet-ui-router-plugin": "^1.0.0",
13+
"font-awesome": "4.7.0",
14+
"jquery": "^2.1.3",
15+
"lodash": "^3.10.1",
16+
"ng-at-internet": "^3.1.1",
17+
"oclazyload": "^1.1.0",
18+
"ovh-angular-apiv7": "^1.2.8",
19+
"ovh-angular-checkbox-table": "^0.1.2",
20+
"ovh-angular-pagination-front": "^7.0.0",
21+
"ovh-angular-responsive-tabs": "^4.0.0",
22+
"ovh-angular-ui-confirm-modal": "^1.0.2"
23+
},
24+
"devDependencies": {
25+
"@ovh-ux/manager-webpack-config": "^3.0.0",
26+
"ovh-manager-webfont": "^1.0.2",
27+
"webpack-merge": "^4.1.4"
28+
},
29+
"scripts": {
30+
"build": "webpack",
31+
"start": "webpack-dev-server"
32+
}
33+
}
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
const merge = require('webpack-merge');
2+
const path = require('path');
3+
const webpackConfig = require('@ovh-ux/manager-webpack-config');
4+
5+
module.exports = (env = {}) => {
6+
const { config } = webpackConfig({
7+
template: './index.html',
8+
basePath: '.',
9+
root: path.resolve(process.cwd()),
10+
}, env);
11+
12+
return merge(config, {
13+
entry: path.resolve('./index.js'),
14+
resolve: {
15+
modules: [
16+
path.resolve(process.cwd(), './node_modules'),
17+
path.resolve(process.cwd(), '../../../../node_modules'),
18+
],
19+
mainFields: ['module', 'browser', 'main'],
20+
},
21+
});
22+
};

0 commit comments

Comments
 (0)