Skip to content

Commit

Permalink
Scaffold lib directory with rollup build
Browse files Browse the repository at this point in the history
  • Loading branch information
pkalita-lbl committed Jun 15, 2022
1 parent ad4b798 commit ecb7083
Show file tree
Hide file tree
Showing 6 changed files with 55 additions and 2 deletions.
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ dist/
downloads/
eggs/
.eggs/
lib/
lib64/
parts/
sdist/
Expand Down Expand Up @@ -230,3 +229,7 @@ fabric.properties

# Android studio 3.1+ serialized cache file
.idea/caches/build_file_checksums.ser


# JS
node_modules/
5 changes: 5 additions & 0 deletions lib/DataHarmonizer.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
class DataHarmonizer {

}

export default DataHarmonizer;
1 change: 1 addition & 0 deletions lib/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export { default as default } from './DataHarmonizer'
14 changes: 14 additions & 0 deletions lib/rollup.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
export default {
input: 'lib/index.js',
output: [
{
file: 'lib/dist/data-harmonizer.es.js',
format: 'es'
},
{
file: 'lib/dist/data-harmonizer.umd.js',
format: 'umd',
name: 'DataHarmonizer'
}
]
}
17 changes: 16 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,20 @@
"version": "1.0.0",
"description": "A standardized spreadsheet editor and validator that can be run offline and locally",
"repository": "[email protected]:cidgoh/DataHarmonizer.git",
"license": "MIT"
"license": "MIT",
"files": ["./lib/dist"],
"main": "./lib/dist/data-harmonizer.umd.js",
"module": "./lib/dist/data-harmonizer.es.js",
"exports": {
".": {
"import": "./lib/dist/data-harmonizer.es.js",
"require": "./lib/dist/data-harmonizer.umd.js"
}
},
"scripts": {
"build:lib": "rollup --config lib/rollup.config.js"
},
"devDependencies": {
"rollup": "^2.75.6"
}
}
15 changes: 15 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
# yarn lockfile v1


fsevents@~2.3.2:
version "2.3.2"
resolved "https://registry.yarnpkg.com/fsevents/-/fsevents-2.3.2.tgz#8a526f78b8fdf4623b709e0b975c52c24c02fd1a"
integrity sha512-xiqMQR4xAeHTuB9uWm+fFRcIOgKBMiOBP+eXiyT7jsgVCq1bkVygt00oASowB7EdtpOHaaPgKt812P9ab+DDKA==

rollup@^2.75.6:
version "2.75.6"
resolved "https://registry.yarnpkg.com/rollup/-/rollup-2.75.6.tgz#ac4dc8600f95942a0180f61c7c9d6200e374b439"
integrity sha512-OEf0TgpC9vU6WGROJIk1JA3LR5vk/yvqlzxqdrE2CzzXnqKXNzbAwlWUXis8RS3ZPe7LAq+YUxsRa0l3r27MLA==
optionalDependencies:
fsevents "~2.3.2"

0 comments on commit ecb7083

Please sign in to comment.