From 577649504775349936391330a8bdf3fd58464a67 Mon Sep 17 00:00:00 2001 From: Humberto Alfonso Díaz Date: Wed, 19 Jun 2019 08:17:22 +0200 Subject: STRUCT Repo structure with basic layout --- .gitignore | 40 ++++++++++++++++++++++++++ README.md | 0 package.json | 38 +++++++++++++++++++++++++ src/app.js | 6 ++++ src/app.scss | 3 ++ src/config.xml | 20 +++++++++++++ src/icon.png | Bin 0 -> 9958 bytes src/icon.svg | 83 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ src/index.html | 16 +++++++++++ webpack.config.js | 59 ++++++++++++++++++++++++++++++++++++++ 10 files changed, 265 insertions(+) create mode 100644 .gitignore create mode 100644 README.md create mode 100644 package.json create mode 100644 src/app.js create mode 100644 src/app.scss create mode 100644 src/config.xml create mode 100644 src/icon.png create mode 100644 src/icon.svg create mode 100644 src/index.html create mode 100644 webpack.config.js diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..ebf5fa2 --- /dev/null +++ b/.gitignore @@ -0,0 +1,40 @@ +# Specifies intentionally untracked files to ignore when using Git +# http://git-scm.com/docs/gitignore + +build +fastlane/report.xml + +*~ +*.sw[mnpcod] +*.log +*.tmp +*.tmp.* +log.txt +*.sublime-project +*.sublime-workspace +.vscode/ +npm-debug.log* + +.idea/ +.sass-cache/ +.tmp/ +.versions/ +coverage/ +dist/ +node_modules/ +tmp/ +temp/ +hooks/ +platforms/ +plugins/ +plugins/android.json +plugins/ios.json +www/ +$RECYCLE.BIN/ +.sourcemaps/ +package-lock.json +build + +.DS_Store +Thumbs.db +UserInterfaceState.xcuserstate diff --git a/README.md b/README.md new file mode 100644 index 0000000..e69de29 diff --git a/package.json b/package.json new file mode 100644 index 0000000..4c9065a --- /dev/null +++ b/package.json @@ -0,0 +1,38 @@ +{ + "name": "agl-homescreen", + "version": "0.0.0", + "description": "Homescreen project for AGL based on html5 technologies", + "scripts": { + "webpack": "webpack", + "build": "webpack", + "start": "webpack-dev-server" + }, + "homepage": "https://bitbucket.org/smarsol/homescreen", + "author": "humberto.alfonso@asvito.es", + "repository": { + "type": "git", + "url": "git@bitbucket.org:smarsol/homescreen.git" + }, + "keywords": [ + "agl", + "automotive", + "automotivegradelinux" + ], + "devDependencies": { + "clean-webpack-plugin": "^1.0.1", + "copy-webpack-plugin": "^4.6.0", + "css-loader": "^2.1.0", + "html-webpack-plugin": "^3.2.0", + "mini-css-extract-plugin": "^0.5.0", + "node-sass": "^4.12.0", + "sass-loader": "^7.1.0", + "style-loader": "^0.23.1", + "uglifyjs-webpack-plugin": "^2.1.1", + "webpack": "^4.29.5", + "webpack-cli": "^3.2.3", + "webpack-dev-server": "^3.7.2" + }, + "dependencies": { + "bootstrap": "^4.3.1" + } +} diff --git a/src/app.js b/src/app.js new file mode 100644 index 0000000..694d4fa --- /dev/null +++ b/src/app.js @@ -0,0 +1,6 @@ +console.log('Arrancada la aplicación compilando CSS y SaSS'); + + +/* CSS */ +import 'bootstrap/dist/css/bootstrap.min.css'; +import './app.scss'; \ No newline at end of file diff --git a/src/app.scss b/src/app.scss new file mode 100644 index 0000000..c489d30 --- /dev/null +++ b/src/app.scss @@ -0,0 +1,3 @@ +body { + background: red; +} \ No newline at end of file diff --git a/src/config.xml b/src/config.xml new file mode 100644 index 0000000..1f409f6 --- /dev/null +++ b/src/config.xml @@ -0,0 +1,20 @@ + + + HTML5 Homescreen + + + HTML5 Homescreen demo + Igalia, S.L. + MIT + + + + + + + + + + + + \ No newline at end of file diff --git a/src/icon.png b/src/icon.png new file mode 100644 index 0000000..1025c17 Binary files /dev/null and b/src/icon.png differ diff --git a/src/icon.svg b/src/icon.svg new file mode 100644 index 0000000..4ea294c --- /dev/null +++ b/src/icon.svg @@ -0,0 +1,83 @@ + + + + + + + + + + image/svg+xml + + + + + + + + <h> + + diff --git a/src/index.html b/src/index.html new file mode 100644 index 0000000..e036d15 --- /dev/null +++ b/src/index.html @@ -0,0 +1,16 @@ + + + + + + + + +

h1. Bootstrap heading

+

h2. Bootstrap heading

+

h3. Bootstrap heading

+

h4. Bootstrap heading

+
h5. Bootstrap heading
+
h6. Bootstrap heading
+ + \ No newline at end of file diff --git a/webpack.config.js b/webpack.config.js new file mode 100644 index 0000000..c4934a0 --- /dev/null +++ b/webpack.config.js @@ -0,0 +1,59 @@ +const path = require('path'); +const UglifyJsPlugin = require('uglifyjs-webpack-plugin'); +const CleanWebpackPlugin = require('clean-webpack-plugin'); +const HtmlWebpackPlugin = require('html-webpack-plugin'); +const MiniCSSExtractPlugin = require('mini-css-extract-plugin'); +const CopyPlugin = require('copy-webpack-plugin'); + +module.exports = { + mode: 'production', + entry: './src/app.js', + output: { + filename: 'app.js', + path: __dirname + '/dist' + }, + optimization: { + minimizer: [new UglifyJsPlugin()], + }, + plugins: [ + new CleanWebpackPlugin(['dist']), + new CopyPlugin([ + { + from: 'src/icon.*', + flatten: true + }, + { + from: 'src/config.xml', + flatten: true + } + ]), + new HtmlWebpackPlugin({ + template: 'src/index.html', + filename: 'index.html', + inject: 'head' + }), + new MiniCSSExtractPlugin({ + filename: 'app.css', + path: __dirname + '/dist' + }) + ], + module: { + rules: [ + { + test: /\.css$/, + use: [ + 'style-loader', + 'css-loader' + ] + }, + { + test: /\.scss$/, + use: [ + MiniCSSExtractPlugin.loader, + "css-loader", + "sass-loader" + ] + } + ] + } +};  \ No newline at end of file -- cgit 1.2.3-korg