-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update dependencies and templates, fix tests/eslint, add AS3 template…
…, and add GitHub actions (closes #5) Co-authored-by: Fancy2209 <[email protected]>
- Loading branch information
1 parent
d711570
commit 330209c
Showing
55 changed files
with
12,122 additions
and
7,118 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 |
---|---|---|
@@ -0,0 +1,35 @@ | ||
name: CI | ||
|
||
on: [push, pull_request] | ||
|
||
jobs: | ||
|
||
build: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
submodules: true | ||
|
||
- uses: actions/setup-node@v3 | ||
with: | ||
node-version: 16.x | ||
|
||
- name: Install Dependencies | ||
run: | | ||
npm ci | ||
- name: Run Tests | ||
run: | | ||
npm test | ||
- name: Package Library for npm | ||
run: | | ||
npm pack | ||
- uses: actions/upload-artifact@v3 | ||
with: | ||
name: generator-openfl-npm | ||
path: generator-openfl-*.tgz | ||
if-no-files-found: error |
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,2 +1,2 @@ | ||
node_modules | ||
coverage | ||
node_modules/ | ||
generators/**/package-lock.json |
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
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,17 +1,132 @@ | ||
'use strict'; | ||
const path = require('path'); | ||
const assert = require('yeoman-assert'); | ||
const helpers = require('yeoman-test'); | ||
|
||
describe('generator-openfl:app', () => { | ||
beforeAll(() => { | ||
return helpers.run(path.join(__dirname, '../generators/app')) | ||
.withPrompts({someAnswer: true}); | ||
}); | ||
|
||
it('creates files', () => { | ||
assert.file([ | ||
'dummyfile.txt' | ||
]); | ||
}); | ||
"use strict"; | ||
const path = require ("path"); | ||
const assert = require ("yeoman-assert"); | ||
const helpers = require ("yeoman-test"); | ||
|
||
describe ("generator-openfl:app", () => { | ||
|
||
describe ("TypeScript", () => { | ||
|
||
beforeAll (() => { | ||
|
||
return helpers.run (path.join (__dirname, "../generators/app")) | ||
.withPrompts ({name: "hello-openfl", language: "TypeScript"}); | ||
|
||
}); | ||
|
||
it ("creates files", () => { | ||
|
||
assert.file ([ | ||
".gitignore", | ||
"package.json", | ||
"tsconfig.json", | ||
"webpack.config.js", | ||
"public/index.html", | ||
"public/favicon.png", | ||
"src/app.ts" | ||
]); | ||
|
||
}); | ||
|
||
}); | ||
|
||
describe ("ES6", () => { | ||
|
||
beforeAll (() => { | ||
|
||
return helpers.run (path.join (__dirname, "../generators/app")) | ||
.withPrompts ({name: "hello-openfl", language: "ES6/JavaScript"}); | ||
|
||
}); | ||
|
||
it ("creates files", () => { | ||
|
||
assert.file ([ | ||
".babelrc", | ||
".gitignore", | ||
"package.json", | ||
"webpack.config.js", | ||
"public/index.html", | ||
"public/favicon.png", | ||
"src/app.js" | ||
]); | ||
|
||
}); | ||
|
||
}); | ||
|
||
describe ("ES5", () => { | ||
|
||
beforeAll (() => { | ||
|
||
return helpers.run (path.join (__dirname, "../generators/app")) | ||
.withPrompts ({name: "hello-openfl", language: "ES5/JavaScript"}); | ||
|
||
}); | ||
|
||
it ("creates files", () => { | ||
|
||
assert.file ([ | ||
".gitignore", | ||
"package.json", | ||
"webpack.config.js", | ||
"public/index.html", | ||
"public/favicon.png", | ||
"src/app.js" | ||
]); | ||
|
||
}); | ||
|
||
}); | ||
|
||
describe ("Haxe", () => { | ||
|
||
beforeAll (() => { | ||
|
||
return helpers.run (path.join (__dirname, "../generators/app")) | ||
.withPrompts ({name: "hello-openfl", language: "Haxe"}); | ||
|
||
}); | ||
|
||
it ("creates files", () => { | ||
|
||
assert.file ([ | ||
".gitignore", | ||
"build.hxml", | ||
"package.json", | ||
"webpack.config.js", | ||
"public/index.html", | ||
"public/favicon.png", | ||
"src/App.hx" | ||
]); | ||
|
||
}); | ||
|
||
}); | ||
|
||
describe ("AS3/Royale", () => { | ||
|
||
beforeAll (() => { | ||
|
||
return helpers.run (path.join (__dirname, "../generators/app")) | ||
.withPrompts ({name: "hello-openfl", language: "AS3/Royale"}); | ||
|
||
}); | ||
|
||
it ("creates files", () => { | ||
|
||
assert.file ([ | ||
".gitignore", | ||
"asconfig.json", | ||
"package.json", | ||
"template.html", | ||
"favicon.png", | ||
"src/App.as", | ||
"src/Main.as" | ||
]); | ||
|
||
}); | ||
|
||
}); | ||
|
||
}); |
Oops, something went wrong.