Skip to content

Commit

Permalink
rollup start
Browse files Browse the repository at this point in the history
  • Loading branch information
ajn404 committed Aug 14, 2023
1 parent 1577d7b commit 20380ef
Show file tree
Hide file tree
Showing 8 changed files with 241 additions and 20 deletions.
9 changes: 9 additions & 0 deletions docs/codeReference/css/picocss/bundle.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
'use strict';

var version = "1.0.0";

function main () {
console.log("version " + version);
}

module.exports = main;
182 changes: 182 additions & 0 deletions docs/codeReference/css/picocss/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

20 changes: 20 additions & 0 deletions docs/codeReference/css/picocss/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"name": "picocssdemo",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"build": "rollup --config"
},
"module": "es",
"author": "",
"license": "ISC",
"dependencies": {
"@picocss/pico": "^1.5.10"
},
"devDependencies": {
"@rollup/plugin-json": "^6.0.0",
"rollup": "^3.28.0"
}
}
9 changes: 9 additions & 0 deletions docs/codeReference/css/picocss/public/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Document</title>
</head>
<body></body>
</html>
11 changes: 11 additions & 0 deletions docs/codeReference/css/picocss/rollup.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
// rollup.config.js
import json from "@rollup/plugin-json";

export default {
input: "src/main.js",
output: {
file: "bundle.js",
format: "cjs",
},
plugins: [json()],
};
5 changes: 5 additions & 0 deletions docs/codeReference/css/picocss/src/foo.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
// src/main.js

export default function () {
console.log("hh");
}
5 changes: 5 additions & 0 deletions docs/codeReference/css/picocss/src/main.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import { version } from "../package.json";

export default function () {
console.log("version " + version);
}
20 changes: 0 additions & 20 deletions docs/codeReference/typescript/scattered/ts02.ts

This file was deleted.

0 comments on commit 20380ef

Please sign in to comment.