Skip to content

Commit

Permalink
Change dir structure so lerna will build
Browse files Browse the repository at this point in the history
  • Loading branch information
Jason3S committed Apr 17, 2019
1 parent 4daec40 commit 539b9ba
Show file tree
Hide file tree
Showing 81 changed files with 31 additions and 25 deletions.
6 changes: 3 additions & 3 deletions Spell Checker.code-workspace
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@
"path": "packages/client"
},
{
"path": "packages/server"
"path": "packages/_server"
},
{
"path": "packages/settingsViewer"
"path": "packages/_settingsViewer"
}
],
"settings": {
Expand All @@ -21,4 +21,4 @@
],
"typescript.tsdk": "server/node_modules/typescript/lib"
}
}
}
4 changes: 2 additions & 2 deletions lerna.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"packages": [
"packages/settingsViewer",
"packages/server",
"packages/_settingsViewer",
"packages/_server",
"packages/client"
],
"version": "1.6.10"
Expand Down
11 changes: 2 additions & 9 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,10 @@
"private": true,
"scripts": {
"bootstrap": "lerna bootstrap",
"build": "lerna run build --concurrency 1",
"build-x": "npm run build-server ; npm run build-client",
"build-client": "cd packages/client && npm run build",
"build-server": "cd packages/server && npm run build",
"build": "lerna run build --no-sort --concurrency 1",
"clean": "lerna run clean && lerna clean",
"test-client": "cd packages/client && npm run test",
"test-client-integration": "lerna run test-integration",
"test-server": "cd packages/server && npm run test",
"test-settings-viewer": "cd packages/settingsViewer && npm run test",
"test": "lerna run test",
"test-x": "npm run test-server && npm run test-client && npm run test-settings-viewer"
"test": "lerna run test"
},
"repository": {
"type": "git",
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
{
"name": "vscode-spell-checker-server",
"private": true,
"description": "Spell Checker Server",
"version": "1.6.10",
"author": "Jason Dent",
"license": "MIT",
"private": true,
"repository": {
"type": "git",
"url": "https://github.com/Jason-Rev/vscode-spell-checker"
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
{
"name": "cspell-settings-webview",
"name": "code-spell-checker-settings-webview",
"private": true,
"version": "1.6.10",
"description": "Webview for VS Code to edit cspell settings",
"typings": "out",
"main": "out",
"scripts": {
"build": "tsc -p . && webpack",
"clean": "rimraf viewer && rimraf out",
"clean": "rimraf ../client/settingsViewer",
"coverage": "jest --coverage src",
"start:dev": "webpack-dev-server",
"start": "http-server dist",
"test": "jest src"
},
"private": true,
"keywords": [],
"author": "Jason Dent",
"license": "MIT",
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"sourceMap": true,
"declaration": true,
"jsx": "react",
"outDir": "out",
"outDir": "../client/settingsViewer",
"experimentalDecorators": true,
"strictNullChecks": true
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,11 @@ const { CheckerPlugin } = require('awesome-typescript-loader');
const HtmlWebpackPlugin = require('html-webpack-plugin');
const MiniCssExtractPlugin = require('mini-css-extract-plugin');

const dist = path.join('out', 'webapp');
const tsConfig = require('./tsconfig.json');

const target = path.resolve(tsConfig['compilerOptions']['outDir']);

const dist = path.join(target, 'webapp');

const baseConfig = {
devtool: 'source-map',
Expand All @@ -12,7 +16,7 @@ const baseConfig = {
index: path.join(__dirname, 'src', 'viewer', 'viewer.tsx'),
},
output: {
path: path.join(__dirname, dist),
path: dist,
filename: '[name].bundle.js',
publicPath: '/',
},
Expand Down Expand Up @@ -73,7 +77,7 @@ const baseConfig = {
],
},
devServer: {
contentBase: path.join(__dirname, dist),
contentBase: dist,
headers: {
'Access-Control-Allow-Origin': '*',
'Access-Control-Allow-Headers': '*',
Expand Down
3 changes: 2 additions & 1 deletion packages/client/.gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
out
/server/*
server/*
settingsViewer/*
node_modules
temp
6 changes: 5 additions & 1 deletion packages/client/.vscodeignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,10 @@
.vscode-test/**
.vscode/**
**/*.map
**/*.test.js
**/*.ts
**/*.test.*
**/test.*
**/*.spec.*
out/test/**
samples/**
src/**
Expand All @@ -12,3 +14,5 @@ test/**
tsconfig.json
typings/**
vsc-extension-quickstart.md
coverage/**
settingsViewer/viewer/**
1 change: 0 additions & 1 deletion packages/client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -452,7 +452,6 @@
},
"dependencies": {
"comment-json": "^1.1.3",
"cspell-settings-webview": "file:../settingsViewer",
"fs-extra": "^7.0.1",
"kefir": "^3.8.6",
"node-watch": "^0.6.0",
Expand Down
1 change: 1 addition & 0 deletions packages/client/src/infoViewer/settingsViewer.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export * from '../../settingsViewer';
4 changes: 4 additions & 0 deletions packages/client/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@
"sourceMap": true,
"rootDir": "."
},
"include": [
"src",
"test"
],
"exclude": [
"node_modules",
"server"
Expand Down

0 comments on commit 539b9ba

Please sign in to comment.