Skip to content

Commit dc17135

Browse files
authored
Merge pull request #1 from pauloedurezende/master
Add the application and the webpack configs
2 parents 26cf0d8 + e1c0f11 commit dc17135

28 files changed

+485
-13
lines changed

.eslintrc.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,8 @@
22
"extends": ["plugin:prettier/recommended"],
33
"env": {
44
"es6": true
5+
},
6+
"parserOptions": {
7+
"sourceType": "module"
58
}
69
}

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,3 +71,6 @@ typings/
7171

7272
# Serverless directories
7373
.serverless
74+
75+
# Webpack build
76+
dist

README.md

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,24 +8,25 @@ Generated by [Statik Project Generator](https://github.com/statikstack/generator
88
99
# Development
1010

11-
* Cloning the repo
11+
- Cloning the repo
1212

1313
```bash
1414
$ git clone https://github.com/statikstack/html-sass-javascript-webpack.git
1515
```
1616

17-
* Installing dependencies
17+
- Installing dependencies
1818

1919
```bash
2020
$ npm install
2121
```
2222

23-
* Running scripts
23+
- Running scripts
2424

25-
| Action | Usage |
26-
| ------------------------- | -------------- |
27-
| Starting development mode | `npm start` |
28-
| Linting code | `npm run lint` |
25+
| Action | Usage |
26+
| ------------------------- | --------------- |
27+
| Starting development mode | `npm start` |
28+
| Linting code | `npm run lint` |
29+
| Build for production | `npm run build` |
2930

3031
# Author
3132

package.json

Lines changed: 30 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,9 @@
1212
"src"
1313
],
1414
"scripts": {
15-
"lint": "eslint src/**/*.js",
16-
"start": "node src/index.js"
15+
"build": "webpack --env.mode=prod",
16+
"lint": "eslint statik/**/*.js",
17+
"start": "webpack-dev-server --env.mode=dev"
1718
},
1819
"repository": {
1920
"type": "git",
@@ -22,12 +23,35 @@
2223
"bugs": {
2324
"url": "https://github.com/statikstack/html-sass-javascript-webpack/issues"
2425
},
25-
"dependencies": {},
26+
"dependencies": {
27+
"normalize.css": "8.0.0"
28+
},
2629
"devDependencies": {
27-
"eslint": "5.0.1",
30+
"autoprefixer": "8.6.3",
31+
"babel-core": "6.26.3",
32+
"babel-loader": "7.1.4",
33+
"babel-preset-env": "1.7.0",
34+
"clean-webpack-plugin": "0.1.19",
35+
"css-loader": "0.28.11",
36+
"eslint": "5.1.0",
2837
"eslint-config-prettier": "2.9.0",
29-
"eslint-plugin-prettier": "2.6.2",
30-
"prettier": "1.13.7"
38+
"eslint-plugin-prettier": "2.6.1",
39+
"file-loader": "1.1.11",
40+
"html-loader": "0.5.5",
41+
"html-webpack-plugin": "3.2.0",
42+
"image-webpack-loader": "4.3.1",
43+
"mini-css-extract-plugin": "0.4.0",
44+
"node-sass": "4.9.2",
45+
"optimize-css-assets-webpack-plugin": "4.0.2",
46+
"postcss-loader": "2.1.5",
47+
"prettier": "1.13.6",
48+
"sass-loader": "7.0.3",
49+
"style-loader": "0.21.0",
50+
"uglifyjs-webpack-plugin": "1.2.7",
51+
"webpack": "4.12.1",
52+
"webpack-cli": "3.0.8",
53+
"webpack-dev-server": "3.1.4",
54+
"webpack-merge": "4.1.3"
3155
},
3256
"license": "MIT"
3357
}

src/index.js

Whitespace-only changes.
17.9 KB
Binary file not shown.
14.2 KB
Binary file not shown.
18 KB
Binary file not shown.
14.4 KB
Binary file not shown.
18.2 KB
Binary file not shown.

0 commit comments

Comments
 (0)