Skip to content

Commit 7ead72c

Browse files
committedFeb 4, 2021
Using parcel instead of webpack
1 parent 572151b commit 7ead72c

10 files changed

+11490
-13199
lines changed
 

‎.eslintrc

+1
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
"plugin:@typescript-eslint/recommended"
1111
],
1212
"ignorePatterns": [
13+
".cache/**",
1314
"dist/**",
1415
"node_modules/**"
1516
]

‎.github/workflows/ci.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
- name: Setup Node
1515
uses: actions/setup-node@v2.1.0
1616
with:
17-
node-version: '14.x'
17+
node-version: '14'
1818

1919
- name: Cache dependencies
2020
uses: actions/cache@v2

‎.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
1+
.cache
12
dist
23
node_modules

‎.prettierignore

+1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
1+
.cache
12
dist
23
node_modules

‎README.md

-2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1 @@
11
Typescript web project template.
2-
3-
Using https://github.com/CyberDex/webpack-typescript-boilerplate (thanks!)

‎package-lock.json

+11,478-13,173
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎package.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
{
22
"scripts": {
3-
"start": "cross-env NODE_ENV=development webpack-dev-server",
4-
"build": "cross-env NODE_ENV=production webpack",
3+
"start": "parcel src/index.html",
4+
"build": "parcel build --public-url /np src/index.html",
55
"lint": "eslint . --ext .ts"
66
},
77
"devDependencies": {
88
"@typescript-eslint/eslint-plugin": "^4.14.2",
99
"eslint": "^7.19.0",
10-
"webpack-typescript-boilerplate": "^1.1.1"
10+
"parcel-bundler": "^1.12.4"
1111
}
1212
}

‎assets/index.html ‎src/index.html

+4-2
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,9 @@
33
<head>
44
<meta charset="UTF-8" />
55
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
6-
<title><%= title %></title>
6+
<title>Document</title>
77
</head>
8-
<body></body>
8+
<body>
9+
<script src="./main.ts"></script>
10+
</body>
911
</html>

‎src/main.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
console.log('Works');
1+
console.log('Works, no?');
22

33
document.write('Hi there!');
44

‎webpack.config.js

-17
This file was deleted.

0 commit comments

Comments
 (0)
Please sign in to comment.