Skip to content

Commit

Permalink
complete
Browse files Browse the repository at this point in the history
  • Loading branch information
yisar committed Oct 18, 2023
1 parent 460b031 commit 13c269a
Show file tree
Hide file tree
Showing 5 changed files with 676 additions and 15 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
/node_modules/
/ignore/
/ignore/
/dist/
13 changes: 9 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
{
"name": "fre3",
"version": "1.0.0",
"name": "fre",
"version": "3.0.0",
"description": "",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"start": "vite dev"
"start": "vite dev",
"build": "rollup -c"
},
"repository": {
"type": "git",
Expand All @@ -19,7 +20,11 @@
},
"homepage": "https://github.com/yisar/fre3#readme",
"dependencies": {
"sinuous": "0.30.0",
"rollup": "^4.1.4",
"vite": "^4.4.9"
},
"devDependencies": {
"rollup-plugin-size": "^0.3.1",
"rollup-plugin-terser": "^7.0.2"
}
}
12 changes: 2 additions & 10 deletions rollup.config.js → rollup.config.mjs
Original file line number Diff line number Diff line change
@@ -1,21 +1,13 @@
import { terser } from 'rollup-plugin-terser'
import typescript from 'rollup-plugin-typescript2'
import size from 'rollup-plugin-size'

const plugins = [
typescript({
tsconfig: 'tsconfig.json',
removeComments: true,
useTsconfigDeclarationDir: true,
}),
terser({
include: ['fre.js'],
}),
terser(),
size()
]

export default {
input: 'src/index.ts',
input: 'src/index.js',
output: [
{ file: 'dist/fre.umd.js', format: 'umd', name: 'fre', sourcemap: true },
{ file: 'dist/fre.js', format: 'esm', sourcemap: true },
Expand Down
File renamed without changes.

0 comments on commit 13c269a

Please sign in to comment.