Skip to content

Commit

Permalink
chore: update deps
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewvasilchuk committed Apr 28, 2022
1 parent 6869e44 commit b61a300
Show file tree
Hide file tree
Showing 7 changed files with 31,605 additions and 7,640 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/integrate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,16 @@ jobs:
runs-on: ubuntu-latest
if: "! contains(toJSON(github.event.commits.*.message), '[skip-ci]')"
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: "12"
node-version: "16"
- run: npm install
- run: npm run build
- run: npm run lint
- run: npm test
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v1
uses: codecov/codecov-action@v2
with:
token: ${{ secrets.CODECOV_TOKEN }}

1 change: 0 additions & 1 deletion build/base/plugins/index.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import common from '@rollup/plugin-commonjs'
import resolve from '@rollup/plugin-node-resolve'

/** @type {import('rollup').RollupOptions['plugins']} */
const plugins = [common(), resolve()]

export default plugins
2 changes: 0 additions & 2 deletions build/rollup.config.dev.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import path from 'path'
import typescript from '@rollup/plugin-typescript'
// @ts-expect-error `'rollup-plugin-serve'` has no type declarations
import serve from 'rollup-plugin-serve'
// @ts-expect-error `'rollup-plugin-livereload'` has no type declarations
import livereload from 'rollup-plugin-livereload'
import replace from '@rollup/plugin-replace'

Expand All @@ -21,7 +20,6 @@ export default {
plugins: [
replace({
'process.env.NODE_ENV': JSON.stringify('development'),
preventAssignment: true,
}),
typescript(),
serve({
Expand Down
81 changes: 40 additions & 41 deletions build/rollup.config.prod.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
import path from 'path'
import flatten from 'lodash.flatten'
import { defineConfig } from 'rollup'
import typescript from '@rollup/plugin-typescript'
import replace from '@rollup/plugin-replace'
import { terser } from 'rollup-plugin-terser'
import { getBabelOutputPlugin } from '@rollup/plugin-babel'
import cleanup from 'rollup-plugin-cleanup'

import basePlugins from './base/plugins/index'

Expand Down Expand Up @@ -33,46 +34,44 @@ const plugins = [
}),
].concat(basePlugins)

export default flatten(
FILES.map((file) => [
{
input: file.path,
external,
output: [
{
file: `${DIST_DIR}/${file.name}.js`,
format: 'umd',
exports: 'named',
globals,
name,
},
{
file: `${DIST_DIR}/${file.name}.common.js`,
exports: 'named',
format: 'cjs',
},
{
file: `${DIST_DIR}/${file.name}.esm.js`,
format: 'esm',
},
],
plugins,
},
{
input: file.path,
external,
output: {
file: `${DIST_DIR}/${file.name}.min.js`,
export default FILES.map((file) => [
defineConfig({
input: file.path,
external,
output: [
{
file: `${DIST_DIR}/${file.name}.js`,
format: 'umd',
exports: 'named',
globals,
name,
},
{
file: `${DIST_DIR}/${file.name}.common.js`,
exports: 'named',
format: 'cjs',
},
{
file: `${DIST_DIR}/${file.name}.esm.js`,
format: 'esm',
},
plugins: [
getBabelOutputPlugin({
presets: ['@babel/preset-env'],
plugins: [['@babel/plugin-transform-modules-umd', { globals }]],
moduleId: name,
}),
terser({ format: { comments: false } }),
].concat(plugins),
],
plugins: plugins.concat(cleanup({ comments: 'none', extensions: ['.ts'] })),
}),
defineConfig({
input: file.path,
external,
output: {
file: `${DIST_DIR}/${file.name}.min.js`,
format: 'esm',
},
])
)
plugins: [
getBabelOutputPlugin({
presets: ['@babel/preset-env'],
plugins: [['@babel/plugin-transform-modules-umd', { globals }]],
moduleId: name,
}),
terser({ format: { comments: false } }),
].concat(plugins),
}),
]).flat()
Loading

0 comments on commit b61a300

Please sign in to comment.