Skip to content

Commit 6bcf3ef

Browse files
committed
clean formatting
1 parent 2cf6885 commit 6bcf3ef

3 files changed

Lines changed: 64 additions & 60 deletions

File tree

.vscode/settings.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"editor.detectIndentation": false,
3+
"editor.insertSpaces": false
4+
}

package.json

Lines changed: 32 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,33 @@
11
{
2-
"name": "html5-tutorial",
3-
"version": "1.0.0",
4-
"description": "Walks through building different HTML5 layouts for AV systems",
5-
"main": "bundle.js",
6-
"scripts": {
7-
"build": "webpack",
8-
"archive": "ch5-cli archive -p project -d dist -o archive",
9-
"onestep": "npm run build && npm run archive",
10-
"huddle:build": "webpack --env source=ExampleRooms/HuddleRoom/html --env target=ExampleRooms/HuddleRoom",
11-
"huddle:archive": "ch5-cli archive -p HuddleRoom -d ExampleRooms/HuddleRoom/dist -o archive"
12-
},
13-
"repository": {
14-
"type": "git",
15-
"url": "git+https://github.com/kielthecoder/HTML5-Tutorial.git"
16-
},
17-
"author": "Kiel Lofstrand",
18-
"license": "MIT",
19-
"bugs": {
20-
"url": "https://github.com/kielthecoder/HTML5-Tutorial/issues"
21-
},
22-
"homepage": "https://github.com/kielthecoder/HTML5-Tutorial#readme",
23-
"dependencies": {
24-
"@crestron/ch5-crcomlib": "^1.1.0",
25-
"@crestron/ch5-webxpanel": "^1.0.3",
26-
"moment": "^2.29.1"
27-
},
28-
"devDependencies": {
29-
"copy-webpack-plugin": "^9.0.1",
30-
"webpack": "^5.47.0",
31-
"webpack-cli": "^4.7.2"
32-
}
33-
}
2+
"name": "html5-tutorial",
3+
"version": "1.0.0",
4+
"description": "Walks through building different HTML5 layouts for AV systems",
5+
"main": "bundle.js",
6+
"scripts": {
7+
"build": "webpack",
8+
"archive": "ch5-cli archive -p project -d dist -o archive",
9+
"onestep": "npm run build && npm run archive",
10+
"huddle:build": "webpack --env source=ExampleRooms/HuddleRoom/html --env target=ExampleRooms/HuddleRoom",
11+
"huddle:archive": "ch5-cli archive -p HuddleRoom -d ExampleRooms/HuddleRoom/dist -o archive"
12+
},
13+
"repository": {
14+
"type": "git",
15+
"url": "git+https://github.com/kielthecoder/HTML5-Tutorial.git"
16+
},
17+
"author": "Kiel Lofstrand",
18+
"license": "MIT",
19+
"bugs": {
20+
"url": "https://github.com/kielthecoder/HTML5-Tutorial/issues"
21+
},
22+
"homepage": "https://github.com/kielthecoder/HTML5-Tutorial#readme",
23+
"dependencies": {
24+
"@crestron/ch5-crcomlib": "^1.1.0",
25+
"@crestron/ch5-webxpanel": "^1.0.3",
26+
"moment": "^2.29.1"
27+
},
28+
"devDependencies": {
29+
"copy-webpack-plugin": "^9.0.1",
30+
"webpack": "^5.47.0",
31+
"webpack-cli": "^4.7.2"
32+
}
33+
}

webpack.config.js

Lines changed: 28 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -3,34 +3,34 @@ const path = require('path');
33
const CopyPlugin = require('copy-webpack-plugin');
44

55
module.exports = function (env) {
6-
if (env.target === undefined) {
7-
env.target = '';
8-
}
6+
if (env.target === undefined) {
7+
env.target = '';
8+
}
99

10-
if (env.source === undefined) {
11-
env.source = 'src';
12-
}
10+
if (env.source === undefined) {
11+
env.source = 'src';
12+
}
1313

14-
return {
15-
mode: 'development',
16-
entry: './' + env.source + '/app.js',
17-
output: {
18-
filename: 'bundle.js',
19-
path: path.resolve(__dirname, env.target, 'dist')
20-
},
21-
// plugins: [
22-
// new CopyPlugin({
23-
// patterns: [
24-
// {
25-
// from: env.source + '/assets',
26-
// to: 'assets/'
27-
// },
28-
// {
29-
// from: env.source + '/*.(html|css)',
30-
// to: '[name][ext]'
31-
// }
32-
// ]
33-
// })
34-
// ]
35-
};
14+
return {
15+
mode: 'development',
16+
entry: './' + env.source + '/app.js',
17+
output: {
18+
filename: 'bundle.js',
19+
path: path.resolve(__dirname, env.target, 'dist')
20+
},
21+
// plugins: [
22+
// new CopyPlugin({
23+
// patterns: [
24+
// {
25+
// from: env.source + '/assets',
26+
// to: 'assets/'
27+
// },
28+
// {
29+
// from: env.source + '/*.(html|css)',
30+
// to: '[name][ext]'
31+
// }
32+
// ]
33+
// })
34+
// ]
35+
};
3636
};

0 commit comments

Comments
 (0)