-
Notifications
You must be signed in to change notification settings - Fork 67
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
update demo_npm with new dependencies
- Loading branch information
1 parent
7fb4ad5
commit 8659867
Showing
39 changed files
with
350 additions
and
309 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
node_modules | ||
bin | ||
node_modules/ | ||
bin/js-debug/ | ||
bin/js-release/ | ||
*.map |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
node_modules | ||
dist/app.js | ||
node_modules/ | ||
dist/ | ||
*.map |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
<!doctype html> | ||
<html> | ||
<head> | ||
<title>Starling Demo</title> | ||
<link rel="shortcut icon" type="image/png" href="./favicon.png"> | ||
<style> | ||
html,body { margin: 0; padding: 0; height: 100%; overflow: hidden; } | ||
#openfl-content { background: #000000; width: 100%; height: 100%; } | ||
@font-face { | ||
font-family: 'DejaVu Sans'; | ||
src: url('assets/fonts/DejaVuSans.eot'); | ||
src: url('assets/fonts/DejaVuSans.eot?#iefix') format('embedded-opentype'), | ||
url('assets/fonts/DejaVuSans.svg#my-font-family') format('svg'), | ||
url('assets/fonts/DejaVuSans.woff') format('woff'), | ||
url('assets/fonts/DejaVuSans.ttf') format('truetype'); | ||
font-weight: normal; | ||
font-style: normal; | ||
} | ||
@font-face { | ||
font-family: 'Ubuntu'; | ||
src: url('assets/fonts/Ubuntu-R.eot'); | ||
src: url('assets/fonts/Ubuntu-R.eot?#iefix') format('embedded-opentype'), | ||
url('assets/fonts/Ubuntu-R.svg#my-font-family') format('svg'), | ||
url('assets/fonts/Ubuntu-R.woff') format('woff'), | ||
url('assets/fonts/Ubuntu-R.ttf') format('truetype'); | ||
font-weight: normal; | ||
font-style: normal; | ||
} | ||
</style> | ||
</head> | ||
<body> | ||
<div id="openfl-content"></div> | ||
<script src="./app.js"></script> | ||
</body> | ||
</html> |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
const path = require("path"); | ||
const CopyWebpackPlugin = require("copy-webpack-plugin"); | ||
|
||
module.exports = { | ||
entry: "./src/demo.js", | ||
output: { | ||
path: path.resolve(__dirname, "dist"), | ||
filename: "app.js" | ||
}, | ||
devtool: "source-map", | ||
resolve: { | ||
alias: { | ||
"openfl": path.resolve(__dirname, "node_modules/openfl/lib/openfl"), | ||
"starling": path.resolve(__dirname, "node_modules/starling-framework/lib/starling") | ||
} | ||
}, | ||
plugins: [ | ||
new CopyWebpackPlugin({ | ||
patterns: [ | ||
"public", | ||
{ from: path.resolve(__dirname, "../../demo/assets"), to: "assets" } | ||
] | ||
}) | ||
] | ||
}; |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
{ | ||
"presets": ["env"], | ||
"plugins": ["transform-class-properties"] | ||
"presets": ["@babel/preset-env"], | ||
"plugins": ["@babel/plugin-transform-class-properties"] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
node_modules | ||
dist/app.js | ||
node_modules/ | ||
dist/ | ||
*.map |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
<!doctype html> | ||
<html> | ||
<head> | ||
<title>Starling Demo</title> | ||
<link rel="shortcut icon" type="image/png" href="./favicon.png"> | ||
<style> | ||
html,body { margin: 0; padding: 0; height: 100%; overflow: hidden; } | ||
#openfl-content { background: #000000; width: 100%; height: 100%; } | ||
@font-face { | ||
font-family: 'DejaVu Sans'; | ||
src: url('assets/fonts/DejaVuSans.eot'); | ||
src: url('assets/fonts/DejaVuSans.eot?#iefix') format('embedded-opentype'), | ||
url('assets/fonts/DejaVuSans.svg#my-font-family') format('svg'), | ||
url('assets/fonts/DejaVuSans.woff') format('woff'), | ||
url('assets/fonts/DejaVuSans.ttf') format('truetype'); | ||
font-weight: normal; | ||
font-style: normal; | ||
} | ||
@font-face { | ||
font-family: 'Ubuntu'; | ||
src: url('assets/fonts/Ubuntu-R.eot'); | ||
src: url('assets/fonts/Ubuntu-R.eot?#iefix') format('embedded-opentype'), | ||
url('assets/fonts/Ubuntu-R.svg#my-font-family') format('svg'), | ||
url('assets/fonts/Ubuntu-R.woff') format('woff'), | ||
url('assets/fonts/Ubuntu-R.ttf') format('truetype'); | ||
font-weight: normal; | ||
font-style: normal; | ||
} | ||
</style> | ||
</head> | ||
<body> | ||
<div id="openfl-content"></div> | ||
<script src="./app.js"></script> | ||
</body> | ||
</html> |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
const path = require("path"); | ||
const CopyWebpackPlugin = require("copy-webpack-plugin"); | ||
|
||
module.exports = { | ||
entry: "./src/demo.js", | ||
output: { | ||
path: path.resolve(__dirname, "dist"), | ||
filename: "app.js" | ||
}, | ||
devtool: "source-map", | ||
resolve: { | ||
alias: { | ||
"openfl": path.resolve(__dirname, "node_modules/openfl/lib/openfl"), | ||
"starling": path.resolve(__dirname, "node_modules/starling-framework/lib/starling") | ||
} | ||
}, | ||
module: { | ||
rules: [ | ||
{ test: /\.js$/, exclude: /node_modules/, loader: "babel-loader" } | ||
] | ||
}, | ||
plugins: [ | ||
new CopyWebpackPlugin({ | ||
patterns: [ | ||
"public", | ||
{ from: path.resolve(__dirname, "../../demo/assets"), to: "assets" } | ||
] | ||
}) | ||
] | ||
}; |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.