-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Yuki Shimada
committed
Feb 23, 2021
1 parent
322bf04
commit 31fcbd1
Showing
12 changed files
with
63 additions
and
57 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
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,16 +1,19 @@ | ||
const exec = require('child_process').exec; | ||
const sampleList = require('./samples/sample-list.json'); | ||
|
||
|
||
function build(sampleDir){ | ||
for (let sampleName of sampleList[sampleDir]) { | ||
exec(`npx tsc ./samples/${sampleDir}/${sampleName}/main.ts --lib es2017,dom --target es2017 --module umd --moduleResolution node --sourceMap`, (err, stdout, stderr) => { | ||
if (err) { console.log(err); } | ||
console.log(stdout); | ||
}); | ||
function build(sampleDir) { | ||
for (const sampleName of sampleList[sampleDir]) { | ||
exec( | ||
`npx tsc ./samples/${sampleDir}/${sampleName}/main.ts --lib es2017,dom --target es2017 --module umd --moduleResolution node --sourceMap`, | ||
(err, stdout, stderr) => { | ||
if (err) { | ||
console.log(err); | ||
} | ||
console.log(stdout); | ||
} | ||
); | ||
} | ||
} | ||
|
||
build('simple'); | ||
build('test_e2e'); | ||
|
File renamed without changes.
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,17 +1,10 @@ | ||
module.exports = { | ||
"preset": "jest-puppeteer", | ||
"transform": { | ||
"^.+\\.tsx?$": "ts-jest" | ||
preset: 'jest-puppeteer', | ||
transform: { | ||
'^.+\\.tsx?$': 'ts-jest', | ||
}, | ||
"testRegex": "(/__tests__/.*|(\\.|/)(test|spec))\\.(jsx?|tsx?)$", | ||
"moduleFileExtensions": [ | ||
"ts", | ||
"tsx", | ||
"js", | ||
"jsx", | ||
"json", | ||
"node" | ||
], | ||
"setupFilesAfterEnv": [require.resolve("./setup.js")], | ||
"rootDir": process.cwd(), | ||
testRegex: '(/__tests__/.*|(\\.|/)(test|spec))\\.(jsx?|tsx?)$', | ||
moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx', 'json', 'node'], | ||
setupFilesAfterEnv: [require.resolve('./jest-e2e-setup.js')], | ||
rootDir: process.cwd(), | ||
}; |
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,17 +1,10 @@ | ||
module.exports = { | ||
"transform": { | ||
"^.+\\.tsx?$": "ts-jest", | ||
"\\.(vert|frag|glsl)$": "<rootDir>/jest-webpack-shaderity.js", | ||
"\\VERSION-FILE$": "<rootDir>/jest-webpack-shaderity.js" | ||
transform: { | ||
'^.+\\.tsx?$': 'ts-jest', | ||
'\\.(vert|frag|glsl)$': '<rootDir>/jest-webpack-shaderity.js', | ||
'\\VERSION-FILE$': '<rootDir>/jest-webpack-shaderity.js', | ||
}, | ||
"testRegex": "(/__tests__/.*|(\\.|/)(test|spec))\\.(jsx?|tsx?)$", | ||
"moduleFileExtensions": [ | ||
"ts", | ||
"tsx", | ||
"js", | ||
"jsx", | ||
"json", | ||
"node" | ||
], | ||
"rootDir": process.cwd(), | ||
testRegex: '(/__tests__/.*|(\\.|/)(test|spec))\\.(jsx?|tsx?)$', | ||
moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx', 'json', 'node'], | ||
rootDir: process.cwd(), | ||
}; |
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
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
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,9 +1,9 @@ | ||
let express = require('express'); | ||
express.static.mime.define({'application/javascript': ['mjs']}) | ||
let app = express(); | ||
const express = require('express'); | ||
express.static.mime.define({'application/javascript': ['mjs']}); | ||
const app = express(); | ||
app.use(express.static('./')); | ||
|
||
let port = 8082; | ||
app.listen(port, ()=> { | ||
const port = 8082; | ||
app.listen(port, () => { | ||
console.log('Express server is running at http://localhost:' + port); | ||
}); |