Skip to content

Commit

Permalink
fix: remove logger
Browse files Browse the repository at this point in the history
  • Loading branch information
Himenon committed Jan 15, 2020
1 parent ae06f95 commit a40399c
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 6 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@
"@types/resolve": "^1.14.0",
"@typescript-eslint/eslint-plugin": "^2.13.0",
"@typescript-eslint/parser": "^2.13.0",
"cross-env": "^6.0.3",
"dependency-cruiser": "^6.1.0",
"eslint": "^6.8.0",
"eslint-plugin-import": "^2.19.1",
Expand Down
4 changes: 2 additions & 2 deletions packages/cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@
"code-dependency": "./bin/code-dependency.js"
},
"scripts": {
"build": "cross-env NODE_ENV=production yarn build:webpack",
"build:dev": "cross-env NODE_ENV=development yarn build:webpack",
"build": "cross-env-shell NODE_ENV=production yarn build:webpack",
"build:dev": "cross-env-shell NODE_ENV=development yarn build:webpack",
"build:lib": "tsc -b tsconfig.json",
"build:webpack": "webpack --config ./scripts/build.ts",
"clean": "rimraf ./lib ./build ./dist",
Expand Down
1 change: 1 addition & 0 deletions packages/cli/scripts/webpack.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ export interface Option {
}

export const generateConfig = ({ isProduction }: Option): webpack.Configuration[] => {
console.log(`isProduction = ${isProduction}`);
const tsLoader: webpack.RuleSetUse = {
loader: "ts-loader",
options: {
Expand Down
6 changes: 3 additions & 3 deletions packages/view/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,12 @@
"main": "./lib/application.lib.js",
"types": "./lib/index.d.ts",
"scripts": {
"build": "yarn clean && cross-env NODE_ENV=production yarn build:webpack && yarn build:lib",
"build:dev": "yarn clean && cross-env NODE_ENV=development yarn build:webpack && yarn build:lib",
"build": "yarn clean && cross-env-shell NODE_ENV=production yarn build:webpack && yarn build:lib",
"build:dev": "yarn clean && cross-env-shell NODE_ENV=development yarn build:webpack && yarn build:lib",
"build:lib": "tsc -p tsconfig.json --emitDeclarationOnly",
"build:webpack": "yarn ts ./scripts/build.ts",
"clean": "rimraf ./lib ./dist ./build tsconfig.tsbuildinfo",
"develop": "cross-env NODE_ENV=development yarn ts ./scripts/develop.ts",
"develop": "cross-env-shell NODE_ENV=development yarn ts ./scripts/develop.ts",
"serve": "serve dist",
"start": "yarn develop",
"test": "jest -c jest.config.json",
Expand Down
1 change: 1 addition & 0 deletions packages/view/scripts/webpack.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ export interface Option {
}

export const generateConfig = ({ isProduction, isLibrary, ...option }: Option): webpack.Configuration => {
console.log(`isProduction = ${isProduction}`);
// const isCI = process.env.CI;
const publicPath = generatePublicPath(isProduction);

Expand Down
1 change: 0 additions & 1 deletion packages/view/src/container/FileTree/Store.ts
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,6 @@ export const generateFolderTree = (filePathObjectList: FilePathObject[], updateK
}
});
});
console.log(flatFileMap);
filePathObjectList.forEach(filePathObject => {
const dirname = path.dirname(filePathObject.source);
const fileItem: SideNavItem.Props = generateFile(filePathObject, updateKey);
Expand Down

0 comments on commit a40399c

Please sign in to comment.