فهرست منبع

Clean up the examples

Steven Silvester 8 سال پیش
والد
کامیت
8d13845b88

+ 1 - 1
examples/app/package.json

@@ -1,6 +1,6 @@
 {
   "private": true,
-  "name": "jupyterlab-example-app",
+  "name": "@jupyterlab/example-app",
   "scripts": {
     "build": "webpack",
     "clean": "rimraf build"

+ 2 - 2
examples/console/package.json

@@ -1,8 +1,8 @@
 {
   "private": true,
-  "name": "jupyterlab-example-console",
+  "name": "@jupyterlab/example-console",
   "scripts": {
-    "build": "tsc --project src && webpack --config webpack.conf.js",
+    "build": "tsc && webpack",
     "clean": "rimraf build"
   },
   "dependencies": {

+ 0 - 12
examples/console/src/tsconfig.json

@@ -1,12 +0,0 @@
-{
-    "compilerOptions": {
-        "noImplicitAny": true,
-        "noEmitOnError": true,
-        "lib": ["dom", "es5", "es2015.promise"],
-        "types": [],
-        "module": "commonjs",
-        "moduleResolution": "node",
-        "target": "ES5",
-        "outDir": "../build"
-    }
-}

+ 15 - 0
examples/console/tsconfig.json

@@ -0,0 +1,15 @@
+{
+  "compilerOptions": {
+    "declaration": true,
+    "noImplicitAny": true,
+    "noEmitOnError": true,
+    "noUnusedLocals": true,
+    "module": "commonjs",
+    "moduleResolution": "node",
+    "target": "ES5",
+    "outDir": "./build",
+    "lib": ["ES5", "ES2015.Promise", "DOM"],
+    "types": []
+  },
+  "include": ["src/*"]
+}

+ 0 - 0
examples/console/webpack.conf.js → examples/console/webpack.config.js


+ 2 - 2
examples/filebrowser/package.json

@@ -1,8 +1,8 @@
 {
   "private": true,
-  "name": "jupyterlab-example-filebrowser",
+  "name": "@jupyterlab/example-filebrowser",
   "scripts": {
-    "build": "tsc --project src && webpack --config webpack.conf.js",
+    "build": "tsc && webpack",
     "clean": "rimraf build"
   },
   "dependencies": {

+ 0 - 15
examples/filebrowser/src/tsconfig.json

@@ -1,15 +0,0 @@
-{
-    "compilerOptions": {
-        "noImplicitAny": true,
-        "noEmitOnError": true,
-        "lib": ["dom", "es5", "es2015.promise"],
-        "module": "commonjs",
-        "moduleResolution": "node",
-        "target": "ES5",
-        "types": [],
-        "outDir": "../build"
-    },
-    "files": [
-        "index.ts"
-    ]
-}

+ 15 - 0
examples/filebrowser/tsconfig.json

@@ -0,0 +1,15 @@
+{
+  "compilerOptions": {
+    "declaration": true,
+    "noImplicitAny": true,
+    "noEmitOnError": true,
+    "noUnusedLocals": true,
+    "module": "commonjs",
+    "moduleResolution": "node",
+    "target": "ES5",
+    "outDir": "./build",
+    "lib": ["ES5", "ES2015.Promise", "DOM"],
+    "types": []
+  },
+  "include": ["src/*"]
+}

+ 0 - 0
examples/filebrowser/webpack.conf.js → examples/filebrowser/webpack.config.js


+ 2 - 2
examples/notebook/package.json

@@ -1,8 +1,8 @@
 {
   "private": true,
-  "name": "jupyterlab-example-notebook",
+  "name": "@jupyterlab/example-notebook",
   "scripts": {
-    "build": "tsc --project src && webpack --config webpack.conf.js",
+    "build": "tsc && webpack",
     "clean": "rimraf build"
   },
   "dependencies": {

+ 0 - 12
examples/notebook/src/tsconfig.json

@@ -1,12 +0,0 @@
-{
-    "compilerOptions": {
-        "noImplicitAny": true,
-        "noEmitOnError": true,
-        "lib": ["dom", "es5", "es2015.promise"],
-        "module": "commonjs",
-        "moduleResolution": "node",
-        "target": "ES5",
-        "types": [],
-        "outDir": "../build"
-    }
-}

+ 15 - 0
examples/notebook/tsconfig.json

@@ -0,0 +1,15 @@
+{
+  "compilerOptions": {
+    "declaration": true,
+    "noImplicitAny": true,
+    "noEmitOnError": true,
+    "noUnusedLocals": true,
+    "module": "commonjs",
+    "moduleResolution": "node",
+    "target": "ES5",
+    "outDir": "./build",
+    "lib": ["ES5", "ES2015.Promise", "DOM"],
+    "types": []
+  },
+  "include": ["src/*"]
+}

+ 0 - 0
examples/notebook/webpack.conf.js → examples/notebook/webpack.config.js