Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Fix] Build on Windows #1

Merged
merged 1 commit into from Apr 2, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 3 additions & 1 deletion .npmignore
@@ -1,5 +1,7 @@
**/*
|.github
!/dist/**/*
!/extra/**/*
!*.d.ts
!*.md
!package*.json
!*.json
6 changes: 3 additions & 3 deletions package.json
Expand Up @@ -25,9 +25,9 @@
},
"scripts": {
"start": "sirv dist",
"dev": "ts-node scripts/configs.ts && ts-node scripts/debug.ts --enable && rm -rf dist && rollup -c -w",
"build": "ts-node scripts/configs.ts && rm -rf dist && rollup -c",
"release": "ts-node scripts/configs.ts && ts-node scripts/debug.ts --disable && npm run build && ts-node --skip-project scripts/license.ts && ts-node scripts/wordpress.ts",
"dev": "ts-node scripts/configs.ts && ts-node scripts/debug.ts --enable && ts-node scripts/rmdist.ts && rollup -c -w",
"build": "ts-node scripts/configs.ts && ts-node scripts/rmdist.ts && rollup -c",
"release": "ts-node scripts/configs.ts && ts-node scripts/debug.ts --disable && npm run build && ts-node --skip-project scripts/license.ts && ttsc --declaration --emitDeclarationOnly && ts-node scripts/wordpress.ts",
"test": "jest app",
"docs": "git submodule update --recursive && markserv ./README.md",
"lint": "npm run lint-prettify && eslint . --cache --ext .ts,.js",
Expand Down
15 changes: 15 additions & 0 deletions scripts/rmdist.ts
@@ -0,0 +1,15 @@
/**
* Delete dist folder
* =====================
*
* @contributors: Patryk Rzucidło [@ptkdev] <support@ptkdev.io> (https://ptk.dev)
*
* @license: MIT License
*
*/
import * as shell from "shelljs";
declare const __dirname: string;

const path = `${__dirname}/../dist`;

shell.rm("-Rf", path);
2 changes: 1 addition & 1 deletion tsconfig.json
Expand Up @@ -9,7 +9,7 @@
"esModuleInterop": true,
"noImplicitAny": false,
"noImplicitThis": true,
"declaration": true,
"declaration": false,
"strict": false,
"skipLibCheck": true,
"allowJs": true,
Expand Down