Skip to content

Commit

Permalink
Merge pull request #1 from ptkdev-boilerplate/nightly
Browse files Browse the repository at this point in the history
[Fix] Build on Windows
  • Loading branch information
ptkdev committed Apr 2, 2021
2 parents 2160d39 + 8ca3347 commit f6eb6a4
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 5 deletions.
4 changes: 3 additions & 1 deletion .npmignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
**/*
|.github
!/dist/**/*
!/extra/**/*
!*.d.ts
!*.md
!package*.json
!*.json
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
@@ -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
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"esModuleInterop": true,
"noImplicitAny": false,
"noImplicitThis": true,
"declaration": true,
"declaration": false,
"strict": false,
"skipLibCheck": true,
"allowJs": true,
Expand Down

0 comments on commit f6eb6a4

Please sign in to comment.