diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 0000000..41e1997 --- /dev/null +++ b/.editorconfig @@ -0,0 +1,14 @@ +root = true + +[*] +end_of_line = lf +insert_final_newline = true +indent_style = space +indent_size = 2 + +[Makefile] +indent_style = tab + +[*.py] +indent_style = space +indent_size = 4 diff --git a/README.md b/README.md index e145070..f3e71fb 100644 --- a/README.md +++ b/README.md @@ -2,8 +2,7 @@ This repo contains a bare-bones example of how to create an application using Rollup, including importing a module from `node_modules` and converting it from CommonJS. -*See also https://github.com/rollup/rollup-starter-lib* - +_See also https://github.com/rollup/rollup-starter-lib_ ## Getting started diff --git a/jsconfig.json b/jsconfig.json new file mode 100644 index 0000000..145e70c --- /dev/null +++ b/jsconfig.json @@ -0,0 +1,15 @@ +{ + "compilerOptions": { + "module": "ESNext", + "moduleResolution": "Node", + "target": "ES2020", + "jsx": "react", + "strictNullChecks": true, + "strictFunctionTypes": true, + "checkJs": true, + }, + "exclude": [ + "node_modules", + "**/node_modules/*", + ] +} diff --git a/package.json b/package.json index 7008aa5..22276aa 100644 --- a/package.json +++ b/package.json @@ -1,20 +1,25 @@ { "name": "rollup-starter-app", + "version": "0.0.0", + "type": "module", "devDependencies": { - "@rollup/plugin-commonjs": "^17.0.0", - "@rollup/plugin-node-resolve": "^11.1.0", + "@rollup/plugin-commonjs": "^24.0.0", + "@rollup/plugin-node-resolve": "^15.0.1", + "@rollup/plugin-terser": "^0.2.1", + "@types/node": "^18.11.17", "npm-run-all": "^4.1.5", - "rollup": "^2.36.2", - "rollup-plugin-terser": "^7.0.2", - "serve": "^11.3.2" + "prettier": "^2.8.1", + "rollup": "^3.8.1", + "sirv-cli": "^2.0.2" }, "dependencies": { - "date-fns": "^2.16.1" + "date-fns": "^2.29.3" }, "scripts": { "build": "rollup -c", "watch": "rollup -c -w", "dev": "npm-run-all --parallel start watch", - "start": "serve public" + "format": "prettier -w .", + "start": "sirv public/ --no-clear" } } diff --git a/public/index.html b/public/index.html index b2b646c..29fbd60 100644 --- a/public/index.html +++ b/public/index.html @@ -1,21 +1,22 @@ - + -
- - -The time is ...
- - - \ No newline at end of file + + + +The time is ...
+ + +