-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #23 from Lakitna/distribute-bundle
Distribute bundle
- Loading branch information
Showing
27 changed files
with
1,780 additions
and
185 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,2 +1,3 @@ | ||
node_modules | ||
app | ||
dist |
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 |
---|---|---|
|
@@ -66,3 +66,6 @@ typings/ | |
|
||
# next.js build output | ||
.next | ||
|
||
# Generated files | ||
dist |
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,8 +1,22 @@ | ||
language: node_js | ||
node_js: | ||
- "7" | ||
- "8" | ||
- "10" | ||
- "12" | ||
addons: | ||
apt: | ||
packages: | ||
# Ubuntu 16+ does not install this dependency by default, so we need to install it ourselves | ||
- libgconf-2-4 | ||
cache: | ||
# Caches $HOME/.npm when npm ci is default script command | ||
# Caches node_modules in all other cases | ||
npm: true | ||
directories: | ||
# we also need to cache folder with Cypress binary | ||
- ~/.cache | ||
script: | ||
- npm run lint | ||
- npm test | ||
- npm run test:source | ||
- npm run bundle | ||
- npm run test:bundle |
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 @@ | ||
# How to develop | ||
|
||
## Node version | ||
|
||
Anything above Node 8 | ||
|
||
## Running tests | ||
|
||
There are many ways to run tests. Here is a list | ||
|
||
| Command | Headless | Starts server | Code under test | | ||
|---------|----------|---------------|-----------------| | ||
| `npm test` | :heavy_check_mark: | :heavy_check_mark: | Source files | | ||
| `npm run test:source` | :heavy_check_mark: | :heavy_check_mark: | Source files | | ||
| `npm run test:bundle` | :heavy_check_mark: | :heavy_check_mark: | Distribution bundle | | ||
| `npm run run:cypress` | :heavy_check_mark: | :x: | Source files | | ||
| `npm run run:cypress:source` | :heavy_check_mark: | :x: | Source files | | ||
| `npm run run:cypress:bundle` | :heavy_check_mark: | :x: | Distribution bundle | | ||
| `npm start` | :x: | :heavy_check_mark: | Source files | | ||
| `npm run start:source` | :x: | :heavy_check_mark: | Source files | | ||
| `npm run start:bundle` | :x: | :heavy_check_mark: | Distribution bundle | | ||
| `npm run start:cypress` | :x: | :x: | Source files | | ||
| `npm run start:cypress:source` | :x: | :x: | Source files | | ||
| `npm run start:cypress:bundle` | :x: | :x: | Distribution bundle | | ||
|
||
For commands that don't start their own server you'll need to run `npm run start:server` in a second command line. | ||
|
||
## Publishing | ||
|
||
`npm publish` will run tests that have to pass before allowing you to publish. |
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,16 @@ | ||
// *********************************************************** | ||
// This example support/index.js is processed and | ||
// loaded automatically before your test files. | ||
// | ||
// This is a great place to put global configuration and | ||
// behavior that modifies Cypress. | ||
// | ||
// You can change the location of this file or turn off | ||
// automatically serving support files with the | ||
// 'supportFile' configuration option. | ||
// | ||
// You can read more here: | ||
// https://on.cypress.io/configuration | ||
// *********************************************************** | ||
|
||
require('../../src'); |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.