File tree 8 files changed +59
-1
lines changed
tests/integration/rollup-test
8 files changed +59
-1
lines changed Original file line number Diff line number Diff line change 56
56
# https://github.com/webpack/webpack/issues/14532
57
57
if : ${{ matrix.node-version != '17' }}
58
58
run : |
59
+ cd ./tests/integration/rollup-test && ./test.sh && cd -
59
60
cd ./tests/integration/webpack-babel-test && ./test.sh && cd -
60
61
cd ./tests/integration/webpack-test && ./test.sh && cd -
61
62
Original file line number Diff line number Diff line change 1
1
import { createNewLookupObject } from './create-new-lookup-object' ;
2
- import * as logger from '../logger' ;
2
+ import logger from '../logger' ;
3
3
4
4
const loggedProperties = Object . create ( null ) ;
5
5
Original file line number Diff line number Diff line change
1
+ module . exports = {
2
+ root : true ,
3
+ extends : [ 'eslint:recommended' , 'prettier' ] ,
4
+ env : {
5
+ browser : true
6
+ } ,
7
+ parserOptions : {
8
+ sourceType : 'module' ,
9
+ ecmaVersion : 6
10
+ }
11
+ } ;
Original file line number Diff line number Diff line change
1
+ node_modules
2
+ dist
3
+ package-lock.json
Original file line number Diff line number Diff line change
1
+ {
2
+ "name" : " rollup-test" ,
3
+ "description" : " Various tests with Handlebars and rollup" ,
4
+ "version" : " 1.0.0" ,
5
+ "scripts" : {
6
+ "build" : " rollup --config rollup.config.js --failAfterWarnings"
7
+ },
8
+ "private" : true ,
9
+ "devDependencies" : {
10
+ "@rollup/plugin-node-resolve" : " ^13.1.1" ,
11
+ "handlebars" : " file:../../.." ,
12
+ "rollup" : " ^2.61.1"
13
+ }
14
+ }
Original file line number Diff line number Diff line change
1
+ import { nodeResolve } from '@rollup/plugin-node-resolve' ;
2
+
3
+ export default {
4
+ input : 'src/index.js' ,
5
+ output : {
6
+ file : 'dist/bundle.js' ,
7
+ format : 'es'
8
+ } ,
9
+ plugins : [ nodeResolve ( ) ]
10
+ } ;
Original file line number Diff line number Diff line change
1
+ import Handlebars from 'handlebars/lib/handlebars' ;
2
+
3
+ const template = Handlebars . compile ( 'Author: {{author}}' ) ;
4
+ const result = template ( { author : 'Yehuda' } ) ;
5
+
6
+ if ( result !== 'Author: Yehuda' ) {
7
+ throw Error ( 'Assertion failed' ) ;
8
+ }
Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+
3
+ set -e
4
+
5
+ # Cleanup: package-lock and "npm ci" is not working with local dependencies
6
+ rm dist package-lock.json -rf
7
+ npm install
8
+ npm run build
9
+
10
+ node dist/bundle.js
11
+ echo " Success"
You can’t perform that action at this time.
0 commit comments