Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit e324ca7

Browse files
Generate bundled and unbundled, only bundled has been tested at all
1 parent 3824db6 commit e324ca7

10 files changed

+102
-3781
lines changed

‎bootstrap-decorator.js

Lines changed: 0 additions & 72 deletions
This file was deleted.

‎bootstrap-decorator.min.js

Lines changed: 0 additions & 1 deletion
This file was deleted.

‎dist/angular-schema-form-bootstrap-bundled.min.js

Lines changed: 23 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎dist/angular-schema-form-bootstrap.js

Lines changed: 64 additions & 3673 deletions
Large diffs are not rendered by default.

‎dist/angular-schema-form-bootstrap.min.js

Lines changed: 1 addition & 17 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎package.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"dist": "npm run build && npm run minify",
88
"build": "webpack",
99
"watch": "webpack --watch",
10-
"minify": "uglifyjs dist/angular-schema-form-bootstrap.js --comments --output=dist/angular-schema-form-bootstrap.min.js",
10+
"minify": "uglifyjs dist/angular-schema-form-bootstrap.js --comments --output=dist/angular-schema-form-bootstrap.min.js && uglifyjs dist/angular-schema-form-bootstrap-bundled.js --comments --output=dist/angular-schema-form-bootstrap-bundled.min.js",
1111
"test": "echo \"Error: no test specified\" && exit 1",
1212
"test-not-yet-done": "karma start --single-run --browsers PhantomJS karma.conf.js --log-level info"
1313
},
@@ -28,9 +28,10 @@
2828
"tv4": "~1.0.15"
2929
},
3030
"devDependencies": {
31-
"babel-core": "^6.10.4",
31+
"babel": "^6.5.2",
32+
"babel-core": "^6.17.0",
3233
"babel-loader": "^6.2.5",
33-
"babel-polyfill": "^6.9.1",
34+
"babel-polyfill": "^6.16.0",
3435
"babel-preset-es2015": "^6.16.0",
3536
"chai": "^3.5.0",
3637
"coveralls": "^2.11.0",

‎src/bootstrap-decorator.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ function bootstrapDecoratorConfig(
9696
checkbox: {template: checkboxTemplate, builder: defaults},
9797
checkboxes: {template: checkboxesTemplate, builder: [sfField, ngModelOptions, ngModel, array, condition]},
9898
conditional: {template: sectionTemplate, builder: [sfField, simpleTransclusion, condition]},
99-
'default': {template: defaultTemplate, builder: defaults}
99+
'default': {template: defaultTemplate, builder: defaults},
100100
fieldset: {template: fieldsetTemplate, builder: [sfField, simpleTransclusion, condition]},
101101
help: {template: helpTemplate, builder: defaults},
102102
number: {template: defaultTemplate, builder: defaults.concat(numeric)},

‎src/module-bundled.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
require('../node_modules/angular-schema-form/dist/schema-form.js');
2+
require('bootstrap-decorator.js');

‎src/module.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
1-
require('../node_modules/angular-schema-form/dist/schema-form.js');
21
require('bootstrap-decorator.js');

‎webpack.config.js

Lines changed: 7 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -3,26 +3,20 @@
33
//const ExtractTextPlugin = require('extract-text-webpack-plugin');
44
const webpack = require('webpack');
55
const path = require('path');
6-
const HtmlWebpackPlugin = require('html-webpack-plugin');
6+
//const HtmlWebpackPlugin = require('html-webpack-plugin');
77
const getPath = (pathToFile) => path.resolve(__dirname, pathToFile);
88
const pjson = require('./package.json');
99
console.log('Angular Schema Form Bootstrap v' + pjson.version);
1010

1111
module.exports = {
12-
entry: './src/module.js',
13-
// entry: {
14-
// schema_form_decorators: [
15-
// getPath('./src/bootstrap-decorator.js'),
16-
// ]
17-
// // ,
18-
// // app: [
19-
// // getPath('./src/app.js'),
20-
// // getPath('./src/config/dev.config.js')
21-
// // ]
22-
// },
12+
// entry: './src/module.js',
13+
entry: {
14+
'angular-schema-form-bootstrap': getPath('./src/module.js'),
15+
'angular-schema-form-bootstrap-bundled': getPath('./src/module-bundled.js'),
16+
},
2317
output: {
2418
path: getPath('./dist'),
25-
filename: 'angular-schema-form-bootstrap.js',
19+
filename: '[name].js',
2620
sourceMapFilename: '[name].map',
2721
libraryTarget: 'umd'
2822
},

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /