This repository has been archived by the owner on Nov 8, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 22
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
1 parent
93aa5f9
commit ea5b7bf
Showing
9 changed files
with
190 additions
and
37 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 |
---|---|---|
|
@@ -8,5 +8,6 @@ cov.* | |
.nyc_output | ||
|
||
# List specific to .gitignore | ||
build | ||
node_modules | ||
.idea/ |
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 |
---|---|---|
|
@@ -10,6 +10,7 @@ cov.* | |
# List specific to .npmignore | ||
.travis.yml | ||
.npmignore | ||
lib | ||
docs/ | ||
img/ | ||
test/ | ||
|
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,14 +1,15 @@ | ||
environment: | ||
nodejs_version: "10" | ||
nodejs_version: '10' | ||
cache: | ||
- "node_modules" | ||
- 'node_modules' | ||
install: | ||
- ps: Install-Product node 10 | ||
- "npm -g install npm@6" | ||
- 'npm -g install npm@6' | ||
- "set PATH=%APPDATA%\\npm;%PATH%" | ||
- "npm install" | ||
- 'npm install' | ||
build: off | ||
test_script: | ||
- "node --version" | ||
- "npm --version" | ||
- "npm test" | ||
- 'node --version' | ||
- 'npm --version' | ||
- 'npm run build' | ||
- 'npm test' |
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
const resolve = require('rollup-plugin-node-resolve'); | ||
const commonjs = require('rollup-plugin-commonjs'); | ||
const packageJson = require('./package.json'); | ||
|
||
const buildUmd = { | ||
input: 'lib/index.js', | ||
output: { | ||
file: packageJson.main, | ||
format: 'umd', | ||
name: 'gavel', | ||
exports: 'named', | ||
sourcemap: true | ||
}, | ||
plugins: [ | ||
resolve({ | ||
browser: true, | ||
|
||
// Forbid bundling of NodeJS built-ins (i.e. "fs", "path"). | ||
// Throw when such modules are present in the bundle. | ||
preferBuiltins: false | ||
}), | ||
commonjs() | ||
] | ||
}; | ||
|
||
module.exports = [buildUmd]; |
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