Skip to content

Commit

Permalink
Merge pull request #1 from Jay-WKJun/development
Browse files Browse the repository at this point in the history
[v.1.1.0] webpack -> rollup, to support ESM bundle
  • Loading branch information
Jay-WKJun authored May 7, 2022
2 parents d15b6f1 + 57777c5 commit c08a6d4
Show file tree
Hide file tree
Showing 14 changed files with 2,827 additions and 6,174 deletions.
9 changes: 4 additions & 5 deletions .babelrc
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,8 @@
"@babel/preset-react",
"@babel/preset-typescript"
],
"env": {
"develop": {
"plugins": ["babel-plugin-styled-components"]
}
}
"plugins": [
["@babel/plugin-transform-runtime"],
["babel-plugin-styled-components"]
]
}
3 changes: 3 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
node_modules/
dist/
*.config.js
7 changes: 4 additions & 3 deletions .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,14 @@
"no-tabs": 0,
"allowIndentationTabs": 0,
"indent": [0, "tab"],
"react/jsx-indent": [2, 2, { "indentLogicalExpressions": true }],
"react/jsx-filename-extension": [1, { "extensions": [".jsx", ".tsx"] }],
"import/extensions": ["off"],
"no-mixed-spaces-and-tabs": 0,
"import/no-extraneous-dependencies": ["off"],
"lines-between-class-members": ["off"],
"react/require-default-props": ["off"]
"react/require-default-props": ["off"],
"react/jsx-filename-extension": [1, { "extensions": [".jsx", ".tsx"] }],
"react/jsx-indent": [2, 2, { "indentLogicalExpressions": true }],
"@typescript-eslint/ban-ts-comment": [1]
},
"settings": {
"import/parsers": {
Expand Down
21 changes: 21 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Publish Package to npmjs
on:
release:
types: [published]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: 'Checkout'
uses: actions/checkout@v3
- name: 'Setup node'
uses: actions/setup-node@v3
with:
node-version: '16.x'
registry-url: 'https://registry.npmjs.org'
- name: 'npm ci and Build'
run: npm ci && npm run build
- name: 'npm publish'
run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,6 @@

# build stuff
/dist

# statistics for bundle
stats.html
5 changes: 5 additions & 0 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
# dev
dev/
node_modules/
src/
stats.html
index.ts

# readme
readmeAssets/
Expand All @@ -9,6 +12,8 @@ readmeAssets/
.git
.gitignore
.eslintrc
.eslintignore
.babelrc
tsconfig.json
webpack.*.js
rollup.config.js
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ so, i have plan to develop this code-editor to control easily and to share the c
version | details
--- | ---
v.1.0.5 | Fix '\|' key input bug
v.1.1.0 | Change Bundler to rollup to make bundle lighter & support tree-shaking for user

# 🗂 Document

Expand Down
Loading

0 comments on commit c08a6d4

Please sign in to comment.