-
Notifications
You must be signed in to change notification settings - Fork 43
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 #32 from HL7/choice_types
Choice types
- Loading branch information
Showing
36 changed files
with
4,626 additions
and
1,720 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 |
---|---|---|
|
@@ -6,4 +6,3 @@ build | |
.DS_Store | ||
.editorconfig | ||
Makefile | ||
browser-build/fhirpath.min.js.map |
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
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 @@ | ||
fhirpath.min.js | ||
*.min.js* | ||
fhirpath.zip |
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,34 +1,55 @@ | ||
const CopyPlugin = require('copy-webpack-plugin'); | ||
|
||
module.exports = { | ||
node: { | ||
fs: "empty" | ||
}, | ||
entry: './fhirpathRequire.js', | ||
mode: 'production', | ||
// mode: 'development', | ||
devtool: 'source-map', | ||
output: { | ||
path: __dirname, | ||
filename: './fhirpath.min.js', | ||
}, | ||
module: { | ||
rules: [ | ||
{ | ||
test: /\.m?js$/, | ||
exclude: /(node_modules|bower_components)/, | ||
use: { | ||
loader: 'babel-loader', | ||
options: { | ||
presets: ['@babel/preset-env'] | ||
/** | ||
* Returns a base webpack configuration object with settings used by more than | ||
* one output file. | ||
*/ | ||
function makeBaseConfig() { | ||
return { | ||
node: { | ||
fs: "empty" | ||
}, | ||
mode: 'production', | ||
devtool: 'source-map', | ||
output: { | ||
path: __dirname | ||
}, | ||
module: { | ||
rules: [ | ||
{ | ||
test: /\.m?js$/, | ||
exclude: /(node_modules|bower_components)/, | ||
use: { | ||
loader: 'babel-loader', | ||
options: { | ||
presets: ['@babel/preset-env'] | ||
} | ||
} | ||
} | ||
} | ||
] | ||
}, | ||
plugins: [ | ||
new CopyPlugin([ | ||
{ from: '../LICENSE.md', to: '.' } | ||
]), | ||
], | ||
}; | ||
] | ||
} | ||
}; | ||
} | ||
|
||
module.exports = []; | ||
|
||
// Main FHIRPath file | ||
let config = makeBaseConfig(); | ||
config.entry = '../src/fhirpath'; | ||
config.output.filename = './fhirpath.min.js'; | ||
config.output.library = 'fhirpath'; // global variable for the library | ||
config.plugins = [ | ||
new CopyPlugin([ | ||
{ from: '../LICENSE.md', to: '.' } | ||
]), | ||
]; | ||
module.exports.push(config); | ||
|
||
// FHIR model files | ||
for (let fhirVers of ['stu3', 'r4']) { | ||
config = makeBaseConfig(); | ||
config.entry = '../fhir-context/'+fhirVers+'/index'; | ||
config.output.filename = './fhirpath.'+fhirVers+'.min.js'; | ||
config.output.library = 'fhirpath_'+fhirVers+'_model'; | ||
module.exports.push(config); | ||
} |
Oops, something went wrong.