Skip to content

Commit c08a6d4

Browse files
authored
Merge pull request #1 from Jay-WKJun/development
[v.1.1.0] webpack -> rollup, to support ESM bundle
2 parents d15b6f1 + 57777c5 commit c08a6d4

File tree

14 files changed

+2827
-6174
lines changed

14 files changed

+2827
-6174
lines changed

.babelrc

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,8 @@
44
"@babel/preset-react",
55
"@babel/preset-typescript"
66
],
7-
"env": {
8-
"develop": {
9-
"plugins": ["babel-plugin-styled-components"]
10-
}
11-
}
7+
"plugins": [
8+
["@babel/plugin-transform-runtime"],
9+
["babel-plugin-styled-components"]
10+
]
1211
}

.eslintignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
node_modules/
2+
dist/
3+
*.config.js

.eslintrc

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,14 @@
1010
"no-tabs": 0,
1111
"allowIndentationTabs": 0,
1212
"indent": [0, "tab"],
13-
"react/jsx-indent": [2, 2, { "indentLogicalExpressions": true }],
14-
"react/jsx-filename-extension": [1, { "extensions": [".jsx", ".tsx"] }],
1513
"import/extensions": ["off"],
1614
"no-mixed-spaces-and-tabs": 0,
1715
"import/no-extraneous-dependencies": ["off"],
1816
"lines-between-class-members": ["off"],
19-
"react/require-default-props": ["off"]
17+
"react/require-default-props": ["off"],
18+
"react/jsx-filename-extension": [1, { "extensions": [".jsx", ".tsx"] }],
19+
"react/jsx-indent": [2, 2, { "indentLogicalExpressions": true }],
20+
"@typescript-eslint/ban-ts-comment": [1]
2021
},
2122
"settings": {
2223
"import/parsers": {

.github/workflows/publish.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: Publish Package to npmjs
2+
on:
3+
release:
4+
types: [published]
5+
jobs:
6+
build:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- name: 'Checkout'
10+
uses: actions/checkout@v3
11+
- name: 'Setup node'
12+
uses: actions/setup-node@v3
13+
with:
14+
node-version: '16.x'
15+
registry-url: 'https://registry.npmjs.org'
16+
- name: 'npm ci and Build'
17+
run: npm ci && npm run build
18+
- name: 'npm publish'
19+
run: npm publish
20+
env:
21+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,6 @@
66

77
# build stuff
88
/dist
9+
10+
# statistics for bundle
11+
stats.html

.npmignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
# dev
22
dev/
33
node_modules/
4+
src/
5+
stats.html
6+
index.ts
47

58
# readme
69
readmeAssets/
@@ -9,6 +12,8 @@ readmeAssets/
912
.git
1013
.gitignore
1114
.eslintrc
15+
.eslintignore
1216
.babelrc
1317
tsconfig.json
1418
webpack.*.js
19+
rollup.config.js

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,7 @@ so, i have plan to develop this code-editor to control easily and to share the c
9999
version | details
100100
--- | ---
101101
v.1.0.5 | Fix '\|' key input bug
102+
v.1.1.0 | Change Bundler to rollup to make bundle lighter & support tree-shaking for user
102103

103104
# 🗂 Document
104105

0 commit comments

Comments
 (0)