From f0d034bd72b493cfbe4e4dab408fb2f6f0fc95ab Mon Sep 17 00:00:00 2001 From: Josh Goldberg Date: Sun, 4 Mar 2018 18:58:39 -0800 Subject: [PATCH] shenanigans-manager@0.2.24 --- .stylelintrc | 2 +- README.md | 4 +-- package.json | 24 +++++++------ src/index.scss | 91 ----------------------------------------------- webpack.config.js | 8 ++--- 5 files changed, 20 insertions(+), 109 deletions(-) delete mode 100644 src/index.scss diff --git a/.stylelintrc b/.stylelintrc index 6462b1eb..571d2d30 100644 --- a/.stylelintrc +++ b/.stylelintrc @@ -1,3 +1,3 @@ { - "extends": "stylelint-config-recommended-scss" + "extends": "stylelint-config-recommended" } diff --git a/README.md b/README.md index a97f8c79..b2018e9c 100644 --- a/README.md +++ b/README.md @@ -85,7 +85,7 @@ npm run test ``` Test files are alongside source files under `src/` and named `*.test.ts?`. -Whenever you add, remove, or rename a `*.test.ts?` file under `src/`, re-run `npm run test:setup` to regenerate the list of static test files in `test/index.html`. +Whenever you add, remove, or rename a `*.test.t*` file under `src/`, `watch` will re-run `npm run test:setup` to regenerate the list of static test files in `test/index.html`. You can open that file in a browser to debug through the tests. -`npm run test` will run that setup and execute tests using [Puppeteer](https://github.com/GoogleChrome/puppeteer). +`npm run test:run` will run that setup and execute tests using [Puppeteer](https://github.com/GoogleChrome/puppeteer). diff --git a/package.json b/package.json index 76bd45d4..c3613461 100644 --- a/package.json +++ b/package.json @@ -26,30 +26,32 @@ "@types/mocha": "^2.2.48", "@types/react": "^16.0.31", "@types/react-dom": "^16.0.3", - "@types/sinon": "^4.1.3", + "@types/sinon": "^4.3.0", "@types/sinon-chai": "^2.7.29", "chai": "^4.1.2", "concurrently": "^3.5.1", "glob": "^7.1.2", "lolex": "^2.3.2", "mkdirp": "^0.5.1", - "mocha": "^5.0.0", + "mocha": "^5.0.1", "mocha-headless-chrome": "^1.8.2", "node-sass": "^4.7.2", "requirejs": "^2.3.5", "run-for-every-file": "^1.1.0", - "shenanigans-manager": "^0.2.23", - "sinon": "^4.2.2", + "shenanigans-manager": "^0.2.24", + "sinon": "^4.4.2", "sinon-chai": "^2.14.0", - "stylelint": "^9.0.0", + "stylelint": "^9.1.1", + "stylelint-config-recommended": "^v2.1.0", "stylelint-config-recommended-scss": "^3.0.0", "stylelint-scss": "^2.2.0", "tslint": "5.9.1", - "tsutils": "^2.21.0", + "tsutils": "^2.22.1", "typedoc": "^0.10.0", - "typescript": "^2.7.1", + "typescript": "^2.7.2", "watch": "^1.0.2", - "webpack": "^3.10.0" + "webpack": "^4.0.1", + "webpack-cli": "^2.0.10" }, "license": "MIT", "name": "fullscreenpokemon", @@ -71,9 +73,9 @@ "setup:copy:web": "run-for-every-file --dot --src \"node_modules/shenanigans-manager/setup/web/\" --file \"**/*\" --run \"shenanigans-manager mustache --input {{src-file}} --output {{file}}\" --dest \".\" --only-files", "setup:package": "shenanigans-manager hydrate-package-json", "setup:readme": "shenanigans-manager hydrate-readme", - "src": "npm run src:tsc && npm run src:tslint && npm run src:scss && npm run src:stylelint", + "src": "npm run src:tsc && npm run src:tslint && npm run src:stylelint", "src:scss": "node-sass --recursive src --output src", - "src:stylelint": "stylelint src/**/*.scss", + "src:stylelint": "stylelint src/**/*.css", "src:tsc": "tsc -p .", "src:tslint": "tslint -c tslint.json -p tsconfig.json -t stylish", "test": "npm run test:setup && npm run test:run", @@ -145,4 +147,4 @@ }, "types": "./src/index.d.ts", "version": "0.7.1" -} +} \ No newline at end of file diff --git a/src/index.scss b/src/index.scss deleted file mode 100644 index 479606ad..00000000 --- a/src/index.scss +++ /dev/null @@ -1,91 +0,0 @@ -/* General elements */ - -html, body { - margin: 0; - padding: 0; -} - -body { - background: black; - color: #fafafa; - overflow-x: hidden; - overflow-y: scroll; -} - -header { - height: 49px; - overflow: hidden; - -ms-user-select: none; - -moz-user-select: none; - -webkit-user-select: none; - user-select: none; -} - -section { - clear: both; -} - -a { - color: white; - font-weight: bold; - text-decoration: none; -} - -h1 { - margin: 0; - padding-bottom: 3px; - text-align: center; -} - - -/* General animations */ - -.hoverable { - opacity: .84; - transition: 140ms opacity; -} - -.hoverable:hover { - opacity: 1; -} - - - -/* Game section */ - -section#game { - min-height: 210px; - margin-bottom: 35px; -} - - -/* Text sections */ - -section.section-text { - margin: auto; - padding: 21px 70px; - max-width: 910px; - font-size: 1.4em; - text-align: center; -} - -.link-github { - color: #cfc; -} - -@media(max-width: 350px) { - section.section-text { - padding: 14px 7px; - } -} - -@font-face { - font-family: "Press Start"; - src: - url("theme/fonts/pressstart2p-webfont.eot?#iefix") format("embedded-opentype"), - url("theme/fonts/pressstart2p-webfont.woff") format("woff"), - url("theme/fonts/pressstart2p-webfont.ttf") format("truetype"), - url("theme/fonts/pressstart2p-webfont.svg") format("svg"); - font-weight: normal; - font-style: normal; -} diff --git a/webpack.config.js b/webpack.config.js index cc63b99d..62ae0d22 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -9,10 +9,6 @@ const getEntriesAndSources = () => { { entry: `./src/index.js`, name: package.shenanigans.name, - sources: [ - "./**/*.js", - "!./**/*.test.js", - ] } ] : package.shenanigans.entries; @@ -44,9 +40,13 @@ for (const pair of entriesAndSources) { module.exports = { entry, externals, + mode: "production", output: { filename: "[name].js", libraryTarget: "amd", path: path.join(__dirname, "dist"), + }, + performance: { + hints: false } };