-
Notifications
You must be signed in to change notification settings - Fork 59
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
Showing
7 changed files
with
195 additions
and
123 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 |
---|---|---|
|
@@ -112,15 +112,16 @@ <h2 data-bind="text:LastName"></h4> | |
</div> | ||
|
||
<footer class="footer"> | ||
<p>© Company 2019</p> | ||
<p>© Company 2020</p> | ||
</footer> | ||
|
||
</div> <!-- /container --> | ||
|
||
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script> | ||
<script src="js/bootstrap.min.js"></script> | ||
<script src="js/q.js"></script> | ||
<script src="https://unpkg.com/[email protected]/dist/umd/o.min.js"></script> | ||
<script src="https://unpkg.com/[email protected]/dist/umd/o.polyfill.js"></script> | ||
<script src="https://unpkg.com/[email protected]/dist/umd/o.min.js"></script> | ||
<script src="js/knockout-3.2.0.js"></script> | ||
<script src="js/ko.bindinghandler.currency.js"></script> | ||
<script src="browser.js"></script> | ||
|
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 |
---|---|---|
@@ -1,98 +1,131 @@ | ||
import resolve from 'rollup-plugin-node-resolve'; | ||
import commonjs from 'rollup-plugin-commonjs'; | ||
import sourceMaps from 'rollup-plugin-sourcemaps'; | ||
import typescript from 'rollup-plugin-typescript2'; | ||
import babel from 'rollup-plugin-babel'; | ||
import uglify from 'rollup-plugin-uglify-es'; | ||
import resolve from "rollup-plugin-node-resolve"; | ||
import commonjs from "rollup-plugin-commonjs"; | ||
import sourceMaps from "rollup-plugin-sourcemaps"; | ||
import typescript from "rollup-plugin-typescript2"; | ||
import babel from "rollup-plugin-babel"; | ||
import uglify from "rollup-plugin-uglify-es"; | ||
|
||
const pkg = require('./package.json'); | ||
const pkg = require("./package.json"); | ||
|
||
export default [{ | ||
input: `src/o.ts`, | ||
output: [{ | ||
file: pkg.browser.replace(".js", ".min.js"), | ||
name: 'odata', | ||
format: 'umd', | ||
sourcemap: true, | ||
export default [ | ||
{ | ||
input: `src/o.ts`, | ||
output: [ | ||
{ | ||
file: pkg.browser.replace(".js", ".min.js"), | ||
name: "odata", | ||
format: "umd", | ||
sourcemap: true, | ||
}, | ||
{ | ||
file: pkg.module, | ||
format: "es", | ||
sourcemap: true, | ||
}, | ||
], | ||
plugins: [ | ||
typescript({ | ||
useTsconfigDeclarationDir: true, | ||
}), | ||
commonjs(), | ||
resolve({ | ||
browser: true, | ||
}), | ||
babel({ | ||
exclude: "node_modules/**", | ||
}), | ||
uglify(), | ||
sourceMaps(), | ||
], | ||
// Indicate here external modules you don't wanna include in your bundle (i.e.: 'lodash') | ||
external: [], | ||
watch: { | ||
include: "src/**", | ||
}, | ||
{ | ||
file: pkg.module, | ||
format: 'es', | ||
sourcemap: true, | ||
} | ||
], | ||
plugins: [ | ||
typescript({ | ||
useTsconfigDeclarationDir: true | ||
}), | ||
commonjs(), | ||
resolve({ | ||
browser: true | ||
}), | ||
babel({ | ||
exclude: 'node_modules/**' | ||
}), | ||
uglify(), | ||
sourceMaps(), | ||
], | ||
// Indicate here external modules you don't wanna include in your bundle (i.e.: 'lodash') | ||
external: [], | ||
watch: { | ||
include: 'src/**', | ||
} | ||
},{ | ||
input: `src/o.ts`, | ||
output: [{ | ||
file: pkg.browser, | ||
name: 'odata', | ||
format: 'umd', | ||
sourcemap: true, | ||
}, | ||
{ | ||
input: `src/o.ts`, | ||
output: [ | ||
{ | ||
file: pkg.browser, | ||
name: "odata", | ||
format: "umd", | ||
sourcemap: true, | ||
}, | ||
{ | ||
file: pkg.module, | ||
format: "es", | ||
sourcemap: true, | ||
}, | ||
], | ||
plugins: [ | ||
typescript({ | ||
useTsconfigDeclarationDir: true, | ||
}), | ||
commonjs(), | ||
resolve({ | ||
browser: true, | ||
}), | ||
babel({ | ||
exclude: "node_modules/**", | ||
}), | ||
sourceMaps(), | ||
], | ||
// Indicate here external modules you don't wanna include in your bundle (i.e.: 'lodash') | ||
external: [], | ||
watch: { | ||
include: "src/**", | ||
}, | ||
{ | ||
file: pkg.module, | ||
format: 'es', | ||
sourcemap: true, | ||
} | ||
], | ||
plugins: [ | ||
typescript({ | ||
useTsconfigDeclarationDir: true | ||
}), | ||
commonjs(), | ||
resolve({ | ||
browser: true | ||
}), | ||
babel({ | ||
exclude: 'node_modules/**' | ||
}), | ||
sourceMaps(), | ||
], | ||
// Indicate here external modules you don't wanna include in your bundle (i.e.: 'lodash') | ||
external: [], | ||
watch: { | ||
include: 'src/**', | ||
} | ||
}, { | ||
input: `src/o.ts`, | ||
output: [{ | ||
file: pkg.main, | ||
name: 'odata', | ||
format: 'cjs', | ||
sourcemap: true, | ||
}], | ||
plugins: [ | ||
typescript({ | ||
useTsconfigDeclarationDir: true, | ||
noResolve: true | ||
}), | ||
resolve({ | ||
browser: false | ||
}), | ||
sourceMaps(), | ||
], | ||
// Indicate here external modules you don't wanna include in your bundle (i.e.: 'lodash') | ||
external: [], | ||
watch: { | ||
include: 'src/**', | ||
} | ||
}] | ||
}, | ||
{ | ||
input: `src/o.ts`, | ||
output: [ | ||
{ | ||
file: pkg.main, | ||
name: "odata", | ||
format: "cjs", | ||
sourcemap: true, | ||
}, | ||
], | ||
plugins: [ | ||
typescript({ | ||
useTsconfigDeclarationDir: true, | ||
noResolve: true, | ||
}), | ||
resolve({ | ||
browser: false, | ||
}), | ||
sourceMaps(), | ||
], | ||
// Indicate here external modules you don't wanna include in your bundle (i.e.: 'lodash') | ||
external: [], | ||
watch: { | ||
include: "src/**", | ||
}, | ||
}, | ||
{ | ||
input: `src/o.polyfill.ts`, | ||
output: [ | ||
{ | ||
file: 'dist/umd/o.polyfill.js', | ||
name: "o.polyfill", | ||
format: "umd", | ||
sourcemap: true, | ||
}, | ||
], | ||
plugins: [ | ||
typescript({ | ||
useTsconfigDeclarationDir: true, | ||
}), | ||
commonjs(), | ||
resolve({ | ||
browser: true, | ||
}), | ||
uglify(), | ||
sourceMaps(), | ||
], | ||
watch: { | ||
include: "src/**", | ||
}, | ||
}, | ||
]; |
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,2 @@ | ||
import "url-polyfill"; | ||
import "whatwg-fetch"; |
Oops, something went wrong.