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

Commit a9a362b

Browse files
Moving from ES6 to TypeScript and Snowpack to Vite
1 parent 48b0af2 commit a9a362b

16 files changed

+1603
-2509
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: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,14 @@
1+
12
.github
23
jest
34
.babelrc
45
jest.config.js
56
index.html
6-
snowpack.config.json
77
netlify.toml
88
.node-version
99
.eslintrc.js
1010
src
11+
specs
12+
tsconfig.json
13+
vite.config.js
14+
.prettierignore

.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+
- Using TypeScript
16+
917
## [2.0.0] - 2020-12-05
1018

1119
### Added

index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414
<script type="module" defer>
1515
import { Application } from 'stimulus'
16-
import CharacterCounter from './src/index.js'
16+
import CharacterCounter from './src/index'
1717

1818
const application = Application.start()
1919
application.register('character-counter', CharacterCounter)

netlify.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
[build]
2-
publish="build"
2+
publish="dist"
33
command="yarn prod"

0 commit comments

Comments
 (0)