File tree Expand file tree Collapse file tree 4 files changed +37
-2
lines changed Expand file tree Collapse file tree 4 files changed +37
-2
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " contentstack" ,
3
- "version" : " 3.1.2 " ,
3
+ "version" : " 3.2.0 " ,
4
4
"description" : " The Built.io Contentstack Javascript SDK" ,
5
5
"homepage" : " https://www.built.io/products/contentstack/overview" ,
6
6
"author" : {
15
15
"buildnode" : " webpack --config webpack/webpack.node.js" ,
16
16
"buildweb" : " webpack -p --config webpack/webpack.web.js" ,
17
17
"buildreactnative" : " webpack --config webpack/webpack.react-native.js" ,
18
- "buildall" : " npm run buildnode&npm run buildweb&npm run buildreactnative" ,
18
+ "buildnativescript" : " webpack --config webpack/webpack.nativescript.js" ,
19
+ "buildall" : " npm run buildnode&npm run buildweb&npm run buildreactnative&npm run buildnativescript" ,
19
20
"generate-docs" : " node_modules/.bin/jsdoc --configure docs-config.json --verbose"
20
21
},
21
22
"repository" : {
Original file line number Diff line number Diff line change
1
+ export default fetch ;
2
+
Original file line number Diff line number Diff line change
1
+ import localStorage from 'localStorage' ;
2
+
3
+ export default localStorage ;
Original file line number Diff line number Diff line change
1
+ 'use strict' ;
2
+
3
+ const path = require ( 'path' ) ;
4
+ const webpackMerge = require ( 'webpack-merge' ) ;
5
+
6
+ const commonConfig = require ( './webpack.common.js' ) ;
7
+
8
+ module . exports = function ( options ) {
9
+ return webpackMerge ( commonConfig ( ) , {
10
+ output : {
11
+ library : "Contentstack" ,
12
+ libraryTarget :"commonjs2" ,
13
+ path : path . join ( __dirname , "../dist/nativescript" ) ,
14
+ filename : "contentstack.js"
15
+ } ,
16
+ resolve : {
17
+ alias :{
18
+ runtime : path . resolve ( __dirname , '../src/runtime/nativescript' )
19
+ } ,
20
+ modules : [
21
+ '../src' ,
22
+ '../src/runtimes/nativescript' ,
23
+ 'node_modules' ,
24
+ ]
25
+ }
26
+ } ) ;
27
+ }
28
+
29
+
You can’t perform that action at this time.
0 commit comments