Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
SaekiRaku committed Oct 11, 2020
1 parent f82d678 commit 3cde929
Show file tree
Hide file tree
Showing 5 changed files with 55 additions and 5 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
dist/

node_modules
*.vsix
23 changes: 23 additions & 0 deletions constructor/build.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
import path from "path";

import { rollup } from "rollup";

const PATH_ROOT = path.resolve(__dirname, "..");
const PATH_SOURCE = path.resolve(PATH_ROOT, "next/source");
const PATH_DIST = path.resolve(PATH_ROOT, "next/dist");

const inputOptions = {
input: path.resolve(PATH_SOURCE, "index.js"),
}

const outputOptions = {
file: path.resolve(PATH_DIST, "index.js"),
format: "cjs"
}

async function build() {
const bundle = await rollup(inputOptions);
await bundle.write(outputOptions);
}

build();
11 changes: 11 additions & 0 deletions next/source/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
// const initCommands = require("./commands.js");
// const initTreeview = require("./treeview.js");

export function activate(context) {
// initTreeview(context);
// initCommands(context);
}

export function deactivate() {

}
14 changes: 12 additions & 2 deletions package-lock.json

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

10 changes: 7 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,9 @@
},
"pin-up.list.ignore": {
"type": "array",
"default": ["\\.git\/"],
"default": [
"\\.git/"
],
"description": "Hidden some files or folders on the Pinned list by RegExp."
}
}
Expand Down Expand Up @@ -94,7 +96,7 @@
"title": "%fs-delete%"
}
],
"keybindings":[
"keybindings": [
{
"command": "pin-up.add-pin-current",
"key": "ctrl+alt+p",
Expand Down Expand Up @@ -210,7 +212,8 @@
"lint": "eslint .",
"pretest": "npm run lint",
"test": "node ./test/runTest.js",
"build": "vsce package && node -r esm scripts/after-build.js"
"build": "vsce package && node -r esm scripts/after-build.js",
"next:build": "node -r esm constructor/build.js"
},
"devDependencies": {
"@tybys/cross-zip": "^3.0.4",
Expand All @@ -222,6 +225,7 @@
"esm": "^3.2.25",
"glob": "^7.1.6",
"mocha": "^7.1.1",
"rollup": "^2.29.0",
"typescript": "^3.8.3",
"vscode-test": "^1.3.0"
}
Expand Down

0 comments on commit 3cde929

Please sign in to comment.