Skip to content
This repository was archived by the owner on Oct 26, 2024. It is now read-only.

Commit 3331247

Browse files
Moving from ES6 to TypeScript and Snowpack to Vite
1 parent a48561d commit 3331247

16 files changed

+1630
-1898
lines changed

.babelrc

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
{
2-
"plugins": [
3-
"@babel/plugin-proposal-class-properties"
4-
]
2+
"presets": [
3+
"@babel/env",
4+
"@babel/preset-typescript"
5+
],
6+
"plugins": ["@babel/plugin-transform-typescript"]
57
}

.eslintignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
pkg
1+
dist

.eslintrc.js

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,5 @@ module.exports = {
55
browser: true,
66
node: true,
77
es6: true
8-
},
9-
10-
globals: {
11-
page: 'readonly'
128
}
139
}

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
node_modules
2-
pkg
2+
dist
33
build

.node-version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
14.13.0
1+
14.16.1

.npmignore

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,14 @@
1+
12
.github
23
.babelrc
34
index.html
4-
snowpack.config.json
55
netlify.toml
66
.node-version
77
.eslintrc.js
88
src
9+
specs
10+
tsconfig.json
11+
vite.config.js
12+
.prettierignore
13+
.prettierrc
14+
.eslintignore

.prettierignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
dist
2+
node_modules

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,14 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
66

77
## [Unreleased]
88

9+
## [3.0.0] - 2021-05-17
10+
11+
### Chore
12+
13+
- Moving from [Snowpack](https://www.snowpack.dev/) to [Vite](https://github.com/vitejs/vite)
14+
- Upgrading Node to 14.16.1
15+
- Moving to TypeScript
16+
917
## [2.0.1] - 2020-12-05
1018

1119
### Changed

index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
<script type="module" defer>
1212
import { Application } from 'stimulus'
1313
import SmoothScroll from 'smoothscroll-polyfill'
14-
import ScrollTo from './src/index.js'
14+
import ScrollTo from './src/index'
1515

1616
SmoothScroll.polyfill()
1717
const application = Application.start()

netlify.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11

22
[build]
3-
publish="build"
3+
publish="dist"
44
command="yarn prod"

0 commit comments

Comments
 (0)