mirror of
https://github.com/quine-global/hyper.git
synced 2026-01-12 20:18:41 -09:00
Rename compiled_app to target and add target in eslintignore
This commit is contained in:
parent
7874fa813a
commit
6a87ab4597
5 changed files with 9 additions and 8 deletions
|
|
@ -7,4 +7,5 @@ app/node_modules
|
|||
assets
|
||||
website
|
||||
bin
|
||||
dist
|
||||
dist
|
||||
target
|
||||
2
.gitignore
vendored
2
.gitignore
vendored
|
|
@ -1,7 +1,7 @@
|
|||
# build output
|
||||
dist
|
||||
app/renderer
|
||||
compiled_app
|
||||
target
|
||||
bin/cli.*
|
||||
|
||||
# dependencies
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@
|
|||
"repository": "zeit/hyper",
|
||||
"scripts": {
|
||||
"start": "echo 'please run `yarn run dev` in one tab and then `yarn run app` in another one'",
|
||||
"app": "electron compiled_app",
|
||||
"app": "electron target",
|
||||
"dev": "webpack -w",
|
||||
"build": "cross-env NODE_ENV=production webpack",
|
||||
"lint": "eslint . --ext .js,.jsx,.ts,.tsx",
|
||||
|
|
@ -15,7 +15,7 @@
|
|||
"postinstall": "electron-builder install-app-deps && yarn run rebuild-node-pty",
|
||||
"rebuild-node-pty": "electron-rebuild -f -w app/node_modules/node-pty -m app",
|
||||
"dist":
|
||||
"yarn run build && cross-env BABEL_ENV=production babel --out-file compiled_app/renderer/bundle.js --no-comments --minified compiled_app/renderer/bundle.js && build",
|
||||
"yarn run build && cross-env BABEL_ENV=production babel --out-file target/renderer/bundle.js --no-comments --minified target/renderer/bundle.js && build",
|
||||
"clean": "node ./bin/rimraf-standalone.js node_modules && node ./bin/rimraf-standalone.js ./app/node_modules && node ./bin/rimraf-standalone.js ./app/renderer"
|
||||
},
|
||||
"eslintConfig": {
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@
|
|||
"lib": ["dom", "es2017"],
|
||||
"module": "commonjs",
|
||||
"moduleResolution": "node",
|
||||
"outDir": "./compiled_app/",
|
||||
"outDir": "./target/",
|
||||
"preserveConstEnums": true,
|
||||
"removeComments": false,
|
||||
"resolveJsonModule": true,
|
||||
|
|
|
|||
|
|
@ -17,7 +17,7 @@ module.exports = [
|
|||
},
|
||||
entry: './app/index.js',
|
||||
output: {
|
||||
path: path.join(__dirname, 'compiled_app'),
|
||||
path: path.join(__dirname, 'target'),
|
||||
filename: 'ignore_this.js'
|
||||
},
|
||||
module: {
|
||||
|
|
@ -58,7 +58,7 @@ module.exports = [
|
|||
{
|
||||
apply: compiler => {
|
||||
compiler.hooks.afterEmit.tap('AfterEmitPlugin', () => {
|
||||
exec('cp -r ./app/node_modules ./compiled_app && tsc', (err, stdout, stderr) => {
|
||||
exec('cp -r ./app/node_modules ./target && tsc', (err, stdout, stderr) => {
|
||||
if (stdout) process.stdout.write(stdout);
|
||||
if (stderr) process.stderr.write(stderr);
|
||||
process.stdout.write('\nCompiled\n\n');
|
||||
|
|
@ -80,7 +80,7 @@ module.exports = [
|
|||
devtool: isProd ? 'hidden-source-map' : 'cheap-module-source-map',
|
||||
entry: './lib/index.js',
|
||||
output: {
|
||||
path: path.join(__dirname, 'compiled_app', 'renderer'),
|
||||
path: path.join(__dirname, 'target', 'renderer'),
|
||||
filename: 'bundle.js'
|
||||
},
|
||||
module: {
|
||||
|
|
|
|||
Loading…
Reference in a new issue